Skip to content

feat(auth): enforce protected routing and fail-safe invalidation - #4789

Draft
cea-block wants to merge 15 commits into
cea/o4-protected-transportsfrom
cea/o4-invalidation-failsafe
Draft

feat(auth): enforce protected routing and fail-safe invalidation#4789
cea-block wants to merge 15 commits into
cea/o4-protected-transportsfrom
cea/o4-invalidation-failsafe

Conversation

@cea-block

@cea-block cea-block commented Aug 4, 2026

Copy link
Copy Markdown

Why

Protected-route inventory and durable invalidation must land as one fail-safe review unit so a protected surface cannot outlive its authorization posture. Fresh migration and DELETE trigger paths must use an authority function that already exists and must never read an unassigned transition record.

What

  • Keep a complete protected-route inventory and fail closed at the shared router boundary.
  • Persist monotonic invalidation floors, operation receipts, and authority epochs.
  • Select OLD.community_id for DELETE and NEW.community_id for INSERT or UPDATE in the shared authority trigger.
  • Install the three kind-30617 authority triggers in 0042_authorization_authority_epochs.sql after the function definition.
  • Enforce server-owned enrollment, typed provider-installation provenance, and explicit deny_protected behavior.
  • Keep the CD migration range linear from 0040_authorization_invalidation_floors.sql through 0042_authorization_authority_epochs.sql.

Risk Assessment

Medium. Protected requests deny when routing or invalidation authority is absent, ambiguous, or stale. Defaults remain disabled, and this draft does not deploy or activate enforcement.

References

Generated with Codex

Signed-off-by: Cea Stapleton Cordasco <261786559+cea-block@users.noreply.github.com>
Signed-off-by: Cea Stapleton Cordasco <261786559+cea-block@users.noreply.github.com>
@cea-block cea-block changed the title feat(auth): converge invalidation and fail-safe mode feat(auth): enforce protected routing and fail-safe invalidation Aug 4, 2026
@cea-block
cea-block changed the base branch from cea/o4-route-inventory to cea/o4-protected-transports August 4, 2026 21:20
Merge the repaired O4AB interfaces into O4CD, then update only the stale provider test adapters and public delegated-admission diagnostics required by hosted CI.

Signed-off-by: Cea Stapleton Cordasco <261786559+cea-block@users.noreply.github.com>
Record the repaired protected-transport parent while retaining O4CD's production operation-receipt API instead of its temporary lower-slice test adapter.

Signed-off-by: Cea Stapleton Cordasco <261786559+cea-block@users.noreply.github.com>
Use the pre-F three-argument delegation constructor in O4CD while retaining the other compiler-directed provider test adapters.

Signed-off-by: Cea Stapleton Cordasco <261786559+cea-block@users.noreply.github.com>
Signed-off-by: Cea Stapleton Cordasco <261786559+cea-block@users.noreply.github.com>
Signed-off-by: Cea Stapleton Cordasco <261786559+cea-block@users.noreply.github.com>
Signed-off-by: Cea Stapleton Cordasco <261786559+cea-block@users.noreply.github.com>
Signed-off-by: Cea Stapleton Cordasco <261786559+cea-block@users.noreply.github.com>
Signed-off-by: Cea Stapleton Cordasco <261786559+cea-block@users.noreply.github.com>
Signed-off-by: Cea Stapleton Cordasco <261786559+cea-block@users.noreply.github.com>
Signed-off-by: Cea Stapleton Cordasco <261786559+cea-block@users.noreply.github.com>
* commit '0e275c727a40cf521a966fae2270c47af8432f17':
  test(desktop): stabilize off-relay video menu
  fix(desktop): keep sidebar within size limit

Signed-off-by: Cea Stapleton Cordasco <261786559+cea-block@users.noreply.github.com>
* commit 'cd9bf88be7177638e870497e5d6b55ef18f989f9':
  test(auth): align projection worker fixture

Signed-off-by: Cea Stapleton Cordasco <261786559+cea-block@users.noreply.github.com>
Signed-off-by: Cea Stapleton Cordasco <261786559+cea-block@users.noreply.github.com>
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