Skip to content

Commit c692060

Browse files
committed
Add doc for Google API keys
1 parent 1bbba45 commit c692060

File tree

2 files changed

+19
-3
lines changed

2 files changed

+19
-3
lines changed

Leak Mitigation Checklist.md

+19-3
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,8 @@ If you see any incorrect information, you are welcomed to [contribute](CONTRIBUT
117117

118118
[DigitalOcean](#-digitalocean)
119119

120+
[Google](#-google)
121+
120122
[GitHub](#-github)
121123

122124
[GitLab](#-gitlab)
@@ -157,7 +159,7 @@ You can revoke an API key from your [API keys dashboard](https://www.algolia.com
157159

158160
Secured API keys can only be revoked by revoking their "parent" API key following the aboveprocedure for regular tokens.
159161

160-
Revoking a parent key will revoke all its child keys.
162+
Revoking a parent key will revoke all its child keys.
161163

162164
## <img src="icons/aws-logo.jpg" height="30" width="30" > AWS
163165

@@ -208,6 +210,20 @@ Go to your [API dashboard](https://cloud.digitalocean.com/settings/api/tokens) a
208210

209211
As far as we know, there is no way to check the last calls made with your API token. You can check your [security history dashboard](https://cloud.digitalocean.com/settings/security) or use [the actions API endpoint](https://developers.digitalocean.com/documentation/v2/#list-all-actions) to check a few actions performed on your account.
210212

213+
214+
## <img src="icons/google-logo.jpg" height="30" width="30" > Google
215+
As stated [here](https://support.google.com/cloud/answer/6310037?hl=en) you should not store API key in application's source tree. There are some exceptions like
216+
Google Maps API key that sometimes need to be embedded in JS.
217+
API keys are distributed per project. There are two types of personal secrets: **API keys** and **Service account keys**, the deletion's process is the same and detailed below.
218+
### Revoke a key
219+
Go to the [credentials](https://console.cloud.google.com/apis/credentials) section of your project. Then select the corresponding API key and click on the delete button.
220+
221+
### Check for suspicious activity
222+
223+
Go your [dashboard](https://console.cloud.google.com/apis/dashboard) and
224+
look at the traffic of the different API's.
225+
226+
211227
## <img src="icons/github-logo.png" height="30" width="30" > GitHub
212228

213229
### Revoke a key
@@ -232,13 +248,13 @@ You can find the file in `/var/log/gitlab/gitlab-rails` for Omnibus GitLab packa
232248

233249
## <img src="icons/heroku-logo.png" height="30" width="30" > Heroku
234250

235-
Heroku API keys don't have scopes. They give full programmatic access to your account.
251+
Heroku API keys don't have scopes. They give full programmatic access to your account.
236252

237253
> Warning: we are not speaking about [Heroku Oauth](https://devcenter.heroku.com/articles/oauth) tokens which have [scopes](https://devcenter.heroku.com/articles/oauth#scopes). Oauth tokens are generated in the back-end and unlike API keys, they are used with a client id.
238254
239255
### Revoke a key
240256

241-
To revoke your token go to your [account page](https://dashboard.heroku.com/account) under the "API Key" section, then click on ![regenerate API Key](icons/heroku-button.png). A new token will be issued.
257+
To revoke your token go to your [account page](https://dashboard.heroku.com/account) under the "API Key" section, then click on ![regenerate API Key](icons/heroku-button.png). A new token will be issued.
242258

243259
## <img src="icons/hubspot-logo.jpg" height="30" width="30" > HubSpot
244260

icons/google-logo.jpg

9.94 KB
Loading

0 commit comments

Comments
 (0)