mirror of
https://github.com/openfaas/faas.git
synced 2025-06-21 14:23:25 +00:00
Updated default secret mount path value
This changes updates the secret mount path default value to /var/openfaas/secrets at serveral places. It has been changed from /run/secrets/ to /var/openfaas/secrets after version 0.8.2 Signed-off-by: Vivek Singh <vivekkmr45@yahoo.in>
This commit is contained in:
@ -55,4 +55,4 @@ The gateway can be configured through the following environment variables:
|
||||
| `direct_functions` | `true` or `false` - functions are invoked directly over overlay network without passing through provider |
|
||||
| `direct_functions_suffix` | Provide a DNS suffix for invoking functions directly over overlay network |
|
||||
| `basic_auth` | Set to `true` or `false` to enable embedded basic auth on the /system and /ui endpoints (recommended) |
|
||||
| `secret_mount_path` | Set a location where you have mounted `basic-auth-user` and `basic-auth-password`, default: `/run/secrets/`. |
|
||||
| `secret_mount_path` | Set a location where you have mounted `basic-auth-user` and `basic-auth-password`, default: `/var/openfaas/secrets/`. |
|
||||
|
@ -109,7 +109,7 @@ func (ReadConfig) Read(hasEnv HasEnv) GatewayConfig {
|
||||
|
||||
secretPath := hasEnv.Getenv("secret_mount_path")
|
||||
if len(secretPath) == 0 {
|
||||
secretPath = "/run/secrets/"
|
||||
secretPath = "/var/openfaas/secrets/"
|
||||
}
|
||||
cfg.SecretMountPath = secretPath
|
||||
|
||||
|
@ -210,7 +210,7 @@ func TestRead_BasicAuthDefaults(t *testing.T) {
|
||||
t.Fail()
|
||||
}
|
||||
|
||||
wantSecretsMount := "/run/secrets/"
|
||||
wantSecretsMount := "/var/openfaas/secrets/"
|
||||
if config.SecretMountPath != wantSecretsMount {
|
||||
t.Logf("config.SecretMountPath, want: %s, got: %s\n", wantSecretsMount, config.SecretMountPath)
|
||||
t.Fail()
|
||||
|
Reference in New Issue
Block a user