-
-
Notifications
You must be signed in to change notification settings - Fork 964
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setting up a OIDC secrets via environment variables #1535
Comments
You could try to JSON encode everything below |
Nope. It doesn't seem to work. |
If you want to investigate, the problem is probably somewhere around here: https://github.com/ory/x/blob/master/configx/koanf_env.go |
Will take a look. But I think it might need some substantial work to make it happen. |
Yeah that's quite possible. But it's also possible that it just needs a few lines of code to fix (but quite some time to understand what's going on) :) |
Not a huge success ory/x#374 but some progress. |
Have you tried if ory/x#374 works in Ory Kratos as intended? If so, we can bump ory/x here and the close this :) |
Yes it works. However it is far from optimal. It forces anyone to keep the whole |
Ok, sounds good! |
Hm, am I missing something ? It keeps giving me
|
@Mautriz Works just fine in our setup. You are sure this variable is properly escaped? '"' can be tricky in ENV variables/JSON. |
This is the Environment I use |
I don't think this is released yet which is probably the problem here. |
Closes ory/kratos#1535 Closes ory/kratos#1792 Closes ory/kratos#1801
Closes ory/kratos#1535 Closes ory/kratos#1792 Closes ory/kratos#1801
Describe the bug
This is the follow up on #1186. Right now it seems there is no way to properly define Kratos configuration and separate secrets via environment variables. There seems to be mention of env variable
SELFSERVICE_METHODS_OIDC_CONFIG_PROVIDERS
however I could not make it work properly using the following variable:SELFSERVICE_METHODS_OIDC_CONFIG_PROVIDERS_0_CLIENT_SECRET
Reproducing the bug
Steps to reproduce the behavior:
client_id
andclient_secrets
Server logs
Expected behavior
To follow best practices it would be really nice to be able to override those variables using environment variables and avoid putting the whole configuration into secret storage.
The text was updated successfully, but these errors were encountered: