An OAuth token is a promise that outlives the click that made it. That is the whole trouble with developer-platform convenience, and it is why the April 2022 Heroku incident still belongs on the risk-and-accountability docket. When GitHub warned that stolen OAuth user tokens issued to Heroku and Travis CI had been used to reach into private repositories, the industry got a blunt lesson: the danger was never the theft of a credential. It was the custody of delegated authority — who stored it, who could see it, who could revoke it, and who could prove any of it after the fact.
Salesforce, which owned Heroku, is the accountability case here because a managed developer platform sells exactly one thing worth having: trust at the seam between code, deployment, identity, and operations. A Heroku-to-GitHub integration is not a cosmetic button. It is a bridge from a customer's source-code system into a deployment platform, and back again into operational risk.
The click was the easy part — consent becomes custody
The first mistake in most OAuth reviews is treating consent as a one-time user decision. In a developer platform, consent hardens into custody. Once a user authorizes an app to reach a repository, the platform, the identity provider, the source-code host, and the customer administrator all inherit continuing obligations. The token has a lifecycle: issued, stored, refreshed, used, logged, scoped, revoked, replaced, and eventually forgotten or retired. The Heroku incident forced customers to reckon with that lifecycle only after the trust decision was already welded into their build pipelines.
GitHub's public alert (github.blog), Heroku's status page (status.heroku.com), Heroku's April 2022 incident review (blog.heroku.com), and Travis CI's bulletin (travis-ci.com) sketch the public contours: tokens tied to developer workflows, customer notification, investigation updates, and a sequence of protective actions. The IETF's OAuth 2.0 spec (RFC 6749) and its security best-current-practice (RFC 9700) are not incident reports, but they explain why issuance, scope, storage, rotation, revocation, and replay resistance are the levers that matter.
Custody asks a different set of questions than uptime. Where were the tokens stored? Were refresh tokens or access tokens involved? Were they encrypted, segmented, isolated by tenant? Which service could read them? What monitoring would have flagged unusual use? Who could revoke them? What did the customer have to do after revocation? None of those questions are hostile. They are the price of trust.
What actually happened, and what it does not prove
Two lazy simplifications need killing. The first: stolen OAuth tokens automatically mean production apps were compromised. The second: source-code access is harmless if nothing went down. Both are weak. Source code carries application logic, dependency maps, internal endpoints, deployment scripts, configuration patterns, test fixtures, stale secrets, infrastructure names, and security assumptions. But source access alone does not prove runtime access, data theft, or deployment manipulation.
MITRE ATT&CK's application-access-token technique (T1528) and alternate-authentication-material technique (T1550) give the right vocabulary because they separate token misuse from ordinary credential guessing. CISA's secure-by-design guidance (cisa.gov) and NIST's Secure Software Development Framework (SP 800-218) explain why source-code custody and build-system trust are production controls, not paperwork.
The key boundary is proof. If a platform can determine a token was used only for a certain repository or customer set, it should say so and show its work. If logging limits prevent customer-by-customer certainty, it should admit that too. "No evidence of misuse" is decision-useful only when customers know what evidence was reviewed.
Notification timing is a control surface, not a PR function
For developer platforms, incident communication is operational control. Customers cannot revoke tokens, rotate secrets, or rebuild integrations until they know what to do. A delayed, vague, or shifting notice extends the window of exposure and confusion. A fast but incomplete notice creates busywork. The standard is not speed. It is decision-usefulness at each stage.
Heroku's status page shows a sequence rather than a single final statement; GitHub's alert and Travis CI's bulletin supply parallel timelines. A careful reader should not collapse them into one tidy chronology the sources do not support. The useful question is how each notice changed customer action: revoke app authorization, rotate API keys, reset passwords, inspect repositories, check CI variables, rebuild deployment hooks. The answer may have shifted as facts emerged — and that is fine, provided the shifts are explained. What weakens accountability is not uncertainty. It is uncertainty dressed up as closure.
Notice also carries a segmentation duty. Not every Heroku customer used GitHub integration. Not every GitHub user authorized Heroku. Not every Travis CI user had the same scope. A useful notice separates affected, potentially affected, unaffected, and unknown. Unclear communication simply transfers cost downstream: every vague sentence becomes a meeting, a ticket, a log search, an audit exception. A platform that sells developer trust should treat decision-useful notice as part of the product.
Forced rotation is a remedy only if customers know what changed
Forced credential rotation can be necessary and still incomplete as trust repair. A customer may rotate an API key, reset a password, or reauthorize an OAuth app — and still not understand what changed in the platform's custody model. If the same storage path, scope design, monitoring gap, or evidence gap survives, rotation restores access without restoring confidence.
Rotation has three layers. First, revoke the compromised OAuth tokens so the attacker cannot keep using the delegated authorization. Second, replace or reauthorize on the customer side so legitimate workflows resume with new tokens. Third, review adjacent credentials: API keys, passwords, deploy keys, CI variables, repository secrets, personal access tokens, cloud keys. A platform notice should say which layer is required and why.
The hardest layer is source-code secret exposure. If an attacker could read repositories, rotating the OAuth token alone may not be enough; customers may need to hunt committed secrets and rotate every exposed value. GitHub's secret-scanning documentation (docs.github.com) gives the customer-side vocabulary, and CISA's software supply chain risk management guidance (cisa.gov) explains why a secret in code turns a repository event into broader operational risk. Forced rotation also needs a completion signal — old tokens invalid, reauthorization enforced, stale credentials refused — or every customer runs their own reconciliation.
GitHub, Heroku, Travis CI, Salesforce, and customers each owned different evidence
The accountability map is multi-party. GitHub owned source-host evidence, OAuth-application visibility, and the alert it published. Heroku owned its platform integration, customer communication, token custody, and forced-credential program. Travis CI owned its affected CI/CD lane. Salesforce owned Heroku governance, resource allocation, risk escalation, and the duty to make repair credible. Customers owned repository hygiene, secrets rotation, OAuth approvals, and deployment review. None of those roles cancels another.
Harm often leaks through the gaps between roles. If GitHub knows a token was used but a customer cannot map it to a Heroku application, the response slows. If Heroku knows which accounts used GitHub integration but cannot say whether repository contents were read, customers must review more broadly. If Travis CI and Heroku issue different instructions off the same alert, organizations using both must reconcile overlapping actions. Shared responsibility, in other words, also requires shared evidence. A customer cannot responsibly accept an assurance that does not disclose which part of the chain it covers.
The custody ledger is the durable repair
What should a developer platform actually publish after an OAuth custody incident?
At minimum: a clear timeline (detection, source-host notification, investigation, customer notice, revocation, rotation, reauthorization, postmortem); the affected integration surface without implying everyone was equally exposed; the difference between stolen OAuth tokens, passwords, API keys, deploy keys, repository secrets, and CI variables; customer actions split into required, recommended, and conditional; what evidence the customer can see versus what only the provider or source host can see; which controls changed; a completion signal; and a plain statement of residual unknowns.
Customers need durable habits too: inventory OAuth apps, kill unused integrations, restrict org-wide approval, review high-scope apps, run secret scanning, stop committing credentials, rotate long-lived secrets, preserve audit logs, and map deployment flows. GitHub and Heroku documentation supply the building blocks, but the governance work belongs to each organization. A vendor incident is far more manageable when customers already know which apps touch which repositories and production systems.
The procurement lesson is that OAuth integrations are standing access, not one-time setup. A questionnaire that asks only about encryption, MFA, and uptime misses the point. The sharper questions are about integration inventory, token storage, scope minimization, customer logs, emergency revocation, tenant-level notifications, build-system isolation, and post-incident proof. Contract language should say how provider-side integration incidents get handled — who gets notified, what time windows are disclosed, whether source access is confirmed, possible, or not observed, and whether audit events are exposed.
And governance inside Salesforce and Heroku matters, because the public should not assume a developer-focused subsidiary brand carries less accountability. Heroku apps can be production systems, internal tools, public APIs, or prototypes that quietly became critical. Ownership structure determines investment in logging, token custody, incident response, and security engineering. If a platform cannot say who owns token-custody risk on a calm day, it will not explain who owns it during a crisis.
The final test is not whether the platform can declare the incident closed. It is whether closure traces back to evidence: suspect tokens invalidated, impacted customers notified, required resets completed, source-access questions answered to the limit the evidence allowed, secrets and deployment credentials reviewed, controls changed, residual unknowns preserved. That is stronger than a statement of confidence, because it tells customers exactly what changed.
Heroku's 2022 OAuth incident belongs in the risk-and-accountability file because it makes developer trust visible. It turns a familiar integration button into a custody question. When delegated authority is stolen, accountability follows the token — who issued it, who stored it, who could see it, who revoked it, who warned users, who proved repair, and who paid the cost while proof was still incomplete. The click was always the easy part. The ledger is the job.






