This repository was archived by the owner on Jan 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 67
This repository was archived by the owner on Jan 23, 2024. It is now read-only.
Elastic agent fails in AIT when TLS is enabled #1139
Copy link
Copy link
Open
Labels
Team:Elastic-AgentLabel for the Agent teamLabel for the Agent teampriority:mediumImportant work, but not urgent or blocking.Important work, but not urgent or blocking.requested-by:AgentRequested by the Agent teamRequested by the Agent teamsize:Sless than 1 dayless than 1 day
Description
Certain parts of alerting and fleet require TLS to be enabled to work, and when it is the startup of the Elastic Agent container fails with this error:
Kibana Fleet setup failed: http POST request to http://kibana:5601/api/fleet/setup fails: fail to execute the HTTP POST request: Post "http://kibana:5601/api/fleet/setup": EOF. Response:
This is (essentially) the command that I use to start up my environment with TLS enabled for the stack:
./scripts/compose.py start \
--with-opbeans-dotnet01 \
--with-opbeans-go01 \
--with-opbeans-java01 \
--with-opbeans-node01 \
--with-opbeans-python01 \
--with-opbeans-ruby01 \
--with-elastic-agent \
--elasticsearch-enable-tls \
--kibana-enable-tls \
--opbeans-elasticsearch-url https://elasticsearch:9200 \
--elasticsearch-heap 16g \
--all \
7.13.0
Notice that I override the --opbeans-elasticsearch-url in there. We likely need a similar kind of --elastic-agent-kibana-url with that, and under the covers maybe need to override the certs and CA, similar to the APM server, here's a partial snippet from the generated compose file:
"apm-server.kibana.ssl.certificate_authorities=[\"/usr/share/apm-server/config/certs/stack-ca.crt\"]"
Thanks!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Team:Elastic-AgentLabel for the Agent teamLabel for the Agent teampriority:mediumImportant work, but not urgent or blocking.Important work, but not urgent or blocking.requested-by:AgentRequested by the Agent teamRequested by the Agent teamsize:Sless than 1 dayless than 1 day
Type
Fields
Give feedbackNo fields configured for issues without a type.