Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Public Key Not Ignored by Git Warning #630

Open
fishcharlie opened this issue Aug 4, 2022 · 0 comments
Open

Public Key Not Ignored by Git Warning #630

fishcharlie opened this issue Aug 4, 2022 · 0 comments

Comments

@fishcharlie
Copy link

I have a public key (with a prefix of pk_live_) in a file not in my .gitignore file. This should be perfectly safe because by its name it's a public key. But I get the following warning:

This Stripe API Key is in a file not ignored by git. For better security, consider using a .env file. See https://stripe.com/docs/keys#safe-keys for more advice.

If you navigate to that URL, the first thing it says is: Your secret API key, so I'm not sure why this extension is telling me to protect a key that is public (not secret) in nature.

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

No branches or pull requests

1 participant