Security & Cryptography

Security & Cryptography

In-depth Big-Tech software architecture articles on Security & Cryptography by Duong Phuc Khanh (khanhdp · Kido). (Total 1 in-depth engineering monographs & publication essays).

The Fallacy of Single-Host Patroni HA, pgBackRest PITR Reality, and Constant-Time Webhook Cryptographic Hardening
Security & Cryptography
Nov 11, 2026•16 min read

The Fallacy of Single-Host Patroni HA, pgBackRest PITR Reality, and Constant-Time Webhook Cryptographic Hardening

A deep-dive into database architecture and application security: dissecting the 'Cargo Cult HA' anti-pattern of packing etcd Raft and Patroni into a single constrained VPS, mathematically proving OOM crash risks and WAN consensus latency degradation, establishing the production standard of PostgreSQL 18 + pgBackRest PITR, and remediating 4 critical P0 vulnerabilities (Command Injection, Webhook Fail-Open, and process.env pollution) via constant-time defenses.