AWS aurora-dsql: Aurora DSQL: clarify non-public policy examples and keys
Summary
Changes example resource-based policies to use "Resource": "*" instead of a specific cluster ARN, and clarifies that string condition keys (not just string keys) must not contain wildcards or variables for a policy to be considered non-public.
Security assessment
The page defines what makes an Aurora DSQL resource-based policy non-public (principal constraints, no wildcards/variables in ARN and string condition keys, aws:PrincipalIsAWSService handling). The edits correct the examples to show that a wildcard Resource is acceptable when principals are constrained, and tighten the wording to 'string condition keys', which affects how public-exposure is evaluated. It is documentation of public-access prevention rather than a fix for a specific vulnerability.
Evidence
+ "Resource": "*",
Diff
diff --git a/aurora-dsql/latest/userguide/rbp-block-public-access.md b/aurora-dsql/latest/userguide/rbp-block-public-access.md index 6da7a5e..2007fad 100644 --- a//aurora-dsql/latest/userguide/rbp-block-public-access.md +++ b//aurora-dsql/latest/userguide/rbp-block-public-access.md @@ -38 +38 @@ You can make a policy non-public by specifying one or more principals inside the - "Resource": "arn:aws:dsql:us-east-1:123456789012:cluster/cluster-id" + "Resource": "*" @@ -76 +76 @@ Policies that restrict access by specifying certain condition keys are also not -Additionally, for a resource-based policy to be non-public, the values for Amazon Resource Name (ARN) and string keys must not contain wildcards or variables. If your resource-based policy uses the `aws:PrincipalIsAWSService` key, you must make sure that you've set the key value to true. +Additionally, for a resource-based policy to be non-public, the values for Amazon Resource Name (ARN) and string condition keys must not contain wildcards or variables. If your resource-based policy uses the `aws:PrincipalIsAWSService` key, you must make sure that you've set the key value to true. @@ -87 +87 @@ The following policy limits access to the user `Ben` in the specified account. T - "Resource": "arn:aws:dsql:us-east-1:123456789012:cluster/cluster-id", + "Resource": "*", @@ -107 +107 @@ The following example of a non-public resource-based policy constrains `sourceVP - "Resource": "arn:aws:dsql:us-east-1:123456789012:cluster/cluster-id", + "Resource": "*",