policy.proto
path agntcy/identity/service/v1alpha1/policy.proto
package agntcy.identity.service.v1alpha1
Messages
Policy
Identity Service Policy.
| Name | Type | Description |
|---|---|---|
id | optional string | A unique identifier for the Policy. |
name | optional string | A human-readable name for the Policy. |
description | optional string | A human-readable description for the Policy. |
assigned_to | optional string | The requester application that this Policy applies to. |
rules | repeated Rule | All the rules that apply to this Policy. |
created_at | optional google.protobuf.Timestamp | CreatedAt records the timestamp of when the Policy was initially created |
Rule
Identity Service Policy Rule
| Name | Type | Description |
|---|---|---|
id | optional string | A unique identifier for the Rule. |
name | optional string | A human-readable name for the Rule. |
description | optional string | A human-readable description for the Rule. |
policy_id | optional string | |
tasks | repeated Task | The tasks that this Rule applies to. |
action | optional RuleAction | The action applied for the rule when calling the specified tasks |
needs_approval | optional bool | Need User Approval for this Rule. |
created_at | optional google.protobuf.Timestamp | CreatedAt records the timestamp of when the Rule was initially created |
Task
Identity Service Policy Task
| Name | Type | Description |
|---|---|---|
id | optional string | A unique identifier for the Task. |
name | optional string | A human-readable name for the Task. |
description | optional string | A human-readable description for the Task. |
app_id | optional string | An application ID for the Task. |
tool_name | optional string | A tool name for the Task. |
Enums
RuleAction
| Name | Number | Description |
|---|---|---|
RULE_ACTION_UNSPECIFIED | 0 | |
RULE_ACTION_ALLOW | 1 | |
RULE_ACTION_DENY | 2 |