In this article
- Summary of the controls
- Why AI vendor keys need their own governance
- What regulators expect from suppliers
- What the NIST standard asks for
- What the AI vendors recommend
- A governance model in six controls
- What to check before approving an AI vendor
- Which one to pick, by team type
- Frequently asked questions
- Can one AI API key be shared across a team?
- How often should AI vendor keys be rotated?
- Does a DORA-regulated bank still need to check its AI vendors?
- Is a spend limit enough to control an AI key?
AI vendor risk is mostly an access problem. An API key that lets a third-party model service read your data, run jobs and bill your account is a credential, and most of the damage happens when that credential is shared, committed to a repository, left without an owner or never rotated. The short answer: give every AI vendor key a named owner, a narrow scope, an expiry date, a hard spend limit and a documented way to revoke it. Where the vendor supports workload identity, use that instead of a long-lived key.
This article explains the governance model behind that answer. It draws only on vendor documentation, a European financial regulator’s Q&A on third-party ICT providers, and a NIST standard on supply chain risk. It names no incident. It is general analysis, and the sources are listed at the end.
Summary of the controls
| Control | What it limits | Where the guidance comes from |
|---|---|---|
| One key per person or workload | Shared keys that cannot be traced or revoked | OpenAI API key safety |
| Keys kept out of code, repositories and browsers | Credential leaks through commits and client bundles | OpenAI, Google Cloud |
| Restrictions and least-privilege scope | The damage a stolen key can do | Google Cloud, Anthropic workspaces |
| Expiry and scheduled rotation | Keys that stay valid long after they are needed | OpenAI, Google Cloud |
| Hard spend limits | Runaway billing when a key is abused | OpenAI, Anthropic workspaces |
| Vendor risk assessment and contract terms | Supplier failures that you remain responsible for | EIOPA Q&A 3501, NIST SP 800-161 Rev. 1 |
Why AI vendor keys need their own governance
Most AI integrations start with one developer who pastes a key into a notebook. Within months the same key runs in a staging job, a support tool and a marketing script. Nobody can say which system uses it, what it is allowed to do or who approves a change. That pattern is ordinary software sprawl, but AI vendor keys carry extra weight. They open access to prompts that often contain customer data, they can start paid jobs at scale and they usually sit outside the identity system that already governs staff accounts.
Treat each vendor key as a privileged account. It needs an owner, a list of the systems that use it, a scope and an end date. If you cannot write those four things down for a key, the key is already a finding.
What regulators expect from suppliers
For financial entities in the European Union, the Digital Operational Resilience Act (Regulation (EU) 2022/2554, “DORA”) sets the rules for ICT third-party providers. The European Insurance and Occupational Pensions Authority (EIOPA) published a final answer on 26 January 2026 in its Q&A database, under DORA Article 28. Three points from that answer matter for AI vendor risk.
- The financial entity stays fully responsible for its DORA obligations. Responsibility for an outsourced AI service cannot be handed to the vendor.
- Audit and access rights cannot be impeded or limited by other contractual arrangements or implementation policies, under Article 30(3)(e)(i).
- A provider’s status under the NIS2 Directive does not switch off DORA Articles 28 to 30. A contract with a NIS2-regulated AI provider still has to meet the DORA requirements.
This is an interpretation from one regulator’s Q&A, not a full legal reading of DORA. Whether it applies to your organisation depends on your licence, your sector and your national rules. Check with counsel before you rely on it for a contract decision.
What the NIST standard asks for
NIST Special Publication 800-161 Revision 1, “Cybersecurity Supply Chain Risk Management Practices for Systems and Organizations”, was published in May 2022. It gives guidance on identifying, assessing and mitigating cybersecurity risks throughout the supply chain, and it describes how to fit that work into existing risk management. NIST published an update, SP 800-161 Rev. 1 upd1, with updates as of 1 November 2024. Use the update as the current reference and the original as history.
For an AI vendor, the practical reading is simple. Know which vendors touch which data. Assess them before the key is issued, not after the first bill. Keep the assessment current when the vendor’s product, region or data handling changes.
What the AI vendors recommend
Three large providers publish key guidance. Their wording differs, but the advice overlaps.
- OpenAI says each team member should have a unique key, because “OpenAI does not support the sharing of API keys”. It advises against committing keys to source control and against deploying them in browsers or mobile apps, and it asks that requests go through your own backend. It recommends monthly spend limits with hard enforcement, since “spend alerts alone don’t stop API traffic”. If a key may have leaked, rotate it at once. For supported workloads, it recommends workload identity federation over a long-lived key, and a dedicated service account with only the permissions the workload needs.
- Google Cloud says key restrictions “reduce the impact of a compromised API key”. It asks teams to keep keys out of client code and repositories, to send the key in the
x-goog-api-keyheader rather than in the URL, to rotate keys periodically and to delete keys that are no longer used. For most APIs it advises against using authorisation keys in production, and it points to IAM policies and short-lived service account credentials. Google notes one exception, the Gemini API. - Anthropic groups keys into workspaces that organise API keys, manage team access and control costs. Only organisation admins can create workspaces. Spend and rate limits are set per workspace. Its Admin API can manage keys, and it never returns a key’s secret value after creation.
A key is a bearer credential: whoever holds it can use it. So the controls have to surround the key, covering where it is stored, who can see it, what it can reach and how fast it can spend.
A governance model in six controls
This model is our checklist for applying the vendor guidance. It is not a standard, and it draws only on the sources listed at the end.
- Inventory. List every AI vendor key, the system that uses it, the owning team and the vendor account it belongs to. Include keys in CI variables and notebooks.
- Ownership. Give each key one accountable owner. A shared key has no owner, so split it.
- Scope. Restrict the key to the APIs, models and workspaces it needs. Use a separate workspace or project for each environment, so a staging key cannot reach production data.
- Storage and transport. Keep keys in a secret manager. Keep them out of repositories and browser code. Send them in headers, never in URLs.
- Expiry and rotation. Set an expiry where the vendor allows it, and rotate on a schedule. Rotate immediately when a key may have leaked, then delete the old key.
- Spend limits and monitoring. Set hard monthly limits for each project or workspace. Review usage by key, and remove keys whose owner has left or whose system has been retired.
What to check before approving an AI vendor
- Data handling. Which data reaches the vendor, where it is processed and whether it is used for training. Ask for the written terms, not a summary.
- Access and audit rights. Confirm that your audit and access rights are written into the contract and are not limited by other terms. This is the point EIOPA addresses for DORA.
- Key controls the vendor offers. Workspaces or projects, per-key scope, expiry, spend limits, IP restrictions and workload identity. A vendor without these forces you to compensate elsewhere.
- Subprocessors and changes. Who else handles the data, and how you hear about changes. This follows the NIST advice to keep assessments current.
Which one to pick, by team type
A small team with one or two AI integrations can start with the six controls above, one owner per key, a secret manager and a hard monthly limit. That covers most of the exposure with little overhead.
A regulated financial entity needs the controls above plus a documented vendor assessment, contract terms that secure audit and access rights, and a review by counsel or compliance. The EIOPA answer makes clear that the responsibility stays with the entity.
An organisation that can use workload identity should prefer it. Where a vendor supports it, a short-lived credential removes the long-lived key from the risk picture. Where it does not, keep the key scoped, expiring and capped.
Frequently asked questions
Can one AI API key be shared across a team?
No, not according to OpenAI, which states that it does not support sharing API keys. Give each person or workload its own key, so that access can be traced and revoked separately.
How often should AI vendor keys be rotated?
The vendors recommend periodic rotation and immediate rotation after any possible leak. Google Cloud describes rotation as creating new keys, updating applications and deleting the old keys. Pick an interval that your teams can actually run, and record it in the inventory.
Does a DORA-regulated bank still need to check its AI vendors?
Yes. EIOPA’s January 2026 answer says the financial entity remains fully responsible for its DORA obligations. Whether a given AI service falls within DORA depends on the service and the entity, so check with counsel.
Is a spend limit enough to control an AI key?
No. A spend limit caps the cost of misuse but does not stop access to data or the misuse itself. It belongs alongside scope, storage rules, expiry and monitoring.



