Skip to content
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

Adds an explicit timeout when pre-checking HTTP-01 challenges #4311

Merged
merged 1 commit into from Aug 6, 2021

Conversation

SgtCoDFish
Copy link
Member

As discussed in standup 2021-08-05.

Adds an explicit 10 second timeout when checking HTTP01 challenges for reachability

Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
@jetstack-bot jetstack-bot added release-note Denotes a PR that will be considered when it comes time to generate release notes. dco-signoff: yes Indicates that all commits in the pull request have the valid DCO sign-off message. area/acme Indicates a PR directly modifies the ACME Issuer code area/acme/http01 Indicates a PR modifies ACME HTTP01 provider code 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. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Aug 5, 2021
@SgtCoDFish
Copy link
Member Author

/kind bug

@jetstack-bot jetstack-bot added kind/bug Categorizes issue or PR as related to a bug. and removed needs-kind Indicates a PR lacks a `kind/foo` label and requires one. labels Aug 5, 2021
@jakexks
Copy link
Member

jakexks commented Aug 5, 2021

/cherry-pick release-1.3
/cherry-pick release-1.4
/cherry-pick release-1.5

@jetstack-bot
Copy link
Collaborator

@jakexks: once the present PR merges, I will cherry-pick it on top of release-1.3 in a new PR and assign it to you.

In response to this:

/cherry-pick release-1.3
/cherry-pick release-1.4
/cherry-pick release-1.5

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.

@SgtCoDFish
Copy link
Member Author

/test pull-cert-manager-bazel

flake ☹️

@SgtCoDFish
Copy link
Member Author

/test pull-cert-manager-e2e-v1-21

@JoshVanL
Copy link
Collaborator

JoshVanL commented Aug 6, 2021

/cherry-pick release-1.4

@jetstack-bot
Copy link
Collaborator

@JoshVanL: once the present PR merges, I will cherry-pick it on top of release-1.4 in a new PR and assign it to you.

In response to this:

/cherry-pick release-1.4

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.

@JoshVanL
Copy link
Collaborator

JoshVanL commented Aug 6, 2021

/cherry-pick release-1.5

@jetstack-bot
Copy link
Collaborator

@JoshVanL: once the present PR merges, I will cherry-pick it on top of release-1.5 in a new PR and assign it to you.

In response to this:

/cherry-pick release-1.5

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.

Comment on lines +224 to +229

// boulder sets this to 1 because "0" means "unlimited"
MaxIdleConns: 1,

// IdleConnTimeout's value is taken from Boulder
IdleConnTimeout: time.Second,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

q: do these values really matter if we are only using this client for 1 request?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I pretty much just copied boulder. The link to their http.Transport just above here (https://github.com/letsencrypt/boulder/blob/30a516737c9daa4c88c8c47070c25a5e7033cdcf/va/http.go#L146-L160) has some detail on their side.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(to anticipate the obvious follow-up question, we don't have TLSHandshakeTimeout because the http.Client Timeout covers that. Boulder has much subtler, fancier time-out handling but I think a blunt 10s timeout is better here for this PR given this will be backported and we don't want to go nuts with changes)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Understood, but I don't think these Idle fields are actually doing anything.

@JoshVanL
Copy link
Collaborator

JoshVanL commented Aug 6, 2021

/lgtm
/hold

@jetstack-bot jetstack-bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Aug 6, 2021
@jetstack-bot jetstack-bot added the lgtm Indicates that a PR is ready to be merged. label Aug 6, 2021
Copy link
Member

@jakexks jakexks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@jetstack-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jakexks, SgtCoDFish

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@JoshVanL
Copy link
Collaborator

JoshVanL commented Aug 6, 2021

/hold cancel

@jetstack-bot jetstack-bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Aug 6, 2021
@jetstack-bot jetstack-bot merged commit 8772aec into cert-manager:master Aug 6, 2021
@jetstack-bot
Copy link
Collaborator

@jakexks: new pull request created: #4317

In response to this:

/cherry-pick release-1.3
/cherry-pick release-1.4
/cherry-pick release-1.5

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.

@jetstack-bot
Copy link
Collaborator

@JoshVanL: new pull request created: #4318

In response to this:

/cherry-pick release-1.5

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.

@jetstack-bot
Copy link
Collaborator

@JoshVanL: new pull request created: #4319

In response to this:

/cherry-pick release-1.4

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.

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/http01 Indicates a PR modifies ACME HTTP01 provider code area/acme Indicates a PR directly modifies the ACME Issuer code dco-signoff: yes Indicates that all commits in the pull request have the valid DCO sign-off message. kind/bug Categorizes issue or PR as related to a bug. lgtm Indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants