docs: rewrite authentication factors and identity docs for keycloak #136

Sammanfogat
supernaut sammanfogade 3 incheckningar från docs/keycloak-design in i main 2026-10-08 20:23:21 +00:00
Ägare

Brings the identity design docs in line with ADR 0044. Each file has a dated status line: Keycloak runs on staging, and Kanidm serves production until cutover.

What

  • design/authentication-factors.md:
    • New credential matrix: passkey alone, password plus TOTP, password plus security key, and recovery codes.
    • Not offered: password alone, email OTP, SMS and magic link.
    • "Every person must hold MFA" stays. The second factor is required after a password.
    • New Recovery section: "Forgot password" resets the password only, and email alone never recovers an account.
  • design/identity-field-validation.md:
    • Keycloak username and email rules, with a pinned-version row (26.8.0).
    • Default bounds come from keycloak-default-user-profile.json in the 26.8.0 services jar: usernames 3 to 255, emails at most 255.
    • Usernames are immutable. Email changes are verified by Keycloak.
  • architecture.md:
    • New Keycloak component section: realm, groups and roles, the groups and entitlements claims, the three admin clients, the admin surface not public, and OpenTofu over the SSH forward.
    • SSO and provisioning flows in mermaid. The sign-up and reconciliation flows are retargeted at Keycloak.

Checks

pnpm format:check and pnpm mdlint pass. The mermaid diagrams were linted, not rendered.

Closes #130
Closes #131

Brings the identity design docs in line with ADR 0044. Each file has a dated status line: Keycloak runs on staging, and Kanidm serves production until cutover. ## What - `design/authentication-factors.md`: - New credential matrix: passkey alone, password plus TOTP, password plus security key, and recovery codes. - Not offered: password alone, email OTP, SMS and magic link. - "Every person must hold MFA" stays. The second factor is required after a password. - New Recovery section: "Forgot password" resets the password only, and email alone never recovers an account. - `design/identity-field-validation.md`: - Keycloak username and email rules, with a pinned-version row (26.8.0). - Default bounds come from `keycloak-default-user-profile.json` in the 26.8.0 services jar: usernames 3 to 255, emails at most 255. - Usernames are immutable. Email changes are verified by Keycloak. - `architecture.md`: - New Keycloak component section: realm, groups and roles, the `groups` and `entitlements` claims, the three admin clients, the admin surface not public, and OpenTofu over the SSH forward. - SSO and provisioning flows in mermaid. The sign-up and reconciliation flows are retargeted at Keycloak. ## Checks `pnpm format:check` and `pnpm mdlint` pass. The mermaid diagrams were linted, not rendered. Closes #130 Closes #131
supernaut lade till 3 incheckningar 2026-10-08 20:15:06 +00:00
Rewrite the credential matrix and recovery for Keycloak 26.8.0.
Add Keycloak username and email rules with a pinned-version row.
Rework the architecture identity section and SSO and provisioning flows.

Closes #130
Closes #131
Read from keycloak-default-user-profile.json in the 26.8.0 services jar. Refs #131
docs: drop two dashes from new keycloak text
Alla kontroller lyckades
ci / ci (pull_request) Successful in 13s
9277aafbf5
supernaut sammanfogade incheckning 6adca8223b till main 2026-10-08 20:23:21 +00:00
supernaut tog bort grenen docs/keycloak-design 2026-10-08 20:23: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-docs!136
Ingen beskrivning angiven.