Update hivegrid-cloud reference to latest main

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
davidandClaude Fable 5 committed 2026-07-08 16:15:37 +02:00
1 parent e98d38e716
commit 7b21524c86
3781 files changed
+373484 -225607

No files matched your search

@@ -16,9 +16,9 @@ AUTHENTIK_TAG=2026.2.3
# -----------------------------------------------------------------------------
# Public URL — must match the Traefik-routed hostname (see traefik.labels.yml)
# -----------------------------------------------------------------------------
AUTHENTIK_BASE_URL=https://auth.boiler.saas-ctrl.com
AUTHENTIK_BASE_URL=https://auth.tool-ctrl.de
# Optional: cookie domain for cross-subdomain SSO (only set if you have
# multiple boiler.saas-ctrl.com subdomains that should share the IdP cookie).
# multiple app.hivegrid.de subdomains that should share the IdP cookie).
AUTHENTIK_COOKIE_DOMAIN=
# -----------------------------------------------------------------------------
@@ -32,7 +32,7 @@ AUTHENTIK_COOKIE_DOMAIN=
AUTHENTIK_SECRET_KEY=replace-me-with-60-bytes-of-base64-entropy
# -----------------------------------------------------------------------------
# Postgres (Authentik-internal, NOT shared with the boilerplate app)
# Postgres (Authentik-internal, NOT shared with the HiveGrid app)
# -----------------------------------------------------------------------------
AUTHENTIK_POSTGRESQL__USER=authentik
AUTHENTIK_POSTGRESQL__NAME=authentik
@@ -65,8 +65,8 @@ AUTHENTIK_LOG_LEVEL=info
# -----------------------------------------------------------------------------
# Sentry self-hosted DSN (Phase 02 #29). Optional — leave blank to disable.
# DSN format: https://<key>@sentry.boiler.saas-ctrl.com/<project-id>
# Create a "boilerplate-authentik" project in the Sentry UI and paste its DSN.
# DSN format: https://<key>@sentry.saas-ctrl.com/<project-id>
# Create a "hivegrid-authentik" project in the Sentry UI and paste its DSN.
# -----------------------------------------------------------------------------
AUTHENTIK_SENTRY__DSN=
AUTHENTIK_SENTRY__ENVIRONMENT=staging
@@ -83,7 +83,7 @@ AUTHENTIK_EMAIL__PASSWORD=
AUTHENTIK_EMAIL__USE_TLS=true
AUTHENTIK_EMAIL__USE_SSL=false
AUTHENTIK_EMAIL__TIMEOUT=10
AUTHENTIK_EMAIL__FROM=authentik@boiler.saas-ctrl.com
AUTHENTIK_EMAIL__FROM=authentik@tool-ctrl.de
# -----------------------------------------------------------------------------
# OIDC client secret for the Toolctrl admin-panel provider
@@ -94,17 +94,17 @@ AUTHENTIK_EMAIL__FROM=authentik@boiler.saas-ctrl.com
# -----------------------------------------------------------------------------
TOOLCTRL_ADMIN_OIDC_CLIENT_ID=toolctrl-admin-panel
TOOLCTRL_ADMIN_OIDC_CLIENT_SECRET=replace-me-64-hex-chars
TOOLCTRL_ADMIN_OIDC_REDIRECT_URI=https://admin.boiler.saas-ctrl.com/auth/callback
TOOLCTRL_ADMIN_OIDC_REDIRECT_URI=https://admin.hivegrid.de/auth/callback
# -----------------------------------------------------------------------------
# S3 backup target (consumed by infra/authentik/backup/)
# Endpoint format examples:
# Hetzner: https://nbg1.your-objectstorage.com
# AWS: https://s3.eu-central-1.amazonaws.com
# MinIO local: https://minio.boiler.saas-ctrl.com
# MinIO local: https://minio.saas-ctrl.com
# -----------------------------------------------------------------------------
AUTHENTIK_S3_BACKUP_ENDPOINT=https://nbg1.your-objectstorage.com
AUTHENTIK_S3_BACKUP_BUCKET=boilerplate-authentik-backups
AUTHENTIK_S3_BACKUP_BUCKET=hivegrid-authentik-backups
AUTHENTIK_S3_BACKUP_ACCESS_KEY=replace-me
AUTHENTIK_S3_BACKUP_SECRET_KEY=replace-me
@@ -1,7 +1,7 @@
# `infra/authentik` — Self-Hosted Authentik IdP Stack
This directory contains the artifacts to deploy a **self-hosted Authentik**
identity-provider instance on the staging Hetzner host (`boilerplate-staging`,
identity-provider instance on the staging Hetzner host (`HiveGrid staging`,
see `docs/improvement-plan/archive/STAGING-ACCESS.md`) via the existing
Coolify-managed Docker-Compose runtime.
@@ -29,11 +29,11 @@ the default — it lacks OIDC, MFA-enforcement, brand-flows, and blueprints.
- Docker Engine ≥ 24 + Docker Compose v2 (provided by Coolify)
- Traefik v3.6 reverse-proxy from `coolify-proxy` (Let's Encrypt ACME via
the `letsencrypt` cert-resolver)
- DNS record `auth.boiler.saas-ctrl.com` → `46.225.5.93`
- DNS record `auth.tool-ctrl.de` → `46.225.5.93`
(Cloudflare-managed; see `docs/operations/authentik-setup.md` for the
`cf-cli` snippet that creates it)
- Sentry self-hosted stack from Phase 02 #29 reachable at
`sentry.boiler.saas-ctrl.com` (Authentik containers report their own
`sentry.saas-ctrl.com` (Authentik containers report their own
errors to it via `AUTHENTIK_SENTRY__DSN`)
## Layout
@@ -87,7 +87,7 @@ High-level:
## Scope
- Authentik **server** + **worker** + dedicated **postgresql** + dedicated
**redis** — these databases MUST NOT be shared with the boilerplate
**redis** — these databases MUST NOT be shared with HiveGrid
application's own Postgres/Redis (separate compromise blast-radius +
separate backup/restore cycle).
- **No Outposts** — pure OIDC use-case; the reverse-proxy outpost concept
@@ -10,7 +10,7 @@
| Release line | `2026.2.x` (the latest stable line as of 2026-05-17 per `gh release list --repo goauthentik/authentik`) |
| Why not `2026.5.0-rc2` | RC; we wait for the GA promotion of the `2026.5.x` line before upgrading. |
| Why not `2025.12.5` | Older minor; `2026.2.3` is the latest stable and contains the security + flow-stage fixes we care about. |
| Postgres image | `postgres:16-alpine` (Authentik supports 14/15/16; we standardise on 16 to match the rest of the boilerplate) |
| Postgres image | `postgres:16-alpine` (Authentik supports 14/15/16; we standardise on 16 to match the rest of HiveGrid) |
| Redis image | `redis:7-alpine` |
## Why we DO vendor the compose
@@ -27,7 +27,7 @@ based on the upstream reference at
disk plane so backups + log-rotation use the same path as every other
Coolify stack.
- The Postgres + Redis instances stay strictly **Authentik-internal** —
we never share them with the boilerplate app's databases.
we never share them with the HiveGrid app's databases.
- No `ports:` mappings for Postgres/Redis → only reachable on the internal
Docker network.
@@ -116,7 +116,7 @@ REQUIRED for restore:
OPTIONAL but recommended:
- TOOLCTRL_ADMIN_OIDC_CLIENT_SECRET
The OIDC provider's client_secret is stored encrypted in Postgres;
the plaintext lives in Coolify-Vault and in the boilerplate app's
the plaintext lives in Coolify-Vault and in the HiveGrid app's
.env (consumed by Phase 09 #82).
- AUTHENTIK_SENTRY__DSN
@@ -13,7 +13,7 @@
# * token TTLs: code 1m, access 10m, refresh 7d, id-token 10m
# * include_claims_in_id_token=true
# - Application `Toolctrl Admin Panel`
# * launchURL points at https://admin.boiler.saas-ctrl.com/
# * launchURL points at https://admin.hivegrid.de/
# * Access binding: only members of toolctrl-admin OR toolctrl-staff
#
# Also creates a DISABLED placeholder provider `toolctrl-tenant-sso` reserved
@@ -78,7 +78,7 @@ entries:
attrs:
name: "Toolctrl Admin Panel"
provider: !Find [authentik_providers_oauth2.oauth2provider, [name, toolctrl-admin-panel]]
meta_launch_url: "https://admin.boiler.saas-ctrl.com/"
meta_launch_url: "https://admin.hivegrid.de/"
meta_description: "Toolctrl admin panel — super-admin + staff console"
policy_engine_mode: any
open_in_new_tab: false
@@ -15,13 +15,13 @@
#
# Run this from the operator's machine OR inside a Coolify post-deploy hook:
#
# export AUTHENTIK_BASE_URL=https://auth.boiler.saas-ctrl.com
# export AUTHENTIK_BASE_URL=https://auth.tool-ctrl.de
# export AUTHENTIK_BOOTSTRAP_TOKEN=$(cat ~/.cli-tokens/authentik-bootstrap)
# bash infra/authentik/bootstrap/bootstrap.sh
set -Eeuo pipefail
: "${AUTHENTIK_BASE_URL:?AUTHENTIK_BASE_URL must be set (e.g. https://auth.boiler.saas-ctrl.com)}"
: "${AUTHENTIK_BASE_URL:?AUTHENTIK_BASE_URL must be set (e.g. https://auth.tool-ctrl.de)}"
: "${AUTHENTIK_BOOTSTRAP_TOKEN:?AUTHENTIK_BOOTSTRAP_TOKEN must be set (see .env.example)}"
WAIT_MAX_SECONDS="${WAIT_MAX_SECONDS:-300}"
@@ -83,7 +83,7 @@ cat <<'EONOTE'
----------------------------------------------------------------------
NEXT STEPS (operator)
----------------------------------------------------------------------
1. Log into https://auth.boiler.saas-ctrl.com using AUTHENTIK_BOOTSTRAP_EMAIL
1. Log into https://auth.tool-ctrl.de using AUTHENTIK_BOOTSTRAP_EMAIL
+ AUTHENTIK_BOOTSTRAP_PASSWORD. The first login forces a password change.
2. In the Authentik UI, enroll TOTP for your account
@@ -100,6 +100,6 @@ NEXT STEPS (operator)
on each.
5. Verify OIDC discovery from the admin-panel side once #82 is wired:
curl -fsS https://auth.boiler.saas-ctrl.com/application/o/toolctrl-admin-panel/.well-known/openid-configuration | jq .issuer
curl -fsS https://auth.tool-ctrl.de/application/o/toolctrl-admin-panel/.well-known/openid-configuration | jq .issuer
----------------------------------------------------------------------
EONOTE
@@ -8,7 +8,7 @@
# between staging and any future dedicated-host deployment).
#
# Postgres + Redis are strictly Authentik-internal — never share with the
# boilerplate app's databases. No `ports:` mappings anywhere; ingress is
# HiveGrid app's databases. No `ports:` mappings anywhere; ingress is
# Traefik-only.
#
# Volume convention: named volumes are managed by Docker; on staging Coolify
@@ -129,7 +129,7 @@ services:
AUTHENTIK_EMAIL__USE_TLS: ${AUTHENTIK_EMAIL__USE_TLS:-true}
AUTHENTIK_EMAIL__USE_SSL: ${AUTHENTIK_EMAIL__USE_SSL:-false}
AUTHENTIK_EMAIL__TIMEOUT: ${AUTHENTIK_EMAIL__TIMEOUT:-10}
AUTHENTIK_EMAIL__FROM: ${AUTHENTIK_EMAIL__FROM:-authentik@boiler.saas-ctrl.com}
AUTHENTIK_EMAIL__FROM: ${AUTHENTIK_EMAIL__FROM:-authentik@tool-ctrl.de}
volumes:
- authentik-media:/media
- authentik-certs:/certs
@@ -185,7 +185,7 @@ services:
AUTHENTIK_EMAIL__USE_TLS: ${AUTHENTIK_EMAIL__USE_TLS:-true}
AUTHENTIK_EMAIL__USE_SSL: ${AUTHENTIK_EMAIL__USE_SSL:-false}
AUTHENTIK_EMAIL__TIMEOUT: ${AUTHENTIK_EMAIL__TIMEOUT:-10}
AUTHENTIK_EMAIL__FROM: ${AUTHENTIK_EMAIL__FROM:-authentik@boiler.saas-ctrl.com}
AUTHENTIK_EMAIL__FROM: ${AUTHENTIK_EMAIL__FROM:-authentik@tool-ctrl.de}
volumes:
- authentik-media:/media
- authentik-certs:/certs
@@ -13,7 +13,7 @@
# 5. (optional) self-registration endpoint returns 404
#
# Usage:
# export AUTHENTIK_BASE_URL=https://auth.boiler.saas-ctrl.com
# export AUTHENTIK_BASE_URL=https://auth.tool-ctrl.de
# export AUTHENTIK_APP_SLUG=toolctrl-admin-panel
# bash infra/authentik/scripts/smoke.sh
#
@@ -23,7 +23,7 @@
set -Eeuo pipefail
: "${AUTHENTIK_BASE_URL:?AUTHENTIK_BASE_URL must be set (e.g. https://auth.boiler.saas-ctrl.com)}"
: "${AUTHENTIK_BASE_URL:?AUTHENTIK_BASE_URL must be set (e.g. https://auth.tool-ctrl.de)}"
: "${AUTHENTIK_APP_SLUG:=toolctrl-admin-panel}"
FAILED=0
@@ -10,7 +10,7 @@
# and a default ACME cert-resolver named `letsencrypt`. The labels below match
# that convention; they exactly mirror the shape used by infra/sentry/.
#
# Host: auth.boiler.saas-ctrl.com -> DNS A record points at 46.225.5.93
# Host: auth.tool-ctrl.de -> DNS A record points at 46.225.5.93
# (created via Cloudflare API — see docs/operations/authentik-setup.md).
# ---- ROUTERS ----------------------------------------------------------------
@@ -18,14 +18,14 @@
# Primary HTTPS router — terminates TLS, forwards to authentik-server:9000.
traefik.enable: "true"
traefik.docker.network: "coolify"
traefik.http.routers.authentik.rule: "Host(`auth.boiler.saas-ctrl.com`)"
traefik.http.routers.authentik.rule: "Host(`auth.tool-ctrl.de`)"
traefik.http.routers.authentik.entrypoints: "https"
traefik.http.routers.authentik.tls: "true"
traefik.http.routers.authentik.tls.certresolver: "letsencrypt"
traefik.http.services.authentik.loadbalancer.server.port: "9000"
# HTTP -> HTTPS redirect (port 80 catches plain-HTTP hits and 308s them to TLS).
traefik.http.routers.authentik-http.rule: "Host(`auth.boiler.saas-ctrl.com`)"
traefik.http.routers.authentik-http.rule: "Host(`auth.tool-ctrl.de`)"
traefik.http.routers.authentik-http.entrypoints: "http"
traefik.http.routers.authentik-http.middlewares: "authentik-https-redirect"
traefik.http.middlewares.authentik-https-redirect.redirectscheme.scheme: "https"