Skip to content

Move SECRET_KEY out of Settings.py #5

MariaV requested to merge MariaV/gitlab-lobby:move_secret into main

Goal: Improve security by moving SECRET_KEY from settings.py to an outside file, src/settings.json.

Steps:

  • Added secrets.json inside of /src with a blank string for SECRET_KEY.
  • Updated settings.py with function (get_secrets), to read SECRET_KEY from settings.json and give exception if missing.
  • Updated README to reflect changes.
  • Added secrets.json to gitgnore.
Edited by MariaV

Merge request reports