Giter VIP home page Giter VIP logo

Comments (2)

russell-lewis avatar russell-lewis commented on August 16, 2024

Provided your passphrase is strong, I don't see the value in double encrypting the private key. However, if you really wanted to, you could already do just that.

Take a look at:
https://github.com/Netflix/bless/blob/master/README.md#protecting-the-ca-private-key

The last paragraph describes how you can compress your RSA 4096 key to fit in a lambda environment variable. You can then enable KMS encrypted environment variables, and that should give you effectively the same result.

from bless.

mbonnafon avatar mbonnafon commented on August 16, 2024

It seems that Lambda uses two mechanisms to encrypt environment variables with KMS. The encrypt at rest, which encrypts data after it has been uploaded (not our concern). The second one is encrypt in transit (the checkbox), this will encrypt the data when you click on the button, however, you need to decrypt with the code in the Lambda.

In our process we work hard to have infrastructure as code, so the lambda is set up with Terraform. In this case, the private key is viewable. In our company, the CA must be encrypted to be usable.

Adding a boolean like ca_private_key_encrypted which will trigger the decrypt-kms would be a useful feature. This wouldn't change anything to the existing and would offer additional possibilities for those with higher security needs.

from bless.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.