Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Removed account id to reduce confusion #3647
referenced this pull request
Feb 5, 2019
You can use either the master application key or a normal application key.
You'll find the master key on the B2 Cloud Storage Buckets page on the web site. When using the master key, the "key id" is your account ID, and the "application key" is the one you got from the web site.
and both ways still work here. I'm worried by rclone which sounds like yours, so I'm not sure which is correct...
My previous comment simplified it a bit too much and ts678 is correct that they both can work, but the wording in Duplicati is just a tad off. After further study, here's what I've figured out:
In B2, there are two types of access. To give access to all buckets, the API will only accept:
To give access to one bucket, the API will only accept:
Thus, four unique inputs and only a "matching set" will authorize properly in the B2 API. Account ID & Master Application Key must always go together; Key ID and Application Key must always go together. I could see Duplicati users needing either or other, so perhaps removing "account ID" might end up adding more confusion.
I apologize for my previous inaccurate comment.
For what it's worth, B2's documentation explains this distinction....not easily and I needed to read it thrice to understand the two authentication sets. For further validation, Transmit's explanation matches the above, as does this comment by a Backblaze employee:
TL;DR both can be used, but Duplicati should add "Master Application Key" to the text
Perhaps like so:
Account ID (all buckets) or Key ID (one bucket)
If that's too much text, then perhaps just adding "Master Application Key" to the second box's prompt and users can try to mentally match them.
Absolutely confusing, I agree. B2's vague GUI doesn't help.
Valid point, though B2 doesn't ever actually use "Application ID" and you can't find that on the interface. It's either "ApplicationKeyID" (the API title) or "KeyID" (the interface title; see 3 below).
This pull request has been mentioned on Duplicati. There might be relevant details there: