Document secrets/.env usage #281

Closed
opened 2026-04-14 09:15:29 +00:00 by a24vinla · 5 comments
Collaborator

We need to create a wiki page documenting how, why and when to use the secrets/.env file for those who haven't used it previously, since it hasn't been brought up much in our program.

Add documentation to this wiki page: Secrets and .env.
Feel free to change name of wiki page.

Parent Issue: #11
Related Issue: #239

We need to create a wiki page documenting how, why and when to use the secrets/.env file for those who haven't used it previously, since it hasn't been brought up much in our program. Add documentation to this wiki page: [Secrets and .env](https://git.webug.se/Andras/BoundlessFlowCampus2K/wiki/Secrets-and-.env). Feel free to change name of wiki page. Parent Issue: #11 Related Issue: #239
Collaborator

The documentation has been added to wiki

The documentation has been added to wiki
Collaborator

The structure is clear and follows a logical flow through out the document. With steps explaining what a .env file is and then explaining how it works within the project. this makes the content easy to follow and understand.

However an issue is that the page basically only contains information on how it works and is used. So the page would benefit from explaining why we are using this approach and When we should use it. This will hopefully help make the page slightly more beginner-friendly and easier to understand for developers who may not be familiar with .env.

The structure is clear and follows a logical flow through out the document. With steps explaining what a .env file is and then explaining how it works within the project. this makes the content easy to follow and understand. However an issue is that the page basically only contains information on **how** it works and is used. So the page would benefit from explaining **why** we are using this approach and **When** we should use it. This will hopefully help make the page slightly more beginner-friendly and easier to understand for developers who may not be familiar with .env.
Collaborator

Why use an .env file
We use an .env file to separate configuration values from the code.

  • This keeps sensitive data out of the code
  • It improves security since the values are not pushed to the repository
  • It allows for flexibility as values can be updated without changing the code

When to use .env file

  • An .env file can be used when working with credentials or other sensitive data.
  • It's also useful when values need to change between different environments e.g when each developer uses their own local configuration.
Why use an .env file We use an .env file to separate configuration values from the code. - This keeps sensitive data out of the code - It improves security since the values are not pushed to the repository - It allows for flexibility as values can be updated without changing the code When to use .env file - An .env file can be used when working with credentials or other sensitive data. - It's also useful when values need to change between different environments e.g when each developer uses their own local configuration.
Collaborator

I will update wiki with this when the review is done

I will update wiki with this when the review is done
Collaborator

Great job.

The update clearly addresses the missing context from the original documentation. And the page now clearly explains what an .env file is, how it works, why its used and when to use it.

Therefore I believe that the documentation is now complete and fit for use.

Great job. The update clearly addresses the missing context from the original documentation. And the page now clearly explains what an .env file is, **how it works, why its used and when to use it.** Therefore I believe that the documentation is now complete and fit for use.
Sign in to join this conversation.
No milestone
No project
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Andras/BoundlessFlowCampus2K#281
No description provided.