From c8579db3d6af204b78dba1b77c0ad70b8f491f75 Mon Sep 17 00:00:00 2001 From: Pier-Hugues Pellerin Date: Mon, 13 Jul 2020 16:52:58 -0400 Subject: [PATCH] [Elastic Agent] Trust exchange endpoint must bind to 127.0.0.1 (#19861) Change the address bind from 0.0.0.0 (all) to 127.0.0.1. (cherry picked from commit 64bf7fc4e599fcf9d421d794b306507ef0616ba8) --- x-pack/elastic-agent/pkg/core/plugin/service/app.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/elastic-agent/pkg/core/plugin/service/app.go b/x-pack/elastic-agent/pkg/core/plugin/service/app.go index 0832312053a..12a5c518435 100644 --- a/x-pack/elastic-agent/pkg/core/plugin/service/app.go +++ b/x-pack/elastic-agent/pkg/core/plugin/service/app.go @@ -305,7 +305,7 @@ func (a *Application) cleanUp() { } func (a *Application) startCredsListener() error { - lis, err := net.Listen("tcp", fmt.Sprintf(":%d", a.credsPort)) + lis, err := net.Listen("tcp", fmt.Sprintf("127.0.0.1:%d", a.credsPort)) if err != nil { return errors.New(err, "failed to start connection credentials listener") }