-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathidentity-contract.json
More file actions
63 lines (63 loc) · 1.56 KB
/
identity-contract.json
File metadata and controls
63 lines (63 loc) · 1.56 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
{
"version": "0.1",
"workflows": [
{
"id": "secure-deploy",
"name": "Secure Deploy Pipeline",
"identity": {
"principal": "deploy-bot@infra.example.com",
"run_as": "ci-deployer"
},
"contract": {
"sandbox": "strict",
"network": "restricted",
"audit": "always"
},
"tasks": [
{
"id": "build",
"name": "Build Artifact",
"prompt": "Build the release artifact from the current main branch.",
"target": {
"session_target": "isolated",
"agent_id": "main"
},
"schedule": {
"cron": "0 14 * * 1-5",
"tz": "UTC"
},
"contract": {
"allowed_paths": ["/workspace/build", "/tmp"],
"max_cost_usd": 2.50
}
},
{
"id": "deploy",
"name": "Deploy to Staging",
"prompt": "Deploy the built artifact to the staging environment.",
"target": {
"session_target": "isolated",
"agent_id": "main"
},
"trigger": {
"parent": "build",
"on": "success"
},
"identity": {
"attestation": "oidc:deploy-pipeline"
},
"contract": {
"network": "unrestricted",
"max_cost_usd": 10.00,
"audit": "always"
},
"approval": {
"policy": "manual",
"risk_level": "high",
"timeout_s": 3600
}
}
]
}
]
}