-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathidentity-v2.json
More file actions
131 lines (131 loc) · 2.94 KB
/
Copy pathidentity-v2.json
File metadata and controls
131 lines (131 loc) · 2.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
{
"version": "0.2",
"identity_profiles": [
{
"id": "local-agent",
"provider": "none",
"subject": {
"kind": "agent",
"principal": "agent://local/test-agent",
"display_name": "Test Agent",
"delegation_mode": "none"
},
"trust": {
"level": "supervised",
"constraints": {
"max_autonomy": "supervised",
"escalation": "fail"
}
},
"presentation": {
"handoff": "none",
"cleanup": "always"
}
},
{
"id": "env-token-agent",
"provider": "env-bearer",
"subject": {
"kind": "service",
"principal": "agent://local/env-service",
"delegation_mode": "none"
},
"auth": {
"mode": "service",
"scopes": ["read"],
"required": false,
"provider_config": {
"token_env": "TEST_BEARER_TOKEN"
}
},
"trust": {
"level": "restricted"
},
"presentation": {
"bindings": [
{
"source": "credentials.access_token.value",
"target": { "kind": "env", "name": "API_TOKEN" },
"required": false,
"redact": true
}
],
"handoff": "none",
"cleanup": "always"
}
}
],
"authorization_proof_profiles": [
{
"id": "no-proof",
"method": "none",
"verify": { "required": false }
}
],
"evidence_profiles": [
{
"id": "ssh-evidence",
"provider": "ssh",
"payload": {
"bind": ["execution_id", "declared_identity", "contract", "command", "result"],
"format": "canonical-json"
},
"verify": { "required": false }
}
],
"workflows": [
{
"id": "identity-demo",
"name": "Identity Demo Workflow",
"identity": {
"ref": "local-agent"
},
"contract": {
"sandbox": "permissive",
"network": "unrestricted",
"audit": "always",
"required_trust_level": "restricted",
"trust_enforcement": "advisory"
},
"tasks": [
{
"id": "echo-identity",
"name": "Echo Identity",
"shell": {
"program": "echo",
"args": ["hello-v2"]
},
"target": {
"session_target": "shell"
},
"identity": {
"ref": "local-agent"
},
"evidence": {
"ref": "ssh-evidence"
},
"schedule": {
"cron": "0 * * * *"
}
},
{
"id": "env-token-task",
"name": "Env Token Task",
"shell": {
"program": "echo",
"args": ["token-test"]
},
"target": {
"session_target": "shell"
},
"identity": {
"ref": "env-token-agent"
},
"schedule": {
"cron": "0 * * * *"
}
}
]
}
]
}