32 lines
982 B
Plaintext
32 lines
982 B
Plaintext
---
|
|
title: Best Practices for Users
|
|
sidebarTitle: Best Practices
|
|
description: Recommendations for using Context7 securely across credentials, repository access, and network usage
|
|
---
|
|
|
|
These recommendations cover how to use Context7 securely across credentials, repository access, and network usage.
|
|
|
|
## Secure Your API Keys
|
|
|
|
- Never commit API keys to version control
|
|
- Use environment variables for key storage
|
|
- Rotate keys regularly
|
|
- Use different keys for different environments
|
|
- Revoke unused or compromised keys immediately
|
|
|
|
## Private Repositories
|
|
|
|
For private repository access:
|
|
|
|
- Only grant minimum required permissions
|
|
- Use dedicated API keys for private repos
|
|
- Regularly audit access permissions
|
|
- Consider using GitHub Apps with fine-grained permissions
|
|
|
|
## Network Security
|
|
|
|
- Use HTTPS for all API communications (enforced)
|
|
- Configure proxy settings securely if behind a firewall
|
|
- Monitor API usage for unusual patterns
|
|
- Implement request timeouts and retries
|