Maintenance Guide¶
This guide describes how to maintain the health and security of your dotfiles environment.
๐ฉบ System Health Checks¶
The primary tool for diagnosing issues is the doctor script.
It checks: - Essential Tools: git, zsh, mise, etc. - Shell Configuration: zsh plugins, p10k. - Secrets: Age key validity, Bitwarden/Vault status. - Symlinks: Integrity of dotfiles links.
Exit Codes: - 0: All checks passed (or only warnings). - 1: Critical errors found.
๐ Updating Tools¶
To check for outdated tools managed by mise:
To update all tools:
๐ Secrets Rotation¶
Rotating Age Key¶
If your age key is compromised or too old (>1 year), rotate it:
This will: 1. Generate a new key. 2. Re-encrypt all secrets in encrypted_dot_secrets.age. 3. Backup the old key.
External Secrets (Bitwarden/Vault)¶
- Bitwarden:
mise run secrets:bw-login - Vault:
mise run secrets:vault-login
Ensure you log out or lock these vaults when not in use.
๐งน Cleanup¶
To remove unused data:
This cleans up: - Docker images/containers (stopped). - Mise cache. - Package manager caches (npm, pip, go).