mirror of
https://github.com/coder/coder.git
synced 2026-10-31 02:43:21 +08:00
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:
Generated
+16
@@ -16594,6 +16594,12 @@ const docTemplate = `{
|
||||
"chat:read",
|
||||
"chat:share",
|
||||
"chat:update",
|
||||
"chat_model_config:*",
|
||||
"chat_model_config:create",
|
||||
"chat_model_config:delete",
|
||||
"chat_model_config:read",
|
||||
"chat_model_config:share",
|
||||
"chat_model_config:update",
|
||||
"coder:all",
|
||||
"coder:apikeys.manage_self",
|
||||
"coder:application_connect",
|
||||
@@ -16840,6 +16846,12 @@ const docTemplate = `{
|
||||
"APIKeyScopeChatRead",
|
||||
"APIKeyScopeChatShare",
|
||||
"APIKeyScopeChatUpdate",
|
||||
"APIKeyScopeChatModelConfigAll",
|
||||
"APIKeyScopeChatModelConfigCreate",
|
||||
"APIKeyScopeChatModelConfigDelete",
|
||||
"APIKeyScopeChatModelConfigRead",
|
||||
"APIKeyScopeChatModelConfigShare",
|
||||
"APIKeyScopeChatModelConfigUpdate",
|
||||
"APIKeyScopeCoderAll",
|
||||
"APIKeyScopeCoderApikeysManageSelf",
|
||||
"APIKeyScopeCoderApplicationConnect",
|
||||
@@ -24632,6 +24644,7 @@ const docTemplate = `{
|
||||
"boundary_log",
|
||||
"boundary_usage",
|
||||
"chat",
|
||||
"chat_model_config",
|
||||
"connection_log",
|
||||
"crypto_key",
|
||||
"debug_info",
|
||||
@@ -24686,6 +24699,7 @@ const docTemplate = `{
|
||||
"ResourceBoundaryLog",
|
||||
"ResourceBoundaryUsage",
|
||||
"ResourceChat",
|
||||
"ResourceChatModelConfig",
|
||||
"ResourceConnectionLog",
|
||||
"ResourceCryptoKey",
|
||||
"ResourceDebugInfo",
|
||||
@@ -24944,6 +24958,7 @@ const docTemplate = `{
|
||||
"user_ai_budget_override",
|
||||
"chat",
|
||||
"mcp_server_config",
|
||||
"chat_model_config",
|
||||
"user_secret",
|
||||
"user_skill",
|
||||
"chat_instruction_settings"
|
||||
@@ -24984,6 +24999,7 @@ const docTemplate = `{
|
||||
"ResourceTypeUserAIBudgetOverride",
|
||||
"ResourceTypeChat",
|
||||
"ResourceTypeMCPServerConfig",
|
||||
"ResourceTypeChatModelConfig",
|
||||
"ResourceTypeUserSecret",
|
||||
"ResourceTypeUserSkill",
|
||||
"ResourceTypeChatInstructionSettings"
|
||||
|
||||
Generated
+16
@@ -14844,6 +14844,12 @@
|
||||
"chat:read",
|
||||
"chat:share",
|
||||
"chat:update",
|
||||
"chat_model_config:*",
|
||||
"chat_model_config:create",
|
||||
"chat_model_config:delete",
|
||||
"chat_model_config:read",
|
||||
"chat_model_config:share",
|
||||
"chat_model_config:update",
|
||||
"coder:all",
|
||||
"coder:apikeys.manage_self",
|
||||
"coder:application_connect",
|
||||
@@ -15090,6 +15096,12 @@
|
||||
"APIKeyScopeChatRead",
|
||||
"APIKeyScopeChatShare",
|
||||
"APIKeyScopeChatUpdate",
|
||||
"APIKeyScopeChatModelConfigAll",
|
||||
"APIKeyScopeChatModelConfigCreate",
|
||||
"APIKeyScopeChatModelConfigDelete",
|
||||
"APIKeyScopeChatModelConfigRead",
|
||||
"APIKeyScopeChatModelConfigShare",
|
||||
"APIKeyScopeChatModelConfigUpdate",
|
||||
"APIKeyScopeCoderAll",
|
||||
"APIKeyScopeCoderApikeysManageSelf",
|
||||
"APIKeyScopeCoderApplicationConnect",
|
||||
@@ -22578,6 +22590,7 @@
|
||||
"boundary_log",
|
||||
"boundary_usage",
|
||||
"chat",
|
||||
"chat_model_config",
|
||||
"connection_log",
|
||||
"crypto_key",
|
||||
"debug_info",
|
||||
@@ -22632,6 +22645,7 @@
|
||||
"ResourceBoundaryLog",
|
||||
"ResourceBoundaryUsage",
|
||||
"ResourceChat",
|
||||
"ResourceChatModelConfig",
|
||||
"ResourceConnectionLog",
|
||||
"ResourceCryptoKey",
|
||||
"ResourceDebugInfo",
|
||||
@@ -22880,6 +22894,7 @@
|
||||
"user_ai_budget_override",
|
||||
"chat",
|
||||
"mcp_server_config",
|
||||
"chat_model_config",
|
||||
"user_secret",
|
||||
"user_skill",
|
||||
"chat_instruction_settings"
|
||||
@@ -22920,6 +22935,7 @@
|
||||
"ResourceTypeUserAIBudgetOverride",
|
||||
"ResourceTypeChat",
|
||||
"ResourceTypeMCPServerConfig",
|
||||
"ResourceTypeChatModelConfig",
|
||||
"ResourceTypeUserSecret",
|
||||
"ResourceTypeUserSkill",
|
||||
"ResourceTypeChatInstructionSettings"
|
||||
|
||||
Reference in New Issue
Block a user