mirror of
https://github.com/pomerium/pomerium.git
synced 2025-07-31 15:29:48 +02:00
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:
parent
32eee8c74e
commit
f44c85880b
11 changed files with 199 additions and 46 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue