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

Elastic Agent should log when current configuration overrides configured environment variables #6084

Open
strawgate opened this issue Nov 19, 2024 · 1 comment
Labels
Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team

Comments

@strawgate
Copy link
Contributor

Describe the enhancement:
When a user deploys Elastic Agent and configures Fleet enrollment using environment vars (common w/ Kubernetes), the Elastic Agent pulls the environment variables into local state and from that point on ignores environment variables.

This leads to some confusing behavior where a customer makes a mistake in providing the fleet URL or enrollment token, deploys the agent, sees the issue, fixes the issue, but the deployment continues to use the old values.

It would be nice if Elastic Agent would log that the provided environment variables do not match the current configuration and that the environment variables are ignored. Ideally we'd mention how to clear the current configuration by wiping the state.

Related to #3586 and https://discuss.elastic.co/t/agent-fleet-url-not-taking-what-is-in-the-yaml-config/370278/13

@pierrehilbert pierrehilbert added the Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team label Nov 20, 2024
@elasticmachine
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team
Projects
None yet
Development

No branches or pull requests

3 participants