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

Exposed API Key #13

Open
nahatx opened this issue May 13, 2023 · 0 comments
Open

Exposed API Key #13

nahatx opened this issue May 13, 2023 · 0 comments

Comments

@nahatx
Copy link

nahatx commented May 13, 2023

openai.api_key = "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"

Howdy,

Do not expose your API key in your source code.

Instead, consider storing it an environment variable, or using a key management service, or even software such as Vault.
Then be sure to rotate your API key after it is safely stored, or else it may still be recoverable in your commit history.

Also, see Openai's best practices page for api keys for more details:
https://help.openai.com/en/articles/5112595-best-practices-for-api-key-safety

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