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

Call tlscommon.SetInsecureDefaults #42128

Open
wants to merge 1 commit into
base: 8.x
Choose a base branch
from

Conversation

michel-laterman
Copy link
Contributor

@michel-laterman michel-laterman commented Dec 19, 2024

Proposed commit message

Call tlscommon.SetInsecureDefaults from libbeat/cfgfile/cfgfile.go's init to avoid a breaking change.

Checklist

  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have made corresponding change to the default configuration files
  • I have added tests that prove my fix is effective or that my feature works
  • I have added an entry in CHANGELOG.next.asciidoc or CHANGELOG-developer.next.asciidoc.

Disruptive User Impact

N/A

Related Issues

@michel-laterman michel-laterman added backport release-note:skip The PR should be ignored when processing the changelog Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team labels Dec 19, 2024
@michel-laterman michel-laterman requested a review from a team as a code owner December 19, 2024 21:08
@michel-laterman michel-laterman requested review from belimawr and khushijain21 and removed request for a team December 19, 2024 21:08
@elasticmachine
Copy link
Collaborator

Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane)

@botelastic botelastic bot added needs_team Indicates that the issue/PR needs a Team:* label and removed needs_team Indicates that the issue/PR needs a Team:* label labels Dec 19, 2024
@@ -68,6 +69,7 @@ func Initialize() {
AddAllowedBackwardsCompatibleFlag("path.data")
_ = config.ConfigOverwriteFlag(nil, overwrites, "path.logs", "path.logs", "", "Logs path")
AddAllowedBackwardsCompatibleFlag("path.logs")
tlscommon.SetInsecureDefaults()
Copy link
Member

Choose a reason for hiding this comment

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

issue: this is gonna impact other apps that use beats as a library. Ideally this should be called by final products (e.g. metricbeat, filebeat, etc.). What do you think about moving this to GenRootCmdWithSettings ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Do you know if other products that use beats as a library also use tlscommon beside it?

Copy link
Member

Choose a reason for hiding this comment

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

unfortunately yes :(

apm-server is an example of this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport release-note:skip The PR should be ignored when processing the changelog Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants