Giter Site home page Giter Site logo

Remove .env file about weg-li HOT 5 CLOSED

levino avatar levino commented on July 29, 2024
Remove .env file

from weg-li.

Comments (5)

phoet avatar phoet commented on July 29, 2024

Those are valid app credentials for local development.

from weg-li.

levino avatar levino commented on July 29, 2024

I do not understand: These keys are used to enable oauth signup with for example github. These keys are valid for some kind of "testing app" in github, I guess. Which one is it? It should have some kind of public website like other apps. If someone would create a fake weg.li website for some reason, maybe users would not see that they are logging in with the testing app. I think it is never good to publicly share something that is marked as "secret". Even if: Committing a .env file is dangerous imo, because eventually someone will try to debug some production bug and adjust these values in the file. By accident they might then commit the changes and publish them. Having this file under source control is asking for trouble imo. I think it should be deleted and gitignored. Then you can create one locally with this data. Anyone else who wants to work on the logins just needs to create their own apps in github, google, etc. Piece of cake but danger removed. If the file (the environment variables) are not present, just disable the login with the respective services.

from weg-li.

levino avatar levino commented on July 29, 2024

Maybe also https://www.dotenv.org/security/ could be interesting...

from weg-li.

phoet avatar phoet commented on July 29, 2024

Well, I disagree

from weg-li.

levino avatar levino commented on July 29, 2024

Okay. I accept. I suggest to keep this issue closed then, if that is your decision. As a final remark I would like to highlight the recommendation of the dotenv project against committing .env files. Nevertheless this is not a critical issue as of now and for me the matter can be closed. Since you reopened the issue (and I do not really understand why), I let you the honors to close it again, if you want to.

from weg-li.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.