Skip to content

WIP: Allow ignoring ACME challenge self check failures - #5006

Closed
wallrj wants to merge 3 commits into
cert-manager:masterfrom
wallrj:1292-self-check-policy
Closed

wallrj wants to merge 3 commits into
cert-manager:masterfrom
wallrj:1292-self-check-policy

Conversation

@wallrj

@wallrj wallrj commented Mar 30, 2022

Copy link
Copy Markdown
Member

In #2783 @anton-johansson wrote:

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.

I've taken Anton's PR and rebased it. I'll see if I can address the unresolved comments and TODO items here.

Fixes #1292

Release note:

Allow ignoring ACME challenge self check failures

To do:

  • e2e test coverage
  • manual/functional tests

@jetstack-bot jetstack-bot added dco-signoff: yes Indicates that all commits in the pull request have the valid DCO sign-off message. do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. release-note Denotes a PR that will be considered when it comes time to generate release notes. labels Mar 30, 2022
@jetstack-bot

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: wallrj

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@jetstack-bot jetstack-bot added area/acme Indicates a PR directly modifies the ACME Issuer code area/api Indicates a PR directly modifies the 'pkg/apis' directory approved Indicates a PR has been approved by an approver from all required OWNERS files. needs-kind Indicates a PR lacks a `kind/foo` label and requires one. area/deploy Indicates a PR modifies deployment configuration area/testing Issues relating to testing size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Mar 30, 2022
@jakexks

jakexks commented Mar 30, 2022

Copy link
Copy Markdown
Member

Thanks for picking this up again.

During the last meeting I floated the idea of still running the self-check and proceeding straight away if it passes, but having the ACME flow proceed anyway after a configurable amount of time. You could then decide what an appropriate amount of time to wait for a propagation is, e.g. 10 seconds for a load balancer reconfiguration or 1 hour for a global DNS config change.

Even if eventual consensus is to not run the self-check at all, we still need to delay before continuing, so this would be nice to be configurable. e.g. certbot waits (I believe) 30 seconds before proceeding.

@wallrj
wallrj marked this pull request as draft March 31, 2022 09:36
@jetstack-bot jetstack-bot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Mar 31, 2022
@wallrj
wallrj force-pushed the 1292-self-check-policy branch from b1677d3 to fadb12b Compare March 31, 2022 13:17
@jetstack-bot jetstack-bot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Mar 31, 2022
@wallrj
wallrj force-pushed the 1292-self-check-policy branch from fadb12b to 551b6c4 Compare March 31, 2022 18:15
@jetstack-bot jetstack-bot added needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. and removed needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. labels Apr 1, 2022
@jetstack-bot jetstack-bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Apr 9, 2022
Signed-off-by: Anton Johansson <[email protected]>
Signed-off-by: Richard Wall <[email protected]>
@wallrj
wallrj force-pushed the 1292-self-check-policy branch from 10fb47c to 5addbc2 Compare April 12, 2022 21:26
@jetstack-bot jetstack-bot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Apr 12, 2022
Signed-off-by: Richard Wall <[email protected]>
@wallrj
wallrj force-pushed the 1292-self-check-policy branch from 5addbc2 to 344d64f Compare April 13, 2022 06:33
@pierreyves-lebrun

Copy link
Copy Markdown

Just leaving a comment here to say that this feature would be very helpful to me

Thanks to whoever contributed to this PR

@jakexks

jakexks commented Apr 28, 2022

Copy link
Copy Markdown
Member

/close
We are still doing this, but after discussion the PR is being split into more easy to review parts.

@jetstack-bot

Copy link
Copy Markdown
Contributor

@jakexks: Closed this PR.

Details

In response to this:

/close
We are still doing this, but after discussion the PR is being split into more easy to review parts.

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.

@dwarf-king-hreidmar

dwarf-king-hreidmar commented Jun 11, 2022 •

Copy link
Copy Markdown

This was closed in favor of splitting in more easy to review parts. Can you link to those? Are they merged? I've been struggling with this self test failing a long time.

@misse

misse commented Jun 22, 2022

Copy link
Copy Markdown

Yes, I'm also looking for the other PRs to figure out if they've been merged and if this feature is now available.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. area/acme Indicates a PR directly modifies the ACME Issuer code area/api Indicates a PR directly modifies the 'pkg/apis' directory area/deploy Indicates a PR modifies deployment configuration area/testing Issues relating to testing dco-signoff: yes Indicates that all commits in the pull request have the valid DCO sign-off message. do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. needs-kind Indicates a PR lacks a `kind/foo` label and requires one. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allowing skipping HTTP01 and DNS01 self-check on a per-solver basis

7 participants