Repository navigation
docs: add saml idp and nested groups designs - #296
Merged
Merged
Conversation
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.
Adds two design documents. This PR changes no code.
docs/designs/saml-idp.md(saml idp support (db-backed service providers) #104): Weave as a SAML identity provider. A SAML service provider (SP) is anoauth_applicationsrow with a 1:1saml_service_providersrow. v1 supports SP-initiated sign-in only. The signing key is in encrypted credentials. The plan has 3 phases. The EGM review is complete, with one re-audit.docs/designs/nested-groups.md(design: nested groups and a split between teams and app access #294): groups that contain groups, with a closure table, team and access purposes,group_grants, and app owners. The EGM review has not run yet.An adversarial review found 2 high and 7 medium or low problems. The second commit fixes them:
SAMLRequesthas a size cap and an inflate cap. The CSP block does not read a value that the action loads, and the post page allowshttps:for SP redirects. The rollback hides SAML tiles.maintoday. The waiver rule stays. A move is atomic, a soft-deleted group loses its nestings, and the derived tables cascade on delete.Open items:
saml_sign_ins.asserted_attributes_opts.group.member_*events does not see effective changes. Decide this before Phase 3.flowchart LR SP[Service provider] -->|AuthnRequest| E["/saml/sso"] E -->|303| R["/saml/sso/resume"] R -->|AppAccess check| A{Permitted?} A -->|yes| S[Signed Response] A -->|no| D[Signed RequestDenied] S --> ACS[SP ACS URL] D --> ACS