A Slack webhook URL and a Stripe live key were posted in a public GitHub issue. What is your response sequence?
BeginnerScenarioSecrets and Identity Management
Answer
Situation read → Public exposure means bots have already seen it. Speed matters more than root cause right now.
What I'd do →
- Revoke and reissue both: roll the Stripe key in the dashboard, regenerate the Slack webhook.
- Edit or delete the issue content and ask GitHub support to purge cached versions if needed.
- Check Stripe logs and Slack audit for usage between post time and revocation.
- Update consumers with the new values from the secret store.
- Write a short incident note and enable GitHub push protection and secret scanning alerts org-wide.
Why → Deleting the comment does nothing for copies already scraped.
Interview tip → Order matters: revoke, then clean, then investigate.
More on Secrets and Identity Management
A team stores database passwords in a `.env` file committed to a private repo. How do you migrate them out?BeginnerYour CI pipeline uses long-lived AWS access keys stored as repository secrets. How do you replace them?IntermediateAn auditor asks how often you rotate database credentials. You currently never do. What do you build?IntermediatePods need AWS access. A developer mounted an IAM user's keys as a Kubernetes Secret. What do you propose instead?BeginnerShould you use Kubernetes Secrets, Sealed Secrets, External Secrets Operator or the Secrets Store CSI driver?IntermediateHow would you set up HashiCorp Vault so Kubernetes workloads authenticate without any static token?Advanced