AWS Security ChangesHomeSearch

AWS documentdb medium security documentation change

Service: documentdb · 2025-08-28 · Security-related medium

File: documentdb/latest/developerguide/performance-insights-policies.md

Summary

Removed JSON example of KMS key policy for Performance Insights access with service-specific conditions

Security assessment

The deleted policy showed critical service-specific encryption context conditions (kms:ViaService and kms:EncryptionContext) that restrict KMS key usage to specific DocumentDB instances and Performance Insights operations. Removing this example reduces guidance on implementing least-privilege encryption controls.

Diff

diff --git a/documentdb/latest/developerguide/performance-insights-policies.md b/documentdb/latest/developerguide/performance-insights-policies.md
index 7c6f2d7e8..b06ec11d7 100644
--- a//documentdb/latest/developerguide/performance-insights-policies.md
+++ b//documentdb/latest/developerguide/performance-insights-policies.md
@@ -148,50 +147,0 @@ The following sample key policy shows how to add statements to your KMS key poli
-JSON
-    
-
-****
-    
-    
-    
-    {
-     "Version" : "2012-10-17",
-     "Id" : "your-policy",
-     "Statement" : [ {
-        //This represents a statement that currently exists in your policy.
-     }
-     ....,
-     //Starting here, add new statement to your policy for Performance Insights.
-     //We recommend that you add one new statement for every RDS/DocumentDB instance
-     {
-        "Sid" : "Allow viewing RDS Performance Insights",
-        "Effect": "Allow",
-        "Principal": {
-            "AWS": [
-                //One or more principals allowed to access Performance Insights
-                "arn:aws:iam::444455556666:role/Role1"
-            ]
-        },
-        "Action": [
-            "kms:Decrypt",
-            "kms:GenerateDataKey"
-        ],
-        "Resource": "*",
-        "Condition" :{
-            "StringEquals" : {
-                //Restrict access to only RDS APIs (including Performance Insights).
-                //Replace *region* with your AWS Region. 
-                //For example, specify us-west-2.
-                "kms:ViaService" : "rds.*region*.amazonaws.com"
-            },
-            "ForAnyValue:StringEquals": {
-                //Restrict access to only data encrypted by Performance Insights.
-                "kms:EncryptionContext:aws:pi:service": "rds",
-                "kms:EncryptionContext:service": "pi",
-                
-                //Restrict access to a specific DocDB instance.
-                //The value is a DbiResourceId.
-               "kms:EncryptionContext:aws:rds:db-id": "db-AAAAABBBBBCCCCDDDDDEEEEE"
-            }
-        }
-    }
-    
-