skip to content

Secret Management Concepts

Where credentials and keys are held, how a workload proves it may have one, and what it takes to replace one without an outage. Asked because most estates have a store and far fewer can rotate.

on this pageshow

explore

questions

220 · 9 sections

Every credential your team uses is held in a secret store, so where do copies of those values still come to rest outside it?

level: juniorimportance: must knowfreq 68%
basics
~20 s

Copies rest wherever a person once moved the value by hand: a configuration repository and its history, a chat thread, a ticket attachment, a runbook page, a laptop's shell history and terminal scrollback, and private notes.

open as a page

Reviewing an admin tool's settings file, what single test tells you which entries are secrets and which are configuration?

level: juniorimportance: must knowfreq 74%
basics
~20 s

If disclosing a value lets someone act with rights you hold, it is a secret; if it only tells the process where to go or how to behave, it is configuration. Being sensitive is not the test.

open as a page

One shared credential is held by several hundred upload collectors and one host is compromised - what does withdrawing it cost?

level: middleimportance: must knowfreq 66%
basics
~20 s

Withdrawing a fleet-shared credential stops every holder at once, not just the compromised host: several hundred collectors fail together. Sharing traded per-host containment for one estate-wide switch, so containment and outage became the same action.

open as a page

A service's database credential has been valid for four years — what does cutting that to one hour actually buy?

level: middleimportance: must knowfreq 64%
basics
~20 s

Shortening validity caps how long an undetected leak stays usable: a copy of a one-hour credential found in a log next week is inert, while the four-year one still works. It changes nothing about the minutes an attacker already had.

open as a page

Before an estate can decide which credentials to replace, it needs an inventory, so what does one row of it have to carry?

level: middleimportance: must knowfreq 52%
basics
~20 s

A usable row names the credential, the system it authenticates to, its class, where the value of record is held, a single accountable owner by name, when it last changed, and the copies known to rest outside the store.

open as a page

What does a secret store give that one encrypted credentials file cannot, when the file's key is held outside the repository?

level: juniorimportance: must knowfreq 70%
basics
~20 s

Four things the file structurally cannot: rights granted per name instead of one key that opens everything, a record of each read, withdrawal of one holder without re-keying the rest, and values minted per consumer on request.

open as a page

A secret store encrypts its files and backups on disk - which attacks does that remove, and which does it leave untouched?

level: middleimportance: must knowfreq 62%
basics
~20 s

Encrypting a store's files removes the value of any offline copy: a stolen disk, a decommissioned volume, a copied backup. It changes nothing for anyone the store answers - an allowed caller, or an operator reading the serving process.

open as a page

A restarted secret store is running but refuses every read until the key protecting its contents is supplied — where can that key come from?

level: middleimportance: must knowfreq 60%
basics
~20 s

The protecting key must arrive from outside the store's own records: recombined from a threshold of shares held separately, unwrapped by a device or a separate key service the store authenticates to, or held by a managed provider that applies it for you.

open as a page

After a stored database password is replaced, what makes the previous value still fetchable to the same callers?

level: middleimportance: must knowfreq 62%
basics
~20 s

Most stores append a version rather than overwriting the old one, so the earlier value stays in the name's history and any caller with read rights on that name can ask for it by version. Replacing is not retiring.

open as a page

A departing contractor held the key to one encrypted credentials file — what must you do that a store would not?

level: middleimportance: must knowfreq 58%
basics
~20 s

Re-key and replace everything. One file-wide key means the departure exposes every entry, so each value is replaced, the file re-encrypted under a new key and every consumer redeployed. A store withdraws that one identity's grant instead.

open as a page

A secret store releases nothing until the caller authenticates, so what must already exist on a machine before its first fetch?

level: juniorimportance: must knowfreq 60%
basics
~20 s

Something the store already accepts must be on the machine before it can fetch anything: the bootstrap credential. Moving secrets into a store does not remove that first one. It only decides where it comes from and how long it lives.

open as a page

Why does a secret store treat an engineer signing in at a terminal differently from a service re-authenticating at restart?

level: juniorimportance: must knowfreq 66%
basics
~20 s

A person is present, can answer a prompt, and acts under a name the organisation already knows. A service authenticates with nobody watching, at any hour, so nothing in its path may wait for a human, and its name belongs to no individual.

open as a page

Forty service credentials now live in a store and each machine holds one long-lived store token, so what actually improved?

level: middleimportance: must knowfreq 54%
basics
~20 s

Forty scattered values became one inventoried set that can be scoped, replaced and recorded centrally. What did not improve is the machine itself: it still holds one static long-lived value, and that value now reaches everything the store will release to it.

open as a page

When a secret store verifies proof signed by an issuer it does not run, what does a valid signature alone establish?

level: middleimportance: must knowfreq 58%
basics
~20 s

A valid signature establishes only that a particular issuer vouched for a particular subject. Whether that issuer is trusted here, which of its subjects are accepted, and which local identity results are all the store's own decisions.

open as a page

A platform-signed identity document arrives at the store from a workload holding no stored secret — what does the store verify before releasing a value?

level: middleimportance: must knowfreq 60%
basics
~20 s

