CI/CD pipeline ต้องการ secrets (API keys, deployment credentials, รหัสผ่านฐานข้อมูล, tokens) เพื่อ build และ deploy แต่การจัดการอย่างไม่ปลอดภัยเป็นความเสี่ยงร้ายแรง การจัดการ secrets ที่เหมาะสมทำให้ credentials ปลอดภัยตลอด pipeline
ปัญหา: secrets ต้องไม่ถูกเปิดเผยเด็ดขาด
Pipelines need credentials, but secrets are a major security risk if mishandled:
⚠️ NEVER hardcode secrets in code, pipeline config files, or commit them to Git
(committed secrets are exposed in history — even if "removed" later)
⚠️ NEVER print secrets in logs (pipeline logs may be visible/stored)
→ Leaked CI/CD secrets (deploy keys, cloud credentials) can compromise entire systems.
