feat: add chat model config RBAC resource (#27957)

Add the `chat_model_config` RBAC resource, actions, and API key scopes.
This layer includes the scope migration and generated API types. Model
list queries apply token scopes, SQL authorization filters, and row
ACLs.

Write and default-management handlers keep deployment configuration
authorization until the next API layer replaces it.

Depends on #27956

_This pull request description was generated by Coder Agents._
This commit is contained in:
Ethan
2026-08-24 09:43:45 +00:00
committed by GitHub
parent ac41b5b4f9
commit cbe24a3da5
39 changed files with 1190 additions and 149 deletions
+9 -2
View File
@@ -284,7 +284,13 @@ CREATE TYPE api_key_scope AS ENUM (
'mcp_server_config:read',
'mcp_server_config:update',
'mcp_server_config:delete',
'mcp_server_config:share'
'mcp_server_config:share',
'chat_model_config:*',
'chat_model_config:create',
'chat_model_config:read',
'chat_model_config:update',
'chat_model_config:delete',
'chat_model_config:share'
);
CREATE TYPE app_sharing_level AS ENUM (
@@ -611,7 +617,8 @@ CREATE TYPE resource_type AS ENUM (
'user_ai_budget_override',
'oauth2_provider_settings',
'chat_instruction_settings',
'mcp_server_config'
'mcp_server_config',
'chat_model_config'
);
CREATE TYPE shareable_workspace_owners AS ENUM (