mirror of https://github.com/kubernetes/kops.git
				
				
				
			Merge pull request #6039 from rhyas/fix_s3_encryption_role
Fix s3 encryption role
This commit is contained in:
		
						commit
						85446af3bc
					
				| 
						 | 
				
			
			@ -314,7 +314,7 @@ func (b *PolicyBuilder) AddS3Permissions(p *Policy) (*Policy, error) {
 | 
			
		|||
 | 
			
		||||
			p.Statement = append(p.Statement, &Statement{
 | 
			
		||||
				Effect: StatementEffectAllow,
 | 
			
		||||
				Action: stringorslice.Of("s3:GetBucketLocation", "s3:ListBucket"),
 | 
			
		||||
				Action: stringorslice.Of("s3:GetBucketLocation", "s3:GetEncryptionConfiguration", "s3:ListBucket"),
 | 
			
		||||
				Resource: stringorslice.Slice([]string{
 | 
			
		||||
					strings.Join([]string{b.IAMPrefix(), ":s3:::", s3Path.Bucket()}, ""),
 | 
			
		||||
				}),
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -48,6 +48,7 @@
 | 
			
		|||
      "Effect": "Allow",
 | 
			
		||||
      "Action": [
 | 
			
		||||
        "s3:GetBucketLocation",
 | 
			
		||||
        "s3:GetEncryptionConfiguration",
 | 
			
		||||
        "s3:ListBucket"
 | 
			
		||||
      ],
 | 
			
		||||
      "Resource": [
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -138,6 +138,7 @@
 | 
			
		|||
      "Effect": "Allow",
 | 
			
		||||
      "Action": [
 | 
			
		||||
        "s3:GetBucketLocation",
 | 
			
		||||
        "s3:GetEncryptionConfiguration",
 | 
			
		||||
        "s3:ListBucket"
 | 
			
		||||
      ],
 | 
			
		||||
      "Resource": [
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -138,6 +138,7 @@
 | 
			
		|||
      "Effect": "Allow",
 | 
			
		||||
      "Action": [
 | 
			
		||||
        "s3:GetBucketLocation",
 | 
			
		||||
        "s3:GetEncryptionConfiguration",
 | 
			
		||||
        "s3:ListBucket"
 | 
			
		||||
      ],
 | 
			
		||||
      "Resource": [
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -15,6 +15,7 @@
 | 
			
		|||
      "Effect": "Allow",
 | 
			
		||||
      "Action": [
 | 
			
		||||
        "s3:GetBucketLocation",
 | 
			
		||||
        "s3:GetEncryptionConfiguration",
 | 
			
		||||
        "s3:ListBucket"
 | 
			
		||||
      ],
 | 
			
		||||
      "Resource": [
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -15,6 +15,7 @@
 | 
			
		|||
      "Effect": "Allow",
 | 
			
		||||
      "Action": [
 | 
			
		||||
        "s3:GetBucketLocation",
 | 
			
		||||
        "s3:GetEncryptionConfiguration",
 | 
			
		||||
        "s3:ListBucket"
 | 
			
		||||
      ],
 | 
			
		||||
      "Resource": [
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -15,6 +15,7 @@
 | 
			
		|||
      "Effect": "Allow",
 | 
			
		||||
      "Action": [
 | 
			
		||||
        "s3:GetBucketLocation",
 | 
			
		||||
        "s3:GetEncryptionConfiguration",
 | 
			
		||||
        "s3:ListBucket"
 | 
			
		||||
      ],
 | 
			
		||||
      "Resource": [
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue