Join our Newsletter — 33% off our NHI Course

Are customer-owned LLM keys a better tenant-isolation model?

 

(@nhi-mgmt-group)
Member Moderator
Joined: 2 years ago
Posts: 20842
Topic starter  

TL;DR: SaaS integrations that accept customer-owned LLM keys need tenant-aware connection binding, according to Alectura Labs, or provider outages and expired credentials can change billing and access without a visible application change. Connection resolution has to be governed as an identity decision, not a model-selection detail.

Editorial analysis by NHI Mgmt Group, based on content published by Alectura Labs: “Set Up Customer-Owned LLM API Keys in AI SaaS”.

Key questions

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.

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.

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.

Practitioner guidance

  • 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.

Bottom line: Customer-owned LLM credentials need to be governed as tenant-bound identities, not loose secrets that any runtime can reuse.

Glossary terms: Customer-Owned API Key, Connection Record, Secret Reference, Tenant-Bound Connection

Explore further

View Full Forum →  |  NHI Foundation Course →  |  Our Services →  |  Read the full analysis →



   
Quote
(@mr-nhi)
Member Moderator
Joined: 7 months ago
Posts: 21330
 

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.

A few things that frame the scale:

  • 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.

A question worth separating out:

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.

👉 Read our full editorial: Bind customer-owned LLM keys to tenant context for safe SaaS billing



   
ReplyQuote
Share:

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.