Encrypting Secrets
Environment files hold secrets. A key problem that developers face is that you should not be committing these files to version control, because that would mean anybody on the internet can access your secrets!
Kānuka makes it easy to share these secrets in a secure way.
Encrypting secrets
Section titled “Encrypting secrets”As long as your project has been initialised, and there
are any file containing .env in it (.env.development, .env.production,
.env, etc), you can run the following to encrypt the files:
kanuka secrets encryptThat’s it! Kānuka will automatically encrypt the files, and name the encrypted
secrets the same as the original with .kanuka added onto the end. You can now
safely commit these files to your version control.
Next steps
Section titled “Next steps”To learn more about kanuka secrets encrypt, see the encryption concepts and the command reference.
Or, continue reading to learn how to decrypt secrets using Kānuka.