Skip to content

Commit 829064e

Browse files
Damien ClabautEneman Donatien
authored andcommitted
Document minimal policy required to be attached to S3User to prevent an infinite loop
1 parent b1104e8 commit 829064e

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,10 +229,22 @@ spec:
229229
# Content of the policy, as a multiline string
230230
# This should be IAM compliant JSON - follow the guidelines of the actual
231231
# S3 provider you're using, as sometimes only a subset is available.
232+
The first Statement (Allow ListBucket) should be applied to every user,
233+
# as s3-operator uses this call to verify that credentials are valid when
234+
# reconciling an existing user.
232235
policyContent: >-
233236
{
234237
"Version": "2012-10-17",
235238
"Statement": [
239+
{
240+
"Effect": "Allow",
241+
"Action": [
242+
"s3:ListBucket"
243+
],
244+
"Resource": [
245+
"arn:aws:s3:::*"
246+
]
247+
},
236248
{
237249
"Effect": "Allow",
238250
"Action": [
@@ -386,4 +398,3 @@ More information can be found via the [Kubebuilder Documentation](https://book.k
386398

387399
</details>
388400

389-

0 commit comments

Comments
 (0)