Skip to content

feat: forward AI Gateway actor email headers - #29840

Closed
johnstcn wants to merge 2 commits into
mainfrom
feat/ai-gateway-actor-email-headers
Closed

johnstcn wants to merge 2 commits into
mainfrom
feat/ai-gateway-actor-email-headers

Conversation

@johnstcn

@johnstcn johnstcn commented Sep 24, 2026 •

Copy link
Copy Markdown
Member

Add X-AI-Bridge-Actor-Metadata-Email alongside the existing actor ID and username headers when send_actor_headers is 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

🤖 Generated by AI with human input.

@linear-code

linear-code Bot commented Sep 24, 2026

Copy link
Copy Markdown

AIGOV-601

@github-actions

github-actions Bot commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

Docs preview

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

@johnstcn

Copy link
Copy Markdown
Member Author

Checked the release tags: both v2.37.0 and the latest v2.37.3 have CurrentMinor = 2, with no protocol-version changes between those tags. The v1.3 bump was introduced on main by #29235 and is not contained in a release tag.

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
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
johnstcn force-pushed the feat/ai-gateway-actor-email-headers branch from 375a138 to 74217ab Compare September 24, 2026 21:24
@johnstcn
johnstcn force-pushed the feat/ai-gateway-actor-email-headers branch from 74217ab to e620ed3 Compare September 25, 2026 15:11
@johnstcn johnstcn closed this Sep 25, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 25, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant