Merge pull request #3744 from wkloucek/idp-env-secrets

expose IDP secret configuration via environment variables
This commit is contained in:
Willy Kloucek
2022-05-09 13:36:04 +02:00
committed by GitHub
2 changed files with 8 additions and 2 deletions

View File

@@ -0,0 +1,6 @@
Bugfix: Make IDP secrets configurable via environment variables
We've fixed the configuration options of the IDP to make the IDP secrets again
configurable via environment variables.
https://github.com/owncloud/ocis/pull/3744

View File

@@ -86,7 +86,7 @@ type Settings struct {
AllowClientGuests bool `yaml:"allow_client_guests" env:"IDP_ALLOW_CLIENT_GUESTS"`
AllowDynamicClientRegistration bool `yaml:"allow_dynamic_client_registration" env:"IDP_ALLOW_DYNAMIC_CLIENT_REGISTRATION"`
EncryptionSecretFile string `yaml:"encrypt_secret_file" env:"IDP_ENCRYPTION_SECRET"`
EncryptionSecretFile string `yaml:"encrypt_secret_file" env:"IDP_ENCRYPTION_SECRET_FILE"`
Listen string
@@ -101,7 +101,7 @@ type Settings struct {
SigningKid string `yaml:"signing_kid" env:"IDP_SIGNING_KID"`
SigningMethod string `yaml:"signing_method" env:"IDP_SIGNING_METHOD"`
SigningPrivateKeyFiles []string `yaml:"signing_private_key_files"` // TODO: is this even needed?
SigningPrivateKeyFiles []string `yaml:"signing_private_key_files" env:"IDP_SIGNING_PRIVATE_KEY_FILES"`
ValidationKeysPath string `yaml:"validation_keys_path" env:"IDP_VALIDATION_KEYS_PATH"`
CookieBackendURI string