I have a cluster and i was trying to add a fleet-server and then enroll one elastic-agent but i kinda stuck and could not make it work. I read the documentation and i have some questions which is not clear so i though i could find some answers here. First Lets star with what i have done. I have tried to follow One-way and mutual TLS certifications flow and Elastic Agent command reference but i could not make it work.
My understanding is as follow:
A: fleet-server configuration:
- fleet-server <-> es
-
--fleet-server-es-ca
: CA which validates certificate represented by ES. -
--fleet-server-es-cert
: cert which fleet server will represent to ES. -
--fleet-server-es-cert-key
: the key of--fleet-server-es-cert
. -
fleet-server-client-auth
: how to verify cert represented by ES. default isnone
.2.fleet-server <-> elastic-agent
-
--certificate-authorities
: CA which validates certificate represented by elastic-agent. -
--fleet-server-cert
: cert which fleet server will represent to elastic-agent. -
--fleet-server-cert-key
: the key of--fleet-server-cert
. -
--fleet-server-cert-key-passphrase
: the pass of--fleet-server-cert-key
.
B: elastic-agent
- elastic-agent <-> fleet-server
--certificate-authorities
: CA which validates certificate represented by elastic-server.--elastic-agent-cert
: certificate which elastic-agent with represent to elastic-server.--elastic-agent-cert-key
: the key of--elastic-agent-cert
.--elastic-agent-cert-key-passphrase
: the pass of--elastic-agent-cert-key
Question on section A-1, why there is no configuration for key passphraese for the --fleet-server-es-cert-key
? I guess it means when using PEM fomrat and not keystore the key can not have a password?
Question on section A-1, Does the fleet-server-client-auth
specify how to validate recieved certificate from both ES and elastic-agent?
Question: In the picture above why the --certificate-authorities
have two values : fleet-ca, agent-ca
. Just a TYPO?!
Question: The elastic agent itself is directly connected to elasticsearch, what are the prameters to secure that connection?
Question: if fleet-server is some sort of elastic-agent with some extra features, it does not mean if i want for example user system
integration on my fleet-server i have to set section B-1 parameters for the fleet-server?
I gues i have to say it is not clear for me what set of parmaters to be set on each fleet-server and elastic-agent to sercure, fleet-server <-> es, fleet-server <-> elastic-agent, elastic-agnet <-> es. The naming is a bit confusing.
also in the output setting three is a trusted_ca_finger_print
section what is the relation between that and --fleet-server-es-ca
or --fleet-server-es-ca-trusted-fingerprint
, what happens when both configuration is set? one in the output section and a different one ( --fleet-server-es-ca
or --fleet-server-es-ca-trusted-fingerprint
) while running install
command?