2026-11-28 · ~20 min read · Decision records

The engineering SaaS API key governance decision record: why the API key issuance authorization model you chose determines your customer access accountability ceiling and your unauthorized usage attribution and incident scope determination coverage surface

Engineering API key governance decisions are not decisions about which authentication scheme the product uses — whether the API authenticates via bearer tokens, HMAC signatures, or OAuth client credentials — or which key management service the team uses to store and rotate secrets. Those decisions are made when the API's authentication layer is designed and are encoded in the product's authentication infrastructure. The API key governance decision record covers the adjacent authority surface: periodically, a named authority must confirm that the organization has identified who is authorized to issue customer-facing API keys, what information must be recorded at the time each key is issued, what happens to the key when the customer relationship or integration dependency that warranted its issuance ends, and whether the key's access events are logged in a way that allows the organization to attribute API requests to specific customer accounts and authorized scopes during an incident investigation. These decisions cover who has the authority to approve the issuance of a customer-facing API key and what documentation must accompany each key's issuance, how the key's authorized scope is defined and enforced so that a key issued for one integration cannot be repurposed to access a broader data surface than was authorized, how the key's revocation is triggered and confirmed when the relationship that warranted the key's issuance ends — whether by contract termination, integration retirement, or security incident — and how the key's usage events are attributed to the specific customer account and authorized scope in the issuance registry so that unauthorized access can be scoped to the customer records affected rather than requiring notification of all potentially affected accounts. They are most often made by default: through the assumption that API key issuance is a low-risk operational task that any team member with admin panel access can perform without an authorization record, that account deactivation at contract termination covers API key revocation as a byproduct, that API access logs recording the key identifier and the requested endpoint are sufficient for incident response without being joined to the issuance registry, or that the key inventory can be reconstructed from the API key management system's active key list without maintaining a separate issuance record. They become visible when a suspected data exfiltration incident prompts a security investigation and the organization cannot attribute the unauthorized API access to a specific integration, customer account, or authorization record — 47 keys were generated over 30 months without naming the integration or the engineer who authorized the issuance, and the investigation concludes without scope determination because no attribution path exists; when a routine security audit discovers that a former enterprise customer's API key has made 2,300 API calls in the 14 months since the customer's contract terminated and account was deactivated — the offboarding process deactivated the account but no step in the offboarding workflow revoked the API key, and the key's authentication credentials are independent of the account session management that account deactivation disables; and when a SIEM alert on unusual API request volumes from an unfamiliar IP range prompts an incident investigation and the company can confirm the key is active and was issued 11 months ago but cannot determine what customer data was accessed because the access logs record the key identifier and the requested endpoint but the SIEM's queries are not joined to the issuance registry, and the incident scope cannot be bounded to inform a GDPR Article 33 notification obligation determination. This is distinct from the audit trail governance decisions, which cover the authority surface for ensuring that the organization's audit log covers every required event category and that the audit log's integrity protects it as forensic evidence — the API key governance decisions cover the authority surface for ensuring that the specific access events generated by customer-facing API keys are attributed to the issuance records that authorized them, so that the audit trail's API access event category can answer not just "this key was used at this time" but "this key was issued to this customer for this integration with this authorized scope and was used within or outside that scope."

What engineering API key governance decisions actually govern

The engineering API key governance decision record does not cover the technical design of the API's authentication layer — whether the API uses short-lived JWT tokens, long-lived API keys stored in a secrets manager, rotating HMAC credentials, or OAuth 2.0 client credentials. It does not cover the key storage mechanism, the rotation schedule enforced by the key management infrastructure, or the rate limiting logic applied by the API gateway. Those are infrastructure and authentication design decisions made when the product's API is built, and they determine the security properties of the credential material itself — how long a compromised key remains valid, how frequently credentials are replaced, and what load-limiting controls bound the blast radius of a credential that is used at scale. The API key governance record does not address these properties.

The engineering API key governance decision record covers the authority surface that sits above the key management infrastructure: once the technical mechanism for issuing and revoking API keys exists, who is accountable for deciding that a specific key should be issued to a specific customer for a specific integration, what information the organization must record at the time of that decision, and who is accountable for ensuring the key is revoked when the relationship that warranted the decision to issue it no longer exists. This accountability is not provided by the key management infrastructure: a secrets manager that stores and rotates key material does not know which customer account the key serves, which integration it was issued for, what scope of data access was authorized at issuance time, or whether the customer account the key serves is still under contract. The infrastructure manages the credential; the governance record manages the authorization.

The engineering API key governance decision record also does not cover the product security decisions about how the API enforces scope restrictions at the request level — whether the API validates the calling key's authorized scope against the requested endpoint on every request and returns HTTP 403 for out-of-scope requests, or whether the authorization check is performed at the product layer by the application code that handles the request. Those are product security implementation decisions. The API key governance record is a parallel concern: product security determines whether an out-of-scope request is blocked at runtime; API key governance determines whether the authorized scope was defined, documented, and recorded in a way that lets the organization know what was authorized — so that if the runtime enforcement fails, the incident response team has a reference against which to evaluate what should have been blocked.

What the API key governance decision record covers is the authority surface for making three sequential determinations that the organization's customer data accountability commitments require a named authority to make: first, that the issuance of each customer-facing API key was authorized by a designated authority who recorded the key's purpose, the customer account it serves, the integration it is issued for, and the scope of data access the authorization covers; second, that every active API key's authorization is current — that the key has not outlived the customer relationship, the integration contract, or the lifecycle terms under which the original issuance authorization was granted; and third, that every API request made with a customer-facing key can be attributed to the specific customer account and authorized scope recorded at issuance time, so that the organization can answer the incident response question "what customer data did this key access, and was that access within the scope the authorization permitted" rather than the weaker question "which key made these requests."

Failure story 1: the organization with no API key issuance model

A 25-person developer tools SaaS company provides a code quality and dependency analysis platform for mid-market engineering teams — the platform integrates with GitHub, GitLab, and Bitbucket to analyze repositories for security vulnerabilities, license compliance issues, and dependency staleness. The company's API exposes repository analysis results, vulnerability summaries, and historical trend data for use by customer-side integrations: CI pipeline plugins that gate deployments on vulnerability thresholds, internal dashboards that track dependency health across the engineering organization, and export connectors that push analysis results to the customer's security information and event management platform. Customer-facing API keys are generated through the platform's admin panel. Any team member with admin panel access can generate a key for any customer account, copy the key to a notepad, and share it with the customer or integration via email or Slack. The admin panel's key management screen shows each key as a truncated identifier with a creation date and a "revoke" button. There is no field for the integration name, the customer account contact responsible for the key, the authorized scope, or the engineer who generated the key. No issuance record is maintained outside the admin panel's key list.

Over 30 months, the company generates 47 customer-facing API keys. Some are generated by the support team at customer request; some are generated by the solutions engineering team during integration scoping calls; some are generated by the product team during beta program onboarding. No consistent naming convention is applied — keys have names like "api-key-1," "test-key-oct," "contoso-int," and "dashboard." For some keys, the customer account can be inferred from the name; for most, it cannot. The admin panel does not log who generated each key. The creation date is recorded, but there is no record of which team member generated the key, which customer account the key was generated for, or what integration the key was issued to serve.

In the company's third year, an enterprise customer — a 300-person software company in Germany — reports to the company's support team that they have discovered unexpected API traffic in their network monitoring logs: requests to the company's platform API originating from an IP address that does not belong to any of the customer's known integrations. The customer provides the timestamp range of the unexpected traffic: 23 days of requests, averaging 140 requests per day, requesting repository analysis and vulnerability data for the customer's most sensitive repositories. The customer's security team asks the company to identify which API key was used and confirm whether the access was authorized.

The company's VP Engineering begins the investigation. The API access logs record the key identifier on each request. The key identifier matches one of the 47 keys in the admin panel. The key's name is "eu-customer-3." The admin panel shows the key was created 14 months ago. There is no record of who created the key, which customer account it was created for, which integration it was issued to serve, or what scope of access was authorized at the time of creation. The VP Engineering reviews the team's Slack history and email archives looking for a message in which "eu-customer-3" was shared with someone; the search returns no results. The key's access events over the previous 23 days are consistent with the data pattern that an integration aggregating vulnerability data across repositories would produce — but they are also consistent with an unauthorized integration that someone built after obtaining the key through an undisclosed channel.

The company cannot determine whether the access is authorized — a legitimate integration that the customer's security team is unaware of — or unauthorized — a key obtained through an undisclosed channel and used to access the customer's repository analysis data without authorization. The company cannot revoke the key with confidence that revoking it will not disrupt a legitimate customer integration, because it cannot confirm whether a legitimate integration depends on the key. The company notifies the German customer of its inability to attribute the access. Under GDPR Article 33, the company and the customer jointly assess whether the access constitutes a notifiable personal data breach. The repository analysis data includes developer identity information — commit author names and email addresses extracted from repository commit history — and falls within GDPR's definition of personal data. The company files a GDPR notification with the German supervisory authority acknowledging inability to determine whether the access was authorized, the scope of the data accessed by the potentially unauthorized access, and the identity of the party who may have accessed it. The supervisory authority issues a formal reprimand for absence of data access accountability records as a gap in the organization's Article 32 technical measures. The enterprise customer terminates the contract.

