feat(judgement): refuse privileged and undeclared actions in chat (#2071)
Connector actions and lookups now declare privilege change and secret access, and an MCP server declares both per installation. Chat withholds and refuses any tool that has either effect or declared nothing, in judgement and at execution, so an approval cannot convert the refusal. Workflows and the dashboard are unchanged.
This commit is contained in:
19 files changed
+660
-73
No files matched your search
@@ -454,6 +454,8 @@ components:
|
||||
ConnectorsEffect:
|
||||
additionalProperties: false
|
||||
properties:
|
||||
Privileged:
|
||||
$ref: "#/components/schemas/ConnectorsPrivilegedEffects"
|
||||
ReadOnly:
|
||||
type: boolean
|
||||
Reversibility:
|
||||
@@ -465,6 +467,7 @@ components:
|
||||
- ReadOnly
|
||||
- Reversibility
|
||||
- Summary
|
||||
- Privileged
|
||||
type: object
|
||||
ConnectorsExtensionKind:
|
||||
additionalProperties: false
|
||||
@@ -507,6 +510,8 @@ components:
|
||||
type: object
|
||||
digest:
|
||||
type: string
|
||||
effects:
|
||||
$ref: "#/components/schemas/ConnectorsServerEffects"
|
||||
egress:
|
||||
items:
|
||||
type: string
|
||||
@@ -584,6 +589,9 @@ components:
|
||||
additionalProperties:
|
||||
type: string
|
||||
type: object
|
||||
effects:
|
||||
$ref: "#/components/schemas/ConnectorsServerEffects"
|
||||
description: Whether the server's tools change privileges or access secrets. Chat offers a server only when this is declared and both are false.
|
||||
egress:
|
||||
items:
|
||||
type: string
|
||||
@@ -627,6 +635,31 @@ components:
|
||||
- name
|
||||
- state
|
||||
type: object
|
||||
ConnectorsPrivilegedEffects:
|
||||
additionalProperties: false
|
||||
properties:
|
||||
declared:
|
||||
type: boolean
|
||||
privilege_change:
|
||||
type: boolean
|
||||
secret_access:
|
||||
type: boolean
|
||||
required:
|
||||
- declared
|
||||
type: object
|
||||
ConnectorsServerEffects:
|
||||
additionalProperties: false
|
||||
properties:
|
||||
privilege_change:
|
||||
description: The tools grant roles, change identities or policies, or change control-plane settings
|
||||
type: boolean
|
||||
secret_access:
|
||||
description: The tools read, export or reveal secrets
|
||||
type: boolean
|
||||
required:
|
||||
- privilege_change
|
||||
- secret_access
|
||||
type: object
|
||||
ConnectorsSetting:
|
||||
additionalProperties: false
|
||||
properties:
|
||||
@@ -1770,6 +1803,8 @@ components:
|
||||
type:
|
||||
- array
|
||||
- "null"
|
||||
workflow:
|
||||
type: string
|
||||
required:
|
||||
- id
|
||||
- run_id
|
||||
|
||||
Reference in new issue
Block a user