Where should API keys live?
Keys belong in server-side secrets, not source files, mobile applications, screenshots, support tickets, or public browser bundles.
Which controls reduce exposure?
Use narrow origin allowlists for intended browser origins, independent keys for separate systems, and a Pro cap sized to expected traffic.
What should never be logged?
Redact Authorization, X-API-Key, raw secret values, and URLs if a credential was accidentally placed in a query string.