Fix missing blob access key in credentials

This causes failures of backup_auth_missing: ErrorDescription="Cannot find
authentication details (such as a password or secret key) for the specified
Backup Container URL"

This is found by manually running "fdbdecode".
This commit is contained in:
Jingyu Zhou 2022-03-23 16:16:20 -07:00
parent 2532ac5882
commit 902c10c299
1 changed files with 1 additions and 1 deletions

View File

@ -538,7 +538,7 @@ ACTOR Future<Void> updateSecret_impl(Reference<S3BlobStoreEndpoint> b) {
JSONDoc accounts(doc.last().get_obj());
if (accounts.has(credentialsFileKey, false) && accounts.last().type() == json_spirit::obj_type) {
JSONDoc account(accounts.last());
S3BlobStoreEndpoint::Credentials creds;
S3BlobStoreEndpoint::Credentials creds = b->credentials.get();
if (b->lookupKey) {
std::string apiKey;
if (account.tryGet("api_key", apiKey))