feat: add SSO workspace, named shares and Debian release tooling
This commit is contained in:
1 parent
833d908884
commit
87bc33e675
106 files changed
+4160
-5637
No files matched your search
@@ -1,36 +1,51 @@
|
||||
> [!WARNING]
|
||||
>
|
||||
> **File Browser is archived on 2026-09-01**. The last planned release has already shipped. There will be no further releases, bug fixes, or security fixes.
|
||||
# File Browser SSO
|
||||
|
||||
<p align="center">
|
||||
<img src="./branding/banner.png" width="550"/>
|
||||
</p>
|
||||
Файловое пространство для AniDev: вход через SSO, удобная работа с файлами и короткие публичные ссылки.
|
||||
|
||||
File Browser provides a file managing interface within a specified directory and it can be used to upload, delete, preview and edit your files. It is a **create-your-own-cloud**-kind of software where you can just install it on your server, direct it to a path and access your files through a nice web interface.
|
||||
- **Один вход.** OpenID Connect с PKCE S256; роли `Master Admin` и `FS Admin` дают права администратора.
|
||||
- **Лёгкий интерфейс.** Светлая и тёмная темы, системные шрифты, адаптивная вёрстка. Редактор, переводы и диалоги загружаются по требованию.
|
||||
- **Понятные ссылки.** Собственное имя при публикации: `https://files.example.com/s/quarterly-report`, пароль и срок действия.
|
||||
- **Один бинарник.** Сервер и интерфейс в `filebrowser`; на Debian не нужны Node.js, Go или отдельная СУБД.
|
||||
- **Настройка через `filebrowser init`.** Мастер создаёт конфигурацию и базу; локальных паролей и регистрации нет.
|
||||
|
||||
**Background:** [Goodbye File Browser, for Real This Time](https://hacdias.com/2026/07/28/filebrowser/), July 2026.
|
||||

|
||||
|
||||
## Security
|
||||
## Начало работы
|
||||
|
||||
Published advisories are listed under [security advisories](https://github.com/filebrowser/filebrowser/security/advisories),
|
||||
and reporting instructions are in [SECURITY.md](SECURITY.md). Two known issue classes
|
||||
remain unaddressed and will not be fixed:
|
||||
Подробная установка, подключение SSO и пример systemd/nginx: [инструкция для Debian](docs/deployment.md).
|
||||
|
||||
- **Command execution, runner, and hooks.** This feature is plagued with vulnerabilities across many published advisories, and would need a full rewrite to be made safe. It is disabled by default; if you re-enable it with `--disable-exec=false`, treat the ability to run commands as equivalent to shell access on the host. Background: [#5199](https://github.com/filebrowser/filebrowser/issues/5199).
|
||||
- **Session and JWT handling.** Sessions are self-contained JWTs rather than server-side identifiers, so they cannot be revoked, which means that logout, password changes, and renewal leave previously issued tokens valid until they expire, and the same refresh token can be redeemed repeatedly. Assume a leaked token is valid until expiry. Background: [#5216](https://github.com/filebrowser/filebrowser/issues/5216).
|
||||
```sh
|
||||
chmod +x filebrowser
|
||||
./filebrowser init
|
||||
./filebrowser
|
||||
```
|
||||
|
||||
If you keep running File Browser, treat it as unmaintained software:
|
||||
Мастер напечатает точный callback URL для приложения в SSO. Конфигурация хранится в `.filebrowser.json` с правами `0600`; `.env` не используется.
|
||||
|
||||
- **Do not expose it directly to the internet.** Put it behind a reverse proxy that terminates TLS and performs its own authentication.
|
||||
- **Keep the command runner disabled.** It is off by default, so leave it off. See [#5199](https://github.com/filebrowser/filebrowser/issues/5199) and [`docs/command-execution.md`](docs/command-execution.md).
|
||||
- **Run it unprivileged, inside a container**, with only the directory you intend to serve mounted into it.
|
||||
Сессия — 8 часов, с выходом после 30 минут бездействия, как в VTNL Panel. Роли обновляются при входе. Смена роли или блокировка в SSO не отзывает уже существующую локальную сессию автоматически. Перезапуск File Browser завершает все его сессии.
|
||||
|
||||
## Documentation
|
||||
## Разработка и сборка
|
||||
|
||||
Documentation on how to install, configure, and build this project lives in [`docs`](docs) in this repository.
|
||||
Go 1.26+, Node.js 24+, pnpm 10.33.4.
|
||||
|
||||
[CONTRIBUTING.md](CONTRIBUTING.md) documents how to build and develop the project, which remains useful to anyone forking it.
|
||||
```sh
|
||||
cd frontend
|
||||
pnpm install --frozen-lockfile
|
||||
pnpm run build
|
||||
pnpm run test
|
||||
cd ..
|
||||
go test ./...
|
||||
go build -o filebrowser .
|
||||
```
|
||||
|
||||
## License
|
||||
Готовый архив Debian amd64: `sh scripts/build-release.sh` на Linux или `./scripts/build-release.ps1` на Windows. Результаты — `build/filebrowser-linux-amd64.tar.gz` и `build/SHA256SUMS`. Бинарник собирается с `CGO_ENABLED=0`, `GOAMD64=v1`.
|
||||
|
||||
[Apache License 2.0](LICENSE) © File Browser Contributors
|
||||
Ветки:
|
||||
|
||||
- `master-copy` — неизменённая исходная версия upstream;
|
||||
- `dev` — исходники и разработка этого форка;
|
||||
- `master` — краткая презентация и ссылки на сборки.
|
||||
|
||||
Обзор проверок и ограничений: [безопасность](docs/SECURITY-REVIEW.md). Команды и хуки отключены, выходящие за файловую область симлинки запрещены. Старые ссылки `/share/{key}` сохранены как совместимый маршрут.
|
||||
|
||||
Основано на [File Browser](https://github.com/filebrowser/filebrowser), архивированном upstream. Это независимый форк. Лицензия [Apache-2.0](LICENSE), авторство исходных участников сохранено.
|
||||
Reference in new issue
Block a user