Skip to content
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: LS failing with ssl_peer_metadata => true #431

Merged
merged 5 commits into from
Oct 11, 2021

Conversation

kares
Copy link
Contributor

@kares kares commented Oct 4, 2021

We broke being able to enhance events with TLS meta-data (such as the protocol used) since 6.1.0 (with the introduction of ECS).

Running with ssl_peer_metadata => true always leads to a NPE as name fields are assumed on a object instance while they exist on the plugin instance -> Java::OrgLogstash::FieldReference.from(nil) which does not accept null.

The fix is to properly read the field names.

The reason this broke is likely due the difficulties unit testing (mocking) these parts, we should now have a test that exercises the TLS meta-data code path.

@kares kares linked an issue Oct 4, 2021 that may be closed by this pull request
@kares kares marked this pull request as ready for review October 11, 2021 12:12
Copy link
Contributor

@andsel andsel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TLS verified session causes NPE when storing TLS session metadata
3 participants