config: disable envoy admin by default, expose stats via envoy route (#3684)

config: disable envoy admin by default, expose stats via envoy route (#3677)

Co-authored-by: Caleb Doxsey <cdoxsey@pomerium.com>
This commit is contained in:
backport-actions-token[bot] 2022-10-18 16:31:56 -06:00 committed by GitHub
parent 32eee8c74e
commit f44c85880b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 199 additions and 46 deletions

View file

@ -22,22 +22,14 @@ func TestBuilder_BuildBootstrapAdmin(t *testing.T) {
testutil.AssertProtoJSONEqual(t, `
{
"address": {
"socketAddress": {
"address": "127.0.0.1",
"portValue": 9901
"pipe": {
"mode": 384,
"path": "`+envoyAdminAddressPath+`"
}
}
}
`, adminCfg)
})
t.Run("bad address", func(t *testing.T) {
_, err := b.BuildBootstrapAdmin(&config.Config{
Options: &config.Options{
EnvoyAdminAddress: "xyz1234:zyx4321",
},
})
assert.Error(t, err)
})
}
func TestBuilder_BuildBootstrapLayeredRuntime(t *testing.T) {