Skip to content

Commit

Permalink
Merge pull request #3744 from wkloucek/idp-env-secrets
Browse files Browse the repository at this point in the history
expose IDP secret configuration via environment variables
  • Loading branch information
wkloucek authored May 9, 2022
2 parents e028632 + f2e44c6 commit dedd522
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions changelog/unreleased/fix-configure-idp-secrets-env.md
Original file line number Diff line number Diff line change
@@ -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
4 changes: 2 additions & 2 deletions extensions/idp/pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand Down

0 comments on commit dedd522

Please sign in to comment.