AWS glue high security documentation change
Summary
Modified VPC endpoint policy to restrict iam:PassRole with resource constraints and service conditions
Security assessment
Added Condition 'iam:PassedToService' and resource restrictions to PassRole actions demonstrate security hardening. This prevents privilege escalation by limiting role passing to Glue service only.
Diff
diff --git a/glue/latest/dg/vpc-interface-endpoints.md b/glue/latest/dg/vpc-interface-endpoints.md index f8f29b0e2..a4e171cec 100644 --- a//glue/latest/dg/vpc-interface-endpoints.md +++ b//glue/latest/dg/vpc-interface-endpoints.md @@ -59 +59 @@ The following is an example of an endpoint policy for AWS Glue. When attached to - "Principal":"*", + "Sid": "RestrictPassRole", @@ -61,6 +61,7 @@ The following is an example of an endpoint policy for AWS Glue. When attached to - "Action":[ - "glue:CreateJob", - "glue:UpdateJob", - "iam:PassRole" - ], - "Resource":"*" + "Action": "iam:PassRole", + "Resource": "arn:aws:iam::123456789012:role/GlueServiceRole*", + "Condition": { + "StringEquals": { + "iam:PassedToService": "glue.amazonaws.com" + } + } @@ -79 +79,0 @@ The following is an example of an endpoint policy for AWS Glue. When attached to - "Principal": "*",