Is deleting an API key from a public repository enough after it was exposed?
TechnologyI noticed an API key in a file I'd pushed to a public GitHub repository for a hobby project. I removed it and made another commit. A friend asked whether I had revoked the key with the service that issued it.
I hadn't. The page no longer shows it in the current file, which was the outcome I was looking at. GitHub's remediation guidance says deleting a secret from code is insufficient and prioritises revoking it with the provider. GitHub's leaked-secret guidance
The key is mine, and I can access that provider's account. What should I prioritise now, including checking what may depend on it? I don't want a tidier repository to stand in for containing the exposure.