Merge pull request #166 from munnerz/fix-http01
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Error if existing presented key and expected key do not match **What this PR does / why we need it**: A type in the HTTP01 solver caused it to not return an error if the key presented by the ingress and the expected key do not match. **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes # Fixes #163 **Special notes for your reviewer**: **Release note**: ```release-note Fix bug in ACME HTTP01 solver causing self-check to return true before paths have propagated ```
This commit is contained in:
commit
bc44f708dd
@ -465,9 +465,7 @@ func testReachability(ctx context.Context, domain, path, key string) error {
|
||||
}
|
||||
|
||||
if string(presentedKey) != key {
|
||||
if err != nil {
|
||||
return fmt.Errorf("presented key (%s) did not match expected (%s)", presentedKey, key)
|
||||
}
|
||||
return fmt.Errorf("presented key (%s) did not match expected (%s)", presentedKey, key)
|
||||
}
|
||||
|
||||
return nil
|
||||
|
||||
Loading…
Reference in New Issue
Block a user