Update hivegrid-cloud reference to latest main
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e98d38e716
commit
7b21524c86
3781 files changed
+373484
-225607
No files matched your search
@@ -36,7 +36,7 @@ external network so Traefik can route inbound HTTPS:
|
||||
```
|
||||
|
||||
- **server** — Django web + REST API. Mounts the project blueprints from
|
||||
`infra/authentik/bootstrap/blueprints/` at `/blueprints/toolctrl/`.
|
||||
`infra/authentik/bootstrap/blueprints/` at `/blueprints/hivegrid/`.
|
||||
- **worker** — Background jobs, blueprint application, email send. Shares
|
||||
the same image.
|
||||
- **postgresql** — Authentik's own Postgres 16. **Not shared** with the
|
||||
@@ -115,8 +115,8 @@ scope for this task; same pattern as Sentry).
|
||||
AUTHENTIK_POSTGRESQL__PASSWORD=$(openssl rand -base64 32)
|
||||
AUTHENTIK_BOOTSTRAP_PASSWORD=$(openssl rand -base64 24)
|
||||
AUTHENTIK_BOOTSTRAP_TOKEN=$(openssl rand -hex 32)
|
||||
TOOLCTRL_ADMIN_OIDC_CLIENT_SECRET=$(openssl rand -hex 32)
|
||||
AUTHENTIK_BOOTSTRAP_EMAIL=ops@toolctrl.de # operator's monitored mailbox
|
||||
HIVEGRID_ADMIN_OIDC_CLIENT_SECRET=$(openssl rand -hex 32)
|
||||
AUTHENTIK_BOOTSTRAP_EMAIL=ops@hivegrid.de # operator's monitored mailbox
|
||||
AUTHENTIK_SENTRY__DSN=$(grep AUTHENTIK_DSN ~/.cli-tokens/boilerplate-staging-env | cut -d= -f2)
|
||||
```
|
||||
Save the four randomly-generated secrets to your offline password vault
|
||||
@@ -125,7 +125,7 @@ scope for this task; same pattern as Sentry).
|
||||
5. Click **Deploy**. First boot:
|
||||
- postgresql + redis start, server waits for `service_healthy`
|
||||
- server runs migrations (~30-60s)
|
||||
- worker boots, discovers `/blueprints/toolctrl/*.yaml`, applies them
|
||||
- worker boots, discovers `/blueprints/hivegrid/*.yaml`, applies them
|
||||
- bootstrap admin is created from `AUTHENTIK_BOOTSTRAP_EMAIL` +
|
||||
`AUTHENTIK_BOOTSTRAP_PASSWORD`
|
||||
6. Once `docker ps` shows the server container `(healthy)`, run the
|
||||
@@ -140,7 +140,7 @@ scope for this task; same pattern as Sentry).
|
||||
7. Smoke-test from your laptop:
|
||||
```bash
|
||||
AUTHENTIK_BASE_URL=https://auth.boiler.saas-ctrl.com \
|
||||
AUTHENTIK_APP_SLUG=toolctrl-admin-panel \
|
||||
AUTHENTIK_APP_SLUG=hivegrid-admin-panel \
|
||||
bash infra/authentik/scripts/smoke.sh
|
||||
```
|
||||
All five probes must pass (root 200, health-live 200, health-ready 200,
|
||||
@@ -153,18 +153,18 @@ scope for this task; same pattern as Sentry).
|
||||
1. Browse to <https://auth.boiler.saas-ctrl.com/> and log in with
|
||||
`AUTHENTIK_BOOTSTRAP_EMAIL` / `AUTHENTIK_BOOTSTRAP_PASSWORD`.
|
||||
2. Authentik forces a password change on first login. Set a new strong
|
||||
password (meets the `toolctrl-password-policy`: 12+ chars, mixed case
|
||||
password (meets the `hivegrid-password-policy`: 12+ chars, mixed case
|
||||
+ digit + symbol, no HIBP hit, zxcvbn >= 3).
|
||||
3. **Enroll TOTP**: User-Settings -> Authenticators -> Set up TOTP.
|
||||
Scan the QR with the operator's hardware-MFA app (Yubikey-Authenticator
|
||||
/ 1Password / Authy). Required because the
|
||||
`toolctrl-require-mfa-totp-for-admin` policy denies access to the
|
||||
`hivegrid-require-mfa-totp-for-admin` policy denies access to the
|
||||
admin-panel application without it.
|
||||
4. **Rotate the bootstrap token**: Directory -> Tokens -> find the bootstrap
|
||||
token (look up by intent: `app_password` and the bootstrap-email user),
|
||||
delete it. Create a personal admin token instead and store it in
|
||||
Coolify-Vault under `AUTHENTIK_ADMIN_TOKEN` for future re-bootstrap runs.
|
||||
5. **Add the bootstrap admin to the `toolctrl-admin` group** (it's NOT in
|
||||
5. **Add the bootstrap admin to the `hivegrid-admin` group** (it's NOT in
|
||||
the group by default — Authentik treats it as a built-in superuser; the
|
||||
group binding is what the admin-panel OIDC app uses for authorisation).
|
||||
|
||||
@@ -178,7 +178,7 @@ scope for this task; same pattern as Sentry).
|
||||
- [ ] Internal SSL OFF (TLS terminated by Traefik) — verify by
|
||||
`curl -ksI https://auth.boiler.saas-ctrl.com/` shows
|
||||
`server: Traefik` not `server: gunicorn`.
|
||||
- [ ] MFA-TOTP policy applied to `toolctrl-admin` group — verified by
|
||||
- [ ] MFA-TOTP policy applied to `hivegrid-admin` group — verified by
|
||||
creating a test admin without TOTP and seeing the policy deny.
|
||||
- [ ] Public self-registration off (`/if/flow/default-source-enrollment/`
|
||||
returns 404 — covered by `scripts/smoke.sh`).
|
||||
@@ -196,9 +196,9 @@ scope for this task; same pattern as Sentry).
|
||||
- [ ] Backup container deployed + first nightly run verified
|
||||
(`aws s3 ls s3://${AUTHENTIK_S3_BACKUP_BUCKET}/authentik/$(date +%Y-%m-%d)/`).
|
||||
- [ ] Brand whitelisting: Authentik UI -> System -> Brands -> default brand
|
||||
has `default flow background` set to a Toolctrl asset (or default OK).
|
||||
- [ ] OIDC application access bindings reviewed: only `toolctrl-admin` and
|
||||
`toolctrl-staff` allowed; no `everyone` binding.
|
||||
has `default flow background` set to a HiveGrid asset (or default OK).
|
||||
- [ ] OIDC application access bindings reviewed: only `hivegrid-admin` and
|
||||
`hivegrid-staff` allowed; no `everyone` binding.
|
||||
|
||||
---
|
||||
|
||||
@@ -234,7 +234,7 @@ docker exec -i pg-restore pg_restore --no-owner --no-privileges --dbname authent
|
||||
# 4. Verify schema + data
|
||||
docker exec -i pg-restore psql -U postgres -d authentik -c "\dt" | head
|
||||
docker exec -i pg-restore psql -U postgres -d authentik -c "SELECT COUNT(*) FROM authentik_core_user;"
|
||||
docker exec -i pg-restore psql -U postgres -d authentik -c "SELECT name FROM authentik_core_group WHERE name LIKE 'toolctrl-%';"
|
||||
docker exec -i pg-restore psql -U postgres -d authentik -c "SELECT name FROM authentik_core_group WHERE name LIKE 'hivegrid-%';"
|
||||
|
||||
# 5. Spin up Authentik server against the restored DB with the SAME secret
|
||||
# key, hit /-/health/ready/ to confirm it boots cleanly.
|
||||
@@ -295,7 +295,7 @@ dedicated host (smaller blast radius, separate maintenance window):
|
||||
7. Once green, switch the admin-panel `AUTHENTIK_OIDC_ISSUER_URL` (#82) over
|
||||
to the prod host with a maintenance window:
|
||||
- Create the prod-equivalent OIDC application in the prod Authentik
|
||||
- Onboard real admins (create users + assign to `toolctrl-admin`,
|
||||
- Onboard real admins (create users + assign to `hivegrid-admin`,
|
||||
force TOTP enrollment)
|
||||
- Flip `AUTHENTIK_OIDC_ISSUER_URL` in the app's Coolify env
|
||||
- Verify admin login end-to-end
|
||||
@@ -316,7 +316,5 @@ dedicated host (smaller blast radius, separate maintenance window):
|
||||
- `infra/authentik/bootstrap/blueprints/` — config-as-code
|
||||
- `infra/authentik/backup/` — daily backup container
|
||||
- `infra/authentik/scripts/smoke.sh` — post-deploy verifier
|
||||
- Phase 09 detail-MD:
|
||||
`docs/improvement-plan/09-authentik-admin-sso/authentik-setup.md`
|
||||
- Lite alternative (LDAP-only):
|
||||
`docs/operations/authentik-alternatives.md`
|
||||
Reference in new issue
Block a user