Four things: that the signature comes from an issuer it already trusts, that the document names this store as its recipient, that its subject is a workload the store has a rule for, and that it was minted recently.

open as a page

What do read, write and list rights over a secret store each permit, and why is store-wide read-only still too much?

level: juniorimportance: must knowfreq 64%
basics
~20 s

Read returns one named value, write creates or replaces a value, and list returns the names under a branch without their contents. Store-wide read-only is still too much because one compromised caller then reaches every credential the estate holds.

open as a page

What makes a credential break-glass rather than an administrative account a few trusted engineers simply hold?

level: middleimportance: must knowfreq 55%
basics
~10 s

Break-glass access is pre-authorized but held by nobody day to day: it is opened deliberately, bounded by a time box, alerts a channel the opener cannot suppress, and is reviewed after every single use.

open as a page

Why keep a secret store's access rules as reviewed text applied by a job, rather than editing the live rules directly?

level: middleimportance: must knowfreq 55%
basics
~20 s

Reviewed text gives a rule change a proposal, an approver and a declared set the live rules can be compared against. A live edit gives none of those, so an undeclared grant has nothing to show up against.

open as a page

Six months of read records show an admin tool's wildcard grant touching four names — what narrower rule do you write?

level: middleimportance: must knowfreq 58%
basics
~20 s

Write the four observed names in explicitly, but treat the record as a lower bound on need rather than a full picture: extend the observation past the slowest cycle the tool takes part in, and keep a fast way back, before enforcing.

open as a page

A standing right to read a customer-data credential becomes a grant issued on approval and expiring on its own — what changes?

level: middleimportance: must knowfreq 56%
basics
~20 s

A just-in-time grant replaces an always-live right with one that exists only inside an approved window, so every read carries a reason, an approver and an end time, and nothing is left for anyone to revoke.

open as a page

A six-hour nightly export read its credential once at start-up and failed at hour five — why did the process never notice?

level: middleimportance: must knowfreq 58%
basics
~20 s

Nothing pushes an expiry to a holder. The job copied the value into memory once and never asked again, and validity is decided by whoever accepts the credential — so the expiry surfaces only as a refusal on the next request that presents it.

open as a page

A stolen workload identity calls credential issuance in a loop for twenty minutes — why does the exposure outlast those minutes?

level: middleimportance: must knowfreq 55%
basics
~20 s

Each issued credential carries its own lifetime, independent of the session that requested it. Twenty minutes of issuance at a few hundred calls a minute can leave thousands of working credentials that stay valid for their full lifetime afterwards.

open as a page

A consumer has renewed the same issued credential nightly for six weeks — what control should have stopped that, and what does it force?

level: middleimportance: must knowfreq 50%
basics
~20 s

A maximum life: a ceiling measured from first issue that no renewal passes. Once it is reached the store refuses to extend, and the only way forward is a different credential, freshly issued and adopted by the consumer.

open as a page

A worker extends the credential its store issued rather than asking for a fresh one — what changes and what does not?

level: middleimportance: must knowfreq 60%
basics
~20 s

Renewal moves one field: the expiry. The value, the downstream account behind it and every connection using it stay as they are. Re-issuance mints a different credential, so every holder must be handed the new value and the old one withdrawn.

open as a page

A store mints each reporting job its own downstream account at start-up — what must that downstream system expose for this to work?

level: middleimportance: must knowfreq 58%
basics
~20 s

The downstream system must let the store create a principal on demand, attach exactly that consumer's rights to it, and remove it again — and must accept an identity for the store privileged enough to do all three.

open as a page

A contractor who knew a shared admin credential rolls off — why does disabling their accounts not end their access?

level: juniorimportance: must knowfreq 58%
basics
~20 s

Disabling an account closes one path to the value; it does not withdraw the value. A shared credential the person already read is a copy nobody can recall, so it must be replaced and the old value refused.

open as a page

The access rules say which identities may read a shared warehouse credential — why is that not the list you rotate against?

level: middleimportance: must knowfreq 58%
basics
~20 s

A grant list names who may read the value; rotation needs who actually holds it. Permissions overstate it with idle standing grants and understate it with copies taken once, fleets behind one identity, and holders that never call the store.

open as a page

An operator replaced a payments service's database password in one step and requests began failing — what went wrong?

level: middleimportance: must knowfreq 62%
basics
~20 s

A one-step swap has no instant at which every holder switches. The database stopped accepting the old password while running processes still held it, so their next connection failed. Safe replacement needs both values accepted at once.

open as a page

A laptop holding a checked-out service credential is lost — what decides whether that forces a replacement?

level: middleimportance: must knowfreq 56%
basics
~20 s

What you can prove decides it, not what is likely. Unless you can establish that every copy on the device was unreadable to whoever now has it, treat the credential as exposed and replace it, then refuse the old value.

open as a page

You wrote a replacement value for a leaked fleet credential an hour ago, yet the old value still authenticates — why?

level: middleimportance: must knowfreq 62%
basics
~20 s

Writing a new value into the store is only half a replacement. The system that honours the credential was never told to stop accepting the old value, and every holder still presents it. Withdrawal is a separate action against a different system.

