Skip to content

[add] Project invitations, accepted at sign-in - #37

Merged
malickyeu merged 2 commits into
mainfrom
add/project-invitations
Nov 13, 2026
Merged

malickyeu merged 2 commits into
mainfrom
add/project-invitations

Conversation

@malickyeu

Copy link
Copy Markdown
Contributor

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

malickyeu and others added 2 commits November 13, 2026 12:18
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
malickyeu enabled auto-merge (squash) November 13, 2026 11:18
Copilot AI balanced review requested due to automatic review settings November 13, 2026 11:18

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@malickyeu
malickyeu merged commit 7866efd into main Nov 13, 2026
9 checks passed
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.

2 participants