-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Fixes issues related to TLS #37675
base: main
Are you sure you want to change the base?
Fixes issues related to TLS #37675
Conversation
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.
We should add some testing with this change to ensure it's working as expected 👍
TLS struct { | ||
Enabled bool `mapstructure:"enabled"` | ||
CAFile string `mapstructure:"ca_file"` | ||
CertFile string `mapstructure:"cert_file"` |
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.
Any new config fields should be covered by tests in config_test.go
which uses config under testdata
directory.
Ideally, there's also a new test in receiver_test.go
that ensures TLS works
Description
Fixes the issue where TLS settings were not being applied correctly for Unix socket connections to a containerd daemon. The HTTP connection layer was assuming the connection was over HTTP, causing malformed responses. This change correctly applies the TLS configuration and ensures secure connections.
Link to tracking issue
Fixes #33557