Skip to content

feat(worker): validate endpoint upstream path mappings - #583

Merged
vincentkoc merged 3 commits into
mainfrom
feat/endpoint-upstream-path-20261103
Nov 3, 2026
Merged

vincentkoc merged 3 commits into
mainfrom
feat/endpoint-upstream-path-20261103

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Nov 3, 2026 •

Copy link
Copy Markdown
Member

Summary

Add optional compiled endpoint.upstreamPath for a literal same-origin dispatch path while preserving endpoint.path as 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

  • Eight focused Worker tests cover native/manifest calls, environment and pooled credentials, filtered metadata, model denial, revocation, malformed configuration including CR/LF, transport conflicts and unchanged legacy paths.
  • Changed-file syntax, whitespace and privacy checks passed.
  • Final head 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.

@clawsweeper

clawsweeper Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review blocked

Automated 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.

View the workflow run.

@clawsweeper clawsweeper Bot added the clawsweeper:intake:feature Preliminary submission classification; full source review pending. label Nov 3, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review November 3, 2026 15:26
@vincentkoc
vincentkoc merged commit 912f574 into main Nov 3, 2026
21 checks passed
@vincentkoc
vincentkoc deleted the feat/endpoint-upstream-path-20261103 branch November 3, 2026 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clawsweeper:intake:feature Preliminary submission classification; full source review pending.

1 participant