Workspace Initialization¶
PGP fingerprint¶
You are required to provide at least one PGP fingerprint when initializing the workspace in order to encrypt your secrets.
Most likely this key will be provided by your system administrator. In the event this is not the case, you can easily generate a new pgp key using:
1 | |
You can then retrieve the pgp fingerprint which is a 40 hexadecimal string (
e.g.: 0123456789ABCDEF0123456789ABCDEF01234567).
1 | |
To export keys to a file, you can use the following commands:
1 2 3 4 5 | |
For more information:
- Have a look at the Quick'n easy gpg cheatsheet to get started.
- Or consult the official gnupg documentation
Initialization¶
Finally, initialize your workspace using the cli:
1 2 3 4 5 6 | |
Two files, .sops.yaml and dhops.yaml will be created in the workspace folder after the initialization. You can add
or modify those fingerprints at anytime inside .sops.yaml created by the initialization.
Find out more about this
.sops.yamlinside sops official documentation
Workspace¶
At the end of this tutorial, your workspace should have the following tree structure:
1 2 3 4 5 6 7 | |
Git¶
If you are using Git for version control, we recommend adding the following to .gitignore:
1 2 | |