Repository navigation
Conversation
This was referenced Sep 24, 2026
Contributor
Docs previewCheck off each page once it's been reviewed. If a page changes in a later push, its checkbox clears automatically so it gets a fresh look. Pages not yet wired into the docs navigation aren't listed here. |
Member
Author
|
Checked the release tags: both Updated this PR to include email in the existing unreleased v1.3 changes rather than adding v1.4, and carried the correction into #29812. Gateway, authorization, protocol-version, and actor-header integration tests pass locally. |
johnstcn
marked this pull request as ready for review
September 24, 2026 11:31
Base automatically changed from
refactor/ai-gateway-actor-header-middleware
to
main
September 24, 2026 16:20
johnstcn
added a commit
that referenced
this pull request
Sep 24, 2026
) Move actor-header injection into the shared upstream-header middleware for Messages, Chat Completions, and Responses. Read the authenticated actor from the request context and remove the duplicated SDK-option injection from blocking and streaming paths, completing the TODO from @ssncferreira. Preserve the existing header names and forwarding toggle. This is the first PR in the actor-header stack: #29839 → #29840 (email forwarding) → #29812 (configurable names). Refs https://linear.app/codercom/issue/AIGOV-601 > 🤖 Generated by AI with human input.
johnstcn
force-pushed
the
feat/ai-gateway-actor-email-headers
branch
from
September 24, 2026 21:24
375a138 to
74217ab
Compare
johnstcn
force-pushed
the
feat/ai-gateway-actor-email-headers
branch
from
September 25, 2026 15:11
74217ab to
e620ed3
Compare
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Add
X-AI-Bridge-Actor-Metadata-Emailalongside the existing actor ID and username headers whensend_actor_headersis enabled. Use the authenticated Coder account email and omit the header when the account has no email, including service accounts. Include matching documentation and CLI help updates.Upgrade note: deployments with actor headers enabled will also forward email addresses to their upstream providers. Email joins the unreleased Gateway API v1.3 changes for Coder 2.38, alongside workspace attribution from #29235. Coder 2.37.0 through 2.37.3 use Gateway API v1.2; upgrade the Coder control plane before standalone gateways.
Depends on #29839. This is the second PR in the stack; configurable header names follow in #29812.
Refs https://linear.app/codercom/issue/AIGOV-601