Repository navigation
WIP: Allow ignoring ACME challenge self check failures - #2783
anton-johansson wants to merge 1 commit into
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: anton-johansson The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Hi @anton-johansson. Thanks for your PR. I'm waiting for a jetstack or cert-manager member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
wallrj
left a comment
There was a problem hiding this comment.
Thanks @anton-johansson
I see that this is a WIP branch so apologies if I'm jumping the gun.
The changes look good so far. Just a couple of typos and suggestions which you can take or leave.
Let me know if the branch is ready for testing and I'll compile and run it locally.
-RichardW.
07ab964 to
eb3ee37
Compare
eb3ee37 to
a6f225d
Compare
Hey @wallrj. No worries at all, I appreciate the feedback. Thanks! I'll get it up and running locally first, to avoid unnecessary testing round-trips for you guys. |
a6f225d to
0c3cc66
Compare
Yep - we actually cannot set CRD based default values yet which is a huge pain (because we have to use CRD v1 instead of v1beta1 for this). If you mark this field as We can look at actually defaulting later, but until we can do CRD based defaulting this is going to be a pain point regardless. If you could be sure to make a note of the default value in the comment/description for the field though, it'll make things far easier for end-users and also for us when it comes to remembering to set up defaults properly 😄 |
|
|
||
| // This policy will cause the ACME challenge self check response to be | ||
| // ignored and the request will always be sent to the certificate provider. | ||
| ACMESelfCheckFailurePolicyIgnore ACMESelfCheckFailurePolicy = "Ignore" |
There was a problem hiding this comment.
How many times do we attempt the self check before we continue and ignore?
There was a problem hiding this comment.
It will only check one time, and therefore instantly sends the request to the certificate provider. This will be done too early, before the solver Pod and `Ingress' resources are ready... Ideas?
There was a problem hiding this comment.
That's definitely going to be problematic, and without a self-check-like heuristic it'll also be difficult for us to workaround.
So looking at this from a use-cases PoV, I see a few user stories:
-
User has some form of hair-pin NAT issue, they 'know' the self check will pass if you give it 30s to propagate
-
User has a custom ingress setup that requires special steps to check
For (2), we should allow users to 'bring their own' self check implementations, i.e. 'disable' the in-built one and have a controller perform the same action.
For (1), which is what I see this PR addressing, a simple time based heuristic may be better (i.e. try once, wait 30s, accept the challenge). That said, if we were to look at this from a world where we have (2) implemented, would it make most sense for this time based check to exist as a failurePolicy or as an alternative self check implementation altogether?
I'm not 100% sure either way as to how we should address this/what we should do - it'd be great to get your thoughts on it and anyone else's who needs something like this.
Signed-off-by: Anton Johansson <[email protected]>
0c3cc66 to
a3137ff
Compare
|
any progress on this PR ? |
|
Hi @zbagdzevicius! Unfortunately I've had my hands full with work and personal stuff. |
|
@anton-johansson: PR needs rebase. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
Closing old stale PRs to keep an overview for the reviewers. Feel free to /reopen if work started on this again. /close |
|
@meyskens: Closed this PR. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
What this PR does / why we need it:
This is the implementation for design document #2772. It allows us to control failure policies for the ACME self check. The default policy keeps the existing functionality by waiting indefinitely, but it can now also be configured to be ignored, leading to the request being sent to the certificate provider anyway.
Which issue this PR fixes:
Fixes #1292
Special notes for your reviewer:
My first contribution to the project, so as much feedback as possible is much appreciated!
There's a lot of redundant changes in
zz_generated.conversion.go, but this is generated, so I'm assuming this is OK.Release note:
To do: