- Newest
- Most votes
- Most comments
Hello.
Is it acceptable to store an OpenAI API key in AWS Secrets Manager without automatic rotation?
When creating a secret in Secrets Manager, you can disable the rotation toggle and register the secret with the API key rotation disabled.
https://docs.aws.amazon.com/secretsmanager/latest/userguide/create_secret.html
Any best practices to make manual rotation easier / more secure?
Secrets Manager secrets support resource-based policies, so you can restrict which IAM users have access to them using policies.
This means you can ensure that only specific IAM users can update secrets.
https://repost.aws/knowledge-center/secrets-manager-resource-policy
It is completely acceptable to store API keys without automatic rotation when the service doesn't provide rotation APIs. Focus on good operational practices and regular manual rotation schedules instead.
For storing and managing OpenAI API keys in AWS Secrets Manager without automatic rotation capability:
Basic Storage Recommendations:
-
Store the API key in AWS Secrets Manager -
Include metadata like rotation date and expiry date -
Document ownership and environment information
Best Practices:
-
Use IAM roles with least privilege -
Enable CloudTrail logging for audit -
Set up CloudWatch reminders for manual rotation -
Create a documented rotation process/runbook -
Implement monitoring and alerting -
Version control your secrets
Manual Rotation Process:
-
Generate new API key in OpenAI dashboard -
Update secret in Secrets Manager -
Verify functionality -
Delete old API key
Resources: https://docs.aws.amazon.com/secretsmanager/latest/userguide/intro.html https://docs.aws.amazon.com/secretsmanager/latest/userguide/best-practices.html
Hope this helps!
Relevant content
- asked 2 months ago
- asked 5 months ago
- asked 2 months ago
- AWS OFFICIALUpdated 10 months ago
