Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add improved security statement for iam:PassRole #973

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 23 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,6 @@ your user is not called ***jenkins***):
"ec2:DescribeSecurityGroups",
"ec2:DescribeSubnets",
"iam:ListInstanceProfilesForRole",
"iam:PassRole",
"ec2:GetPasswordData"
],
"Effect": "Allow",
Expand All @@ -269,11 +268,33 @@ your user is not called ***jenkins***):
```

If you want to launch agents with an IAM Instance Profile, "iam:PassRole"
permission is required.
permission is required. In this case, it is recommended to constraint
the statement to only the instance profiles you require, following
[AWS best practices](https://aws.amazon.com/blogs/security/how-to-use-the-passrole-permission-with-iam-roles/).

```json
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AllowPassRole",
"Action": [
"iam:PassRole"
],
"Effect": "Allow",
"Resource": [
"arn:aws:iam::123456789012:role/YOUR_INSTANCE_PROFILE_NAME"
]
}
]
}
```

If you want to launch Windows agents and use the generated Administrator
password, the "ec2:GetPasswordData" permission is also required.



# Configure plugin via Groovy script

Either automatically upon [Jenkins
Expand Down
Loading