Independent analysis by NHI Mgmt GroupSource article: Alectura Labs, “Set Up Customer-Owned LLM API Keys in AI SaaS” (November 21, 2026)

TL;DR: SaaS integrations using customer-supplied LLM API keys must bind each key to the authenticated tenant, because outages, expired keys, or cached connection state can silently shift billing and access across provider accounts, according to Alectura Labs. Identity-aware connection resolution turns provider usage into a governance problem, not just an application setting.


At a glance

What this is: NHI Mgmt Group's analysis, drawing on Alectura Labs's blog post: Customer-owned LLM API keys must be bound to tenant context, or provider failover and stale connection state can silently alter billing and access decisions.

Why it matters: This matters because IAM, NHI governance, and SaaS control design now intersect at the point where an authenticated tenant, a secret, and a provider account are resolved together.


Context

A customer-owned LLM key is a secret that should only authorize the tenant, project, and provider route it was issued for. Once a SaaS product resolves that key dynamically, the control problem becomes identity binding, not simple secret storage. API key management only works when the runtime can prove which customer owns the credential before every provider call.

The failure mode is silent route drift. If the system falls back to a vendor-billed path, an expired credential or outage can redirect traffic without an obvious application change, which makes billing, auditability, and tenant isolation part of the same governance boundary.

This pattern is common whenever a SaaS platform mediates customer-owned credentials across multiple environments. The question is not whether the model responds, but whether the right tenant and secret are still bound at dispatch time.


Key questions

Q: How do I bind customer-owned LLM keys to tenant context?

A: Bind the key to a single tenant by storing tenant ID in the secret record, enforcing scoped routing in the application, and checking the request against an approved provider route before use. That prevents one customer-owned LLM key from being reused across tenants or billed to the wrong account, and the key should be rotated or disabled if the binding is changed.

Q: Why do LLM provider outages create billing governance risk?

A: LLM provider outages create billing governance risk because failover, retries, or route switching can send traffic through a different account or billing path than the one approved for that tenant. Finance and access controls can lose traceability unless each request is tied to a governed API key, a tenant record, and an immutable usage log.

Q: How should teams audit administrative changes to API key connections?

A: Audit administrative changes by recording who changed the API key connection, when it changed, what was altered, and the before-and-after state of the connection ID. A complete audit trail should cover secret rotation, tenant reassignment, route updates, and any privilege used to make the change, so reviewers can detect unauthorised re-binding or shadow connections.

Q: What is the difference between customer-owned and vendor-billed API routes?

A: Customer-owned API routes charge usage to the customer’s own API key and account, while vendor-billed routes charge usage through the provider or platform’s billing arrangement. The first gives the customer direct control over quota, spend, and key rotation, while the second centralises procurement but can reduce tenant-level billing visibility and control.


Technical breakdown

Tenant-bound key resolution

A tenant-bound LLM integration ties each request to an authenticated customer, environment, provider, and approved destination before the runtime loads the secret. That design prevents a model name or cached lookup from becoming the source of truth. The important mechanism is the association record, not the API key alone. If the key is detached from tenant context, the same secret can be reused across customers, environments, or fallback routes without any change visible to the caller.

Practical implication: Store the connection metadata separately from the secret and resolve it from tenant context on every attempt.

Provider route drift and billing ambiguity

Route drift happens when the same integration can reach more than one provider account or project, but the application does not distinguish which one was used. A successful inference call then proves only that a model answered, not which tenant credential, project, or billing boundary was actually in force. This is an identity governance issue because usage attribution, revocation, and approval all depend on the route that was selected at dispatch time.

Practical implication: Log the connection ID, provider request ID, and served model so billing and access decisions can be reconciled later.

Connection ownership and administrative control

A governed connection should have an owner, a permitted scope, and a clear administrative boundary for creation, testing, and disablement. That record allows operations teams to audit changes against the connection rather than against the secret itself. In practice, this is the difference between secret management and lifecycle governance. Without ownership, a disabled key, a fallback route, or a queued worker can all behave like legitimate access even when the tenant relationship has changed. See the Non-Human Identity (NHI) Guide.

Practical implication: Treat connection records as governed identities and restrict who can modify them.


NHI Mgmt Group analysis

Customer-owned API keys are becoming governed identities, not just credentials. A SaaS platform that resolves a customer-supplied LLM key at runtime is making an identity decision every time it calls a provider. That decision has to preserve tenant, project, destination, and billing context together, or the secret outlives the control that was supposed to constrain it. Practitioners should treat the connection record as the real security object.

Route drift is the failure mode hidden inside resilient integration design. When a system can retry, fail over, or fall back across provider accounts, the same model invocation can cross an invisible ownership boundary. That is a governance problem because the application behaviour stays stable while the accountability model changes underneath it. The connection must remain bound to the tenant even when the provider path changes.

Least privilege for LLM access depends on the approved destination, not the model name. A model label alone does not tell you which account pays, which project owns the usage, or which data rules apply. The article shows why identity controls must track customer ID, environment, provider, and secret reference as one unit. That is the difference between tenant isolation and shared access with better labeling.

Identity review fails if the runtime can replace the credential path after approval. A queued job that resolves a connection later can load a secret after revocation, or load a different route if the environment changes. That means the governance assumption is not simply weak visibility, but that the credential path remains stable long enough to be reviewed. Practitioners need dispatch-time validation, not just onboarding-time approval.

