Try harder to query remote keys

This commit is contained in:
Neil Alexander 2021-07-30 10:18:39 +01:00
parent 5a00ff3634
commit 0571b7eb1d
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -232,6 +232,9 @@ func (a *KeyInternalAPI) QueryKeys(ctx context.Context, req *api.QueryKeysReques
util.GetLogger(ctx).WithError(err).Error("Failed to retrieve cross-signing keys from database")
crossSigningSatisfiedLocally = false
}
if len(res.MasterKeys) == 0 || len(res.SelfSigningKeys) == 0 {
crossSigningSatisfiedLocally = false
}
// make a map from domain to device keys
domainToDeviceKeys := make(map[string]map[string][]string)