Repository navigation
[add] Project invitations, accepted at sign-in - #37
Merged
Merged
Conversation
A project member manager invites an email with a role; the invitation is accepted at that person's next browser sign-in (their first one for a new account) through a SECURITY DEFINER function that reads the address from the principal itself. An invitation admits its address at OIDC sign-in and permits the account, like an address rule. The inviter is never told whether the address has an account (ADR 0030). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RaEdVh9BoHFvqNF52ap71M
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RaEdVh9BoHFvqNF52ap71M
malickyeu
enabled auto-merge (squash)
November 13, 2026 11:18
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
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.
ADR 0030 / migration 000041. Invite an email with a role from the Members tab or POST /v1/projects/{ns}/{slug}/invitations (member.manage; OWNER needs member.grant_owner). Accepted at the next browser sign-in by cc_accept_invitations (SECURITY DEFINER, reads the address from the principal itself; existing members keep their role; audited). A live invitation admits its address at OIDC sign-in and permits the account. The inviter is never told whether the address has an account (no enumeration). List/revoke for member managers; expiry 14 d default.
Tests: OIDC first sign-in with sign-up off and a closed allowlist creates the account and joins as CONTRIBUTOR, a different address is still refused; existing account joins only after its password sign-in; readers cannot invite/list/revoke; revoke twice is 404; policy unit case. Full go test, golangci-lint, npm test green.
🤖 Generated with Claude Code
https://claude.ai/code/session_01RaEdVh9BoHFvqNF52ap71M