feat(security): ADR-0056 D7 — app-declarable default profile (isDefault)#2070
Merged
Conversation
Add `isDefault` to PermissionSetSchema; the SecurityPlugin resolves the fallback permission set from an app-declared `isDefault` profile when no explicit fallbackPermissionSet is configured (else member_default — non-breaking). Foundation for SSO/JIT provisioning. Proven by showcase-default-profile (2/2): a signup governed by a custom default grants announcement but denies private_note (which member_default's wildcard would allow), proving the declared default is active. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XVdnfUAx85amkerym26vdx
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
📓 Docs Drift CheckThis PR changes 3 package(s): 89 hand-written doc(s) reference the affected code and may need an implementation-accuracy re-verification:
|
…R-0056 D7) The new isDefault property on PermissionSetSchema is a governed-type property and must be classified for the spec-liveness gate. Marked live — the SecurityPlugin constructor reads it to resolve the fallback profile; proven by the showcase-default-profile dogfood test. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XVdnfUAx85amkerym26vdx
os-zhuang
marked this pull request as ready for review
June 20, 2026 09:19
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.
What (ADR-0056 D7 — app-declarable default profile)
An app can now declare its default access posture for authenticated users who have no explicit grants, via
isDefault: trueon a permission set — instead of always inheriting the built-inmember_default.PermissionSetSchemagainsisDefault.SecurityPluginresolves its fallback from theisDefaultprofile when no explicitfallbackPermissionSetis configured (elsemember_default— non-breaking).Verification
showcase-default-profiledogfood (2/2): a sign-up governed by a custom default that grants onlyshowcase_announcementcan read it but is deniedshowcase_private_note— which themember_defaultwildcard would have allowed — proving the declared default is in effect. Full build 76/76.ADR-0056 program status
Merged: OWD scenarios (#2062), D4+D8 (#2064), D1+D2 (#2065). Open: D6 (#2069), D7 (this). Remaining: D10 conformance-matrix CI (the durable guardrail — next), and the release-gated
requireAuthdefault flip (D2 warn already landed).🤖 Generated with Claude Code
Generated by Claude Code