make more insecure options configurable and change insecure defaults from true to false
This commit is contained in:
@@ -189,6 +189,13 @@ func ServerWithConfig(cfg *config.Config) []cli.Flag {
|
||||
EnvVars: []string{"REVA_GATEWAY"},
|
||||
Destination: &cfg.Reva.Address,
|
||||
},
|
||||
&cli.BoolFlag{
|
||||
Name: "reva-gateway-insecure",
|
||||
Value: flags.OverrideDefaultBool(cfg.Reva.Insecure, false),
|
||||
Usage: "allow insecure communication to REVA gateway endpoint",
|
||||
EnvVars: []string{"REVA_GATEWAY_INSECURE"},
|
||||
Destination: &cfg.Reva.Insecure,
|
||||
},
|
||||
&cli.BoolFlag{
|
||||
Name: "insecure",
|
||||
Value: flags.OverrideDefaultBool(cfg.InsecureBackends, false),
|
||||
@@ -208,7 +215,7 @@ func ServerWithConfig(cfg *config.Config) []cli.Flag {
|
||||
},
|
||||
&cli.BoolFlag{
|
||||
Name: "oidc-insecure",
|
||||
Value: flags.OverrideDefaultBool(cfg.OIDC.Insecure, true),
|
||||
Value: flags.OverrideDefaultBool(cfg.OIDC.Insecure, false),
|
||||
Usage: "OIDC allow insecure communication",
|
||||
EnvVars: []string{"PROXY_OIDC_INSECURE"},
|
||||
Destination: &cfg.OIDC.Insecure,
|
||||
|
||||
Reference in New Issue
Block a user