Repository navigation
Withhold operator credential headers from guest code - #55
Merged
Merged
Conversation
Resolve conflicts with the merged behavior and ecosystem phases: keep the signal-emitting finishResponse from main alongside the credential-free guest header projection, and keep both new documentation rows. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01AQ3ZGqNtWviSYfUMsxU54E
4 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem and change
PR #54 proposes keeping authentication credentials out of guest code, but the runtime forwards incoming headers to guest requests and header-derived parameters. Add an operator-only
Plugin.credentialHeadersdeclaration that snapshots a case-insensitive union at activation and withholds those headers from all application contexts, function arguments, guest requests and native redirect mappings. Host plugins and policies retain the original headers.Document the implementation sequence for auth, admin and UI extensions, incorporating the review's security and consistency corrections. Live provider deployment testing remains deferred and non-blocking.
Verification
npm run verify: 329 passed, 0 failed, 1 existing HTTPS fixture skipped (no trusted local certificate). Initial sandbox run could not bind localhost; the rerun with local networking passed.npm run test:package: passed packed installation, starter/cookbook, persistent live-link and TypeScript declaration checks.git diff --check: passed.Compatibility and security
No YAML or default behavior changes. Selecting Cookie withholds the entire header. This provides credential withholding, not authentication or cache protection; sessions, auth policies and extension routes remain pending. Cloudflare still does not support host plugins. Starter routes are unchanged because this is an optional operator API.
Changes match the documented portable contract; docs/examples are updated where needed.
No credentials, customer data or private project material are included.
Runtime/starter changes remain aligned where applicable.
Relevant tests and package checks pass; limitations are explained above.