diff --git a/x-pack/elastic-agent/pkg/agent/cmd/enroll.go b/x-pack/elastic-agent/pkg/agent/cmd/enroll.go index a80a9abc22b..126161fa4c4 100644 --- a/x-pack/elastic-agent/pkg/agent/cmd/enroll.go +++ b/x-pack/elastic-agent/pkg/agent/cmd/enroll.go @@ -291,6 +291,7 @@ func enroll(streams *cli.IOStreams, cmd *cobra.Command, args []string) error { fPolicy, _ := cmd.Flags().GetString("fleet-server-policy") fHost, _ := cmd.Flags().GetString("fleet-server-host") fPort, _ := cmd.Flags().GetUint16("fleet-server-port") + fInternalPort, _ := cmd.Flags().GetUint16("fleet-server-internal-port") fCert, _ := cmd.Flags().GetString("fleet-server-cert") fCertKey, _ := cmd.Flags().GetString("fleet-server-cert-key") fInsecure, _ := cmd.Flags().GetBool("fleet-server-insecure-http") @@ -336,6 +337,7 @@ func enroll(streams *cli.IOStreams, cmd *cobra.Command, args []string) error { SpawnAgent: !fromInstall, Headers: mapFromEnvList(fHeaders), Timeout: fTimeout, + InternalPort: fInternalPort, }, } diff --git a/x-pack/elastic-agent/pkg/agent/cmd/enroll_cmd.go b/x-pack/elastic-agent/pkg/agent/cmd/enroll_cmd.go index 3a96a25330c..25365c9afe9 100644 --- a/x-pack/elastic-agent/pkg/agent/cmd/enroll_cmd.go +++ b/x-pack/elastic-agent/pkg/agent/cmd/enroll_cmd.go @@ -44,11 +44,13 @@ import ( ) const ( - maxRetriesstoreAgentInfo = 5 - waitingForAgent = "Waiting for Elastic Agent to start" - waitingForFleetServer = "Waiting for Elastic Agent to start Fleet Server" - defaultFleetServerHost = "0.0.0.0" - defaultFleetServerPort = 8220 + maxRetriesstoreAgentInfo = 5 + waitingForAgent = "Waiting for Elastic Agent to start" + waitingForFleetServer = "Waiting for Elastic Agent to start Fleet Server" + defaultFleetServerHost = "0.0.0.0" + defaultFleetServerPort = 8220 + defaultFleetServerInternalHost = "localhost" + defaultFleetServerInternalPort = 8221 ) var ( @@ -80,6 +82,7 @@ type enrollCmdFleetServerOption struct { PolicyID string Host string Port uint16 + InternalPort uint16 Cert string CertKey string Insecure bool @@ -91,6 +94,7 @@ type enrollCmdFleetServerOption struct { // enrollCmdOption define all the supported enrollment option. type enrollCmdOption struct { URL string `yaml:"url,omitempty"` + InternalURL string `yaml:"-"` CAs []string `yaml:"ca,omitempty"` CASha256 []string `yaml:"ca_sha256,omitempty"` Insecure bool `yaml:"insecure,omitempty"` @@ -306,7 +310,7 @@ func (c *enrollCmd) fleetServerBootstrap(ctx context.Context, persistentConfig m fleetConfig, err := createFleetServerBootstrapConfig( c.options.FleetServer.ConnStr, c.options.FleetServer.ServiceToken, c.options.FleetServer.PolicyID, - c.options.FleetServer.Host, c.options.FleetServer.Port, + c.options.FleetServer.Host, c.options.FleetServer.Port, c.options.FleetServer.InternalPort, c.options.FleetServer.Cert, c.options.FleetServer.CertKey, c.options.FleetServer.ElasticsearchCA, c.options.FleetServer.Headers, c.options.ProxyURL, @@ -401,6 +405,14 @@ func (c *enrollCmd) prepareFleetTLS() error { if c.options.URL == "" { return errors.New("url is required when a certificate is provided") } + + if c.options.FleetServer.InternalPort > 0 { + if c.options.FleetServer.InternalPort != defaultFleetServerInternalPort { + c.log.Warnf("Internal endpoint configured to: %d. Changing this value is not supported.", c.options.FleetServer.InternalPort) + } + c.options.InternalURL = fmt.Sprintf("%s:%d", defaultFleetServerInternalHost, c.options.FleetServer.InternalPort) + } + return nil } @@ -504,7 +516,7 @@ func (c *enrollCmd) enroll(ctx context.Context, persistentConfig map[string]inte serverConfig, err := createFleetServerBootstrapConfig( c.options.FleetServer.ConnStr, c.options.FleetServer.ServiceToken, c.options.FleetServer.PolicyID, - c.options.FleetServer.Host, c.options.FleetServer.Port, + c.options.FleetServer.Host, c.options.FleetServer.Port, c.options.FleetServer.InternalPort, c.options.FleetServer.Cert, c.options.FleetServer.CertKey, c.options.FleetServer.ElasticsearchCA, c.options.FleetServer.Headers, c.options.ProxyURL, c.options.ProxyDisabled, c.options.ProxyHeaders, @@ -516,6 +528,10 @@ func (c *enrollCmd) enroll(ctx context.Context, persistentConfig map[string]inte // no longer need bootstrap at this point serverConfig.Server.Bootstrap = false fleetConfig.Server = serverConfig.Server + // use internal URL for future requests + if c.options.InternalURL != "" { + fleetConfig.Client.Host = c.options.InternalURL + } } configToStore := map[string]interface{}{ @@ -836,7 +852,7 @@ func storeAgentInfo(s saver, reader io.Reader) error { func createFleetServerBootstrapConfig( connStr, serviceToken, policyID, host string, - port uint16, + port uint16, internalPort uint16, cert, key, esCA string, headers map[string]string, proxyURL string, @@ -865,6 +881,9 @@ func createFleetServerBootstrapConfig( if port == 0 { port = defaultFleetServerPort } + if internalPort == 0 { + internalPort = defaultFleetServerInternalPort + } if len(headers) > 0 { if es.Headers == nil { es.Headers = make(map[string]string) @@ -888,6 +907,7 @@ func createFleetServerBootstrapConfig( Host: host, Port: port, } + if policyID != "" { cfg.Server.Policy = &configuration.FleetServerPolicyConfig{ID: policyID} } @@ -905,6 +925,7 @@ func createFleetServerBootstrapConfig( if localFleetServer { cfg.Client.Transport.Proxy.Disable = true + cfg.Server.InternalPort = internalPort } if err := cfg.Valid(); err != nil { diff --git a/x-pack/elastic-agent/pkg/agent/configuration/fleet_server.go b/x-pack/elastic-agent/pkg/agent/configuration/fleet_server.go index 25298c6e2b5..425d899a55b 100644 --- a/x-pack/elastic-agent/pkg/agent/configuration/fleet_server.go +++ b/x-pack/elastic-agent/pkg/agent/configuration/fleet_server.go @@ -13,12 +13,13 @@ import ( // FleetServerConfig is the configuration written so Elastic Agent can run Fleet Server. type FleetServerConfig struct { - Bootstrap bool `config:"bootstrap" yaml:"bootstrap,omitempty"` - Policy *FleetServerPolicyConfig `config:"policy" yaml:"policy,omitempty"` - Output FleetServerOutputConfig `config:"output" yaml:"output,omitempty"` - Host string `config:"host" yaml:"host,omitempty"` - Port uint16 `config:"port" yaml:"port,omitempty"` - TLS *tlscommon.Config `config:"ssl" yaml:"ssl,omitempty"` + Bootstrap bool `config:"bootstrap" yaml:"bootstrap,omitempty"` + Policy *FleetServerPolicyConfig `config:"policy" yaml:"policy,omitempty"` + Output FleetServerOutputConfig `config:"output" yaml:"output,omitempty"` + Host string `config:"host" yaml:"host,omitempty"` + Port uint16 `config:"port" yaml:"port,omitempty"` + InternalPort uint16 `config:"internal_port" yaml:"internal_port,omitempty"` + TLS *tlscommon.Config `config:"ssl" yaml:"ssl,omitempty"` } // FleetServerPolicyConfig is the configuration for the policy Fleet Server should run on. diff --git a/x-pack/elastic-agent/pkg/agent/program/supported.go b/x-pack/elastic-agent/pkg/agent/program/supported.go index c655b239402..70e7c6f716f 100644 --- a/x-pack/elastic-agent/pkg/agent/program/supported.go +++ b/x-pack/elastic-agent/pkg/agent/program/supported.go @@ -25,7 +25,7 @@ func init() { // spec/metricbeat.yml // spec/osquerybeat.yml // spec/packetbeat.yml - unpacked := packer.MustUnpack("eJzEell3qziX9v33M+r26+6X4ThV9FrvhXGKyQ4p41gSukPCAdsSdsV4gF7933tJDAbsJCenpouzciyEtLW1h2c/m//56bBf0X9Fe/6fh9XbafX2XwVnP/33T4RbOX7ZJXNg+jPgM5phRpP9hsD5g2tbZ7JQS4w8DSN3GiJPiSBOQ/3us4yWuwSed4k7cfNg4R7ciZeHcJRiDeQYjpQZB8cQegcM50bseCpeuIfJepy4a9Vy1+fE5b01j9i2lBAYZex4LIRq+fn78QbpJqPcZySbG56Tm8tf1ZcAeDAA3mugGM683F2eHk3DTfbxhINv1DaK2AZbpKksdrx9qD89uNZh6k7G6xCZ+QzVOlm7hwlTpjQDB4yeHsS+s4W5Ibo5QnpwQtplT/W5HHcn48S1mYKh8uDa+IAhUNpxJzg9r809yUw1dp6mcmwyTog2eg0144j5ZV/pd3Qi+lg8z11bTenjrp1LbUuJHncJ5heG0fw63pGtGZstzAJD9RRz8BppYPSc7Npn1T/zDaOtuM9NqIGSqkZKbSbn/tA6jscqnbIjPnfnKAnlICc6ZkjL2erlep7mn1x3bQp7OcbjnXwHc/YN6b5COUjJyy5Z6UqtE7wnTsAoM7QQ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vy6CX1+WYLncscchHrUvE0ZBvoK+DEwz7p8JxwecjwQYl+2FoXO9z8V2dU05EBeYR5ZxJqzmO4LXUEsSwiPhlKXBp00rYxjQd2oldsI2+FIbt+QNBKit7p5eZL3XOE8dUJBu5kTzGdX9c+MwtghQ8szHFfSVEjSWwDCEWGnq/obzbd76kPUblbpR2ffUlfVYLU8lZwvo9IFri198h9MLNeOyBkZC7Ot73Kncu7VnCyzcnf1ENOPSDg4YJVuMTEUC8LThJWUSWlWcbuMrE2lPHY5WJIyerApRjeMK+Uq3PVVzn607Sp9+9By3O+SAywD2N/Oz352wBrgvypcPrvXlNM2N2jcLb/xhi/Hf3pb8DPeM9OgQ2ckr5SDFKLl8JxedCx9Hm/gfy8erTO5fN1/epot7HZXriD3iB3cStIFACaDLXNFeu+b6u6Ch7ivY6hk74Fjfj/RZmDGkWTnl1mjQjps40QPdpa00MuN2G/XbHG7ruc9wxn0S4W/lmeV3AVj/dq66x7F3c4iVilwpcwn/rSaNqj7U7nt6QJ28KZ/t25aNc6IpffxxGsoNBBo76TMdX276hkPFVdbHNbVeGnJnMwDkPs859vBB5Qvop3hHyTU2wO87ecf98Y/T+i0fQn26f40gyNfdzvmZ6paKkTfqd88/0Tn/POJrd8GhdZLQHYJTNGmtj2Q07c59t2PuRZ/oandeipPndp7OpK+fD1+EMwqKAKPpbvqnoDJxm38pIrt14f/C7lNjS9/ZbfhOD+5m4w798ReVXEMvxXRfchHzEsOd/G64E1o8P4Zpu/Q6rOhuPcR5LG1ru9KA0im9HBGyMxbZvdIrp1lQ1njfKLvEnLu5Cobqhci3Iu+dVrY1ctWSf7WPX1vpzn233ErRO45Fu2f+cd7jJ/mFtvF+wC1cQui/4QFubYhf6Mrmfic33udneylpOMX83a2s6S///x//CgAA///dB29r") SupportedMap = make(map[string]Spec) for f, v := range unpacked { diff --git a/x-pack/elastic-agent/spec/fleet-server.yml b/x-pack/elastic-agent/spec/fleet-server.yml index abb4ad4a502..ea7af0e3b89 100644 --- a/x-pack/elastic-agent/spec/fleet-server.yml +++ b/x-pack/elastic-agent/spec/fleet-server.yml @@ -32,6 +32,7 @@ rules: selectors: - fleet.server.host - fleet.server.port + - fleet.server.internal_port - fleet.server.ssl path: inputs.0.server