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

Adjust Agent startup command to Ubuntu base image #5253

Merged
merged 4 commits into from
Jan 18, 2022

Conversation

pebrc
Copy link
Collaborator

@pebrc pebrc commented Jan 17, 2022

Fixes #5250

As stated in the title this adjusts the CA trust script we are running on startup when Agent is associated with an Elasticsearch instance to the new Ubuntu base image Agent is using in 8.x

@pebrc pebrc added >bug Something isn't working v2.0.0 labels Jan 17, 2022
@pebrc pebrc requested a review from david-kow January 17, 2022 16:32
Copy link
Contributor

@naemono naemono left a comment

Choose a reason for hiding this comment

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

One question.

func trustCAScript(version version.Version, caPath string) string {
sharedCAPath := "/etc/pki/ca-trust/source/anchors/"
updateCmd := "update-ca-trust"
if version.Major == 8 {
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we want >= 8? Otherwise, we'd have to update this again when work began on v9.

Copy link
Contributor

Choose a reason for hiding this comment

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

Well, I guess it's a question of whether we think that the next version is going to go back to CentOS style path/cmd, as that's how it will currently be handled.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

No, this is a good observation. Even if there is not other major after 8 we should not box ourselves in here.

@pebrc pebrc merged commit f703178 into elastic:main Jan 18, 2022
fantapsody pushed a commit to fantapsody/cloud-on-k8s that referenced this pull request Feb 7, 2023
The base image for Elastic Agent changes from CentOS to Ubuntu in 8.0.0. This adjusts the script that updates the certificates in the image to trust the Elasticsearch certificates the operator generates.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug Something isn't working v2.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Elastic Agent has to trust CA of the Elasticsearch used as output
2 participants