mirror of https://github.com/kubernetes/kops.git
Restrict master access to state store bucket
This change increases the specificity of the master's state store bucket contents permission to only the top-level folder named after the cluster. Fixes #365
This commit is contained in:
parent
2f4ac90661
commit
369a6ea1db
|
|
@ -24,7 +24,8 @@
|
|||
"Resource": [
|
||||
{{ range $i, $b := .MasterPermissions.S3Buckets }}
|
||||
{{if $i}},{{end}}
|
||||
"{{ IAMPrefix }}:s3:::{{ $b }}/*"
|
||||
"{{ IAMPrefix }}:s3:::{{ $b }}/{{ ClusterName }}",
|
||||
"{{ IAMPrefix }}:s3:::{{ $b }}/{{ ClusterName }}/*"
|
||||
{{ end }}
|
||||
]
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue