Skip to content

Commit

Permalink
fix(config): add default value for secret key
Browse files Browse the repository at this point in the history
- Set a default value for the secret key to prevent potential application errors during deployment.
- Ensure an empty default while emphasizing the need for a strong, unique key in production environments.
  • Loading branch information
laipz8200 committed Oct 9, 2024
1 parent 2363374 commit 2ae64c5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions api/configs/feature/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ class SecurityConfig(BaseSettings):
description="Secret key for secure session cookie signing."
"Make sure you are changing this key for your deployment with a strong key."
"Generate a strong key using `openssl rand -base64 42` or set via the `SECRET_KEY` environment variable.",
default="",
)

RESET_PASSWORD_TOKEN_EXPIRY_HOURS: PositiveInt = Field(
Expand Down

0 comments on commit 2ae64c5

Please sign in to comment.