-
Notifications
You must be signed in to change notification settings - Fork 15
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
PutBucketPolicy: specifying '*' as a principal results in 500 #863
Comments
Looks like such principal in not supported |
I maybe wrong, but it seems to me, that it is said here that we should support Principal: '*', but don't support multiple 'Principal' inside single 'Statement'. Anyways - if we don't want to support the schema above - we should return some message and status code that makes sense, not 500. |
Correct, but object wildcard:
not just string wildcard:
|
This (and |
PR fixes the wildcard issue, but the test still failed.
The errors appears here when we are trying to get data from tree service. |
Likely there are other valid uses for |
Results in
According to https://docs.aws.amazon.com/AmazonS3/latest/userguide/example-bucket-policies.html, https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html and https://gist.github.com/jstewmon/ee5d4b7ec0d8d60cbc303cb515272f8a#file-aws-iam-poilcy-schema-json-L129 "Principal": "*" is a valid principal.
Also take a look at the whole spec I provided above, looks like it is not parsed correctly. E.g. test_bucket_policy_put_obj_request_obj_tag fails with
But the schema provided is valid:
For a complete list of failing tests due to an incorrect schema parsing see tests with this mark:
The text was updated successfully, but these errors were encountered: