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
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?
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:
|
ec2d168 to
ee46ffa
Compare
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>
ee46ffa to
3cf95ee
Compare
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.