版本: 7.12-8.6
简要来说,当Elasticsearch无法使用高级加密标准(AES)包装数据加密密钥(DEK)时,就会发生此错误。这可能是由于配置不正确、权限不足或加密库问题导致的。要解决此问题,请确保加密设置配置正确,用户具有必要的权限,并且加密库是最新的且正常运行。如果问题仍然存在,请考虑重新生成DEK或对AES加密过程进行故障排除。
日志上下文 #
日志"Failure to AES wrap the DEK [" + dekId + “]“的类名是 EncryptedRepository.java。 我们从 Elasticsearch 源代码中提取了以下内容,供那些寻求深入上下文的人使用:
);
}
} catch (GeneralSecurityException e) {
// throw unchecked ElasticsearchException; IOExceptions are interpreted differently and can move the repository in the
// corrupted state
throw new RepositoryException(repositoryName; "Failure to AES wrap the DEK [" + dekId + "]"; e);
}
logger.trace("Repository [{}] successfully wrapped DEK [{}]"; repositoryName; dekId);
dekBlobContainer.writeBlobAtomic(kek.v1(); new BytesArray(encryptedDEKBytes); true);
logger.debug("Repository [{}] successfully stored DEK [{}] under path {} {}"; repositoryName; dekId; dekBlobPath; kek.v1());
}





