Why it matters
API keys pasted into Slack, Teams, tickets or email stay searchable for years, by everyone in the channel and by anyone who later gets access. Leaked keys are one of the most common causes of cloud breaches and surprise bills.
Good habits
- One key per person or company. Then you can revoke one without breaking everything else.
- Least privilege. Give the key only the rights the job needs, and only for the services it touches.
- Revoke when the work ends. Put a reminder in your calendar on the project’s end date.
- Never commit keys to code. Ask the contractor to keep keys in environment variables or a secrets manager.
Sending many keys
Put several related values in one secret, one per line, for example a key, its ID and the endpoint. The link opens once, so the contractor should save them straight into their own secrets manager.