Commit 544be66
committed
feat(policies): add attestation phase lifecycle control to policy evaluation
Add an AttestationPhase enum (INIT, STATUS, PUSH) and an
attestation_phases field on PolicySpecV2 so policy authors can control
at which attestation lifecycle phase their policy is evaluated.
When no phases are specified the policy runs at all phases, preserving
backwards compatibility.
Closes #2764
Signed-off-by: Miguel Martinez <miguel@chainloop.dev>1 parent bcf7331 commit 544be66
14 files changed
Lines changed: 651 additions & 93 deletions
File tree
- app
- cli/pkg/action
- controlplane/api
- gen
- frontend/workflowcontract/v1
- jsonschema
- workflowcontract/v1
- pkg
- attestation/crafter
- policies
- testdata
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| |||
196 | 197 | | |
197 | 198 | | |
198 | 199 | | |
199 | | - | |
| 200 | + | |
200 | 201 | | |
201 | 202 | | |
202 | 203 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
156 | 157 | | |
157 | 158 | | |
158 | 159 | | |
159 | | - | |
| 160 | + | |
160 | 161 | | |
161 | 162 | | |
162 | 163 | | |
| |||
Lines changed: 87 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 48 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 48 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments