docs(*): secrets key in the env example and the secrets page in the readme

This commit is contained in:
hh committed 2026-10-18 16:18:26 +02:00
1 parent fc97463f0f
commit 1d8b8c68a3
2 files changed
+11

No files matched your search

+5
View File
@@ -31,6 +31,11 @@ ADMIN_PASS=
# Подпись session-cookie admin UI # Подпись session-cookie admin UI
SESSION_SECRET= SESSION_SECRET=
# Мастер-ключ хранилища секретов (admin → System → Secrets): openssl rand -hex 32.
# Шифрует таблицу secrets в postgres, поэтому дамп базы без него закрыт.
# В env модели не попадает. Потерян или сменён - секреты задаются заново.
SECRETS_KEY=
### Claude #################################################################### ### Claude ####################################################################
# OAuth-токен подписки для Claude Agent SDK внутри контейнера. # OAuth-токен подписки для Claude Agent SDK внутри контейнера.
+6
View File
@@ -71,6 +71,12 @@ read-write (it is the dispatcher's home), and `beaver_agent/policy.py` keeps
it out of `.obsidian`, `мета` outside `мета/бобер`, and from deleting it out of `.obsidian`, `мета` outside `мета/бобер`, and from deleting
anything but its own files. anything but its own files.
Keys the agent needs for its own scripts (an RPC key, a service account
file) go into **System → Secrets** in the admin, not into files in the
container: they are sealed with `SECRETS_KEY` in Postgres, never shown back,
and reach a command only through `secret run NAME -- cmd` (see the `secrets`
skill under `мета/бобер/скиллы/общие/`).
### 4. Mint a token ### 4. Mint a token
Open admin at `http://localhost:62990/` (or `https://<DOMAIN>/` if Caddy), sign in with `ADMIN_USER` / `ADMIN_PASS`, go to **Tokens → Create**, scope `*` for first run. Open admin at `http://localhost:62990/` (or `https://<DOMAIN>/` if Caddy), sign in with `ADMIN_USER` / `ADMIN_PASS`, go to **Tokens → Create**, scope `*` for first run.