AWS greengrass high security documentation change
Summary
Narrowed IAM permissions for System Log Forwarder component from wildcard (*) to specific ARNs
Security assessment
The change reduces overly permissive resource access (from '*' to specific log group ARNs), addressing a security best practice (least privilege). Explicitly mitigates a potential misconfiguration risk.
Diff
diff --git a/greengrass/v2/developerguide/system-log-forwarder-component.md b/greengrass/v2/developerguide/system-log-forwarder-component.md index 876b97ed5..7ca108e41 100644 --- a//greengrass/v2/developerguide/system-log-forwarder-component.md +++ b//greengrass/v2/developerguide/system-log-forwarder-component.md @@ -63 +63 @@ This component has the following requirements: -The component requires access to create log and stream groups in CloudWatch as well as permission to perform the PutLogEvents HTTP call. You must add the following policy to your Greengrass device's role alias: +The component requires access to create log and stream groups in CloudWatch as well as permission to perform the PutLogEvents HTTP call. You must, at minimum, add the following policy permissions to your Greengrass device's role alias: @@ -71,8 +71,7 @@ The component requires access to create log and stream groups in CloudWatch as w - "Action": [ - "logs:CreateLogGroup", - "logs:CreateLogStream", - "logs:DescribeLogGroups", - "logs:DescribeLogStreams", - "logs:PutLogEvents" - ], - "Resource": "*" + "Action": ["logs:CreateLogGroup"], + "Resource": "arn:aws::logs:us-east-1:123456789012:log-group:greengrass/systemLogs:*" + }, + { + "Effect": "Allow", + "Action": ["logs:CreateLogStream", "logs:PutLogEvents"], + "Resource": "arn:aws::logs:us-east-1:123456789012:log-group:greengrass/systemLogs:log-stream:${credentials-iot:ThingName}" @@ -82,0 +82 @@ The component requires access to create log and stream groups in CloudWatch as w +###### Note @@ -84,3 +84 @@ The component requires access to create log and stream groups in CloudWatch as w -###### Warning - -The Resource value "*" in the example above is overly permissive. Consider limiting the scope according to your security requirements. +For more information, see the System Log Forwarder [Github](https://github.com/aws-greengrass/aws-greengrass-system-log-forwarder) page.