过去一天我一直在尝试将一些加密文本加载到 Ceph 对象存储中,但每当我尝试时,我都会收到以下错误:
botocore.exceptions.ClientError:调用PutObject操作时发生错误(InvalidRequest):未知
我正在使用的代码是这样的:
random_key = os.urandom(32)
s3.put_object(Bucket=BUCKET_NAME,
Key=KEY,
Body='the quick brown fox jumps over the lazy dog',
SSECustomerKey=random_key,
SSECustomerAlgorithm='AES256'
)
我提到如果我删除SSECustomerKey=random_key,SSECustomerAlgorithm='AES256'
然后它会加载文本。