Skip to content

feat: extract, log, and strip aibridgeproxy request ID header in aibridged#23731

Draft
ssncferreira wants to merge 1 commit intomainfrom
ssncf/aibridgeproxy-request-id
Draft

feat: extract, log, and strip aibridgeproxy request ID header in aibridged#23731
ssncferreira wants to merge 1 commit intomainfrom
ssncf/aibridgeproxy-request-id

Conversation

@ssncferreira
Copy link
Copy Markdown
Contributor

@ssncferreira ssncferreira commented Mar 27, 2026

Problem

aibridgeproxyd sends X-AI-Bridge-Request-Id on every MITM request to aibridged for cross-service log correlation, but aibridged never reads it. The header is silently forwarded to upstream LLM providers.

Changes

  • Renamed the header to X-Coder-AI-Governance-Request-Id to match the existing X-Coder-AI-Governance-* convention.
  • aibridged now extracts the header, logs it and strips it before forwarding upstream.
  • Added TestServeHTTP_StripInternalHeaders to verify no X-Coder-* headers leak to upstream

@github-actions github-actions bot added the community Pull Requests and issues created by the community. label Mar 27, 2026
Copy link
Copy Markdown
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@ssncferreira ssncferreira removed the community Pull Requests and issues created by the community. label Mar 27, 2026
@ssncferreira ssncferreira force-pushed the ssncf/aibridgeproxy-request-id branch from ecf5398 to 0693469 Compare March 27, 2026 20:41
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.

1 participant