libopenstorage / secrets

Openstorage support for Key Management Systems
Apache License 2.0
16 stars 16 forks source link

PWX-19815 Add fix for message too long problem in google kms #61

Closed dahuang-purestorage closed 2 years ago

dahuang-purestorage commented 2 years ago

Signed-off-by: dahuang dahuang@purestorage.com

What this PR does / why we need it: We were facing issue with message too long when encrypting data with google KMS. This PR adds the functionality to divide the incoming data into chunks and encrypt/decrypt them one by one.

Which issue(s) this PR fixes (optional) PWX-19815

Special notes for your reviewer: Testing notes: tested locally with 2.9.1.3 cluster with pxctl cred create and pxctl cred validate with google kms and google credentials.

all unit test + integration test passed locally