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

Add SourceAddr and TLS metadata to lj.Batch #29

Merged
merged 5 commits into from
Aug 19, 2022

Conversation

andrewkroh
Copy link
Member

Add connection metadata to lj.Batch. This provides the source address
of the connection and TLS metadata (like peer certification for mTLS).

Add connection metadata to `lj.Batch`. This provides the source address
of the connection and TLS metadata (like peer certification for mTLS).
@elasticmachine
Copy link

elasticmachine commented Aug 14, 2022

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview preview

Expand to view the summary

Build stats

  • Start Time: 2022-08-18T20:59:06.876+0000

  • Duration: 9 min 13 sec

@andrewkroh andrewkroh added the Team:Security-External Integrations Label for the Security External Integrations team label Aug 14, 2022
@andrewkroh andrewkroh requested a review from a team August 14, 2022 15:48
@andrewkroh andrewkroh marked this pull request as ready for review August 14, 2022 15:51
CHANGELOG.md Outdated Show resolved Hide resolved
lj/lj.go Outdated Show resolved Hide resolved
lj/lj.go Outdated Show resolved Hide resolved
in *bufio.Reader
tlsState *tls.ConnectionState
remoteAddr string
buf []byte
Copy link

Choose a reason for hiding this comment

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

If we are confident that it's nearly always the case that the buf is not grown beyond 64 bytes long, maybe make it be a slice of another [64]byte field?

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm not confident on this so I'm going to leave it as is. But good idea.

server/v2/reader.go Show resolved Hide resolved
@andrewkroh andrewkroh requested a review from efd6 August 18, 2022 21:01
@andrewkroh andrewkroh merged commit 335fde2 into elastic:main Aug 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Team:Security-External Integrations Label for the Security External Integrations team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants