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:
63
docs/openapi/superset/paths/menu.json
Normal file
63
docs/openapi/superset/paths/menu.json
Normal file
@@ -0,0 +1,63 @@
|
||||
{
|
||||
"/api/v1/menu/": {
|
||||
"get": {
|
||||
"description": "Get the menu data structure. Returns a forest like structure with the menu the user has access to",
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"properties": {
|
||||
"result": {
|
||||
"description": "Menu items in a forest like data structure",
|
||||
"items": {
|
||||
"properties": {
|
||||
"childs": {
|
||||
"items": {
|
||||
"type": "object"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"icon": {
|
||||
"description": "Icon name to show for this menu item",
|
||||
"type": "string"
|
||||
},
|
||||
"label": {
|
||||
"description": "Pretty name for the menu item",
|
||||
"type": "string"
|
||||
},
|
||||
"name": {
|
||||
"description": "The internal menu item name, maps to permission_name",
|
||||
"type": "string"
|
||||
},
|
||||
"url": {
|
||||
"description": "The URL for the menu item",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"type": "array"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Get menu data"
|
||||
},
|
||||
"401": {
|
||||
"$ref": "#/components/responses/401"
|
||||
}
|
||||
},
|
||||
"security": [
|
||||
{
|
||||
"jwt": []
|
||||
}
|
||||
],
|
||||
"tags": [
|
||||
"Menu"
|
||||
]
|
||||
}
|
||||
}
|
||||
}\n
|
||||
Reference in New Issue
Block a user