Hands-on guide series

Secrets Management on a VPS: A Hands-On Guide

A four-part, hands-on guide to handling secrets on a single VPS: how plaintext secrets leak through permissions, the process environment, logs and git history, file-based secrets with a dedicated owner and systemd credentials, encryption at rest with age and sops, and rotation, auditing and git-history scrubbing. Every command tested on a live Ubuntu 24.04 server with throwaway demo secrets.

4 parts28 min totalBy Amith Kumar