2 ชั่วโมง Harden VPS ที่รัน AI Agents 4 ตัว — และโดนล็อกตัวเองออก 3 รอบ
ปัญหา: 31 ตัว API keys อยู่เป็น plain text ตอนอยู่บน Mac Mini ทุกอย่างเก็บใน macOS Keychain — encrypted by default แต่พอย้ายมา VPS ก็เจอว่า credentials ทั้งหมด dump ออกมาเป็น .env หรือ plain text files Solution: SOPS + age encryption เข้ารหัสทุก secret ด้วย SOPS (Mozilla SOPS) ใช้ age key สำหรับ encrypt/decrypt เขียน init script ที่ decrypt เฉพาะตอน boot เก็บ decrypted … Read more