Repository navigation
Conversation
Support auth provider connection tests and role claims
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Superseded by two focused draft PRs to comply with the repository's one-concern-per-PR rule:
The shared design discussion remains in #554. No review is requested on this combined draft. |
Problem
Part of #554
Authentication providers can validate credentials and return identity claims, but Silo has no generic way to test staged provider configuration or let a trusted provider opt into managing the linked account's coarse
user/adminrole.The concrete use case is an LDAP provider that can evaluate Active Directory group membership but cannot directly modify Silo-owned account state.
Companion provider: techrelay/Silo-LDAP-Plugin#1.
Approach
Authentication-provider connection checks
auth_provider.v1capabilities that advertise booleanmetadata.connection_test=true;AuthenticateRequestwith booleanmetadata.connection_test=trueand no username or password;Explicit managed-role claims
silo_role_managed=true;silo_role=userorsilo_role=admin;Default access-group lookup now belongs to
UserRepositoryinstead of embedding access-group SQL in the plugin provider. The compatibility contract and trust model are documented indocs/plugins/auth-provider-contracts.md.Compatibility and risks
silo_role_managedcannot change roles, even if they already return a claim namedsilo_role;userwhen no managed claim is present;Structfields. The issue asks whether they should move into typed SDK APIs before merge.Testing
Targeted tests cover:
Required repository verification will be reported from CI and/or a local checkout:
Verification results will be added after the draft checks complete.
AI Disclosure
Checklist