Web Security · Junior · Question 72 of 75

You accidentally pushed a real API key to a public Git repository. What is the right first step?

Explanation

Bots scan public repositories for keys within minutes. Rewriting history doesn't help if the key was already copied, so it must be invalidated.

Further reading

Problem with a question

Web Security · Junior · question 72

Test yourself

Take the Web Security · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz