# API Key Inventory: Who Uses This Key Before You Revoke It?

> A practical non-secret consumer map for deciding which applications may break when an API key is revoked and how each consumer would adopt a replacement. Includes a fictional web/worker/job example, evidence confidence labels and explicit limits.

- Canonical: https://starkslab.com/notes/api-key-inventory-map-consumers-before-revocation
- Published: 2026-11-18
- Author: Federico Jan
- Format: Guide
- Evidence: Documented (verified 2026-10-27)
- Tools: [Railway](https://starkslab.com/tools/railway.md)
- Learn: [API key rotation](https://starkslab.com/learn/api-key-rotation.md), [Secrets management](https://starkslab.com/learn/secrets-management.md)

---

**TL;DR:** An API key inventory connects a non-secret key identifier to every known application, worker and scheduled job that uses it. Record owners, environments, storage references, delivery paths, replacement and restart steps, and dated verification evidence. Keep confirmed relationships, suspected consumers and unknown gaps visible; this worksheet and its fictional example do not certify complete discovery or production recovery.

## The key name was not the consumer map

I had named my API keys carefully. During my response to the October 2026 Railway incident, those names still did not tell me every application that used each key. Replacing a credential left another question: which running programs needed the replacement?

An API key is a secret an application sends to a service to identify itself. A consumer is any application, worker or scheduled job that uses that key. One descriptive name at the provider can correspond to several consumers, each with a different place to update and a different way to pick up the change.

**TL;DR:** Build an **API key inventory** that maps each non-secret key identifier to its known consumers and environments. Record who owns each consumer, where its configuration lives, how a replacement reaches it, whether it needs a restart, and the dated evidence you will check afterward. Mark suspected consumers and unknown gaps explicitly; a list of names is not proof that you found everything.

This is a practical worksheet and a fictional worked example, not a new security method or a discovery tool. If a key is under active abuse, do not postpone urgent containment until the map is complete: follow the provider's instructions and your incident-response process.

## What the Railway reports establish

Railway is an application-hosting platform. Its [21 October 2026 disclosure](https://blog.railway.com/p/security-disclosure-wednesday-october-21st) reported possible access to stored environment variables, including decrypted contents for some values, and recommended replacing credentials. The announcement also described paused deployments during the investigation.

The [22 October preliminary report](https://blog.railway.com/p/preliminary-report-october-security-incident) distinguishes the potentially compromised subset from broader precautionary provider revocations. A revocation notice alone therefore does not prove that a particular customer's key was read by an attacker. The report says deployments were restored on 22 October; the earlier pause is historical context, not a claim about today's platform availability.

Community accounts help explain why preparation matters. In [one Railway Station thread](https://station.railway.com/feedback/security-incident-21-oct-2026-unauthori-eaff19e5), René reports losing about a day of developer time replacing project secrets. Another participant describes replacement work and disruption while deployments were unavailable; these are attributed customer reports, not independently verified findings.

A [separate Station discussion](https://station.railway.com/questions/regenerate-disabled-for-sealed-postgresq-321c091d) describes a disabled database-password regeneration control and an engineering escalation. It illustrates that a replacement procedure can depend on platform conditions, but it does not establish a universal cause or remedy. Neither discussion shows that everyone lacked a consumer inventory; my own missing map is the narrower lesson here.

Sources:
- [1] [Security Disclosure: Wednesday October 21st | Railway Blog](<https://blog.railway.com/p/security-disclosure-wednesday-october-21st>)
- [2] [Preliminary Report: Oct 21st Security Incident | Railway Blog](<https://blog.railway.com/p/preliminary-report-october-security-incident>) — Retained passages p2, p5 and p6; extraction truncated
- [3] [Security incident 21 Oct 2026: unauthorized charges and request for credit and incident details - Railway Central Station](<https://station.railway.com/feedback/security-incident-21-oct-2026-unauthori-eaff19e5>)
- [4] [Regenerate disabled for sealed PostgreSQL and Redis passwords in staging and production - Railway Central Station](<https://station.railway.com/questions/regenerate-disabled-for-sealed-postgresq-321c091d>)

## An API key inventory with no secret values

Use one row for each **key × consumer × environment** relationship. A single key used by a production web application and worker needs two rows; a separate staging key needs its own record. This keeps delivery and verification details attached to the program they actually describe.

The inventory contains references to secrets, never their values. A provider's documented non-secret key ID or a descriptive alias can identify the credential; do not copy a token, full connection string, authorization header or secret-bearing screenshot. Storage paths, deployment names and owners can still reveal system structure, so keep the map under appropriate access controls.

### Copyable inventory fields

| Field | What to record |
|---|---|
| Provider and key identifier | Issuer, relevant account/project reference, and a non-secret key ID or alias |
| Owner | Person responsible for this consumer and a backup contact |
| Consumer | Exact application, worker, service or scheduled-job name |
| Environment | Development, staging or production; include region/account if needed to distinguish it |
| Storage location | Vault entry or configuration-setting reference, without its value |
| Delivery path | How configuration reaches the running program |
| Replacement procedure | Where the supported instructions live, permissions needed, and how the new value is retained safely |
| Restart or redeployment | Which replicas, processes or future job executions must adopt the change |
| Verification evidence | Named operation, safe evidence reference, timestamp and what it established |
| Confidence and gaps | Confirmed, suspected, or an explicit unresolved consumer-search gap |
| Last checked and next check | Date, responsible person and when the relationship will be checked again |

### Find relationships without copying secrets

Start with the provider record, then inspect the configuration you control: service settings, deployment manifests, secret references, CI workflows and job schedules. Search for setting names or safe identifiers rather than pasting secret values into a terminal, chat or search service. Treat the result as a candidate list to investigate, not automatic proof of runtime use.

If the same environment-variable name exists in several places, establish which provider key each setting represents. Conversely, different names can refer to the same key. Record the relationship you can support and leave an unresolved field visible instead of filling it with a guess.

## One fictional key, three consumers

Consider an invented provider called **Example AI** and a key alias, **reports-prod**. Its owner, Alex, operates a web application, a background report worker and a nightly reconciliation job. All labels, paths and evidence below are fictional; no real credentials or production test results are included.

### Three consumer records

| Inventory field | Web application | Background worker | Scheduled job |
|---|---|---|---|
| Provider / key alias | Example AI / reports-prod | Example AI / reports-prod | Example AI / reports-prod |
| Owner / environment | Alex / production | Alex / production | Alex / production |
| Consumer | reports-web | reports-worker | reconcile-nightly |
| Storage reference | Vault: prod/example-ai | Vault: prod/example-ai | CI setting: EXAMPLE_AI_KEY |
| Delivery path | Vault → deployment setting → web process | Vault → startup loader → worker process | CI setting → job environment |
| Replacement procedure | Follow issuer instructions, retain replacement in vault, update deployment reference | Adopt the same vault replacement through the startup loader | Update the CI setting through the approved secret-entry flow |
| Adoption requirement | Redeploy every web replica | Restart every worker replica | Ensure the next execution receives the changed setting |
| Illustrative evidence | Named report request correlated with provider non-secret key-ID log | One queued report task correlated with provider non-secret key-ID log | Configuration reference found; execution not yet checked |
| Confidence / checked date | Confirmed / 26 October 2026 | Confirmed / 26 October 2026 | Suspected / 26 October 2026 |
| Next check | After replacement or deployment change | After replacement or worker change | Observe the next scheduled execution |

### Read the evidence before marking a consumer confirmed

In this fictional system, the web and worker evidence identifies a tested relationship at a specific time. The scheduled job is still suspected: a configuration reference is a clue, but Alex has not established that the job reads it and reaches the provider. The provider log in the example assumes a provider that exposes a suitable non-secret identifier; yours may not.

Alex can now see three separate adoption tasks instead of one vague instruction to “update the key.” Replacing the vault value alone would not address the separate CI setting. Restarting the web application would not establish that every worker replica or the next scheduled job adopted the replacement.

The diagram summarizes this example. Its green “confirmed” labels describe invented evidence in the example, not checks performed on the author's applications. The amber job and unknown-consumer note are part of the map, rather than details to hide until the document looks complete.

![Fictional reports-prod API key mapped to a web application and background worker with illustrative confirmed evidence, plus a scheduled job with suspected use; unknown consumers remain an explicit gap\.](<https://app.gomnee.com/media/images/ff8fd0c9-d365-41c5-8bf4-34d0ba4540a9/dac5333bbe9724b8b685aa101a6f98c7e04d9a00d1dd83d998f7ada792e4ebf6.png>)

Fictional consumer map: each program has its own delivery path, adoption requirement and evidence status\. No production recovery is demonstrated\.

## Confirmed, suspected and unknown consumers

**Confirmed** means dated evidence ties a particular consumer to the identified credential within a stated scope. Record the environment, operation and evidence reference, not just a checkmark. A successful request without evidence of which key it used may confirm access while leaving the key relationship unresolved.

**Suspected** means you have a useful clue: a configuration reference, a deployment setting, an old runbook or an owner's recollection. Write the next check beside it. In the example, Alex needs to observe how the scheduled job obtains its configuration and correlate an actual execution where possible.

**Unknown** describes a gap in your search boundary. For example: “Legacy CI organization not reviewed; Alex to inspect job references by Friday.” An unknown consumer has no invented name and no implied verification result.

“No requests appeared in this week's logs” is a limited observation, especially for monthly jobs or short log-retention windows. Note the observation period and access limitations. Do not turn missing telemetry, an empty search result or a provider's incomplete dashboard into a claim that a key has no other consumers.

## Rehearse the replacement path without claiming production recovery

Before an incident, rehearse one fictional replacement on paper. For reports-prod, Alex lists the provider action, vault update, separate CI update, web redeployment, worker restarts and the scheduled execution check. The expected result is a complete sequence of owned tasks and unresolved dependencies, not a statement that a live rotation succeeded.

For a real change, define a bounded acceptance check for each consumer in advance. A web check might be one authorized report request; a worker check might be one controlled queued task; a scheduled-job check might require its next permitted execution. Choose operations that avoid unintended charges, messages, publications or other external effects, and use the provider's supported test mode when suitable.

Keep three questions separate: did the process adopt the intended configuration, did the provider accept that credential for the named request, and did the application complete the reader-relevant operation? A deployment marked successful answers none of those questions by itself. A successful provider request also does not prove that every replica or background path recovered.

Where key-level attribution is unavailable, write that limitation next to the result. Do not log the raw key to manufacture evidence, or describe a process restart as proof of provider acceptance. Record what was observed, when, and which paths remain unchecked.

This article's example is an offline tabletop illustration. No live vault retrieval, provider-key replacement, revocation, production recovery or exhaustive consumer discovery was performed for it. The incident material is a dated source read; the captured preliminary report is truncated, and only retained passages support the discussion here.

## Keep the map from becoming stale

An API key inventory becomes stale when a new worker is added, a scheduled job is copied, configuration moves between CI and a vault, or an application changes how it loads secrets. Ownership changes matter too: the right path with nobody responsible is still a recovery gap.

Make the map an explicit item in the change that creates or removes a consumer. During API key management and API key rotation work, update the identifier, storage references, adoption procedure and evidence date together. When a program is retired, record the retirement and check its remaining references rather than silently deleting the only trace.

Assign the next review around actual operating changes and job frequency. A nightly task and a quarterly export need different observation windows; neither becomes confirmed because the web application passed yesterday. Recheck after migrations, restored backups, changed permissions and secret-delivery changes.

Keep a short list of unresolved gaps with an owner and next action. The useful outcome is a map that tells you which known applications may break, how each would receive a replacement, and what you still cannot verify. That is more actionable during revocation than a carefully named key alone.

Verification: documentation only.

Public incident and community sources were read on 27 October 2026; the preliminary-report extraction is truncated\. The author's experience is user-supplied\. The consumer map and tabletop are fictional\. No live vault test, provider-key replacement, production recovery or exhaustive discovery was performed\. The hosted diagram's public URL, dimensions and byte digest were verified separately\. This provider-neutral worksheet teaches no runtime, SDK or live provider operation, so it makes no product-version claim\.

Last verified: 2026-10-27.

Categories: Cybersecurity

Tags: API key inventory, API key management, API key rotation, Credential recovery, Railway

---

Starkslab index for agents: https://starkslab.com/llms.txt lists every page with its Markdown link.
