Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decrypt from other languages #22

Open
ngw opened this issue Mar 15, 2019 · 0 comments
Open

Decrypt from other languages #22

ngw opened this issue Mar 15, 2019 · 0 comments

Comments

@ngw
Copy link

ngw commented Mar 15, 2019

It would be very useful to have a section on how to decrypt the encrypted vars from other languages/technologies, even without code but with a description of what to do, because right now for some reasons I'm having a lot of problems accessing the secrets from Ruby.
Apparently the plugin encodes using base64?
https://github.com/nordcloud/serverless-kms-secrets/blob/master/index.js#L81-L94

In ruby I do:

token = "blablabla" #what serverless-kms-secrets put in ENV
client = Aws::KMS::Client.new(region: 'us-east-1')
blob = Base64.encode64(token)
client.decrypt({ciphertext_blob: blob})
....
Aws::KMS::Errors::InvalidCiphertextException ()

I'm clearly decrypting it wrong, but I don't know how to move from here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant