diff --git a/docs/ROLE_ADOPTION_PLAN.md b/docs/ROLE_ADOPTION_PLAN.md index bf8774d..cf0822c 100644 --- a/docs/ROLE_ADOPTION_PLAN.md +++ b/docs/ROLE_ADOPTION_PLAN.md @@ -78,11 +78,11 @@ The lockout-safe order proven on retiregolden.org, transplanted: ## Phase 4 — retire the allowlist -- [ ] Delete the allowlist path whole (`SUPPORT_STAFF_EMAILS` / +- [x] Delete the allowlist path whole (`SUPPORT_STAFF_EMAILS` / `SUPPORT_STAFF_PRINCIPALS` parsing and the legacy staff context) — it must not survive as a quiet second gate. After this, a role-store failure is a controlled **503, fail closed, no fallback**. -- [ ] Delete the env vars from the Worker configuration and update +- [x] Delete the env vars from the Worker configuration and update `SUPPORT_COMPOSITION.md`'s staff section to role-only. ## Phase 5 — the shared admin surface (GATED) diff --git a/docs/SUPPORT_COMPOSITION.md b/docs/SUPPORT_COMPOSITION.md index 76f8bd1..62a5859 100644 --- a/docs/SUPPORT_COMPOSITION.md +++ b/docs/SUPPORT_COMPOSITION.md @@ -80,11 +80,12 @@ nothing was granted because `Support` was already held through another assignment — so a later revocation stays revoked while the env var lingers. Delete the var once the first operator holds the role. -**Legacy allowlist (Phase 4 deletes it).** `SUPPORT_STAFF_EMAILS` / -`SUPPORT_STAFF_PRINCIPALS` are still honored beside the role path during the -lockout-safe retirement order; if the role store errors, the gate logs and -falls through to the allowlist. Parsing and the legacy resolver are deleted -whole in Phase 4 once the live bootstrap seed is confirmed. +**Fail-closed posture.** The role store is the only gate: a host wired +without one answers staff routes with **503** `support_not_configured`, and a +role-store failure is **503** `service_unavailable` — never a quiet allow or +a misleading 403. The former `SUPPORT_STAFF_EMAILS` / +`SUPPORT_STAFF_PRINCIPALS` allowlist was deleted whole in Phase 4 of +`docs/ROLE_ADOPTION_PLAN.md`. `principalId` is always the Identity principal / account id from the server-side session (`__Host-pegma_session`). Browser-supplied identity fields @@ -153,7 +154,7 @@ Durable rate-limit policies (separate from Identity): | --- | --- | | `/feedback` | Customer create + list | | `/feedback/ticket/?id=…` | Customer read + reply | -| `/staff/support` | Staff queue (allowlisted operators) | +| `/staff/support` | Staff queue (Support role holders) | | `/staff/support/ticket/?id=…` | Staff ticket detail, compose, lifecycle | ## Maintenance and health @@ -172,8 +173,8 @@ store probe runs only when `SUPPORT_HEALTH_PROBE` is exactly `"true"`. authorized operators. - Feedback is not automatically published to the roadmap, documentation, or GitHub Issues. -- The staff surface is only for allowlisted operators (env allowlist). It is - not a shared control plane with other hosts. +- The staff surface is only for operators holding the stored Support role. + It is not a shared control plane with other hosts. - Staff ticket views may include requester email after staff authz; customer endpoints never gain staff fields. - Internal notes must never appear on customer reads. diff --git a/src/pages/staff/support.astro b/src/pages/staff/support.astro index 5ec40a9..22b52b2 100644 --- a/src/pages/staff/support.astro +++ b/src/pages/staff/support.astro @@ -4,14 +4,14 @@ import Base from '../../layouts/Base.astro';

Staff · Support Desk

Support queue

- Review and act on product feedback tickets. Access is limited to operators - listed in the host staff allowlist — this is not a public control plane. + Review and act on product feedback tickets. Access requires the stored + Support operator role — this is not a public control plane.

@@ -30,8 +30,8 @@ import Base from '../../layouts/Base.astro';