Skip to content

feat: configure AI Gateway actor header names - #29812

Merged
johnstcn merged 0 commit into
feat/ai-gateway-actor-email-headersfrom
feat/aigov-601-header-forwarding
Sep 25, 2026
Merged

johnstcn merged 0 commit into
feat/ai-gateway-actor-email-headersfrom
feat/aigov-601-header-forwarding

Conversation

@johnstcn

@johnstcn johnstcn commented Sep 23, 2026 •

Copy link
Copy Markdown
Member

Make AI Gateway actor header names configurable through the deployment-level actor_header_names map (id, username, email), available through YAML, a CLI flag, and an environment variable. Omitted entries keep their default names; configured names replace defaults rather than adding aliases.

Validate attribute keys, HTTP header-name syntax, case-insensitive uniqueness, and protected destinations for embedded and standalone gateways. Keep forwarded identity tied to the authenticated account when header names are remapped.

Depends on #29840, which adds email forwarding, and transitively on #29839, which moves actor-header injection into middleware. This is the final PR in the stack.

Refs https://linear.app/codercom/issue/AIGOV-601

🤖 Generated by AI with human input.

@johnstcn johnstcn self-assigned this Sep 23, 2026
@linear-code

linear-code Bot commented Sep 23, 2026

Copy link
Copy Markdown

AIGOV-601

@johnstcn
johnstcn force-pushed the feat/aigov-601-header-forwarding branch from 92520d0 to 5837cdf Compare September 23, 2026 21:55
@github-actions

github-actions Bot commented Sep 23, 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
johnstcn force-pushed the feat/aigov-601-header-forwarding branch from afbb018 to bde7903 Compare September 24, 2026 10:45
@johnstcn johnstcn changed the title feat: configure AI Gateway actor headers feat: configure AI Gateway actor header names Sep 24, 2026
@johnstcn
johnstcn changed the base branch from main to feat/ai-gateway-actor-email-headers September 24, 2026 10:45
@johnstcn
johnstcn added this pull request to stack #29841 September 24, 2026 10:46
@johnstcn
johnstcn marked this pull request as ready for review September 24, 2026 11:31
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/aigov-601-header-forwarding branch from 868a5f2 to 2194170 Compare September 24, 2026 21:29
@johnstcn
johnstcn merged commit b3c1649 into main Sep 25, 2026
@johnstcn
johnstcn deleted the feat/aigov-601-header-forwarding branch September 25, 2026 15:11
@johnstcn
johnstcn force-pushed the feat/aigov-601-header-forwarding branch from 2194170 to b3c1649 Compare September 25, 2026 15:11
@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