-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
libbeat/common/transport: fix log message about TLS #30063
Conversation
This pull request does not have a backport label. Could you fix it @belimawr? 🙏
NOTE: |
This commit fixes the log message issued by the `test output` command. Our current TLS verification relies on more than the value of `tlsConfig.InsecureSkipVerify`, so the previous implementation would log that TLS was disabled when it was not. This commit fixes it by checking the value of `config.Verification`.
0050c54
to
0250eef
Compare
Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane) |
💚 Build Succeeded
Expand to view the summary
Build stats
❕ Flaky test reportNo test was executed to be analysed. 🤖 GitHub commentsTo re-run your PR in the CI, just comment with:
|
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.
Once you address the comments, I will approve.
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.
Thanks, great comment.
Co-authored-by: Craig MacKenzie <[email protected]>
@ruflin should we backport? |
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, lets backport.
This pull request is now in conflicts. Could you fix it? 🙏
|
This commit fixes the log message issued by the `test output` command. Our current TLS verification relies on more than the value of `tlsConfig.InsecureSkipVerify`, so the previous implementation would log that TLS was disabled when it was not. This commit fixes it by checking the value of `config.Verification`. Co-authored-by: Craig MacKenzie <[email protected]> (cherry picked from commit e208c22)
This commit fixes the log message issued by the `test output` command. Our current TLS verification relies on more than the value of `tlsConfig.InsecureSkipVerify`, so the previous implementation would log that TLS was disabled when it was not. This commit fixes it by checking the value of `config.Verification`. Co-authored-by: Craig MacKenzie <[email protected]> (cherry picked from commit e208c22)
What does this PR do?
This commit fixes the log message issued by the
test output
command.Our current TLS verification relies on more than the value of
tlsConfig.InsecureSkipVerify
, so the previous implementation wouldlog that TLS was disabled when it was not.
This commit fixes it by checking the value of
config.Verification
.Why is it important?
It fix a misleading log message
Checklist
I have commented my code, particularly in hard-to-understand areasI have made corresponding changes to the documentationI have made corresponding change to the default configuration filesI have added tests that prove my fix is effective or that my feature worksCHANGELOG.next.asciidoc
orCHANGELOG-developer.next.asciidoc
.Author's Checklist
How to test this PR locally
ssl.verification_mode
!=strict
(it always worked forstrict
).test output
command from your beatserver's certificate chain verification is enabled
Related issues
## Use cases## Screenshots## Logs