-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
fix(ssl): SSL key rotation caused request failure #11305
Conversation
@AlinsRan please make the code linter happy |
@AlinsRan why was this issue occuring only after apisix version upgrade? |
@shreemaan-abhishek Because a ssl key rotation occurred. |
@@ -242,7 +242,6 @@ apisix: | |||
- qeddd145sfvddff3 | |||
--- error_log | |||
decrypt ssl key failed | |||
[alert] |
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.
Because the error generated by decryption has been cleared, ngx will not throw this error.
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
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
Hi, I'm experiencing this issue as well. Do you have any planned release for this? Thanks! |
A new version is expected to be released by the end of July. You can also patch this PR in the previous version first @pfernandes21 |
Description
Due to the failure to handle the OpenSSL error generated during the AES decryption process, this error was caught by Nginx during the TLS handshake request, resulting in the request failure.
In the scenario of key rotation, due to the attempt to traverse all keys and attempt decryption, the error messages generated earlier should be ignored when decryption is successful.
reference:
Fixes #11148
Checklist