Tajne dane (klucze API, hasła, tokeny, klucze szyfrowania) muszą być zarządzane bezpiecznie — nigdy nie powinny być zakodowane w kodzie lub zaangażowane w kontrolę wersji, ale przechowywane i dostępne w bezpieczny sposób. Słabe zarządzanie tajnymi danymi jest częstym i poważnym źródłem naruszeń.
Kardynalna zasada: nigdy nie koduj ani nie zaangażuj tajnych danych
❌ 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)
