Merge pull request #3498 from sammachin/sammachin_credentials

Error on invalid encrypted credentials
This commit is contained in:
Nick O'Leary
2022-04-21 10:59:43 +01:00
committed by GitHub
4 changed files with 28 additions and 4 deletions

View File

@@ -239,7 +239,15 @@ var api = module.exports = {
throw error;
}
} else {
credentialCache = credentials;
if (encryptionEnabled) {
// Our config expects the credentials to be encrypted but the encrypted object is not found
log.warn(log._("nodes.credentials.encryptedNotFound"))
credentialCache = credentials;
} else {
// credentialSecret is set to False
log.warn(log._("nodes.credentials.unencrypted"))
credentialCache = credentials;
}
}
if (clearInvalidFlag) {
// TODO: this delves too deep into Project structure