-
Notifications
You must be signed in to change notification settings - Fork 44
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
Remove empty string as default value for VerificationMode #59
Conversation
/test |
2 similar comments
/test |
/test |
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.
Changes look good to me, although I'm assuming the change itself won't involve any user-facing breaking changes(?)
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.
@narph, the PR looks great, but to be on the safe side, I'd like to see test case for when the verification_mode
is set to an empty string, e.g: test parsing a YAML like this:
verification_mode: ""
I've added some tests for this, including one with the scenario you suggested above but I assume by default |
Yes, you're right, but some agent policies ended up having |
@@ -20,6 +20,8 @@ package tlscommon | |||
import ( | |||
"testing" | |||
|
|||
"github.com/stretchr/testify/assert" | |||
|
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.
What does this PR do?
Original issue elastic/elastic-agent#184
Elastic agent accepts empty string value for
ssl.verification_mode
(which is equivalent tofull
), however Endpoint is logging an error since it is not a supported option, but, it's also setting the verification mode to full, so verification modes match.The PR is removing empty string as a default/supported verification mode option. Default mode will be
full
.Why is it important?
Avoids conflicts with other stakeholders.
Checklist
CHANGELOG.md
Related issues