Skip to content

Decrypting Secrets

.kanuka files are files which have been encrypted by Kānuka. You may wish to decrypt these files to get back your original .env file.

As long as the following conditions are met:

  1. Your project has been initialised.
  2. You have access.
  3. There are any file containing .kanuka in it (.env.kanuka, .env.production.kanuka, etc).

You can run the following to decrypt the files:

Terminal window
kanuka secrets decrypt

That’s it! Kānuka will automatically decrypt the files, and return the original .env, as long as you have access.

To learn more about kanuka secrets decrypt, see the encryption concepts and the command reference.

Or, continue reading to learn how to gain access to a project’s secrets which are managed by Kānuka.