This rule ensures that S3 buckets have default encryption enabled with KMS for improved security.
Rule | S3 bucket default encryption should be enabled with KMS |
Framework | GxP EU Annex 11 |
Severity | ✔ Medium |
Rule: S3 Bucket Default Encryption with KMS for GxP EU Annex 11
Description
The rule requires that all S3 buckets used in conjunction with systems compliant with Good Manufacturing Practice (GMP) for medicinal products in the EU must have default encryption enabled using AWS Key Management Service (KMS). This is to satisfy requirements laid out in the EU Annex 11, which provides guidelines on computerized systems used as part of GxP practices.
Key Points:
Troubleshooting Steps
If your S3 bucket is not compliant with this rule, follow these steps to identify and resolve the issue:
Necessary Codes
Checking Bucket Encryption Configuration
aws s3api get-bucket-encryption --bucket YOUR_BUCKET_NAME
Replace
YOUR_BUCKET_NAME
with the name of your S3 bucket.Enabling Default Encryption with KMS Key
aws s3api put-bucket-encryption \ --bucket YOUR_BUCKET_NAME \ --server-side-encryption-configuration '{ "Rules": [ { "ApplyServerSideEncryptionByDefault": { "SSEAlgorithm": "aws:kms", "KMSMasterKeyID": "YOUR_KMS_KEY_ID" } } ] }'
Replace
YOUR_BUCKET_NAME
with the name of your S3 bucket and YOUR_KMS_KEY_ID
with the ID of your KMS key.Step by Step Guide for Remediation
1. Verify the Current Encryption Settings
Check the encryption status of your S3 bucket using the AWS CLI command provided above. This will let you know if the bucket is already encrypted and with which method.
2. Enable Default Encryption with a KMS key
If your S3 bucket does not have default encryption enabled or it is not using a KMS key, use the AWS CLI command under 'Necessary Codes' to enable it.
3. Verify the Encryption Setting
After applying the settings, verify that your S3 bucket now has the desired encryption. Use the same command from step 1 to confirm the changes.
4. Test the Configuration
Upload a test file to the S3 bucket and check the properties of the object to ensure it is encrypted with the KMS key.
By following these detailed instructions, you can ensure compliance with GxP EU Annex 11 standards for your S3 buckets. The use of detailed and accurate steps without superfluous information aligns with SEO best practices by directly addressing the user's query, thereby improving content relevance and search engine ranking.