You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit ca290cc
Browse filesBrowse the repository at this point in the historyBrowse files
fix(plugin-auth)!: an invited sign-up the posture's rule admits is refused when the declared set cannot be resolved
Ruling A: one rule for invited and uninvited self-registration. Adds the
unresolvable-set pins for an invited sign-up under open and email_domain
(on the allowlist) with the off-allowlist control, rewrites the
presented-invitation row that pinned the removed branch, states the
fail-closed refusal in the module doc and self-hosting.mdx, moves the
changeset to a BREAKING narrowing, and registers the ADR-0087 semantic
entry self-registration-permission-set-reaches-invited-sign-ups.
Claude-Session: https://claude.ai/code/session_01FEkQ5pb2t8Z8C64PkPyVt1
Co-authored-by: Claude <noreply@anthropic.com>
fix(plugin-auth): an invited sign-up the audience posture's own rule admits receives the declared self-registration permission set
6
+
fix(plugin-auth)!: an invited sign-up the audience posture's own rule admits receives the declared self-registration permission set, and is refused when that set cannot be resolved
6
7
7
-
Clause-②: yes (widening)
8
+
Clause-②: no (narrowing)
8
9
Metadata-protocol: none
10
+
Skills-docs: none — no skill under `skills/**` teaches the audience posture's invitation sign-up or `selfRegistrationPermissionSet`; `content/docs/deployment/self-hosting.mdx` gains the rule in this change.
9
11
10
-
Under the `email_domain` audience posture, a self-serve sign-up whose address is on `allowedEmailDomains` is admitted by its domain, invitation or not; under `open`, every self-serve sign-up is. Such a sign-up now receives the declared `selfRegistrationPermissionSet` whether or not it also holds a pending invitation. Before, a pending invitation addressed to it was read ahead of the posture, and the sign-up was admitted with no self-registration grant, though the membership settle already treated an on-allowlist address as domain-admitted and bound it at creation. The admission verdict and the membership settle now read one classification of "admitted by the posture's rule".
The invitation still places the sign-up as it names: once the address is verified and the invitation accepted, the membership and role the invitation names are written beside the grant.
14
+
**BREAKING** for a deployment under the `open` audience posture, or under `email_domain` for an address on `allowedEmailDomains`, whose declared `selfRegistrationPermissionSet` cannot be resolved (no such set, or the set is switched off) and that relies on an invited person still being able to sign up.
13
15
14
-
Unchanged: under `invite_only` an invitation admits with no self-registration grant; under `email_domain` an address off the allowlist that an invitation admitted gets the account and no grant, and is not bound while its address is unverified; operator, bootstrap and SSO-provider creations; a social-provider creation whose address the provider did not verify is still refused under `email_domain`, and under `open` while email verification is in force; an undeclared or unresolvable set still refuses the sign-up.
16
+
- Under `open`, and under `email_domain` for an address on the allowlist, a self-serve sign-up is admitted by the posture's own rule, invitation or not. It now receives the declared `selfRegistrationPermissionSet` whether or not it also holds a pending invitation. Before, a pending invitation addressed to it was read ahead of the posture in `decideAudienceAdmission` (`audience-posture.ts`), and the sign-up was admitted with no self-registration grant, though the membership settle already treated it as admitted by the posture and bound it at creation. The verdict and the settle now read one classification, the module-private `isAdmittedByPostureRule`.
17
+
- When the declared set cannot be resolved, such an invited sign-up is now refused `403 AUTH_CONFIG_ERROR`, naming the set, as an uninvited one already was. No account is created. Before, the invitation admitted it without the set.
18
+
- The invitation still places the sign-up as it names: once the address is verified and the invitation accepted, the membership and role it names are written beside the grant.
15
19
16
-
No authorable key, accepted value or default changes; `selfRegistrationPermissionSet` keeps its meaning, the set each self-registrant receives, and is now applied to the invited sign-ups its posture admits.
20
+
Unchanged: under `invite_only` an invitation admits with no self-registration grant; under `email_domain` an address off the allowlist that an invitation admitted gets the account and no grant, and is not bound while its address is unverified, whatever state the declared set is in; operator, bootstrap and SSO-provider creations; a social-provider creation whose address the provider did not verify is still refused under `email_domain`, and under `open` while email verification is in force; `admin_full_access` is still refused as the self-registration set.
21
+
22
+
No authorable key, accepted value or default changes; `selfRegistrationPermissionSet` keeps its meaning, the set each self-registrant receives, and now reaches the invited sign-ups its posture admits.
23
+
24
+
What to do: keep `selfRegistrationPermissionSet` naming a permission set that exists and is switched on. A person refused this way signs up again once an administrator has corrected the setting or switched the set on, or an administrator creates the account directly. An invitation can expire while the set is broken; send it again after the fix.
it('CONTROL: email_domain, an invited sign-up OFF the allowlist is admitted by its invitation alone, asking for no set, so a missing set does not refuse it',async()=>{
0 commit comments