Skip to content

Why is the .env file tracked in git? #2649

@Exadra37

Description

@Exadra37

The .env is widely used across all kinds of software projects and is well known to be used to configure sensitive information, like secrets, and tokens to third party services, etc.

I know that at the moment the .env file is not holding any sensitive data, but developers deploying Appwrite on their own may end-up using the .env file to store sensitive data, therefore they may commit it to their own forks and make it public accidentally. The extent of the damage that this can cause will depend on the type of info leaked, that may lead or not to financial losses or abuse of other systems.

As a Developer Advocate for security I would recommend to add the .env file to .gitignore and create instead a .env.example file that could then be copied when deploying Appwrite for the first time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions