-
Notifications
You must be signed in to change notification settings - Fork 170
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
TEST: Fix Uptream MTLs policy integration test #1295
Conversation
f6be064
to
277fd19
Compare
@@ -575,3 +575,72 @@ ssl_client_i_dn: CN=localhost,OU=APIcast,O=3scale | |||
--- error_code: 200 | |||
--- no_error_log | |||
[error] | |||
|
|||
|
|||
=== TEST 8: MTLS policy with correct CA certificate, but invalid host |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where are you specifying the invalid host here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi,
Just here:
TLS certificates are localhost, but host we use the host test
Regards
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, can we add a comment to the test adding this information, ie. the certificates are set up for localhost
but here we will use a different hostname?
9bacaa8
to
8370b52
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - but first let's look into documenting why the test is expected to fail, ie. because the TLS certs are set up to apply to a different hostname localhost
.
When using invalid host, the ngx_ssl_host was not used, so the verify was working when it shouldn't. This PR is part of THREESCALE-768 Signed-off-by: Eloy Coto <[email protected]>
8370b52
to
79418ad
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
When using invalid host, the ngx_ssl_host was not used, so the verify
was working when it shouldn't.
This PR is part of THREESCALE-768
Signed-off-by: Eloy Coto [email protected]