Monna9505 / SS-Website

0 stars 0 forks source link

Move Sensitive Data to .env File #6

Open dimitar-stoev opened 1 year ago

dimitar-stoev commented 1 year ago

Currently, we have sensitive data, such as API keys and database credentials, hard-coded in our application's source code. This creates a security risk as this information can be accessed by anyone who has access to the codebase.

To address this security concern, we need to move this sensitive data to a separate .env file. The .env file will be ignored by version control systems like Git, so our sensitive data will remain secure.

We need to update the application code to read the sensitive data from the .env file instead of being hard-coded. We can use a package like dotenv to manage the .env file and access the environment variables in our code.

This change will ensure that our sensitive data is not accessible to unauthorized users and will improve the overall security of our application.

Tasks:

Thanks!