Skip to content

Add revision-pinned extension routes and authorization - #59

Merged
jimhoyd merged 7 commits into
mainfrom
codex/extension-runtime
Sep 17, 2026
Merged

jimhoyd merged 7 commits into
mainfrom
codex/extension-runtime

Conversation

@jimhoyd

@jimhoyd jimhoyd commented Sep 17, 2026

Copy link
Copy Markdown
Collaborator

Problem and change

Auth and admin packages need explicit runtime integration beyond ordinary host-plugin hooks. Add revision-pinned operator extension registrations, versioned configuration, exclusive handler mounts, extension-owned policy validation and authorization before cache access. Protected routes force no-store after response hooks and withhold credentials from guest code.

Add explicit --host-file loading outside the project for CLI activation, with shared-service cleanup. No project module auto-loading. Node/AWS/Vercel use the contract; Cloudflare refuses it. Auth/admin implementations remain in their own repositories.

Closes #57. Depends on #55; broader cross-repository release acceptance is tracked in #58.

Verification

  • npm run verify: 402 passed, 0 failed, 1 existing HTTPS fixture skipped (no trusted local certificate).
  • 11 focused extension tests plus 2 operator-host boundary tests cover pins, schemas, includes, mount collisions, authorization/cache ordering, credential redaction, body limits, cleanup, AWS dispatch and symlink rejection.
  • npm run test:package: packed installation, declaration consumers, starter/cookbook and persistent-link checks passed.
  • npm run docs:reference and executable extension example included.

Compatibility and security

Existing projects do not load extensions. New declarations fail closed without exact operator revision pins. Host extensions are trusted code, not sandboxed application code. Same-origin browser JavaScript remains within the site's browser authority; guest credential redaction is not frontend isolation. Live provider deployment testing remains deferred and no independent security assessment is claimed.

  • Changes match the documented portable contract; docs/examples are updated.
  • Relevant tests and package checks pass; limitations are stated above.
  • No credentials or customer data are included.
  • Existing starter behavior remains unchanged.

@jimhoyd
jimhoyd merged commit 7990f45 into main Sep 17, 2026
12 checks passed
@jimhoyd
jimhoyd deleted the codex/extension-runtime branch September 17, 2026 23:17
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.

Track runtime contracts required by auth and admin extensions

2 participants