Files
coder/coderd/aibridgedserver
Sas Swart 946c2f0e04 feat: resolve orgs from workspace session tokens in AI Gateway requests (#30902)
Add an AI Gateway org resolver at the coderd IsAuthorized boundary,
detect workspace session tokens, load the workspace org, validate the
user is still a member of that org, reject missing workspaces or invalid
membership, and return the resolved org in IsAuthorizedResponse while
leaving it unused by downstream policy. Include tests for successful
workspace-token resolution, missing workspace rejection, invalid org
membership rejection, and compatibility with the existing ServeHTTP
flow.

Fixes AIGOV-714
2026-10-26 11:40:51 +02:00
..