Skip to content

Commit

Permalink
wip: eks pod identity support
Browse files Browse the repository at this point in the history
Signed-off-by: Richard Case <richard.case@outlook.com>
  • Loading branch information
richardcase committed Nov 4, 2024
1 parent 02e6fa4 commit 352d969
Show file tree
Hide file tree
Showing 14 changed files with 27 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,7 @@ Resources:
Statement:
- Action:
- sts:AssumeRole
- sts:TagSession
Effect: Allow
Principal:
Service:
Expand All @@ -429,6 +430,7 @@ Resources:
Principal:
Service:
- ec2.amazonaws.com
- pods.eks.amazonaws.com
Version: 2012-10-17
RoleName: controllers.custom-suffix.com
Type: AWS::IAM::Role
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,7 @@ Resources:
Statement:
- Action:
- sts:AssumeRole
- sts:TagSession
Effect: Allow
Principal:
Service:
Expand All @@ -429,6 +430,7 @@ Resources:
Principal:
Service:
- ec2.amazonaws.com
- pods.eks.amazonaws.com
Version: 2012-10-17
RoleName: controllers.cluster-api-provider-aws.sigs.k8s.io
Type: AWS::IAM::Role
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,7 @@ Resources:
Statement:
- Action:
- sts:AssumeRole
- sts:TagSession
Effect: Allow
Principal:
Service:
Expand All @@ -442,6 +443,7 @@ Resources:
Principal:
Service:
- ec2.amazonaws.com
- pods.eks.amazonaws.com
Version: 2012-10-17
RoleName: controllers.cluster-api-provider-aws.sigs.k8s.io
Type: AWS::IAM::Role
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,7 @@ Resources:
Statement:
- Action:
- sts:AssumeRole
- sts:TagSession
Effect: Allow
Principal:
Service:
Expand All @@ -434,6 +435,7 @@ Resources:
Principal:
Service:
- ec2.amazonaws.com
- pods.eks.amazonaws.com
Version: 2012-10-17
RoleName: controllers.cluster-api-provider-aws.sigs.k8s.io
Type: AWS::IAM::Role
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,7 @@ Resources:
Statement:
- Action:
- sts:AssumeRole
- sts:TagSession
Effect: Allow
Principal:
Service:
Expand All @@ -437,6 +438,7 @@ Resources:
Principal:
Service:
- ec2.amazonaws.com
- pods.eks.amazonaws.com
Version: 2012-10-17
RoleName: controllers.cluster-api-provider-aws.sigs.k8s.io
Type: AWS::IAM::Role
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,7 @@ Resources:
Statement:
- Action:
- sts:AssumeRole
- sts:TagSession
Effect: Allow
Principal:
Service:
Expand All @@ -437,6 +438,7 @@ Resources:
Principal:
Service:
- ec2.amazonaws.com
- pods.eks.amazonaws.com
Version: 2012-10-17
RoleName: controllers.cluster-api-provider-aws.sigs.k8s.io
Type: AWS::IAM::Role
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,7 @@ Resources:
Statement:
- Action:
- sts:AssumeRole
- sts:TagSession
Effect: Allow
Principal:
Service:
Expand All @@ -429,6 +430,7 @@ Resources:
Principal:
Service:
- ec2.amazonaws.com
- pods.eks.amazonaws.com
Version: 2012-10-17
RoleName: controllers.cluster-api-provider-aws.sigs.k8s.io
Type: AWS::IAM::Role
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,7 @@ Resources:
Statement:
- Action:
- sts:AssumeRole
- sts:TagSession
Effect: Allow
Principal:
Service:
Expand All @@ -449,6 +450,7 @@ Resources:
Principal:
Service:
- ec2.amazonaws.com
- pods.eks.amazonaws.com
Version: 2012-10-17
RoleName: controllers.cluster-api-provider-aws.sigs.k8s.io
Type: AWS::IAM::Role
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,7 @@ Resources:
Statement:
- Action:
- sts:AssumeRole
- sts:TagSession
Effect: Allow
Principal:
Service:
Expand All @@ -429,6 +430,7 @@ Resources:
Principal:
Service:
- ec2.amazonaws.com
- pods.eks.amazonaws.com
Version: 2012-10-17
RoleName: controllers.cluster-api-provider-aws.sigs.k8s.io
Type: AWS::IAM::Role
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,7 @@ Resources:
Statement:
- Action:
- sts:AssumeRole
- sts:TagSession
Effect: Allow
Principal:
Service:
Expand All @@ -429,6 +430,7 @@ Resources:
Principal:
Service:
- ec2.amazonaws.com
- pods.eks.amazonaws.com
Version: 2012-10-17
RoleName: controllers.cluster-api-provider-aws.sigs.k8s.io
Type: AWS::IAM::Role
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,7 @@ Resources:
Statement:
- Action:
- sts:AssumeRole
- sts:TagSession
Effect: Allow
Principal:
Service:
Expand Down Expand Up @@ -447,6 +448,7 @@ Resources:
Principal:
Service:
- ec2.amazonaws.com
- pods.eks.amazonaws.com
Version: 2012-10-17
Policies:
- PolicyDocument:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,7 @@ Resources:
Statement:
- Action:
- sts:AssumeRole
- sts:TagSession
Effect: Allow
Principal:
Service:
Expand All @@ -440,6 +441,7 @@ Resources:
Principal:
Service:
- ec2.amazonaws.com
- pods.eks.amazonaws.com
Version: 2012-10-17
RoleName: controllers.cluster-api-provider-aws.sigs.k8s.io
Type: AWS::IAM::Role
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,7 @@ Resources:
Statement:
- Action:
- sts:AssumeRole
- sts:TagSession
Effect: Allow
Principal:
Service:
Expand All @@ -429,6 +430,7 @@ Resources:
Principal:
Service:
- ec2.amazonaws.com
- pods.eks.amazonaws.com
Version: 2012-10-17
RoleName: controllers.cluster-api-provider-aws.sigs.k8s.io
Type: AWS::IAM::Role
Expand Down
2 changes: 1 addition & 1 deletion cmd/clusterawsadm/cloudformation/bootstrap/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ func AssumeRolePolicy(identityType iamv1.PrincipalType, principalIDs []string) *
{
Effect: iamv1.EffectAllow,
Principal: iamv1.Principals{identityType: principalIDs},
Action: iamv1.Actions{"sts:AssumeRole"},
Action: iamv1.Actions{"sts:AssumeRole", "sts:TagSession"},
},
},
}
Expand Down

0 comments on commit 352d969

Please sign in to comment.