@@ -79,8 +79,6 @@ The following actions are possible and grouped based on the actions.
7979 The following vars are need in the scenario that Elastic Agent should automatically fetch its own token.
8080
8181 KIBANA_FLEET_HOST - kibana host to enable create enrollment token on [$KIBANA_HOST]
82- KIBANA_FLEET_USERNAME - kibana username to create enrollment token [$KIBANA_USERNAME]
83- KIBANA_FLEET_PASSWORD - kibana password to create enrollment token [$KIBANA_PASSWORD]
8482 FLEET_TOKEN_NAME - token name to use for fetching token from Kibana. This requires Kibana configs to be set.
8583 FLEET_TOKEN_POLICY_NAME - token policy name to use for fetching token from Kibana. This requires Kibana configs to be set.
8684
@@ -93,8 +91,6 @@ The following actions are possible and grouped based on the actions.
9391
9492 FLEET_SERVER_ENABLE - set to 1 enables bootstrapping of Fleet Server inside Elastic Agent (forces FLEET_ENROLL enabled)
9593 FLEET_SERVER_ELASTICSEARCH_HOST - elasticsearch host for Fleet Server to communicate with [$ELASTICSEARCH_HOST]
96- FLEET_SERVER_ELASTICSEARCH_USERNAME - elasticsearch username for Fleet Server [$ELASTICSEARCH_USERNAME]
97- FLEET_SERVER_ELASTICSEARCH_PASSWORD - elasticsearch password for Fleet Server [$ELASTICSEARCH_PASSWORD]
9894 FLEET_SERVER_ELASTICSEARCH_CA - path to certificate authority to use with communicate with elasticsearch [$ELASTICSEARCH_CA]
9995 FLEET_SERVER_ELASTICSEARCH_CA_TRUSTED_FINGERPRINT - The sha-256 fingerprint value of the certificate authority to trust
10096 FLEET_SERVER_ELASTICSEARCH_INSECURE - disables cert validation for communication with Elasticsearch
@@ -113,8 +109,6 @@ The following actions are possible and grouped based on the actions.
113109
114110 KIBANA_FLEET_SETUP - set to 1 enables the setup of Fleet in Kibana by Elastic Agent. This was previously FLEET_SETUP.
115111 KIBANA_FLEET_HOST - Kibana host accessible from fleet-server. [$KIBANA_HOST]
116- KIBANA_FLEET_USERNAME - kibana username to enable Fleet [$KIBANA_USERNAME]
117- KIBANA_FLEET_PASSWORD - kibana password to enable Fleet [$KIBANA_PASSWORD]
118112 KIBANA_FLEET_CA - path to certificate authority to use with communicate with Kibana [$KIBANA_CA]
119113 KIBANA_REQUEST_RETRY_SLEEP - specifies sleep duration taken when agent performs a request to kibana [default 1s]
120114 KIBANA_REQUEST_RETRY_COUNT - specifies number of retries agent performs when executing a request to kibana [default 30]
@@ -123,12 +117,8 @@ The following environment variables are provided as a convenience to prevent a l
123117be used when the same credentials will be used across all the possible actions above.
124118
125119 ELASTICSEARCH_HOST - elasticsearch host [http://elasticsearch:9200]
126- ELASTICSEARCH_USERNAME - elasticsearch username [elastic]
127- ELASTICSEARCH_PASSWORD - elasticsearch password [changeme]
128120 ELASTICSEARCH_CA - path to certificate authority to use with communicate with elasticsearch
129121 KIBANA_HOST - kibana host [http://kibana:5601]
130- KIBANA_USERNAME - kibana username [$ELASTICSEARCH_USERNAME]
131- KIBANA_PASSWORD - kibana password [$ELASTICSEARCH_PASSWORD]
132122 KIBANA_CA - path to certificate authority to use with communicate with Kibana [$ELASTICSEARCH_CA]
133123
134124
@@ -427,10 +417,7 @@ func buildFleetServerConnStr(cfg fleetServerConfig) (string, error) {
427417 if u .Path != "" {
428418 path += "/" + strings .TrimLeft (u .Path , "/" )
429419 }
430- if cfg .Elasticsearch .ServiceToken != "" {
431- return fmt .Sprintf ("%s://%s%s" , u .Scheme , u .Host , path ), nil
432- }
433- return fmt .Sprintf ("%s://%s:%s@%s%s" , u .Scheme , cfg .Elasticsearch .Username , cfg .Elasticsearch .Password , u .Host , path ), nil
420+ return fmt .Sprintf ("%s://%s%s" , u .Scheme , u .Host , path ), nil
434421}
435422
436423func kibanaSetup (cfg setupConfig , client * kibana.Client , streams * cli.IOStreams ) error {
@@ -485,8 +472,6 @@ func kibanaClient(cfg kibanaConfig, headers map[string]string) (*kibana.Client,
485472
486473 return kibana .NewClientWithConfigDefault (& kibana.ClientConfig {
487474 Host : cfg .Fleet .Host ,
488- Username : cfg .Fleet .Username ,
489- Password : cfg .Fleet .Password ,
490475 ServiceToken : cfg .Fleet .ServiceToken ,
491476 IgnoreVersion : true ,
492477 Transport : transport ,
0 commit comments