Customer-owned model access should be modeled as a lifecycle problem. The ownership of the connection, the scope of the secret, and the conditions for disablement all need the same governance discipline as any other non-human identity. The useful shift here is to stop treating API key handling as an implementation detail and start treating it as a tenant-bound identity lifecycle.

From our research library:

  • DeepSeek alone generated 113,000 new exposed API keys in 2025, illustrating how new AI providers create credential exposure before security guardrails catch up, according to the State of Secrets Sprawl 2026.
  • Only 20% have formal processes for offboarding and revoking API keys, and even fewer have procedures for rotating them, according to the Ultimate Guide to NHIs.
  • Read next: API Key Management Guide

What this signals

Connection ownership is the missing unit of governance. A secret can be rotated and still remain misbound if the runtime does not re-resolve tenant context at dispatch time. The practical shift is to govern the connection record as the durable identity object, because that is where ownership, scope, and approval state actually live.

SaaS teams should expect more pressure to prove which tenant, project, and provider account processed each AI request. The control point is moving from static key storage to runtime attribution, and connection records become the evidence trail that makes tenant isolation defensible.

If a customer-supplied credential can be swapped for a SaaS-billed fallback without a clear policy boundary, the integration has an identity drift problem. That drift will surface first in auditability and chargeback, then in incident response when revoked or expired keys still appear to be functioning.


For practitioners

  • Bind each key to tenant context Resolve the connection from authenticated customer, environment, and feature on every provider attempt so the runtime never infers ownership from the model name or cache state alone.
  • Record governed connection metadata Store customer ID, provider, project reference, approved destination, permitted models, and secret reference in the connection record, then audit changes against that record instead of the key itself.
  • Separate customer and vendor billing paths Keep customer-owned routes distinct from any route billed to the SaaS account, and require explicit approval before enabling a managed fallback.
  • Revalidate queued jobs at dispatch Have workers recheck the connection against the job's customer ID before loading the secret, especially after revocation, expiry, or environment changes.
  • Audit provider usage against the owning project Keep connection ID, request result, served model, and usage counters so finance and security teams can confirm which provider project actually processed the request.

Key takeaways

  • Customer-owned LLM credentials need to be governed as tenant-bound identities, not loose secrets that any runtime can reuse.
  • The core risk is silent route drift, where a provider outage or expired key changes ownership and billing without an obvious application change.
  • Practitioners should tie every request to a connection record, revalidate it at dispatch, and keep billing paths separate from customer-owned access.

Related NHI Mgmt Group resources: Ultimate Guide to NHIs · NHI Authentication Guide · API Key Management Guide · Guide to the Secret Sprawl Challenge


Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP Non-Human Identity Top 10 addresses the attack and risk surface, while NIST SP 800-53 Rev 5 and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Non-Human Identity Top 10NHI-05 — Overprivileged NHICustomer-owned LLM keys become overprivileged when route, project, and billing scope are not bound to tenant context.
NHI-01 — Improper OffboardingRevoked or expired customer connections must be disabled cleanly or queued jobs may still act on them.
NHI-07 — Long-Lived SecretsThe article centers on API keys that can outlive their intended tenant association and route approval.
Recommendation — Bind each credential to the narrowest approved tenant, route, and destination scope. Disable stale connections and validate revocation before any dispatch-time secret load. Shorten key lifetime and tie rotation to connection lifecycle events.
NIST SP 800-53 Rev 5IA-5 — Authenticator ManagementAPI keys are authenticators whose storage, rotation, and revocation need lifecycle control.
AC-6 — Least PrivilegeThe runtime should only reach the customer-approved provider route and destination for each connection.
Recommendation — Manage API keys through lifecycle controls that cover issuance, rotation, revocation, and expiry. Limit each tenant connection to the smallest approved set of models, destinations, and operations.
NIST CSF 2.0PR.AA-05 — Access Permissions, Entitlements and AuthorizationsTenant-bound provider access depends on correct entitlements for each connection and fallback path.
Recommendation — Map each provider route to explicit entitlements and verify them at every use.

Key terms

  • Customer-Owned API Key: A customer-owned API key is an API credential supplied and paid for by the customer rather than by the platform or service provider. It is used to call a third-party API under the customer’s account, so ownership, rotation, quota, and revocation stay with that customer.
  • Connection Record: A connection record is the stored entry that describes an integration between two systems, including the endpoint, authentication method, ownership, scope, and status. It is used to manage the connection’s lifecycle, audit changes, and trace which secrets or permissions are attached to it.
  • Secret Reference: A secret reference is a pointer used in configuration or policy code to retrieve a sensitive value at runtime. It lets teams keep the secret out of the file itself while still making it available to the control that needs it. This pattern improves rotation and reduces accidental exposure.
  • Tenant-Bound Connection: A tenant-bound connection is an integration link that is tied to one specific tenant or customer account. The binding associates the connection with a tenant identifier, access scope, and billing context, so requests and secrets are not shared across tenants.

Deepen your knowledge

NHI governance, agentic AI identity, and machine identity security are core topics in our NHI Foundation Level course, the industry's only accredited NHI security programme. If you are building or maturing an IAM or NHI governance programme, it is worth exploring.
NHIMG Editorial Note
Published by the NHIMG editorial team on November 25, 2026.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org