feat(web): pin prod web and add keycloak env for staging #631

Sammanfogat
supernaut sammanfogade 1 incheckning från feat/web-pin-keycloak-env in i main 2026-10-09 13:50:21 +00:00
Ägare

Refs bitborg/bitborg-web#311.

Why

Prod web tracks latest with podman auto-update. bitborg-web#311 moves the portal to Keycloak, and prod stays on Kanidm until cutover. Pin prod first so merging #311 only moves staging.

What

  • Prod: web_image_tag: "sha-c01b015" (current main, same digest as latest today). Staging keeps latest.
  • Web env renders KEYCLOAK_URL, KEYCLOAK_REALM, KEYCLOAK_ADMIN_CLIENT_ID next to KANIDM_*. Each image ignores what it does not read.
  • KEYCLOAK_ADMIN_CLIENT_SECRET podman secret only when the secret is set (staging now, prod at cutover). Rotation restarts the container.
  • Staging: OIDC issuer https://kc.stg.bitborg.se/realms/bitborg and the Keycloak bitborg-web client secret. Prod OIDC unchanged.
  • Assert on the Keycloak secrets when web_keycloak_required (staging).
  • Runbook: "Prod web pin until the Keycloak cutover", with the unpin steps.

Order

  1. Merge, apply the web role to prod, check the running image is sha-c01b015.
  2. Apply the web role to staging.
  3. Merge bitborg-web#311.

Validation: syntax check for both inventories, ansible-lint on the web role, format, mdlint, Renovate annotations.

Refs bitborg/bitborg-web#311. ## Why Prod web tracks `latest` with podman auto-update. bitborg-web#311 moves the portal to Keycloak, and prod stays on Kanidm until cutover. Pin prod first so merging #311 only moves staging. ## What - Prod: `web_image_tag: "sha-c01b015"` (current main, same digest as `latest` today). Staging keeps `latest`. - Web env renders `KEYCLOAK_URL`, `KEYCLOAK_REALM`, `KEYCLOAK_ADMIN_CLIENT_ID` next to `KANIDM_*`. Each image ignores what it does not read. - `KEYCLOAK_ADMIN_CLIENT_SECRET` podman secret only when the secret is set (staging now, prod at cutover). Rotation restarts the container. - Staging: OIDC issuer `https://kc.stg.bitborg.se/realms/bitborg` and the Keycloak `bitborg-web` client secret. Prod OIDC unchanged. - Assert on the Keycloak secrets when `web_keycloak_required` (staging). - Runbook: "Prod web pin until the Keycloak cutover", with the unpin steps. ## Order 1. Merge, apply the web role to prod, check the running image is `sha-c01b015`. 2. Apply the web role to staging. 3. Merge bitborg-web#311. Validation: syntax check for both inventories, ansible-lint on the web role, format, mdlint, Renovate annotations.
supernaut lade till 1 incheckning 2026-10-09 13:47:10 +00:00
feat(web): pin prod image and add Keycloak env per environment
Väntande kontroller
ci / ci (pull_request) Has started running
d7f13075a5
Prod pins web to sha-c01b015 and keeps the Kanidm OIDC values until
cutover. Staging gets the Keycloak issuer, client secret and admin
client secret. The role asserts the Keycloak secrets only where
web_keycloak_required is true.

Refs bitborg/bitborg-web#311
supernaut tvångsskickade feat/web-pin-keycloak-env från d7f13075a5
Väntande kontroller
ci / ci (pull_request) Has started running
till 6a49f74acd
Alla kontroller lyckades
ci / ci (pull_request) Successful in 1m48s
2026-10-09 13:47:56 +00:00
Jämför
supernaut schemalade den här ändringsförfrågan för automatisk sammanfogning när alla kontroller lyckas 2026-10-09 13:48:12 +00:00
supernaut sammanfogade incheckning 066a434b92 till main 2026-10-09 13:50:21 +00:00
supernaut tog bort grenen feat/web-pin-keycloak-env 2026-10-09 13:50:21 +00:00
Logga in för att delta i denna konversation.
Inga granskare
Ingen milstolpe
Inget projekt
Inga tilldelade
1 deltagare
Notiser
Förfallodatum
Förfallodatumet är ogiltigt eller utanför gränserna. Använd formatet "åååå-mm-dd".

Inget förfallodatum satt.

Beroenden

Inga beroenden satta

Referens
bitborg/bitborg-infra!631
Ingen beskrivning angiven.