Prototype customer-organisation SSO with Entra on staging #636

Öppen
öppnade 2026-10-09 20:38:12 +00:00 av supernaut · 0 kommentarer
Ägare

Prototype customer-organisation SSO on staging: a customer's users sign in to Bitborg with their own Microsoft Entra ID. Not before go-live.

Approach

Keycloak's built-in Organizations: one organisation per customer, one Entra OIDC identity provider linked to it, routing by email domain. Bitborg staff set domains; Keycloak does not verify domain ownership.

Steps

  • Free Entra dev tenant. One organisation, one domain, OIDC IdP linked, auto-redirect on.
  • Add the Organization steps to the bitborg browser and first-broker-login flows. Check that the client access-role gate, passkey and TOTP still behave, and that the gate runs for brokered logins.
  • Existing local account with the same email: does it link, block or duplicate? Linking must need explicit confirmation. Test the takeover case (a tenant asserting someone else's address in its domain).
  • Just-in-time users get tier_*, ent_* and the client access role, through an IdP mapper or the reconciler.
  • Inspect the token. Organisation groups appear only in the organization claim. Decide how an organisation maps to a Forgejo organisation.
  • Second factor: trust the customer's Entra MFA per organisation, or enforce ours with a post-login flow.
  • Disable the user in Entra and measure how long the Keycloak session and refresh token keep working. Decide on session lifetimes or SCIM.
  • Check OpenTofu provider coverage for organisations, domains and IdP links (provider 5.10.0 or later).

Done when

A test Entra user signs in to Forgejo and the portal through their organisation on staging, gets the right access, an existing same-email account is not taken over, and the deprovisioning delay is measured.

Prototype customer-organisation SSO on staging: a customer's users sign in to Bitborg with their own Microsoft Entra ID. Not before go-live. ## Approach Keycloak's built-in Organizations: one organisation per customer, one Entra OIDC identity provider linked to it, routing by email domain. Bitborg staff set domains; Keycloak does not verify domain ownership. ## Steps - [ ] Free Entra dev tenant. One organisation, one domain, OIDC IdP linked, auto-redirect on. - [ ] Add the Organization steps to the `bitborg` browser and first-broker-login flows. Check that the client access-role gate, passkey and TOTP still behave, and that the gate runs for brokered logins. - [ ] Existing local account with the same email: does it link, block or duplicate? Linking must need explicit confirmation. Test the takeover case (a tenant asserting someone else's address in its domain). - [ ] Just-in-time users get `tier_*`, `ent_*` and the client access role, through an IdP mapper or the reconciler. - [ ] Inspect the token. Organisation groups appear only in the `organization` claim. Decide how an organisation maps to a Forgejo organisation. - [ ] Second factor: trust the customer's Entra MFA per organisation, or enforce ours with a post-login flow. - [ ] Disable the user in Entra and measure how long the Keycloak session and refresh token keep working. Decide on session lifetimes or SCIM. - [ ] Check OpenTofu provider coverage for organisations, domains and IdP links (provider 5.10.0 or later). ## Done when A test Entra user signs in to Forgejo and the portal through their organisation on staging, gets the right access, an existing same-email account is not taken over, and the deprovisioning delay is measured.
Logga in för att delta i denna konversation.
Ingen milstolpe
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#636
Ingen beskrivning angiven.