(DynamoDB): Table generates policies not compliant with Security Hub #20545
Labels
@aws-cdk/aws-dynamodb
Related to Amazon DynamoDB
ddb-legacy-table
This issue has to do with DynamoDB's legacy Table construct. Close after migration guide is out.
effort/medium
Medium work item – several days of effort
feature-request
A feature should be added or improved.
p2
Describe the bug
Aws CDK's DynamoDB Table generated resources are not compliant with Security Hub policy IAM.21 - https://docs.aws.amazon.com/securityhub/latest/userguide/securityhub-standards-fsbp-controls.html#fsbp-iam-21
The CDK generates a policy with wildcard actions for dynamodb actions as
dynamodb:*
The following are the related policy description:
DynamoDB replication managed policy for table <table_name>
aws-cdk/packages/@aws-cdk/aws-dynamodb/lib/table.ts
Lines 1579 to 1583 in 75bfce7
Expected Behavior
The attached policies should describe each required action in them.
Current Behavior
The CDK generates a policy with wildcard actions for dynamodb actions as
dynamodb:*
Reproduction Steps
Possible Solution
Put the exact actions required here.
aws-cdk/packages/@aws-cdk/aws-dynamodb/lib/table.ts
Line 1583 in 75bfce7
Additional Information/Context
No response
CDK CLI Version
2.20.0
Framework Version
No response
Node.js Version
14.19.1
OS
Ubuntu 22.04 LTS
Language
Typescript
Language Version
3.9.7
Other information
No response
The text was updated successfully, but these errors were encountered: