Ultimately, storing secrets on disk was the problem here. Never store secrets on disk. This is software engineering 101. The excuse that "we didn't know the scope of the token's access" is absurd. You knew it was a secret with access to production infrastructure, that's all you need to know. Their provider only having backups on the same volume as the data is also egregious, but definitely downstream of leaking secre…
Wait till you learn how that API stores cryptographic material.