[Cyberduck-trac] [Cyberduck] #10725: B2 fails with app key limited to specific buckets
Cyberduck
trac at cyberduck.io
Thu Jun 6 17:02:47 UTC 2019
#10725: B2 fails with app key limited to specific buckets
---------------------------+-------------------------
Reporter: im.thatoneguy | Owner: dkocher
Type: defect | Status: assigned
Priority: high | Milestone: 7.1
Component: b2 | Version: 7.0
Severity: blocker | Resolution:
Keywords: | Architecture:
Platform: Windows 10 |
---------------------------+-------------------------
Comment (by im.thatoneguy):
Ok there is a change in the API in v2.
{{{
v2: Remove application key workaround (Sept 13, 2018)
Listing buckets will always return all buckets, unless you ask for just
one by specifying bucketName or bucketId. '''If you ask for all buckets
and your application key is restricted to one bucket, the call is
unauthorized.'''
}}}
I see though in the Authorize response JSON it does return:
{{{
"allowed": {
"bucketId": "****",
"bucketName": "AAABCC",
}}}
So that you don't need to actually call the list_buckets separately.
--
Ticket URL: <https://trac.cyberduck.io/ticket/10725#comment:6>
Cyberduck <https://cyberduck.io>
Libre FTP, SFTP, WebDAV, S3 & OpenStack Swift browser for Mac and Windows
More information about the Cyberduck-trac
mailing list