The VP Engineering's root cause analysis: 47 API keys were generated over 30 months with no issuance record naming the integration, the customer account, or the authorizing engineer. The admin panel's key management interface was designed for operational convenience — generate a key, share it with the customer, revoke it when the customer asks — without accounting for the incident response scenario in which the organization must attribute a specific key's access events to a specific authorization decision and confirm whether the access was within the scope of that authorization. The absence of an issuance model meant the company had the technical capability to generate and revoke API keys but no accountability record for the authorization decisions that produced the active key population.

Failure story 2: the organization with a formal issuance process but no revocation model

A 42-person B2B SaaS company provides workflow automation and project management tooling for professional services firms — the platform manages client intake, project scoping, milestone tracking, billable hour logging, and invoice generation for consulting and legal practices. The company's API is used by customer-side integrations that push billable event data from time-tracking tools, pull invoice data for accounting system synchronization, and export project milestone status for client-facing portal displays. Customer-facing API keys are issued through a formal process: the customer submits an integration request through the customer success team, the customer success team documents the integration's purpose and the customer account contact responsible for the integration, and the VP Engineering approves the issuance and generates the key. The issuance record is maintained in a shared spreadsheet with columns for the key's truncated identifier, the customer account name, the integration name, the authorized scope (read-only or read-write, with the specific API endpoints listed), the VP Engineering's approval date, and the customer success manager who processed the request. The company has 34 active customer accounts and maintains 61 issuance records in the spreadsheet. The formal issuance process has been in place for two years and is consistently followed.

The company does not have a revocation model. When a customer terminates their contract, the customer success team executes the offboarding process: the customer's account is deactivated in the platform, billing is stopped, and the customer's data is flagged for deletion per the data retention policy. The offboarding checklist includes nine steps. None of the nine steps mentions API key revocation. The customer success team's mental model of account deactivation encompasses API access — the platform's web application login is disabled when the account is deactivated, so the assumption is that "access is off." API keys authenticate independently of the platform's session management: they are long-lived credential strings that the API gateway validates against the key management database directly, without checking the customer account's active status in the platform's account table. An API key issued to a deactivated account continues to authenticate successfully until it is explicitly revoked in the key management system.

In the company's fourth year, an enterprise customer — a 90-person management consulting firm — terminates their contract after 26 months. The offboarding process is executed: account deactivated, billing stopped, data flagged for deletion. The issuance spreadsheet records three API keys issued to the customer: one for a time-tracking integration (read-write, eight endpoints), one for an accounting system export connector (read-only, four endpoints), and one for a client portal status display (read-only, two endpoints). None of the three keys are revoked because no offboarding step triggers a revocation check against the issuance spreadsheet.

Fourteen months after the offboarding, the company's VP Engineering conducts a routine quarterly security review and reviews the API access logs for the past 30 days. The review identifies three API keys that have made requests in the past 30 days where the key's issuance record names a customer account that is not in the active customer list. Two keys belong to a different former customer and show no access activity. The third key — the time-tracking integration key for the terminated management consulting firm — shows 162 requests over the past 30 days. A query against the full access log confirms 2,300 requests over the 14 months since the customer's account was deactivated.

The VP Engineering reviews the access log entries. All 2,300 requests are to the same two endpoints: the billable event submission endpoint (write) and the project milestone list endpoint (read). The request pattern is consistent with an automated integration running on a schedule — requests arrive in clusters, roughly matching the time-tracking tool's scheduled synchronization cadence that the original integration request documented. The VP Engineering's hypothesis: the time-tracking tool integration was never shut down on the consulting firm's side after the contract ended; it continued running, submitting billable events that were silently accepted by the platform API, and the events accumulated in the platform's database against an account flagged for deletion. The write requests were accepted because the API gateway validated the key credential successfully and did not check the account's active status. The read requests were also accepted. The company revokes all three keys immediately.

The company cannot confirm whether the 2,300 accesses were automated — the time-tracking tool integration running indefinitely — or whether some were deliberate — someone at the consulting firm continuing to query the platform's project milestone data for 14 months after contract end. The consulting firm's project milestone data at the time of contract termination included confidential client project scoping information for the consulting firm's own clients. The VP Engineering notifies the company's legal counsel. Three current enterprise customers receive copies of the security review findings at their contract renewal discussions and require a written API key lifecycle policy — including a documented revocation SLA for contract termination events — as a condition of renewal. The company adds an API key revocation step as step 2 of the offboarding checklist, executed before account deactivation, with a mandatory check against the issuance spreadsheet for every key associated with the terminating account.

