Skip to content

Commit dcb8407

Browse files
authored
Add Stash and Credential Manager policy file (#485)
Signed-off-by: rasel <rasel@appscode.com>
1 parent f6abce7 commit dcb8407

File tree

3 files changed

+53
-0
lines changed

3 files changed

+53
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"Version": "2012-10-17",
3+
"Statement": [
4+
{
5+
"Effect": "Allow",
6+
"Action": ["iam:GetRole", "iam:UpdateAssumeRolePolicy", "iam:ListRoles"],
7+
"Resource": "*"
8+
}
9+
]
10+
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"Version": "2012-10-17",
3+
"Statement": [
4+
{
5+
"Effect": "Allow",
6+
"Action": [
7+
"s3:CreateBucket",
8+
"s3:ListBucket",
9+
"s3:PutBucketCORS",
10+
"s3:DeleteBucket",
11+
"s3:GetBucketLocation"
12+
],
13+
"Resource": "arn:aws:s3:::*"
14+
},
15+
{
16+
"Effect": "Allow",
17+
"Action": [
18+
"s3:PutObject",
19+
"s3:GetObject",
20+
"s3:DeleteObject"
21+
],
22+
"Resource": "arn:aws:s3:::*"
23+
}
24+
]
25+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"Version": "2012-10-17",
3+
"Statement": [
4+
{
5+
"Effect": "Allow",
6+
"Principal": {
7+
"Federated": "arn:aws:iam::ACCOUNT_ID:oidc-provider/oidc.eks.REGION.amazonaws.com/id/OIDC_ID"
8+
},
9+
"Action": "sts:AssumeRoleWithWebIdentity",
10+
"Condition": {
11+
"StringEquals": {
12+
"oidc.eks.REGION.amazonaws.com/id/OIDC_ID:sub": "system:serviceaccount:SA_NAMESPACE:SA_NAME",
13+
"oidc.eks.us-east-2.amazonaws.com/id/OIDC_ID:aud": "sts.amazonaws.com"
14+
}
15+
}
16+
}
17+
]
18+
}

0 commit comments

Comments
 (0)