feat(pylon): strip remaining Dynamo engine request headers
Open
@along-2017 is already working on this.
Since Aug 11, 2026.
- Dominant language
- Go
- Stars
- 218
- Forks
- 72
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 427
Description
Description
Pylon strips client-supplied Dynamo priority headers (x-dynamo-request-priority, x-dynamo-request-strict-priority) before forwarding to the local inference server. Dynamo reads other request headers too, for example worker pinning and data-parallel rank hints, and those still pass through every hop verbatim. A client can set them and steer routing on the inference server.
Widen pylon's strip list to cover the remaining engine headers. Pylon is the last trusted hop, so it should own this; the gateway and Stargate need no Dynamo-specific handling.
Definition of Done
- Pylon strips the remaining Dynamo request headers (worker instance id, data-parallel rank hints, tenant id, their unprefixed aliases, and any future
x-dynamo-request-*names) before forwarding. - The decision between a wider denylist and a prefix rule is written down next to the list.
- Unit and tunnel tests pin the strip so a refactor cannot silently reintroduce passthrough.
Resources
- Current denylist:
src/libraries/rust/stargate/crates/pylon-lib/src/quic_http_tunnel/backend.rs - Forwarding filter:
should_forward_headerincrates/pylon-lib/src/quic_http_tunnel/core.rs - Dynamo header reference: https://github.com/ai-dynamo/dynamo/blob/main/docs/components/frontend/nvext.md
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.