The post-incident review's conclusion: the offboarding process's design assumption — that account deactivation covered API access — was architecturally incorrect. API key authentication was stateless relative to the account management system. The formal issuance process had produced a complete, accurate issuance record for every key; the organization could look up the consulting firm's three keys immediately when the investigation began. But the issuance record's value as an accountability instrument was contingent on the existence of a revocation model that used the record to trigger and confirm revocation when a termination condition occurred. An issuance model without a revocation model is a register without a decommissioning process.

Failure story 3: the organization with mature issuance and revocation governance but no usage attribution model

A 59-person B2B SaaS company provides SOC 2 audit management and compliance evidence collection for enterprise security teams — the same domain as the third company in several earlier governance decision records in this series, reflecting the depth of governance surface that compliance-domain SaaS companies accumulate. The company's API is used by customer-side integrations that push evidence artifacts from integrated compliance systems, pull control status data for display in customer-side dashboards, and export audit package data for direct delivery to external auditors. Customer-facing API keys are issued through a mature formal process: VP Engineering approval required for all keys, mandatory issuance record in the company's internal compliance platform (the company uses its own product's evidence management module for internal governance), issuance records include the customer account identifier, integration name, authorized endpoints, read/write permission, and the customer account's designated integration owner — the specific person at the customer organization who is responsible for maintaining the integration. Keys have an annual recertification requirement: every key's issuance record includes a recertification date, and 30 days before the recertification date, the designated integration owner receives an email confirming they still need the key and that the authorized scope remains correct. If the integration owner confirms, the recertification date is extended by 12 months. If there is no response within 15 days, the VP Engineering is notified, and within 30 days of the original recertification date, the key is revoked. The offboarding process includes an API key revocation step as step 1, executed before account deactivation, confirmed against the company's internal compliance platform. The company's API key governance has been in its current form for 18 months. There are currently 94 active customer-facing API keys across 34 customer accounts.

The company does not have a usage attribution model. The API access logs record, for each request: a timestamp, the requesting key's identifier, the requested endpoint, the HTTP method, the response status code, and the requesting IP address. The API access logs are ingested into the company's SIEM. The SIEM has alert rules for unusual API request volumes: if a key makes more than 500 requests in a 24-hour window (the threshold is set at approximately 3 times the highest normal daily volume observed for any integration key in the past 90 days), an alert fires. The SIEM's alert rules query the access log. The SIEM does not have a table representing the issuance registry — the company's internal compliance platform where issuance records are stored is not integrated with the SIEM. The SIEM can answer questions about access log entries; it cannot answer questions about the authorization that the access log entries correspond to.

In the company's fifth year, the SIEM fires an alert at 3:17 AM on a Tuesday: a key has made 847 requests in the past 6 hours, to a mix of endpoints that includes the evidence artifact retrieval endpoint, the control status export endpoint, and the audit package assembly endpoint. The 847 requests come from a single IP address that is not in the company's known customer integration IP allowlist. The on-call engineer acknowledges the alert and escalates to the VP Engineering at 6:45 AM. The VP Engineering begins the investigation.

The key identifier from the SIEM alert is queried in the company's internal compliance platform. The key was issued 11 months ago to a customer account — a 150-person financial services company — for an integration named "external-auditor-portal." The authorized scope includes read access to the evidence artifact retrieval endpoint, the control status export endpoint, and the audit package assembly endpoint. The integration owner at the customer is listed as the customer's VP of Information Security. The key's most recent recertification was confirmed by the VP of Information Security four months ago. The key's authorized scope matches the endpoints being called in the SIEM alert.

The VP Engineering's immediate question: is this the legitimate external-auditor-portal integration running from an IP address the company hasn't seen before — perhaps the customer's auditor has changed their infrastructure — or is this a key that was obtained through an undisclosed channel and is being used by someone who has obtained access to the customer's compliance evidence and audit package data? The VP Engineering calls the customer's VP of Information Security. The VP of Information Security is not aware of any infrastructure change that would explain the IP address shift. Neither is the customer's IT operations team, reached at 8:30 AM. The customer's auditor firm, reached at 9:15 AM, confirms that they have not changed their integration infrastructure and have not used the external auditor portal integration in four months — their current SOC 2 audit engagement with this customer is in a documentation phase that does not require API data pulls.

At 9:30 AM, the VP Engineering revokes the key and notifies the customer of a suspected unauthorized access event. At this point, the investigation requires answering the GDPR Article 33 trigger question: were personal data accessed during the 847-request event, and if so, what categories and volume? The evidence artifact retrieval endpoint returns compliance evidence artifacts, some of which include the names, roles, and access event records of the customer's employees. The control status export endpoint returns control ownership records including employee names. The audit package assembly endpoint returns a structured package of all evidence for a specified audit scope, which may include hundreds of individual evidence records containing employee personal data.

The VP Engineering's SIEM query returns 847 request log entries for the key during the incident window. Each entry shows an endpoint and a response status code. 312 of the entries are requests to the audit package assembly endpoint that returned HTTP 200. Each HTTP 200 response from the audit package assembly endpoint contains an audit package for a specific audit scope; the response can contain anywhere from dozens to thousands of individual evidence records, each potentially including employee personal data. The SIEM cannot answer the question of which audit scopes were requested in the 312 successful assembly calls, because the audit scope identifier is a request parameter that is logged as part of the request path, not as a separate queryable field. The SIEM also cannot answer the question of how many individual evidence records were included in each assembly response, because the SIEM does not have access to the application's response body content.

At 11:20 AM — four hours and three minutes into the incident response — the VP Engineering has the following picture: a key authorized to access three endpoints was used from an unrecognized IP address to make 847 requests, 312 of which were successful calls to the audit package assembly endpoint. The company cannot determine how many employees' personal data was included in the 312 assembly responses. The company cannot determine which of the customer's audit scopes were requested. The company cannot determine whether the 312 assembly calls accessed the full audit archive or a subset. Under GDPR Article 33, the notification obligation is determined by whether personal data was likely accessed. The endpoint that returned 312 successful responses is an endpoint whose purpose is to assemble and return structured evidence packages — by design, its successful responses contain personal data. The company cannot scope the notification to the specific employee records accessed; it must notify the customer of a potential breach affecting all employee personal data included in any evidence artifact stored in the platform, which the customer's compliance platform manages for a 150-person company over a 24-month evidence collection history.

The company and the customer file a GDPR Article 33 notification within the 72-hour window. The notification acknowledges the inability to scope the incident to a specific subset of employee records because the API access logs recorded endpoints and status codes but not response body content or request parameters in a queryable format. Three enterprise customers at their next security questionnaire review require documentation of the company's API access logging model; two require a written commitment that the access logs will be extended to record request parameters and response record counts for all data export endpoints within 90 days.

The post-incident review's conclusion: the company's issuance and revocation governance was complete and correct — the key was issued through the formal process, the issuance record named the customer and integration, the authorized scope matched the endpoints called, and the revocation was executed within hours of the incident's identification. The governance gap was in the attribution layer: the SIEM's ability to investigate the incident was bounded by the access log's data model, which had been designed to support API debugging and performance monitoring rather than incident scope determination. An access log that records the key identifier alongside the endpoint and status code is an operational log; an access log that joins the key identifier to the customer account, integration name, and authorized scope from the issuance registry — and that records request parameters and response record counts for data export endpoints — is an accountability log. The company had a complete issuance governance model and an operational access log. It needed an accountability log.

The two structural properties these stories share

Each of these three stories exposes one of the same two structural properties: a customer access accountability ceiling that the organization cannot see past, and an unauthorized usage attribution and incident scope determination coverage surface with a gap the organization did not know existed until an incident made it visible.

The customer access accountability ceiling is bounded by three decisions: the API key issuance authorization model (whether a named authority reviews and approves each key's issuance with a documented record naming the customer account, the integration, the authorized scope, and the authorizing engineer — not an ad hoc generation through any available admin panel session), the API key lifecycle and revocation model (whether the organization has a defined process for revoking each active key when the relationship that warranted its issuance ends, executed against the issuance registry rather than inferred from account management system state), and the API key scope definition and permission model (whether each key's authorized scope is defined at issuance time with sufficient specificity to serve as a reference point for evaluating whether subsequent access events were within or outside the authorized scope).

The unauthorized usage attribution and incident scope determination coverage surface is bounded by two decisions: the API key usage logging and attribution model (whether the API access logs join the key identifier to the customer account, integration name, and authorized scope from the issuance registry — either through a real-time join at logging time or through a queryable cross-reference in the incident response tooling — and whether the access log records the data model properties that determine incident scope: request parameters for endpoint calls that return variable data ranges, and response record counts for endpoints whose successful responses contain personal data) and the API key governance review model (whether the quarterly and annual governance review includes an active key inventory audit that compares the API key management system's active key population against the issuance registry to identify keys that exist in one but not the other, a lifecycle terms compliance check that confirms keys approaching recertification dates are recertified or revoked on schedule, and a usage attribution coverage check that validates the join between access log entries and issuance records against a sample of recent access events).

These two structural properties address different governance gaps: the customer access accountability ceiling governs whether the organization can produce an authoritative account of which authority authorized each key's issuance and what the authorization covers — whether the key population is a set of authorized instruments or an ad hoc collection of credentials with no accountability record; the unauthorized usage attribution and incident scope determination coverage surface governs whether the accountability records produce usable attribution during an incident — whether the join between the access log and the issuance registry is queryable under incident response time pressure and whether the access log records the data model fields that determine what customer data was accessed rather than just which endpoints were called.

The five ADR sections in the engineering API key governance decision record

An engineering API key governance decision record covers five decisions. Each has a named owner and a review cadence.

ADR section 1: API key issuance authorization model

The API key issuance authorization model names the designated authority responsible for approving the issuance of each customer-facing API key and defines the information that must be recorded in the issuance registry at the time of approval. The model's scope includes: the authorization authority designation (VP Engineering is the standard issuance authority for all customer-facing API keys; the team lead is the issuance authority for internal API keys issued to the company's own tooling and monitoring integrations — the authority designation is distinct for internal and customer-facing keys because the accountability requirements differ; the authority designation is reviewed annually and updated within 30 days of team changes); the mandatory issuance record fields (a consistent, human-readable key name in the format customer-account-identifier/integration-name — not a generated UUID or a shorthand like "test-key-oct"; the customer account's internal identifier from the CRM system; the integration name as specified by the customer's integration owner; the authorized scope expressed as a list of endpoint identifiers and their permission levels, not a tier label like "read-only" that may be inconsistently interpreted across the authorization decision and the runtime enforcement; the lifecycle terms — permanent with annual recertification, time-limited with an expiration date, or project-scoped with a named completion milestone; the customer's designated integration owner — the specific person at the customer organization who is responsible for maintaining the integration and who will receive recertification requests; the VP Engineering's approval reference; and the team member who generated the key credential, as distinct from the VP Engineering who authorized the issuance — the person who clicked "generate" in the admin panel and the person whose authorization the generation was predicated on may be different team members); the authorization request process (the customer success team submits an integration authorization request to the VP Engineering via the company's internal issue tracker — not via Slack or email, so that the authorization request and the VP Engineering's approval are recorded in a system that can be queried during an incident investigation without searching message history; the authorization request must include the customer account identifier, the integration name, the requested scope, and the lifecycle terms; the VP Engineering's approval closes the request with a comment confirming the authorized scope and the lifecycle terms); and the blocked issuance criteria (the generation of a customer-facing API key credential through any path that does not produce an issuance record meeting all required fields is prohibited; the API key management system's admin interface is accessible only to the VP Engineering and the designated key management operator, so that ad hoc key generation by any team member with admin panel access is not possible).

ADR section 2: API key lifecycle and revocation model

The API key lifecycle and revocation model defines the conditions that trigger each API key's revocation, the process for executing the revocation against the key management system, and the confirmation that the revocation is effective before the issuance registry is updated. The model's scope includes: the revocation trigger conditions (contract termination — the offboarding process's first step is an API key revocation check against the issuance registry for every key associated with the terminating account; integration retirement — when a customer submits an integration decommission request, the associated key's revocation is included in the decommission confirmation; recertification non-response — when the annual recertification notification goes unanswered for 15 days, the VP Engineering is notified, and the key is revoked within 30 days of the original recertification date; security incident — suspected or confirmed unauthorized access to a key triggers immediate revocation independent of the lifecycle terms; rotation — when a key is rotated, the predecessor key's revocation is confirmed before the rotation is marked complete, using the same revocation verification step as other trigger conditions); the revocation process (the designated key management operator executes the revocation against the key management system and records the revocation timestamp and the revoking authority's identity in the issuance registry; the revocation is not marked complete in the issuance registry until the revocation is verified); the revocation verification step (within one hour of revocation execution, a test request is made to the API using the revoked key's credential, and the HTTP 401 response is recorded in the issuance registry as the revocation verification record; the second failure story's scenario — an offboarding process that deactivated the account but did not verify that the API key credential itself was no longer valid — is specifically addressed by this verification step, because account deactivation and key revocation are distinct system operations); the predecessor key management requirement (when a key is rotated, the predecessor key's issuance record is updated to reflect its revoked status and the rotation event's reference, so that the predecessor key's access events in the access log can be attributed to the same issuance record as the replacement key — the attribution chain survives rotation); and the revocation authority for contract termination events (the customer success manager who executes the offboarding workflow triggers the API key revocation step, and the designated key management operator — VP Engineering or delegate — executes the revocation; the customer success manager cannot complete the offboarding workflow's account deactivation step until the designated key management operator confirms revocation for every key in the issuance registry associated with the terminating account).

ADR section 3: API key scope definition and permission model

The API key scope definition and permission model specifies the granularity at which authorized scope is recorded in the issuance registry and the process for reviewing and updating the scope record when the integration's access requirements change. The model's scope includes: the scope definition granularity (the authorized scope is expressed as a list of specific API endpoint identifiers — not an endpoint tier label or an API version prefix — with the HTTP method and the permission level for each endpoint; a key authorized for the evidence artifact retrieval endpoint has a distinct issuance record field for that endpoint, separate from the control status export endpoint, so that an access log entry for one endpoint can be evaluated against the authorization for that endpoint specifically rather than against a tier label that may apply to both); the scope update process (when a customer's integration requires access to an endpoint not in the original authorized scope, the customer submits a scope extension request to the VP Engineering through the same authorization request process as a new issuance; the VP Engineering approves the extension, the issuance registry is updated, and the access log attribution for the extended endpoint begins from the extension approval date — access log entries for the endpoint before the extension date indicate the key was used outside its authorized scope); the scope reduction model (when an integration's requirements change to no longer need an endpoint in the authorized scope, the customer submits a scope reduction request; the VP Engineering approves the reduction and updates the issuance registry; scope reductions are recorded with a timestamp so that access log entries for the reduced endpoint after the reduction date can be attributed to access outside the remaining authorized scope); and the scope review requirement (each annual recertification confirms not just that the integration is still needed but that the authorized scope in the issuance registry matches the integration's current access requirements — scope that was authorized 12 months ago for an integration whose purpose has since changed is not automatically renewed; the integration owner confirms the specific endpoints still required at recertification, and any endpoint not confirmed is removed from the authorized scope in the updated recertification record).

ADR section 4: API key usage logging and attribution model

The API key usage logging and attribution model defines the access log data model, the join between the access log and the issuance registry in the incident response tooling, and the data model fields required to support incident scope determination for data export endpoints. The model's scope includes: the access log mandatory fields (every API request must be logged with the following fields in a consistent, queryable format: timestamp in UTC with millisecond precision; the key identifier in the same format used in the issuance registry — not a derived or encoded form that requires a lookup to match to the registry; the requested endpoint identifier in the same format used in the issuance registry's scope definition; the HTTP method; the HTTP response status code; the requesting IP address; and for POST and PUT requests, the resource identifier targeted by the request — the customer account identifier, the evidence artifact identifier, the audit scope identifier — extracted from the request path or body and recorded as a distinct log field, not embedded in the raw request URL); the data export endpoint extended logging requirement (for every API endpoint whose successful HTTP 200 responses return a dataset of variable size containing personal data, the access log must additionally record two fields: the response record count — the number of individual records included in the response — and the data category identifiers for the personal data categories returned — not the full response body, but a structured summary sufficient to scope an incident notification to the specific personal data categories accessed during the incident window; the third failure story's scope determination failure — 312 successful responses to an audit package assembly endpoint with no log of which audit scopes were requested or how many evidence records were returned — is specifically addressed by the data export endpoint extended logging requirement); the issuance registry join in incident response tooling (the SIEM must have a queryable representation of the issuance registry — not a live integration with the internal compliance platform, but a synchronized read-only copy updated daily — so that SIEM queries can join access log entries to issuance records by key identifier without requiring a manual lookup in a separate system during an incident investigation; the join query must return, for any key identifier, the customer account name, the integration name, the authorized scope, the lifecycle terms, and the integration owner's contact information); and the attribution gap detection (a weekly query against the access log confirms that every key identifier that appears in the past 7 days of access log entries has a matching issuance record in the SIEM's synchronized registry copy; a key identifier in the access log with no issuance registry match indicates either a key issued outside the formal process or a registry synchronization failure — both are alerted to the VP Engineering within 24 hours).

ADR section 5: API key governance review model

The API key governance review model defines the quarterly and annual review structure that keeps the API key governance model current as the customer base, integration catalog, and API surface evolve. The quarterly review covers: the active key inventory audit (a full enumeration of every active API key in the production API key management system is compared against the issuance registry — keys active in the management system but absent from the registry require immediate investigation; keys in the registry with an active status but absent from the management system indicate a revocation or rotation that was not reflected in the registry and require a registry update and a notification to the VP Engineering); the lifecycle terms compliance check (every key whose lifecycle terms include an annual recertification date is confirmed to have either a confirmed recertification record within the past 12 months or a revocation record if the recertification window passed without a response; every key whose lifecycle terms include an expiration date is confirmed to have been revoked on or before the expiration date); the offboarded account key confirmation (every customer account offboarded in the past quarter is confirmed to have a completed API key revocation step in the offboarding record, and the revocation is confirmed against the management system — not just against the offboarding workflow completion status); and the usage attribution coverage check (a sample of 50 API access log entries from the past quarter is queried in the SIEM with the issuance registry join; every entry in the sample must resolve to an issuance record with a customer account name, an integration name, and an authorized scope; any entry that does not resolve is a gap in the attribution coverage and requires investigation before the next quarterly review). The annual review covers: the cross-program integration review with the access review governance model (confirming that the access review's scope includes customer-facing API keys — that the quarterly access review enumerates active API keys as a category of service access in addition to human user access, and that the access review's finding classification model includes a category for API keys identified as belonging to customers no longer under contract); the cross-program integration review with the audit trail governance model (confirming that the audit log coverage model includes API key access events as a required event category with the full access log mandatory fields defined in ADR section 4, and that the audit log integrity model's tamper-evidence controls apply to the API access log store); the access log data model review (the VP Engineering reviews the data export endpoints added to the API in the past year to confirm they are included in the extended logging requirement — new endpoints added without an issuance registry scope entry or without extended logging are identified and remediated); and the authorization path inventory check (a review of the API key management system's access control model confirms that the key generation capability is restricted to the VP Engineering and the designated key management operator, and that no path exists for other team members to generate customer-facing API key credentials outside the formal authorization process — the first failure story's root cause, any team member with admin panel access generating keys without an issuance record, is what this check is designed to detect when it re-emerges after team composition changes).

Where engineering API key governance decisions end up

The first failure story's outcome — a GDPR supervisory authority reprimand for absence of data access accountability records, an enterprise customer terminating their contract, and a security investigation that concluded without scope determination because no attribution path existed from the suspicious access events to a named authorization — is not the consequence of a team that was careless about security or indifferent to customer data accountability. The team had generated and managed API keys for 30 months without a security incident. The governance gap was structural: the admin panel's key generation interface was designed for operational convenience, the operational convenience of generating a key and sharing it with a customer was exercised without a parallel process for recording the authorization, and 30 months of key generations produced an active key population where no key could be traced to a named authorization decision. The organization had a functional API key management system but no API key governance model — it could generate and revoke keys and confirm which keys were active, but it had no accountability record for the authorization decisions that produced the key population.

The founding engineering API key governance decisions — which authority has the mandate to authorize customer-facing API key issuances and what information must accompany each authorization, how the authorized scope is defined with sufficient specificity to serve as an incident response reference point, how the key's revocation is triggered and confirmed when the relationship that warranted the issuance ends, and how the access log attributes each API request to the specific customer account and authorized scope in the issuance registry so that an incident scope determination can be bounded to the specific customer records accessed rather than requiring notification of all potentially affected accounts — are made once and determine the organization's customer data accountability and incident response capacity for every API access event that follows. Those decisions are most often made by omission: through the assumption that API key generation is a low-friction operational task that can be delegated to any team member with admin panel access without producing an authorization record, that account deactivation at contract termination covers the full scope of access revocation including API key credential validity, that an access log recording endpoint calls and status codes is sufficient for incident response without an issuance registry join, or that the incident scope can be determined from the access log's endpoint data without recording which specific resources were returned. WhyChose surfaces those decisions from the conversations where they were made — the product planning session where the API key issuance process was designed as a "just generate and share with the customer" flow without naming requirements or authorization tiers, with the note that "we can add governance later when it becomes important"; the security review session where API access logging was acknowledged as "good to have for debugging" rather than designed as an accountability instrument that must be queryable from the incident response tooling; and the customer offboarding workflow session where the offboarding steps were designed around account deactivation and billing cessation and no one asked whether customer API keys authenticate independently of the account session management that account deactivation disables.

The engineering SaaS data breach response governance decision record intersects with the API key governance record at the incident scope determination boundary: when suspected unauthorized API access triggers the breach identification and assessment authority's review, the GDPR Article 33 notification obligation determination depends on whether personal data was likely accessed and what the scope of that access was — the breach response governance model's breach scope and personal data impact assessment step depends on the API key usage logging and attribution model having produced a queryable record of which customer data was accessed, not just which endpoints were called. An organization that has a mature breach response governance model but an operational-only access log — one designed for debugging and performance monitoring rather than for incident scope determination — will reach the notification obligation determination step with an inconclusive impact assessment, because the access log cannot answer the questions the assessment requires. Both governance records must be satisfied before the organization can confirm whether a notification is required and, if so, what the notification must cover: the breach response governance model ensures the assessment process is executed by the right authority within the right timeframe; the API key governance model ensures the assessment process has the attribution data it needs to reach a conclusion.