Merge lp:~rvb/gwacl/anon-access into lp:gwacl
Proposed by
Raphaël Badin
Status: | Merged |
---|---|
Approved by: | Raphaël Badin |
Approved revision: | 129 |
Merged at revision: | 129 |
Proposed branch: | lp:~rvb/gwacl/anon-access |
Merge into: | lp:gwacl |
Diff against target: |
76 lines (+23/-7) 3 files modified
example/storage/run.go (+3/-3) storage_base.go (+8/-4) storage_base_test.go (+12/-0) |
To merge this branch: | bzr merge lp:~rvb/gwacl/anon-access |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Gavin Panella | Approve | ||
Review via email: mp+171063@code.launchpad.net |
Commit message
Allow anon access to the storage API.
Description of the change
This branch changes the gwacl client object so that if the key is the empty string, it will perform anon (i.e. non-authenticated) access.
This is needed because the provider needs to access a public container (i.e. a canonical-
One might argue that the proper way to do this is to split the 'Account' variable into 2: the account used to sign the request and the account to access but this way of doing things is simpler and completely addresses my use case.
This was pre-imp'ed with Gavin.
To post a comment you must log in.
[1]
Commit message:
Allow anon access.
It's worth mentioning that this is for the storage API only.
[2]
+ // Access key: access will be done anonymously if the key is the empty
+ // string.
s/will be done anonymously/will be anonymous/