open as a page

A key that encrypts stored records leaked in a contractor's backup — what does minting a new key version protect, and what is already lost?

level: middleimportance: must knowfreq 64%
basics
~20 s

Minting a new key version protects only data encrypted after the change. Anything the leaked version already encrypted stays readable to whoever holds it, along with any ciphertext copy they took, so rotation bounds future exposure and never past exposure.

open as a page

A worker encrypts an applicant field by calling a central service that holds the key — which decisions has the worker stopped making?

level: middleimportance: must knowfreq 54%
basics
~20 s

Key selection, key version, algorithm and rotation all move to the service. The worker still chooses which fields to protect and which logical key name they use, but it keeps ciphertext it cannot read on its own.

open as a page

A store of 20 million encrypted objects rotates the key that wraps every per-object data key — what changed for the objects themselves?

level: middleimportance: must knowfreq 62%
basics
~20 s

Nothing in the objects changed. Rotation rewrites each small wrapped data key under the new wrapping key and leaves every object's ciphertext and every data key exactly as they were, so any copy of a data key or of a ciphertext taken earlier still decrypts.

open as a page

When a settlement signing key is generated inside a device that will not export it, what crosses the boundary on each signature?

level: middleimportance: must knowfreq 60%
basics
~20 s

Only the request and its result cross. The service authenticates, sends a handle naming the key and the instruction's digest, and the device computes the signature internally and returns it. Key material never travels; the operation travels to the key.

open as a page

You inherit a key manager holding a hundred keys with only names - which facts must a key register record about each one?

level: middleimportance: must knowfreq 55%
basics
~10 s

A key register records, per key: one owning team, what the key is for, the systems and data it protects, when it entered service, its current state, and which identities may use it.

open as a page

A batch job is launched with its database password as a command-line argument — who on that host can read it?

level: juniorimportance: must knowfreq 60%
basics
~20 s

Any local account that can list processes, because the argument list is host-visible bookkeeping rather than private process memory. Copies also survive the run, in whatever records program executions and in the job definition that issued the line.

open as a page

Your team commits the rendered configuration file, warehouse password included, so a deploy can be reproduced — how do you keep that reproducibility?

level: juniorimportance: must knowfreq 58%
basics
~20 s

Commit the template, the rendering step and the identity of the value — its name in the store and the version delivered — and render the value on the host at deploy time. Reproducing a release needs the inputs, not the secret itself.

open as a page

Your deploy renders the reporting warehouse password into a configuration file on each host — what is true of that file once the service has started?

level: juniorimportance: must knowfreq 62%
basics
~20 s

The file persists. It is readable by anything on the host with file access, it outlives the process and usually the release that wrote it, it is captured by host images and backups, and after a rotation it still holds the previous value.

open as a page

Why does a service keep one fetched credential for reuse instead of calling the secret store on every outbound request?

level: middleimportance: must knowfreq 58%
basics
~20 s

A held copy takes the secret store off the hot path: one fetch serves thousands of calls, so store latency, its request budget and its brief failures stop landing on live traffic. The price paid is staleness.

open as a page

A worker reads its credential from the secret store once at start-up and never again — what does replacing that value then require?

level: middleimportance: must knowfreq 56%
basics
~20 s

A restart, unless something inside the worker re-resolves the value and rebuilds every client constructed from it. Writing a new value into the store changes nothing inside a process that already holds a copy, and the old value must stay accepted until the last holder has moved.

open as a page

A partner credential sat in a repository for six weeks; a commit deletes the line - what is still true of that credential?

level: juniorimportance: must knowfreq 80%
basics
~20 s

Nothing about the credential changed. The deleting commit edits one file at the tip of one branch. The value still authenticates, still sits in copies taken over six weeks, and is still held by anyone who read it.

open as a page

A credential scan over a repository's checked-out default branch reports no findings — what did that scan not look at?

level: juniorimportance: must knowfreq 62%
basics
~20 s

One snapshot of one branch was searched. Every other branch and tag, every earlier version of every file on all of them, and every copy living outside that repository — forks, clones, mirrors, exported archives — were never read.

open as a page

Your secret store alerts only on failed authentication, yet a stolen worker credential is being used daily — why does nothing fire?

level: middleimportance: must knowfreq 62%
basics
~20 s

A stolen credential authenticates successfully, so failure-based alerting never sees it. The evidence lives in reads that were permitted — an unfamiliar caller, an odd source or hour, more names or more volume than the job needs.

open as a page

After a committed credential is rewritten out of a repository's history, which copies of that value can still exist?

level: middleimportance: must knowfreq 58%
basics
~20 s

A history rewrite reaches only the repository you rewrote. Clones, forks, mirrors, the hosting platform's cached view, build logs, published artefacts and every backup taken in those six weeks still hold the value - as does anyone who read it.

open as a page

A pipeline credential was found on a public page today but posted three weeks ago — what does that interval force you to assume?

level: middleimportance: must knowfreq 58%
basics
~20 s

Treat the whole interval as unobserved use: assume the credential was copied by strangers throughout it, and scope the response to every right it carried for three weeks, not to the moment you found it.

open as a page