Remediation
From Google Cloud Consoleβ
- Go to
APIs & Services\Credentials. - In the
API Keyssection, delete API keys by clicking the Delete icon in front of eachAPI Key Name.
From Google Cloud CLIβ
-
Run the following from within the project you want to audit:
gcloud services api-keys list \
--filter={{filter}} -
Pipe the results into:
gcloud alpha services api-keys delete {{api-key-id}}