Skip to content
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

Support for B2 Application Keys #484

Open
ChristofferKarlsson opened this issue Aug 20, 2018 · 6 comments
Open

Support for B2 Application Keys #484

ChristofferKarlsson opened this issue Aug 20, 2018 · 6 comments

Comments

@ChristofferKarlsson
Copy link

ChristofferKarlsson commented Aug 20, 2018

Backblaze recently made B2 Application Keys available, a feature that lets you create application specific keys, that also can restrict access to specific buckets. Using the B2 account for more than one thing, it would be very nice to use these more restricted keys.

I tried to use a generated API key (restricted to only one bucket), but it doesn't seem to work with the current version - 2.1.1:

$ duplicacy init -e data-backup b2://***
Enter Backblaze Account ID: app-key-id
Enter Backblaze Application Key: app-key
URL request 'https://api002.backblazeb2.com/b2api/v1/b2_list_buckets' returned status code 400
URL request 'https://api002.backblazeb2.com/b2api/v1/b2_list_buckets' returned status code 400
...

Links to Backblaze

@TheBestPessimist
Copy link
Contributor

Is this a duplicate of: #485 ?

@ChristofferKarlsson
Copy link
Author

@TheBestPessimist Yes, it is about the same feature. Missed that it was already a PR on it.

@TheBestPessimist
Copy link
Contributor

Well actually i am wrong: #485 is the duplicate here :D.

@bekriebel
Copy link

Oops, I missed that someone had opened this as an issue before creating mine. I closed that duplicate issue.

PR #475 is a fix for this and has been open for some time now. I'm hoping it can get merged so I can start using official versions again.

@TheBestPessimist
Copy link
Contributor

This has been implemented via: 674d35e.

@adrianmihalko
Copy link

adrianmihalko commented Dec 30, 2018

Guys, how can I use application key id?

@ubuntu:~$ duplicacy init -e ubuntu-backup b2://my-b2-bucket
Enter Backblaze Account ID:312939939393
Enter Backblaze Application Key: llxlxlxlxlxlxlxlxl
Failed to load the Backblaze B2 storage at  b2://my-b2-bucket: Authorization failure

I enter my newly created Application Key, but I get Authorization failure. What I am missing here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants