-
Notifications
You must be signed in to change notification settings - Fork 525
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
compose: Use service tokens for fleet-server
#6959
compose: Use service tokens for fleet-server
#6959
Conversation
This patch updates the current `fleet-server` container to use a custom entrypoint which creates a service token and uses it. This is necessary since support to authenticate against Elasticsearch using username / password authentication has been removed from `8.0` onwards. Additionally, the docker-compose file has been updated to wait for the `fleet-server` container to be healthy before exiting. Signed-off-by: Marc Lopez Rubio <[email protected]>
💚 Build Succeeded
Expand to view the summary
Build stats
Test stats 🧪
🤖 GitHub commentsTo re-run your PR in the CI, just comment with:
|
/test |
The TBS system test is failing due to elastic/fleet-server#1048 |
Signed-off-by: Marc Lopez Rubio <[email protected]>
There's a pending change on the Elastic Agent that would allow us to continue using user/password in the container, the Elastic Agent itself would generate the service token and pass it down: elastic/beats#29651 |
@marclop the linked PR in beats has been merged. My understanding is that the container setup still needs to use username+password for the setup to be able to receive a service token with correct privileges. Is this change here needed then? |
@simitt We are good to close, thanks for the ping. |
Motivation/summary
This patch updates the current
fleet-server
container to use a customentrypoint which creates a service token and uses it. This is necessary
since support to authenticate against Elasticsearch using username /
password authentication has been removed from
8.0
onwards.Additionally, the docker-compose file has been updated to wait for the
fleet-server
container to be healthy before exiting.Checklist
N/A