Managing Secrets on a VPS: Permissions, Env, Vault
Store API keys and tokens safely on a Linux VPS with strict file permissions, protected environment files, and vault basics that survive a leak.
NetBay journal
Practical guides for Linux, containers, CI/CD, self-hosting, and running VPS infrastructure from Netbay Engineering.
599 articles · 24 topics
Store API keys and tokens safely on a Linux VPS with strict file permissions, protected environment files, and vault basics that survive a leak.
A large monorepo only stays usable with clear ownership. Use CODEOWNERS routing and path-scoped CI to keep review targeted and merges stay fast.
A production-ready API security checklist covering transport, auth, validation, throttling, and monitoring before you ship your API to production.
Keep the listening socket in systemd so Node restarts do not drop the bind, and nginx clients stop seeing connection refused during deploys.
Set honest RPO and RTO numbers when the origin is one Lucknow datacenter: replica nodes, tested restores, and offsite copies you actually own.
Read EXPLAIN ANALYZE until you can tell a Seq Scan from an Index Scan, then add btree indexes that match filters, joins, and ORDER BY clauses.
Install WordPress by hand on Ubuntu with nginx, PHP-FPM, and MariaDB: core files, wp-config, permalinks, and hardening without a one-click app marketplace.
Schedule LLM work with systemd timers, lock files, and spend caps so nightly jobs finish, log, and fail loud instead of overlapping on your VPS.
SELinux denies by default where file permissions allow everything. Understand enforcing, permissive, targeted policy, and how to read a denial calmly.
Replace long-lived cloud credentials in GitHub Actions with OpenID Connect — short-lived minted tokens bound to your repository by a trust policy.
Forward proxies relay outbound requests from your clients to the internet; learn when you need one and how to run a small, safe one on your VPS.
Start DMARC at p=none, read aggregate reports, then raise to quarantine and reject once every legitimate sender aligns. Do not skip the report week.