Skip to content

Comments

fix: move hardcoded SECRET_KEY to environment variable via python-dotenv#26

Open
adity0208 wants to merge 1 commit intoOSeMOSYS:masterfrom
adity0208:fix/move-secrets-to-env
Open

fix: move hardcoded SECRET_KEY to environment variable via python-dotenv#26
adity0208 wants to merge 1 commit intoOSeMOSYS:masterfrom
adity0208:fix/move-secrets-to-env

Conversation

@adity0208
Copy link

  • Add load_dotenv() call to API/app.py to read from .env file
  • Replace hardcoded SECRET_KEY '12345' with os.environ.get()
  • Add .env.example template with all configurable variables
  • python-dotenv was already a listed dependency (requirements.txt)

Fixes #25

- Add load_dotenv() call to API/app.py to read from .env file
- Replace hardcoded SECRET_KEY '12345' with os.environ.get()
- Add .env.example template with all configurable variables
- python-dotenv was already a listed dependency (requirements.txt)

Fixes OSeMOSYS#25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[SECURITY/STABILITY] Move hardcoded secrets and config to environment variables

1 participant