mirror of
https://github.com/pomerium/pomerium.git
synced 2025-07-31 07:19:16 +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
|
@ -316,7 +316,6 @@ func TestOptionsFromViper(t *testing.T) {
|
|||
DataBrokerStorageType: "memory",
|
||||
EnvoyAdminAccessLogPath: os.DevNull,
|
||||
EnvoyAdminProfilePath: os.DevNull,
|
||||
EnvoyAdminAddress: "127.0.0.1:9901",
|
||||
},
|
||||
false,
|
||||
},
|
||||
|
@ -337,7 +336,6 @@ func TestOptionsFromViper(t *testing.T) {
|
|||
DataBrokerStorageType: "memory",
|
||||
EnvoyAdminAccessLogPath: os.DevNull,
|
||||
EnvoyAdminProfilePath: os.DevNull,
|
||||
EnvoyAdminAddress: "127.0.0.1:9901",
|
||||
},
|
||||
false,
|
||||
},
|
||||
|
@ -414,7 +412,7 @@ func Test_AutoCertOptionsFromEnvVar(t *testing.T) {
|
|||
cleanup func()
|
||||
}
|
||||
|
||||
var tests = map[string]func(t *testing.T) test{
|
||||
tests := map[string]func(t *testing.T) test{
|
||||
"ok/simple": func(t *testing.T) test {
|
||||
envs := map[string]string{
|
||||
"AUTOCERT": "true",
|
||||
|
@ -689,6 +687,7 @@ func TestOptions_GetOauthOptions(t *testing.T) {
|
|||
require.NoError(t, err)
|
||||
assert.Equal(t, u.Hostname(), oauthOptions.RedirectURL.Hostname())
|
||||
}
|
||||
|
||||
func TestOptions_GetAllRouteableGRPCDomains(t *testing.T) {
|
||||
opts := &Options{
|
||||
AuthenticateURLString: "https://authenticate.example.com",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue