Open eadmundo opened 8 months ago
I don't think GCP has a generateDataKey
equivalent, so we will need to generate our own and then encrypt it ourselves using the KEK (as per https://cloud.google.com/kms/docs/envelope-encryption which advises generating a DEK locally).
RONSEAL
Note:
https://github.com/autotelic/envelope-encryptor/issues/54 is higher priority
We would like ultimately to support GCP. This will look something like:
gcpKms(configObject)
getDataKey
anddecryptDataKey
propertiesgetDataKey
returns a promise which when resolved gives an object with the encrypted data key and plaintext data key. e.g.decryptDataKey
takes an encrypted data key and returns a promise that resolves to the plaintext data key to be used for decryption e.g.client library: https://cloud.google.com/nodejs/docs/reference/kms/latest