feat(llm): mask API keys in UI responses and prevent masked-key leakage in fetch/test/save payloads

- Add mask_api_key() and is_masked_or_placeholder() to llm_provider service
- Return masked keys in all provider CRUD endpoints
- Reject masked/placeholder keys in fetch_models and test_provider_config
- Show masked key with Change button in ProviderConfig.svelte edit form
- Exclude masked keys from fetch-models, test, and submit payloads on frontend
- Update semantics-core skill with clarified complexity tier rules
- Switch agent modes from subagent to all
This commit is contained in:
2026-05-15 23:34:09 +03:00
parent b3572ce443
commit 30ba70933d
203 changed files with 158083 additions and 28396 deletions

View File

@@ -0,0 +1,272 @@
{
"/update/default_team_settings": {
"patch": {
"tags": [
"SSO Settings"
],
"summary": "Update Default Team Settings",
"description": "Update the default team parameters for SSO users.\nThese settings will be applied to new teams created from SSO.",
"operationId": "update_default_team_settings_update_default_team_settings_patch",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/DefaultTeamSSOParams"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
},
"security": [
{
"APIKeyHeader": []
}
]
}
},
"/update/internal_user_settings": {
"patch": {
"tags": [
"SSO Settings"
],
"summary": "Update Internal User Settings",
"description": "Update the default internal user parameters for SSO users.\nThese settings will be applied to new users who sign in via SSO.",
"operationId": "update_internal_user_settings_update_internal_user_settings_patch",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/DefaultInternalUserParams"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
},
"security": [
{
"APIKeyHeader": []
}
]
}
},
"/update/mcp_semantic_filter_settings": {
"patch": {
"tags": [
"Settings"
],
"summary": "Update Mcp Semantic Filter Settings",
"description": "Update MCP semantic filter settings in database.\nSettings will be picked up by all pods within approximately 10 seconds via background polling.",
"operationId": "update_mcp_semantic_filter_settings_update_mcp_semantic_filter_settings_patch",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/MCPSemanticFilterSettings"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
},
"security": [
{
"APIKeyHeader": []
}
]
}
},
"/update/sso_settings": {
"patch": {
"tags": [
"SSO Settings"
],
"summary": "Update Sso Settings",
"description": "Update SSO configuration by saving to the dedicated SSO table.",
"operationId": "update_sso_settings_update_sso_settings_patch",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SSOConfig"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
},
"security": [
{
"APIKeyHeader": []
}
]
}
},
"/update/ui_settings": {
"patch": {
"tags": [
"UI Settings"
],
"summary": "Update Ui Settings",
"description": "Update UI-specific configuration flags.\nOnly proxy admins are allowed to modify these settings.",
"operationId": "update_ui_settings_update_ui_settings_patch",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UISettings"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
},
"security": [
{
"APIKeyHeader": []
}
]
}
},
"/update/ui_theme_settings": {
"patch": {
"tags": [
"UI Theme Settings"
],
"summary": "Update Ui Theme Settings",
"description": "Update UI theme configuration.\nUpdates logo settings for the admin UI.",
"operationId": "update_ui_theme_settings_update_ui_theme_settings_patch",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UIThemeConfig"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
},
"security": [
{
"APIKeyHeader": []
}
]
}
}
}