docs: improved masterkey setup documentation

This commit is contained in:
2025-09-13 22:48:15 +02:00
parent 8101818cdb
commit 59bc9bbcf4
2 changed files with 50 additions and 2 deletions

View File

@@ -5,15 +5,33 @@ You need to create your own **age keypair**, add the public key to the repo, and
---
## 0. Install Age & Sops
First, make sure **age** is installed on your workstation.
```bash
sudo apt update
sudo apt install age
age --version
```
To install Sops grab the binary release and install it.
```bash
wget https://github.com/getsops/sops/releases/download/v3.10.2/sops_3.10.2_amd64.deb
sudo apt install ./sops_3.10.2_amd64.deb
```
## 1. Generate an Age Keypair
On your workstation, run:
```bash
age-keygen -o ~/.config/age/key.txt
age-keygen -o ~/.config/sops/age/key.txt
```
- This creates a new keypair and stores it at `~/.config/age/key.txt`.
- This creates a new keypair and stores it at `~/.config/sops/age/key.txt`.
- The private key must **never** be committed to Git. Keep it safe (e.g., in your password manager or vault).
- The public key looks like this: