From 961d090b7db9839e7ee569bfc11524ef9a7fbbc5 Mon Sep 17 00:00:00 2001 From: Bendik Aagaard Lynghaug Date: Sat, 7 Nov 2026 22:33:46 +0100 Subject: [PATCH] Rauthy as a compose profile: sign-in in Norwegian, off until asked for A rauthy service under the profile of the same name, its config here without secrets, and rauthy.env written by the deploy from Actions secrets. OIDC_ISSUER moves portal's and the chat's sign-in to it, RAUTHY_API_KEY lets portal make accounts there. konto.tomtervel.no in DNS and kasse's Caddy, beside id. Nothing runs until RAUTHY_HOST, the three secrets and the profile are set. Tried locally: the config starts, the issuer is https:///auth/v1/, and a Norwegian browser gets the pages in nb. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01L5fbDmSQSb6u27EiEuwzoM --- .gitea/workflows/deploy.yml | 34 ++++++++++++++++++++++++++++ .gitignore | 1 + README.md | 45 +++++++++++++++++++++++++++++++++++++ compose.yml | 30 +++++++++++++++++++++++++ deploy-tomtervel | 7 ++++++ dns/dnsconfig.js | 2 ++ host-caddy/tomtervel.no | 7 ++++++ rauthy/config.toml | 37 ++++++++++++++++++++++++++++++ 8 files changed, 163 insertions(+) create mode 100644 rauthy/config.toml diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 02564dd..4801a80 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -21,6 +21,7 @@ on: - gdo/** - nats/nats.conf - kanidm/server.toml.tpl + - rauthy/config.toml - deploy-tomtervel - .gitea/workflows/deploy.yml workflow_dispatch: @@ -63,6 +64,17 @@ jobs: # location field is two numbers). MAPBOX_TOKEN: ${{ secrets.MAPBOX_TOKEN }} MAPBOX_STYLE: ${{ vars.MAPBOX_STYLE }} + # Optional: Rauthy beside or instead of Kanidm (README.md, "Rauthy"). + # RAUTHY_HOST and the three secrets run it (with `rauthy` in + # COMPOSE_PROFILES); OIDC_ISSUER moves portal's and the chat's + # sign-in to it; RAUTHY_API_KEY lets portal make accounts there. + RAUTHY_HOST: ${{ vars.RAUTHY_HOST }} + RAUTHY_ENC_KEY: ${{ secrets.RAUTHY_ENC_KEY }} + RAUTHY_SECRET_RAFT: ${{ secrets.RAUTHY_SECRET_RAFT }} + RAUTHY_SECRET_API: ${{ secrets.RAUTHY_SECRET_API }} + OIDC_ISSUER: ${{ vars.OIDC_ISSUER }} + RAUTHY_API_KEY: ${{ secrets.RAUTHY_API_KEY }} + RAUTHY_LANGUAGE: ${{ vars.RAUTHY_LANGUAGE }} steps: # A missing value stops here, by name, before anything on the host # is touched. Only names are printed: the log is public. @@ -91,6 +103,8 @@ jobs: CNATS_TAG=$CNATS_TAG KRON_RELEASE=$KRON_RELEASE COMPOSE_PROFILES=$COMPOSE_PROFILES + RAUTHY_HOST=$RAUTHY_HOST + OIDC_ISSUER=$OIDC_ISSUER EOF cat > "$STAGE/portal.env" < "$STAGE/nats.env" < "$STAGE/rauthy.env" </