-
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
Elastic Agent: (docker) jq: command not found #18406
Comments
Pinging @elastic/ingest-management (Team:Ingest Management) |
same here and it is blocking me so i started working on this |
Sorry, very surprised this change didn't just work. Looking at the reason for We should also add an integration test that does a basic smoke test of the agent docker container. |
i think enroll command should not generate any tokens or setup fleet, it was meant to purely using a token you retrieved from sysadmin make agent capable of communicating with fleet. there was a discussion about this process in some issue about initial trust i will try to find it |
@michalpristas This is correct, enroll should just make the trust from Agent to the remote Kibana instance. |
Any reference to that issue so I can read up on it? Seems like it would make the user experience better if we could allow a user to enroll an agent with user/pass. |
Please keep in mind not to remove entirely any important feature like setup or enrollment. We definitely need them in docker setup. |
Currently the Dockerfile has this:
I feel like we could condense this into a single command in the agent itself, which will allow proper unit testing and not relying on bash, curl, or jq.
If agent is already enrolled then it would skip the enrollment and we could add a |
@blakerouse in my opinion the agent should only work with kibana host and the enrollment token, and we should never give kibana username and password to the agent @mtojek in the docker setup can we add another container requirements for the agents, and this container will do the setup and get the enrollment token |
Being that you still have to pass the username and password to the container for it to enroll unless you have the specific token, I do not see what your preventing by allowing the username and password. The enroll command would just use the username and password to get the token and save the token and not the username or password. It's already doing the same thing it's just in bash, which is not unit tested or even currently integrated tested. |
Perhaps we need a third command here, something like
|
I still have some concerns about having |
I pulled the lastest Docker image for agent and it doesn't start properly:
The text was updated successfully, but these errors were encountered: