Blog

AI Agents

One Key, One Blast Radius

The fastest way to widen an incident is to give every agent, every environment, and every customer app the same credential. A leaked key then unlocks the whole fleet. A revoked key takes the whole fleet down. You cannot tell which product called the model, and you cannot rotate one integration without coordinating all of them.

Security for an agent starts at the secret the application presents. If that secret is shared, least privilege is already gone, no matter how careful the prompt is.

The application is the principal

Luminafactory treats the consumer application as the security principal. You provision an application, then an API Key Profile for it. The secret is shown once. After that, the portal holds the profile: you rotate when a laptop is lost, and you revoke when an integration should stop. The rest of your agents keep running.

Your SaaS, your internal tool, and a partner integration do not share a secret. Each calls the Direct API—chat, sessions, and attachments—with its own key. Real-time events come back on that session, so support and security can see what that application's agent did.

Consumer applications call the Direct API with API Key Profiles
Each consumer app calls with its own API Key Profile and receives events for its sessions.

Practices that follow from the model

  • One profile per application. Use a separate profile per environment when development and production must not meet.
  • Show the secret once, then store it properly. Put it in your own secret store. Keep it out of chat, tickets, and shared documents.
  • Rotate on a schedule you can explain. Revoke immediately when a key may have left your control.
  • Watch usage by application. A spike on one profile is a signal. A spike on a shared key is a mystery.

Keys and publish work together

Pair profiles with the agent lifecycle. A sandbox agent and a published agent should not be reachable through the same casual credential. The key decides which application is allowed to call. Publish decides which agent version answers. Together they give you a blast radius you can name: this app, this environment, this version.

Shared credentials feel simple until the first incident. API Key Profiles take minutes to set up and make the next incident smaller. Read Sandbox Before You Publish for the version side of the same idea, or see how Lumina handles keys.

Share This Post