-
Notifications
You must be signed in to change notification settings - Fork 564
fix(storage): Add missing bucket condition in SignerV4#post_object #5702
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(storage): Add missing bucket condition in SignerV4#post_object #5702
Conversation
frankyn
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
|
|
||
| def required_fields issuer, time | ||
| { | ||
| "bucket" => @bucket_name, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@quartzmo does this output a field bucket in returned fields? We may have already discussed this but double checking.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it looks like it does. I think I remember now that you wrote somewhere that it shouldn't? Should I ensure that bucket is not added to the PostObject fields in a new PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Gotcha, yes please, could you update it to only include the name in the policy only and not return it as a field.?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, will do.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in #5803.
* Ensure bucket is not returned in PostObject fields. refs: googleapis#5702
bucket.bucketcondition inSignerV4#post_object.refs: googleapis/conformance-tests#29
refs: googleapis/conformance-tests#31