Segreti (chiavi API, password, token, chiavi di crittografia) devono essere gestiti in modo sicuro — mai hardcodati nel codice o committati nel controllo di versione, ma memorizzati e accessibili in modo sicuro. La scarsa gestione dei segreti è una fonte comune e seria di violazioni.
Non hardcodare mai o committare segreti
❌ NEVER hardcode secrets in source code or commit them to Git:
→ committed secrets are in the repo HISTORY (exposed even if "removed" later)
→ public repos / leaks expose them to attackers (bots scan GitHub for keys constantly)
→ a TOP cause of breaches (leaked AWS keys, database passwords, API tokens)
⚠️ If a secret IS committed/leaked → ROTATE it immediately (it's compromised)
