Skip to content
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

Allow to overwrite the auth secret key with env var #480

Conversation

josecelano
Copy link
Member

You can overwrite the auth::secret_key in the config file:

[auth]
email_on_signup = "Optional"
min_password_length = 6
max_password_length = 64
secret_key = "MaxVerstappenWC2021"

With an env var: TORRUST_INDEX_AUTH_SECRET_KEY.

That will make it easier to inject secrets when you use docker without modifying the configuration file: config.toml.

You can overwrite the `auth::secret_key` in the config file:

```toml
[auth]
email_on_signup = "Optional"
min_password_length = 6
max_password_length = 64
secret_key = "MaxVerstappenWC2021"
```

With an env var: `TORRUST_INDEX_AUTH_SECRET_KEY`.

That will make it easier to inject secrets when you use docker without
modifying the configuration file: `config.toml`.
@josecelano
Copy link
Member Author

ACK 9d8cf7b

@josecelano josecelano merged commit 465c853 into torrust:develop Feb 9, 2024
10 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Continuous Integration Workflows and Automation Enhancement / Feature Request Something New
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow to overwrite the auth secret_key = "MaxVerstappenWC2021" with env var
1 participant