skip to content

You must set one estate-wide rule for which downstream systems mint per-consumer credentials — what makes a system qualify, and what makes you keep a shared credential there?

level: principalimportance: should knowfreq 32%

answer

  1. not every system qualifies
  2. can the far side create and remove
  3. what the store's identity would hold there
  4. blast radius won against administrator gained
  5. keep a shared value where removal is impossible

basics

~20 s

A system qualifies when it can create, narrowly grant and remove principals programmatically, and when the minting identity it demands is bounded. Keep a shared credential where removal is impossible, where the only way in is an unrestricted administrator you cannot justify, or where one credential reaches almost nothing.

solid answer

~40 s

The rule has to be a capability test, not a preference. A system qualifies if it can **create** a principal on demand, attach **narrow** rights to it, and **remove** it — and if the identity the store must hold there can be bounded to what it is meant to grant. Then weigh what you win against what you take on: winning is proportional to how much one credential reaches and how many consumers hold it; taking on is a standing privileged identity in a system someone else may operate. Systems that can create but not remove are the clearest disqualification, because you accumulate access you cannot end. Where the answer is no, say so and keep a shared value with a named owner rather than pretending.

go deeper

for a junior

Recall that minting per consumer is not universally possible: the system holding the data has to support creating and removing accounts on demand.

for a middle

Explain the capability test — create, grant narrowly, remove — and why a system that cannot remove is the clearest disqualification.

for a senior

Add the cost side: the minting identity the store must hold there, whether it can be bounded, and what the population cap means for a fleet-sized consumer count.

for a principal

Set and defend the rule for the estate, including the systems where the answer is no and what is required of a shared credential that stays — owner, holder list and a recorded reason.

## Why this needs a rule rather than a case-by-case instinct Once one team demonstrates per-consumer issuance against one system, the question arrives for every system in the estate, and the default answer becomes "generated is better". It usually is — but it is not free, and applied indiscriminately it produces standing privileged identities in systems nobody examined. A written rule does two things: it makes the capability test explicit, and it makes the cost visible to the people who operate the far side. ## The capability gate: three questions, all of them yes 1. **Can a principal be created programmatically**, with a name the store chooses and a value it can read back once? If accounts are created by a person, or arrive by synchronisation from somewhere else, the answer is no and the rest is moot. 2. **Can rights be attached narrowly, per principal, at creation?** If every account the system can create ends up with the same broad rights, minting buys attribution and nothing else — sometimes worth it, but it must be claimed as *that* and not as a reduced blast radius. 3. **Can the store remove a principal without a human?** This is the one most often waved through, and it is the clearest disqualification. A system that creates and cannot remove leaves you accumulating access you cannot end, with a population that only rises. That is a worse position than one shared credential whose existence everyone knows about. ## The cost gate: what the store must hold there The second half of the rule is about the minting identity the design requires: - **Bounded, or unbounded?** Where the system enforces that a grantor may hand out only rights it holds itself, you can deliberately hold a weak identity and cap everything it will ever create. Where it does not, the narrowness of each account rests entirely on the store's rules being right. - **Does it need rights to the data itself?** Where creating and granting is possible without reading, arrange that; it makes a compromise of the minting identity a route to access rather than access itself. - **Who operates the system?** A minting identity in a system another team runs is a standing negotiation: their limits, their upgrades and their idea of who may hold an administrator become your dependency. That is not a reason to refuse, but it is a reason to agree it in writing rather than by ticket. If the only path to create-and-grant is an unrestricted administrator, name the trade plainly: **a shared read credential has been exchanged for a standing administrator**. Sometimes that is still right, because the shared value had copies nobody can find while the administrator is one identity you can watch and remove. Sometimes it obviously is not. ## The value gate: where it is worth doing | Situation | Value of minting per consumer | |---|---| | Many consumers reading a system that holds a lot | Highest — blast radius and attribution both improve | | One consumer, one dataset, one credential | Low — you have added a dependency to save little | | A credential already copied into several places | High — the copies stop being the unit of risk | | A system that cannot attach narrow rights | Attribution only; say so | | A system with a hard principal cap near your fleet size | Conditional — budget the population first | The driver is **how much one credential reaches**, multiplied by how many holders it has. A widely-held credential to a system holding many datasets is where this design pays for itself; a single job reading a single table is where it mostly adds moving parts. ## Writing the rule down A usable estate rule is short and testable: - **Qualifies** when the system supports programmatic create, narrow grant and remove, *and* the minting identity can be bounded to the rights the template produces. - **Qualifies conditionally** when it supports all three but caps the principal population — subject to a budget for live accounts and an alarm on the fraction of that cap consumed. - **Does not qualify** when removal is not programmatic, or when the minting identity would be an unrestricted administrator in a system whose owner has not agreed to that. - **Where it does not qualify**, the system keeps a shared credential with a named owner, a recorded list of holders, and an honest statement that this is a residual risk rather than a decision quietly left unmade. ## The judgment an interviewer is listening for The weak answer is "generate everywhere, static credentials are bad". The strong answer accepts that this design concentrates power in the store, tests the far side's capability before promising anything, quantifies the win by what one credential reaches, and can name the systems in the estate where the honest answer is *no* — together with what is done instead so that "no" does not mean "forgotten".

  • A system supports every operation but caps principals below your fleet size. Does it qualify?
    Conditionally. The capability test passes, so the question becomes a capacity one: budget live accounts as consumers times overlapping generations, decide whether shortening the account's life or reusing one per consumer per window fits the cap, and alarm on the fraction consumed. If neither fits, it is a shared credential with a stated reason, not a design you ship and hope about.
  • What do you owe the team that operates a downstream system before your store starts minting in it?
    An explicit agreement about the identity you will hold there, what rights it needs and why, what your expected population and creation rate are, and how they can cut you off. Their system will carry principals they did not create, and their capacity limits become your failure mode; discovering that during an incident is how this design loses its welcome.
  • Where minting per consumer is refused, what should the rule require instead?
    A named owner for the shared credential, a recorded list of who and what holds it, and the reason the system did not qualify. The point is that "no" is a decision with a record, not an absence — otherwise the residual risk is invisible and nobody revisits it when the system gains the capability later.

saying these in an interview costs you the question

  • Mints everywhere because generated is always better
  • Ignores the standing administrator gained in each system
  • Qualifies a system that can create but cannot remove
  • Decides system by system with no stated rule
  • Assumes the operating team will not object to a minting identity