Repository navigation
fix(settings): changing OIDC sign-in trust needs full authority (#387) - #496
Merged
Merged
Conversation
A delegated settings:write role could replace the OIDC issuer, JWKS URL, audience, client id, redirect URI, provisioning and role-sync rules or the team mappings. After a restart that locked out every user who had signed in and let the new identity provider link never-signed-in accounts (Owners included) by email; team mappings could also grant access-team lead, which the #324 role ceiling does not cover. update_oidc now compares the trust fields (issuer, jwksUrl, audience, clientId, redirectUri, emailClaim, roleClaim, autoProvision, syncRoles, requireVerifiedEmail, requireMappedGroup, teamGroups, autoCreateTeams) against the stored settings and calls require_full_authority when any changes, naming them in the 403. Role mappings (defaultRole, groupRoles) and scopes keep the #324 ceiling. The audit entry is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #387.
Summary
A delegated settings:write role could replace the OIDC issuer, JWKS URL,
audience, client id, redirect URI, provisioning and role-sync rules or the
team mappings. After a restart that locked out every user who had signed in
and let the new identity provider link never-signed-in accounts (Owners
included) by email; team mappings could also grant access-team lead, which
the #324 role ceiling does not cover.
update_oidc now compares the trust fields (issuer, jwksUrl, audience,
clientId, redirectUri, emailClaim, roleClaim, autoProvision, syncRoles,
requireVerifiedEmail, requireMappedGroup, teamGroups, autoCreateTeams)
against the stored settings and calls require_full_authority when any
changes, naming them in the 403. Role mappings (defaultRole, groupRoles)
and scopes keep the #324 ceiling. The audit entry is unchanged.
Testing
cargo fmt --check,clippy --workspace --all-targets -D warnings: cleancargo test --workspacewith a database: 0 failures (188 API integration tests, 98 orbit-api unit tests)ceiling_testscase for all 13 trust fields; the settings ceiling API test now covers issuer/JWKS, team mappings and audience (403) and a role-mapping edit (200)pnpm docs:check: passedNote:
emailClaimis treated as a trust field too (it decides identity linking), although the issue did not list it.🤖 Generated with Claude Code