fix(policy-controller): Define failurePolicy variable for cosign webhook - #1206
fix(policy-controller): Define failurePolicy variable for cosign webhook#1206ttryf wants to merge 1 commit into
Conversation
Introduce `failurePolicy` variable for the cosign webhook to parameterise the default action (from the hardcoded `Fail` value). Fixes sigstore#1182 Signed-off-by: Thanos Tryfonidis <thanos.tryfonidis@allwyn-lotterysolutions.com>
cmurphy
left a comment
There was a problem hiding this comment.
Based on #553 it seems like there was an intent at some point to unify these two webhooks and not have separate configuration for them. Could the new cosign.failurePolicy be removed and could the other webhoook just use webhook.failurePolicy?
|
|
||
| name: policy-controller | ||
| version: 0.10.6 | ||
| version: 0.10.7 |
There was a problem hiding this comment.
Can you bump this to 0.11.0 since this is adding a feature?
Thanks for the context @cmurphy, this is perfectly fine and it was my initial implementation (before submitting this PR). One thing I noticed while working on this and calling it out for visibility (my rationale for separate configuration for The webhook is used to make calls to Fulcio/Rekor/TUF etc. and could fail independently of pod health, compared to ClusterImagePolicy webhook that does local validation - no dependencies. Keeping them separately configurable, reduces the blast radius (during an outage or service unavailability) of each functionality. Not blocking this PR either way, just flagging in case it changes your view on #553. This is based on the three failure scenarios I considered:
|
Description of the change
Introduce
failurePolicyvariable for the cosign webhook to parameterise the default action (from the hardcodedFailvalue).Existing or Associated Issue(s)
Relates to #1182 issue
Additional Information
Checklist
Chart.yamlaccording to semver. Where applicable, update and bump the versions in any associated umbrella chartvalues.yamland added to the README.md. The helm-docs utility can be used to generate the necessary content. Usehelm-docs --dry-runto preview the content.ct lintcommand.