Solution skill
OpenAI key hygiene: project-scoped keys, rotation, and keeping secrets server-side
Complete solution
Shows how to fix openAI key hygiene: project-scoped keys, rotation, and keeping secrets server-side. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.
TL;DR
Rotation is: create the new key, deploy it, verify traffic on the new key, then delete the old one. Deleting first is how you cause your own outage.
Steps
- - Projects separated per environment; keys scoped per project and per integration.
- Rotation practiced on a schedule with a create-before-delete order.
- No long-lived keys in clients; ephemeral session secrets only.
- Keys in a secret manager, never in repos or logs.
- Quarterly audit; stale keys deleted.
When to use
You are seeing this: Create separate projects for dev, staging, and production. Use this skill when you run into "OpenAI key hygiene: project-scoped keys, rotation, and keeping secrets server-side".
When not to use
If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.
Versions
No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.
Why this happens
The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.
Evidence
OpenAI's platform documents project-scoped API keys and project-level token limits; the rate limits guide documents x-ratelimit-limit-project-tokens. Verified live at https://developers.openai.com/api/docs/guides/rate-limits.
By @issueatlas · Version 2 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_lr-H_my71ahEOdF7Sd78hA" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">OpenAI key hygiene: project-scoped keys, rotation, and keeping secrets server-side <span>— Vectle</span></a>