-
Notifications
You must be signed in to change notification settings - Fork 148
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
Unable to read fleet.ssl options: Invalid TLS validation configuration - endpoint security integration #184
Comments
I believe the best way to fix this issue is to make it explicit which is Full, one way to fix it would be to change how the VerificationMode type is serialized into YML or JSON, when the value is empty we should have |
@belimawr any learnings around verification mode to share here? I remember you faced some issues with beats one or two releases ago. |
Yes, it was pretty much the same situation. Ideally Elastic-Agent would not set an empty string on @ph I agree we should explicitly set it. Either set it to what we (Elastic-Agent) considers the default or not serialise it into the YAMAL file, thus allowing Endpoint to use it's defaults. |
Just as a sanity check, @narph have you experienced any issues in the TLS behaviour? Or just the error/warning logs? |
@belimawr , we have not made any changes yet so I have not experienced any issues in the TLS behavior, only the validation errors in the endpoint logs. |
This seems to be a low effort to me, is this just a matter of making |
I believe it's more about ensuring a default is set rather than changing the marshal method (I'm not sure if it's already enforced somewhere). I took a quick look at the file yo linked @ph, and it seems there might be a change of Elastic-Agent marshaling the There is a map define here: That gets "reversed" here: There is no guarantee that the "name" to |
Ex configuration:
elastic-agent.yml
:fleet.yml
Generated
elastic-endpoint.yaml
Following errors are seen in the endpoint logs:
This is due to the validation in endpoint where empty string verification mode is not recognized https://github.com/elastic/endpoint-dev/blob/4e2c19673e9654dd83e26d32ec8d045f81c931e9/Plugins/Policy/Lib/TlsConfig.cpp#L180-L208
It looks like empty string might be an accepted verification mode option https://github.com/elastic/beats/blob/main/libbeat%2Fcommon%2Ftransport%2Ftlscommon%2Ftypes.go#L133 and it is considered
full
.The text was updated successfully, but these errors were encountered: