Repository navigation
Conversation
Member
Author
|
Local verification evidence: The standalone executable also served all six API/mode combinations over HTTP. With the actor-header stack at {"path":"/v1/chat/completions","stream":false,"headers":{"X-Ai-Bridge-Actor-Id":["d9cb9279-5e15-4960-a8ba-4dbe00632a38"],"X-Ai-Bridge-Actor-Metadata-Email":["admin@coder.com"],"X-Ai-Bridge-Actor-Metadata-Username":["admin"],"X-Smoke-Trace":["defaults-admin-completions-False"]}}The recorded identity replaced forged client values, contained no credentials, and preserved the trace header. Both mock providers were also verified in the dashboard. Service-account coverage in that deployment was unavailable because its license lacked that entitlement. |
johnstcn
marked this pull request as ready for review
September 24, 2026 11:50
Member
|
stale |
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 a standalone local upstream for smoke-testing AI Gateway without provider credentials or inference costs. Run it with
go run ./scripts/aigateway-mock; it serves embedded fixtures for Chat Completions, Responses, and Messages in streaming and non-streaming modes.Record selected headers as JSON, preserving duplicate values and excluding prompts, credentials, and cookies by default. Include repeatable
--headeroptions, local setup instructions, and happy-path tests covering all three actor identity headers. This tool is independent of the actor-header stack in #29812.Verified with race tests and live HTTP requests for all six API/mode combinations, then used as the upstream for 42 successful requests through an isolated Coder dev instance. That run covered default and remapped headers, two authenticated users, spoofed values, and forwarding disabled.
Generated with AI assistance on behalf of @johnstcn.