Skip to content
This repository was archived by the owner on Jan 23, 2024. It is now read-only.
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

@jamiesmith

Description

@jamiesmith

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!

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions