Security/Safe Browsing/V4 Implementation: Difference between revisions

Jump to navigation Jump to search
→‎Using custom API key: simplify API key instructions
(→‎Quick Links: Add target dates and deadlines)
(→‎Using custom API key: simplify API key instructions)
Line 24: Line 24:


= Using custom API key =
= Using custom API key =
We are required to have a API key to access google services like geolocation and safe browsing. The nightly/beta/aurora/release Firefox builds will have a proper API key associated with mozilla. However, if you are using the Firefox built on your own, the API key will be substituted with "no-google-api-key", which is apparently not available. There are a couple of ways to use a working API key for Safe Browsing. The most recommended way is to prepare a key file and add the path to mozconfig:
We are required to have a API key to access Google services like geolocation and Safe Browsing. The nightly/beta/aurora/release Firefox builds will have a proper API key associated with Mozilla. However, if you build your own Firefox, the API key will be substituted with the string <tt>"no-google-api-key"</tt>, which is not a valid key.


# Obtain a Safe Browsing google API key from https://console.developers.google.com
Here's how to get your own key:
#* If you don't know how to get a API key, buy hchang@mozilla.com a beer and ask him :p
 
# Create a key file which only contains the API key.
# Obtain a Safe Browsing Google API key from https://console.developers.google.com and put it in <tt>~/.gapi.data</tt>
# Add "ac_add_options --with-google-api-keyfile=/path/to/your/keyfile" to mozconfig
# Add <tt>ac_add_options --with-google-api-keyfile=/home/foobar/.gapi.data</tt> to your <tt>.mozconfig</tt>
# Rebuild and check if config.status has something like 'MOZ_GOOGLE_API_KEY': b'AIzaSooxxxxoxoxoxoxooxx'
# Rebuild and check if <tt>config.status</tt> has something like <tt>'MOZ_GOOGLE_API_KEY': b'AIzaSooxxxxoxoxoxoxooxx'</tt>


= Try Google Safe Browsing v4! =
= Try Google Safe Browsing v4! =
Confirmed users
908

edits

Navigation menu