Guides
Plain answers about keeping the sensitive strings that aren’t logins: API keys, tokens, and two-factor recovery codes. Each guide stands on its own, and each one says when something other than Secret Store is the better choice.
- Where to store API keys on a Mac
— the options from
.envfiles to the keychain, what each one risks, and what to use when a script or CI needs the key. - Where to keep two-factor recovery codes — the codes that get you back in when you lose your phone, and how to keep them both safe and findable.
- Keep API keys out of .env files with the macOS keychain — load secrets into your shell from the login keychain instead of a plaintext file in your project.
For developers: How iCloud Keychain stores and syncs an app’s secrets is a reference on what happens when a third-party app keeps secrets in iCloud Keychain, from the two Mac keychains to how conflicts between devices resolve.