Why your AI feature needs a service account, not a personal key
A feature wired to one engineer's key works until they rotate it or leave. Then it breaks, and nobody can see why.
Why your AI feature needs a service account, not a personal key
A team lead at a retail analytics company told me about a feature that stopped working on a Monday for no apparent reason. No deploy, no config change, no incident. It turned out an engineer had rotated a personal API key over the weekend as part of routine hygiene. That key was quietly powering a production feature nobody remembered wiring to it. The rotation was correct. The feature was built on a foundation that was never meant to hold it.
A personal key is invisible and fragile
When you build a feature on an individual’s key, you inherit two problems at once, and both stay hidden until they bite.
The first is fragility. That key belongs to a person. It rotates on their schedule, it carries their access, and it disappears when they leave the company. The feature’s uptime is now tied to one human’s account lifecycle, which has nothing to do with your release process. A routine security action, the kind you want people doing, becomes an outage. Worse, the outage has no obvious cause, because from the outside nothing changed.
The second is that the access is unauditable in the way that matters. Every action the feature takes shows up as that person doing it. When you later ask who touched a record or made a call, the logs point at an engineer who was asleep at the time. You cannot cleanly answer what the feature did versus what the human did, because as far as every system is concerned they are the same actor. You also cannot scope the feature’s access down, because the key carries everything that person can reach, which is almost always far more than the feature should have.
Give the feature its own scoped identity
The lesson is that a production feature is an actor and deserves its own identity. That means a service account or a scoped machine credential that belongs to the feature, not to a person, with least privilege, its own rotation, and its own audit trail.
What this buys you.
- The feature keeps running when people rotate keys or leave, because its identity is not attached to any of them.
- Access is scoped to exactly what the feature needs, so a mistake or a compromise is contained.
- The logs show the feature as itself, so you can audit what it did without untangling it from a human’s activity.
- Rotation is planned and owned, part of your operations, not a surprise from someone’s weekend cleanup.
This is not a large piece of work. It is deciding, before launch, that the feature gets a proper identity instead of borrowing one. The cost of skipping it is paid later, on a random Monday, with a broken feature and no clear reason why.
How we approach it at Density Labs
Most AI features that break for mysterious reasons were quietly standing on a personal credential that was never meant to carry production. The demo used whatever key was handy, and the handy key became load-bearing without anyone deciding it should.
Our AI Opportunity Assessment is a fixed two-week engagement, priced at $2,500, that scopes the real production work before you build. Part of that is giving the feature a scoped service identity with least privilege and a rotation plan, so it runs as itself and its access is both contained and auditable from the day it ships.
If a person rotating their key can take your feature down, the feature does not have an identity yet. Give it one.