Skip to content

feat(auth): dual-write console sharing and confirm access cutover - #50

Open
reoring wants to merge 1 commit into
mainfrom
work/20261123/share-bindings-cutover
Open

reoring wants to merge 1 commit into
mainfrom
work/20261123/share-bindings-cutover

Conversation

@reoring

@reoring reoring commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Builder Console side of the auth design (Nexus features/auth/specs/04), paired with appthrust/platform#7435.

  • Share changes write the legacy edge policy first, then the platform fixed share binding (PUT …/role-bindings/share, ETag CAS); durable pending/applied/conflict state with divergence warnings and reconciliation.
  • Access-request approval writes an organization-person binding with the approver's bearer; stays pending until readback succeeds.
  • Organization-group disclosure is a separate control, disabled until the Project manager accepted the declaration.
  • Recipient diff (gaining/losing) from the platform and explicit owner confirmation before cutover activation and sealed-version restore.
  • No automatic app_owners -> access-manager grants: Console ownership does not confer Platform access:manage.

Checks (worker, serialized): Go ./cmd/server/... with isolated PostgreSQL pass; bun run typecheck pass; 71 web tests pass. Live cross-repo integration not exercised; the platform endpoints are those registered in #7435.

Write legacy access first, persist synchronization state, and reconcile the fixed app-user binding with caller authority.
Map Directory recipients to supplied Groups and organization-person references; keep organization membership disclosure separate and explicitly accepted.
Show recipient diffs and require owner confirmation for activation or sealed-version restore; preserve Platform access:manage authority.
Cover dual-write failure, approval, drift, cutover guards, organization controls, and generated Console contracts.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant