Rauthy: en kortlivet nøkkel ved første start, til klientene #5

Merged
bl merged 2 commits from rauthy-provision into main 2026-11-08 12:31:52 +01:00
2 changed files with 8 additions and 0 deletions
Showing only changes of commit 9e986bfde4 - Show all commits

No files matched your search

+7
View File
@@ -72,6 +72,11 @@ jobs:
RAUTHY_ENC_KEY: ${{ secrets.RAUTHY_ENC_KEY }}
RAUTHY_SECRET_RAFT: ${{ secrets.RAUTHY_SECRET_RAFT }}
RAUTHY_SECRET_API: ${{ secrets.RAUTHY_SECRET_API }}
# Optional, for Rauthy's very first start only: a short-lived key
# (base64 JSON, README.md "Rauthy") that makes the clients. Rauthy
# reads it into an empty database and never again.
RAUTHY_BOOTSTRAP_API_KEY: ${{ secrets.RAUTHY_BOOTSTRAP_API_KEY }}
RAUTHY_BOOTSTRAP_API_KEY_SECRET: ${{ secrets.RAUTHY_BOOTSTRAP_API_KEY_SECRET }}
OIDC_ISSUER: ${{ vars.OIDC_ISSUER }}
RAUTHY_API_KEY: ${{ secrets.RAUTHY_API_KEY }}
RAUTHY_LANGUAGE: ${{ vars.RAUTHY_LANGUAGE }}
@@ -157,6 +162,8 @@ jobs:
BOOTSTRAP_ADMIN_EMAIL=$SEED_ADMIN_EMAIL
RAUTHY_ADMIN_EMAIL=$SEED_ADMIN_EMAIL
EVENT_EMAIL=$SEED_ADMIN_EMAIL
BOOTSTRAP_API_KEY=$RAUTHY_BOOTSTRAP_API_KEY
BOOTSTRAP_API_KEY_SECRET=$RAUTHY_BOOTSTRAP_API_KEY_SECRET
EOF
fi
+1
View File
@@ -166,6 +166,7 @@ Run workflow**. Set them with `gt` (`gt variable set NAME --body ...`,
| `RAUTHY_HOST` | variable | repo | optional, Rauthy (see [Rauthy](#rauthy)): `konto.tomtervel.no` |
| `RAUTHY_ENC_KEY`, `RAUTHY_SECRET_RAFT`, `RAUTHY_SECRET_API` | secret | repo | optional, Rauthy's own: made once, never changed (the key encrypts its database) |
| `OIDC_ISSUER` | variable | repo | optional: `https://konto.tomtervel.no/auth/v1/` moves the site's and the chat's sign-in to Rauthy; unset, Kanidm |
| `RAUTHY_BOOTSTRAP_API_KEY`, `RAUTHY_BOOTSTRAP_API_KEY_SECRET` | secret | repo | optional, Rauthy's first start only: a short-lived key (base64 of `{"name","exp","access"}`, secret 64+ alphanumerics) that makes the OIDC clients through the API; read into an empty database, ignored after |
| `RAUTHY_API_KEY`, `RAUTHY_LANGUAGE` | secret, variable | repo | optional: portal makes accounts in Rauthy (`<name>$<secret>`, made in Rauthy's admin), in `nb` |
A variable is printed wherever a workflow echoes it, and this repo's run