June 28, 2022 Secrets Things, Env Vars, How to Handle API Keys Correctly 071
In this episode, James shares common mistakes people make with their API Keys and explains the appropriate way to handle them.
COMPRESSED.fm Episode 71 Secrets Things, Env Vars, How to Handle API Keys Correctly Jump Links
Where do API Keys come from?
Mistakes People Make with API Keys
Mistake #1: Hard Coding the API Key Value
Mistake #2: Adding an API Key to the .env file, but still exposing the key
Mistake #3: Committing Your Key to Source Control
What should you do about a leaked API key?
The Best Way to Handle Secrets
Where would you put a Bearer Token?
Server Side Rendering
Public API Keys
Grab Bag Questions
What's the best way to share environmental variables across different machines?
What are the pros and cons of system environmental variables vs a KMS (Key Management System)?
Picks and Plugs
James's Pick: Sketcher's Tennis Shoes from Costco
Amy's Picks: James Clear Newsletter
Amy's Pick: Keystone.js on Level Up Tutorials
SUBSCRIBE ON YOUR PODCATCHER OF CHOICE Sign up for the newsletter
Want to stay up to date on our podcast? Get a behind-the-scenes look and know when new episodes drop.