Skip to main content

Cyware Fusion and Threat Response

Generate Google Maps API Key

To integrate Google Maps with CFTR, generate a Google Maps API key with the required permissions for a seamless experience of using the map views in the CFTR application.

Before you Start

Ensure that you have:

  • Created a project with a billing account in the Google Maps platform.

  • Enabled the Maps Embed API. For more information, see Enable Embed API.

For more information, see Set up in Cloud Console.

Steps

Create API Key

To integrate Google Maps with CFTR, create a Google Cloud project that you want to associate with CFTR. You must create an API key for the project and use it in the CFTR application to integrate Google Maps. The API key authenticates the requests sent by CFTR and responds with the required data.

To create a Google Maps API key using the Google Cloud console, do the following:

  1. Go to Google Maps Platform > Credentials.

  2. Click Create credentials > API key. You can view the newly created API key in API key created.

  3. Click Close.

You can access the API key from Credentials > API keys.

Restrict API Key

Restricting API keys adds security to your application by protecting it from unwarranted requests. Restrict the API key to limit its usage to the API services needed for the CFTR application.

To restrict the API key using the Google Cloud console, do the following:

  1. Go to Google Maps Platform > Credentials.

  2. Select the API key that you want to use to integrate with CFTR.

  3. Under Key restrictions, set the following restrictions:

    • Application restrictions:

      1. To accept requests from the CFTR application, select HTTP referers (web sites) from the list of Application restrictions.

      2. Click ADD under Website Restrictions.

      3. Specify the domain of the CFTR application that you have configured during the deployment in *<domain-name>.com* format. You can use wildcards to authorize all subdomains. For example, if the configured CFTR domain is cyware.com, then specify the following details:

        • *cyware.com/cftr*: This authorizes all subdomains of the CFTR application.

        • *cyware.com*: This authorizes all subdomains of the cyware.com domain. You can use the API in all applications of the domain.

        Note

        The default domain for cloud-deployed CFTR applications is cyware.com.

    • API restrictions:

      1. Click Restrict key.

      2. Select the following APIs:

        • Maps JavaScript API

        • Places API

  4. Click Save.