-
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] Panic when using inline SSL certificate.key #23820
Labels
Comments
botelastic
bot
added
the
needs_team
Indicates that the issue/PR needs a Team:* label
label
Feb 2, 2021
A key could be as small as 64 bytes for something like ed25519. For example:
|
@ph Thinking about the comment in the code, I wonder if we even want to leak part of the key in logs. Perhaps we should put a static string like |
Pinging @elastic/agent (Team:Agent) |
botelastic
bot
removed
the
needs_team
Indicates that the issue/PR needs a Team:* label
label
Feb 2, 2021
ph
added a commit
to ph/beats
that referenced
this issue
Feb 4, 2021
When the key or certificate was smaller than 256bytes the system was throwing a panic, the problem was generate by a debug message. Instead of logging part of the keys or certificate in the log we are just writing "inline". Fixes: elastic#23820
6 tasks
ph
added a commit
that referenced
this issue
Feb 9, 2021
* Panic when using inline SSL certificate or key When the key or certificate was smaller than 256bytes the system was throwing a panic, the problem was generate by a debug message. Instead of logging part of the keys or certificate in the log we are just writing "inline". Fixes: #23820 * changelog
6 tasks
ph
added a commit
to ph/beats
that referenced
this issue
Feb 9, 2021
* Panic when using inline SSL certificate or key When the key or certificate was smaller than 256bytes the system was throwing a panic, the problem was generate by a debug message. Instead of logging part of the keys or certificate in the log we are just writing "inline". Fixes: elastic#23820 * changelog (cherry picked from commit 359cd74)
ph
added a commit
that referenced
this issue
Feb 11, 2021
… key (#23949) * Panic when using inline SSL certificate or key (#23858) * Panic when using inline SSL certificate or key When the key or certificate was smaller than 256bytes the system was throwing a panic, the problem was generate by a debug message. Instead of logging part of the keys or certificate in the log we are just writing "inline". Fixes: #23820 * changelog (cherry picked from commit 359cd74) * Changelog
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
My key is 241 bytes, but the code requires the cert and key length to be at least 256 bytes or else it panics.
beats/libbeat/common/transport/tlscommon/tls.go
Lines 217 to 218 in 39e144d
Filebeat config:
The text was updated successfully, but these errors were encountered: