vault (Fix): OIDC UI callback on the ADR-0005 OpenBao name #180
No reviewers
Labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
lab/iac!180
Loading…
Reference in a new issue
No description provided.
Delete branch "openbao-oidc-adr-name"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Answers the OpenBao OIDC question from the cutover audit (#179).
Which instance is which
vaultstack here → c1 OpenBao (openbao-config,VAULT_ADDR=https://10.30.20.21:8200). It does manage theoidc/mount and itsdefaultrole, so pointing the provider at OpenBao covered the config. The role'sallowed_redirect_urisstill listedhttps://vault.animeteamspeak.moe/..., a name that always pointed at mini's legacy Vault, never at this OpenBao. The c1 UI OIDC login has never had a valid callback.vault.apps.caosh.int→ mini's legacy Vault (OpenBao 2.0.4, nsvault, backsClusterSecretStore/vault-backend). It is not in this repo, and its ownoidc/role is configured by hand inside it.This PR
allowed_redirect_uris=https://secrets.infra.caosh.int.animeteamspeak.moe:8200/ui/vault/auth/oidc/oidc/callback. The name comes from machine-configs ADR-0005 ("OpenBao's API name becomessecrets.infra.caosh.int.animeteamspeak.moe").vaultclient (shared by both instances,oidc_client_id = "vault") allows both UI callbacks: mini'svault.apps.caosh.intand c1's ADR name.Not live until #50
secrets.infra.caosh.int.animeteamspeak.moehas no DNS record yet, and the think API certs carryopenbao.int...+ IP SANs only. #50 tracks both: the record, below the cluster layer, plus the cert reissue. Until then, c1 UI OIDC still can't complete. Note that #50's body sayssecrets.infra.int...without the site code, while ADR-0005 has the newersecrets.infra.caosh.int...; this PR follows the ADR.Checks
tofu fmt -checkclean; branch plans decoded with tofu 1.12.1:openbao-config-pr-180has 1 update (vault_jwt_auth_backend_role.animeteamspeak_default_roleallowed_redirect_uris only);kanidm-config-pr-180has 1 update (kanidm_oauth2_basic.vaultredirect_uris gains the c1 callback). Nothing else.tf-controller plan output:
To apply this plan, please merge this pull request.
tf-controller plan output:
To apply this plan, please merge this pull request.