You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Bug] Handle half validated requests with multiple domains (#185)
* Add the info which test fails
* Fixing the half-validated bug
On certificates with multiple subject names (subject_alt_name), there is the possibility that a validation goes halfway through.
In such a case the filter_challenges filter plugin failed because it only searched in the authorizations field when challenge_data field was empty. In a half-way validation the challenge_data will carry the tokens of the pending validations and therefore the find_challenges() fails on a expected_not_found validation.
* Adding test for a half-way through validation
* Fix linting
---------
Co-authored-by: Michael Kluge <michael.kluge@telekom.de>
- "'blahtest1.example.org' in test_challenge and 'blahtest2.example.org' in test_challenge"
101
101
- "data_with_challenge_data['challenge_data']['blahtest1.example.org']['http-01']['resource'] in test_challenge['blahtest1.example.org']['http-01'].resource"
102
102
- "data_with_challenge_data['challenge_data']['blahtest1.example.org']['http-01']['resource_value'] in test_challenge['blahtest1.example.org']['http-01'].resource_value"
103
103
104
-
- name: TEST-03-1 default / dns-01 / expect less then provided
104
+
- name: TEST-03-1 default / dns-01 / expect less then provided by response
- "data_with_challenge_data['challenge_data']['blahtest1.example.org']['dns-01']['resource'] in test_challenge['blahtest1.example.org']['dns-01'].resource"
144
144
- "data_with_challenge_data['challenge_data']['blahtest1.example.org']['dns-01']['resource_value'] in test_challenge['blahtest1.example.org']['dns-01'].resource_value"
- "'blahtest1.example.org' in test_challenge and 'blahtest2.example.org' in test_challenge"
265
+
- "data_with_mixed_challenge_data['authorizations']['blahtest1.example.org']['challenges'][1]['token'] in test_challenge['blahtest1.example.org']['http-01'].resource_value"
266
+
- "data_with_mixed_challenge_data['challenge_data']['blahtest2.example.org']['http-01'].resource_value in test_challenge['blahtest2.example.org']['http-01'].resource_value"
0 commit comments