-
Notifications
You must be signed in to change notification settings - Fork 342
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bucket policy failed to apply in the expected time #149
Comments
Okay. My policy: {
"Id": "Policy1554905040487",
"Version": "2012-10-17",
"Statement": [
{
"Sid": "Stmt1554905036932",
"Action": [
"s3:GetObject"
],
"Effect": "Allow",
"Resource": "arn:aws:s3:::something/*",
"Principal": "*"
}
]
} It works if I directly I remove {
"Version": "2012-10-17",
"Statement": [
{
"Sid": "Stmt1554905036932",
"Action": [
"s3:GetObject"
],
"Effect": "Allow",
"Resource": "arn:aws:s3:::something/*",
"Principal": {
"AWS": "*"
}
}
]
} And all ok via Ansible! |
Thanks for taking the time to make your report. I'm guessing that MiniO is performing some conversions behind the scenes which make it difficult to tell if the policies are equivalent. What's key here is that we need to know I don't have access to MinIO so I can't perform any testing myself. |
Minio playground https://play.minio.io/minio/login |
Full error based on s3_bucket from this collection.
This confirms that minio is tweaking the policy behind the scenes. |
Ok, some further testing - AWS doesn't make the same tweak, BUT the documentation explicitly states that the two principal definitions used are equivalent:
|
* Add test cases for #149 * Treat {Principal: *} == {Principal: {AWS: *}} * Make sure we don't update the policy we're working with
SUMMARY
I use https://min.io/
minio/minio:RELEASE.2019-04-09T01-22-30Z
But bucket is created and policy applied!
ISSUE TYPE
COMPONENT NAME
s3_bucket
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
STEPS TO REPRODUCE
But if I remove
policy: "{{ lookup('template', 'policy.json.j2') }}"
line task is ok.EXPECTED RESULTS
Don't show
fatal
, showok
.ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: