Password Management
Which credentials exist, where they live, and how to keep terraform.tfvars safe.
Which credentials exist?
| Credential | Purpose | Storage |
|---|---|---|
| Hetzner API Token | Create infrastructure | terraform.tfvars |
| Root password | Emergency web console | terraform.tfvars |
| SSH private keys | Server access | ~/.ssh/ or password manager |
| Cloudflare Tunnel token | Tunnel auth | Cloudflare Dashboard |
Recommended Dashlane structure
π K8s Cluster
βββ π Hetzner API Token
β βββ Token: xxx
βββ π Root Password
β βββ Password: xxx
βββ π SSH Keys (Secure Note)
β βββ Control Node Private Key: ...
β βββ Control Node Public Key: ...
β βββ Worker Node Private Key: ...
β βββ Worker Node Public Key: ...
βββ π Cloudflare Tunnel Token
βββ Token: xxx
Securing terraform.tfvars
terraform.tfvars contains sensitive data. Options:
- Do not commit: exclude via
.gitignore(default) - Encrypt: with
git-cryptorsops - Use environment variables instead of tfvars:
export TF_VAR_hcloud_token="xxx" export TF_VAR_root_password="xxx"