Skip to content

Conversation

JosephSemrai
Copy link

Changed config file to get the server secret key from an environment variable.

Description

Used the os module in the Bassa core config Python file to grab the BASSA_SERVER_KEY environment variable.

Motivation and Context

This solves a major problem with security as most configurations and instances of Bassa might not change this default SERVER_SECRET_KEY as the project will work without this configuration since it is hard coded.

How Has This Been Tested?

Ran the project.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@kmehant
Copy link
Collaborator

kmehant commented Dec 25, 2019

Please squash your commits :)

@kmehant kmehant requested a review from JaDogg December 25, 2019 03:47
Fix Codacy errors

Use os.environ.get

Change reference to string
@JosephSemrai JosephSemrai requested a review from kmehant January 1, 2020 18:52
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.

3 participants