-
Notifications
You must be signed in to change notification settings - Fork 18
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
Allow use of all signers by default #131
Conversation
55bb308
to
462f581
Compare
@SgtCoDFish Do you know how we prevent the csi-driver-spiffe approver from conflicting with other approvers (like approver-policy)? Does removing restrictions on signers increase the chance of conflicts between approvers? |
Mostly the logic is here: csi-driver-spiffe/internal/approver/controller/controller.go Lines 84 to 106 in abc426a
We filter out CRs that don't look like they were created by csi-driver-spiffe. Currently, we look for the issuerRef to match. That'll change in #125 hopefully to check for an annotation but that'll only be ready to merge after this one goes in. In any case, that's not really related to the changes in this PR.
It will after #125 merges but doesn't yet.
No, this change just makes it easier to configure an external issuer and has no impact on how we select which CRs to reconcile or approve. #125 will change that a bit. Ultimately the current design of approval as a concept is always going to create approval race conditions. If one approver would approve a CR but another would deny, it's a race to see which goes first. We rely on users configuring things correctly so that approvers don't conflict and there's almost nothing an individual approver can do to prevent that as far as I can see. |
This commit changes signer allowlisting, to default to allowing approval for all signers. This makes csi-driver-spiffe much simpler to use for external issuers such as aws-privateca-issuer, and is justified by the same change being made recently in [approver-policy][0] [0]: https://github.com/cert-manager/approver-policy/blob/228ca0a9c5627c6a2f464446745c65e0eac8a994/design/20240325-allowallsigners.md Signed-off-by: Ashley Davis <[email protected]>
462f581
to
a0e56b4
Compare
Ok, I think with #125 we will better prevent conflicts and thus it is ok to allow the approver to approve all issuer types. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: inteon 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 |
This commit changes signer allowlisting, to default to allowing approval for all signers.
This makes csi-driver-spiffe much simpler to use for external issuers such as aws-privateca-issuer, and is justified by the same change being made recently in approver-policy