Repository navigation
feat(worker): validate endpoint upstream path mappings - #583
Merged
Merged
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review blockedAutomated review did not run, so no review verdict was produced. Reason: The input-safety check rejected material in this revision. No detected value, path, or scanner output is reproduced here. Automatic review is on hold, including after source changes. Request a fresh re-review after resolving the failure; maintainers can also release the hold through an intentional scanner-policy update. Next step: If this is a genuine credential, remove and rotate it. If it is an intentional test fixture, a maintainer must review and qualify it. |
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.
Summary
Add optional compiled
endpoint.upstreamPathfor a literal same-origin dispatch path while preservingendpoint.pathas the caller route and authorization identity. Qualify existing HTTP Chat, Messages and model-discovery formats; reject malformed paths, conflicting grant transport overrides and caller query remapping before egress.Use one validator for configuration preflight and actual dispatch. Original credential selection, model policy, native wire formats, scoped metadata grants and accounting stay with the existing runtime.
Verification
3e8015714f46ad7d3e9166b31ec823c7a3a129f2: all 19 checks passed. Worker proof passed 4,657 tests with zero failures/cancellations, all eight new path cases, full local smoke, provider compilation and the bundle dry run. Native consumer proof passed embeddings, native memory, search and speech; native Codex, admin, self-host, scripts and CodeQL passed. Local worktree remains code-only; no install attempted.Deployment and remaining risk
No deployment, live request, provider YAML or generated snapshot change. Central schema/compiler validation and Synthetic provider activation remain with their existing owners. The exact YAML/compiled field and bounded grammar are documented in
docs/endpoint-upstream-path.md. Parameterized paths, lifecycle controls, WebSockets and other formats are intentionally unqualified by this first slice.