-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[TEP-0091] Add mode for VerificationPolicy #6328
Conversation
Skipping CI for Draft Pull Request. |
/test all |
/assign @wlynch |
@@ -62,6 +62,10 @@ type VerificationPolicySpec struct { | |||
Resources []ResourcePattern `json:"resources"` | |||
// Authorities defines the rules for validating signatures. | |||
Authorities []Authority `json:"authorities"` | |||
// Mode controls whether a failing policy will fail the taskrun/pipelinerun, or only log the warnings |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are there docs we need to update with the new Mode field?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not yet, I plan to use this new field in next pr(and add docs there) to keep the PR small. I think we should merge these 2 PRs in one release. So better add this PR to v0.47
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tracking issue here: #6356
This PR is targeting v0.47. |
/hold |
/assign @jerop |
This commit adds the mode field into VerificationPolicy. Mode can be set to `enforce` or `warn`. It controls whether a failing policy will fail the taskrun/pipelinerun or only log the warning. When set to `enforce`, the run will fail. When set to `warn`, the run won't fail and only log warning. Signed-off-by: Yongxuan Zhang yongxuanzhang@google.com
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: wlynch The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Thanks! Let's hold until 0.46 release is out 😄 |
/hold cancel |
/assign |
Changes
This commit adds the mode field into VerificationPolicy. Mode can be set to
enforce
orwarn
. It controls whether a failing policy will fail the taskrun/pipelinerun or only log the warning. When set toenforce
, the run will fail. When set towarn
, the run won't fail and only log warning./kind feature
Part of #6356
Signed-off-by: Yongxuan Zhang yongxuanzhang@google.com
Submitter Checklist
As the author of this PR, please check off the items in this checklist:
functionality, content, code)
/kind <type>
. Valid types are bug, cleanup, design, documentation, feature, flake, misc, question, tepRelease Notes