-
Notifications
You must be signed in to change notification settings - Fork 94
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
Fix policy parser to accept multiple IP address per statement [JIRA: RCS-222] #1178
Conversation
Did some manual tests, good ones and not good. With the purpose of scenario of allowing all GET access to certain bucket Good ones: After PUTting an object by the bucket owner, both anonymous On the other hand, an error happens when PUT is called by CS user command:
error log
debug log (extraced) of s3cmd
|
fd6e2a7
to
9045aca
Compare
Single-line-without-any-test fix added. |
48151cb
to
1d805af
Compare
The above 500 error when putting object by other users were introduced Then, the 500 error is not introduced by this PR, I recommend to remove [1] 61180ba?w=1 |
1d805af
to
25ce996
Compare
Ah, sorry, I already included the fix, squashed, and force-pushed. |
Following style of IP address description in IPAddress Condition have not been working as parser implicitly assumed single IP address per 'aws:SourceIp' condition. ``` "IpAddress": { "aws:SourceIp": ["127.0.0.1/32", "192.168.100.0/24"] } ```
25ce996
to
0ec4bee
Compare
Fix policy parser to accept multiple IP address per statement [JIRA: RCS-222] Reviewed-by: shino
Fix policy parser to accept multiple IP address per statement [JIRA: RCS-222] Reviewed-by: shino
@borshop merge |
For release note: Multiple IP address description under single condition statement of a bucket policy was not being properly parsed as lists. |
Following style of IP address description in IPAddress Condition have
not been working as parser implicitly assumed single IP address per
'aws:SourceIp' condition.