add private key pattern to .gitignore and remove private_key.pem #188
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Purpose
It's crucial to never store private keys, such as the one in private_key.pem, in a public GitHub repository or any publicly accessible location. Doing so can expose sensitive information and compromise the security of your systems.
To use this key in your project securely, consider the following best practices:
Use Environment Variables: Store the private key in an environment variable and load it in your application at runtime.
Use a Secret Manager: Utilize a secure secret management service like Azure Key Vault, AWS Secrets Manager, or HashiCorp Vault to store and retrieve the key securely.
Add to .gitignore: Ensure that private_key.pem is listed in your .gitignore file to prevent accidental commits.
Audit Your Repository: If this key has already been committed to a repository, even temporarily, consider it compromised. Revoke it immediately and generate a new one.
If you need assistance implementing any of these steps, feel free to reach out!
Does this introduce a breaking change?
Pull Request Type
What kind of change does this Pull Request introduce?