Just realized our staging API key had been live since 2022 and nobody checked it
I was doing a cleanup pass on our Postman collections last Tuesday at the office in Columbus and found a key labeled "test only" that had full write access to production customer records. Pulled the access logs and that key had been making calls since March 2022, mostly small stuff, but one script in a contractor's GitHub gist was hitting our /v1/customers endpoint with it a few times a month. Nobody noticed because the traffic blended into normal read volume and our rate limits were set way too loose. I killed it in about five minutes once I confirmed, but my stomach dropped when I saw 47,000 records had been touched by something we thought was dead. The scary part is our scanner only flags keys in code, not keys sitting in a shared password doc or a stale CI variable, so this thing slid by for three years. We're now adding expiry dates to every key and logging who owns each one, which is boring work but needed. Anyone have a good way to hunt down forgotten keys in old CI configs and internal wikis without breaking every build in the process?