-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Enable TLS by default in shipper output #34425
Enable TLS by default in shipper output #34425
Conversation
Pinging @elastic/elastic-agent (Team:Elastic-Agent) |
This pull request does not have a backport label.
To fixup this pull request, you need to add the backport labels for the needed
|
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.
The description needs manual testing steps, how can we check that the shipper is actually running with TLS? The config option might be as well ignored.
@rdner so, I'm sort of going off of @blakerouse 's comment in the issue, which is that TLS should be enabled, unless the agent explicitly disabled it. Unless I'm misunderstanding your question? |
@fearful-symmetry my point was rather that would be nice to have steps in the description to test the change. Just to make sure the configuration parameter is not lost in some propagation. If the TLS on is the default, then we need to verify that the flag actually disables it when set to I just don't see anything in this PR that checks or verifies that, unless I've missed it. |
Ah, sorry, didn't understand what you meant, sorry. I can try to add some testing instructions, but at this point, there's so many bugs and in-flight PRs needed for the shipper that I don't think it's particularly easy to test. I agree though, gonna at least see if I can add some go tests. |
Alright, added a test and a some more to the description. |
@@ -53,6 +53,7 @@ type Config struct { | |||
func defaultConfig() Config { | |||
enabled := true | |||
return Config{ | |||
// agent will expect that TLS is enabled by default, will disable explicitly |
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.
will disable explicitly
Looks confusing because of the enabled := true
above. What does it mean?
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.
Ah, sorry, it should say "the agent will disabled it explicitly"
Brief update: Since we currently don't have a timeline for when we want to make changes to the rest of the TLS stack, I'm thinking of leaving this PR unmerged until elastic/elastic-agent-shipper#224 is dealt with, as otherwise we'd need to come up with another workaround to disable TLS until we fix that. |
@leehinman @pierrehilbert @fearful-symmetry as elastic/elastic-agent-shipper#224 is still not planned yet, can I move #34321 out fo the current sprint as otherwise it will stay unmerged? |
I was expecting to discuss about this on tomorrow in the shipper area but yes I think we can move this one out of the sprint |
This pull request is now in conflicts. Could you fix it? 🙏
|
Closing, we can reopen when we revisit this |
What does this PR do?
closes #34321
This changes the default config for the shipper output so TLS is enabled by default, which is what elastic-agent and shipper expect.
How to test:
shipper.spec.yml
and looking in the logs: