-
Notifications
You must be signed in to change notification settings - Fork 150
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
shut_down() the service if TLS negotiation fails #5134
shut_down() the service if TLS negotiation fails #5134
Conversation
Prometheus.connection_setup_failure_imapd fails. |
So that test connects to a secure IMAP port but then tries to speak plain text to it (which will look like a TLS negotiation failure), with the intention of creating "bad connection" situations, and it then examines the prometheus stats to find out whether we counted them correctly. Looks like most of the test still works, but the numbers are wrong at the end. Up until now it's expected clean shutdowns, because that's how imapd used to handle this situation, but these aren't clean shutdowns anymore, so the count doesn't match. There's a comment from me expecting this to change to "setup failures" in the future. I guess we'll want to modify/replace this block and comments near the end with a similar one that counts and verifies the new behaviour instead:
I guess the trick will be figuring out what prom stat gets counted when TLS negotiation fails, and update the test to check that stat instead of shutdown/ok, expecting to find I don't remember exactly I meant by "setup failure" -- I don't see anything like it in promdata.p, but maybe I meant |
I actually get a different error when I run it locally vs when CI runs it, curious. When I run it locally, it chokes out earlier on the connection being dropped |
This works for me locally:
|
sending a cleartext response to the client on failure is nonsense
3b4d93a
to
aeba153
Compare
sending a cleartext response to the client on failure is nonsense