Connect Akto with Apigee

Apigee is Google Cloud's full-lifecycle API management platform that helps enterprises design, secure, and scale APIs. Integrating Apigee with Akto enables automatic discovery and security testing of all APIs managed through your Apigee gateway, providing comprehensive visibility and continuous security assessment of your API infrastructure.


Step 1: Deploy the Akto Data-Ingestion Service

Before setting up the Apigee connector, deploy the Akto Data-Ingestion Service by following these steps:

1.1 Download the Required Files

SSH into the instance where you want to deploy the data-ingestion service and run these commands:

1.2 Retrieve the DATABASE_ABSTRACTOR_SERVICE_TOKEN

  • Navigate to the Quick Start tab in the left panel.

  • Select Hybrid SaaS Connector and copy the token from the Runtime Service Command section.

1.3 Update the docker-mini-runtime.env File

  • Open the docker-mini-runtime.env file and replace token with the DATABASE_ABSTRACTOR_SERVICE_TOKEN you retrieved earlier.

1.4 Deploy the Data-Ingestion Service

Run the following command to start the data-ingestion service:

1.5 Note the IP Address of the Data-Ingestion Service

Ensure the instance is accessible from the network where your Apigee API proxy is configured. Note the instance's IP address, as it will be required by the Apigee connector to send traffic data.


Step 2: Configure Apigee to Use the Akto Data-Ingestion Service

You can choose either option below for Step 2:

  • Option A: Manual setup from the GCP Apigee UI.

  • Option B: Automated setup using Terraform scripts from Akto's infra repository.

Both options configure Akto ingestion in Apigee. Option B is recommended for repeatable CI/CD-friendly deployments.

2.1 Create or Choose an Apigee Environment

To configure the Akto connector, you need an Intermediate or Comprehensive environment in Apigee, as the JavaScript policy is not supported in the Base environment.

Steps to Create an Environment:

  1. Navigate to Management → Environments from the left-side navigation bar.

  2. Click + Create Environment.

  3. Provide the required details:

    • Name: Specify a name for your environment.

    • Environment Type: Choose Intermediate or Comprehensive.

  4. Click Create to finalize your environment setup.

If you already have an Intermediate or Comprehensive environment, you can skip this step and proceed to the next section.

2.2 Option A: Manual Setup from GCP UI (Shared Flow + Flow Hook)

This is the manual environment-wide setup.

  1. In Apigee, go to Proxy development → Shared Flows and click + Create.

  2. Create a shared flow (for example: akto-traffic-collector).

  3. Open the shared flow, go to Develop → default, and add two Steps in order: first AktoJavascript, then ML-SendAktoTcpSyslog.

  4. In the same shared flow, click Policies + and add a JavaScript policy named AktoJavascript.

  5. Open the JavaScript policy XML (Under Policies section) and set it as:

  1. Create a JS resource file named AktoJavascript.js and paste the script below.

  2. Click Policies + again and add a MessageLogging policy named ML-SendAktoTcpSyslog. Set the policy XML as:

  1. Save and deploy the shared flow to your target environment.

  2. Go to Management → Environments → your_environment → Flow Hooks.

  3. Attach the shared flow to a hook point (recommended: PostProxyFlowHook).

Important policy behavior:

  • Both AktoJavascript and ML-SendAktoTcpSyslog must have continueOnError="true".

  • Both policies must be added as Steps in the shared flow default section in order: JS first, then MessageLogging.

  • Replace YOUR_DATA_INGESTION_SERVICE_IP in the MessageLogging policy with the IP noted in Step 1.5.

2.3 Option B: Terraform Automation

Use Terraform from:

  1. Clone and switch to the required branch:

  1. Provide the required values in a terraform.tfvars file inside apigee-connect-terraform.

If the repository contains terraform.tfvars.example, copy it first:

Otherwise create terraform.tfvars manually with:

  1. Run Terraform:

This automation creates and deploys the Apigee shared flow and attaches it to the selected environment flow hook.

2.4 Test the Integration

  • Send test API traffic through Apigee.

  • Verify in the Akto dashboard that traffic is being ingested.


Get Support for your Akto setup

There are multiple ways to request support from Akto. We are 24X7 available on the following:

  1. In-app intercom support. Message us with your query on intercom in Akto dashboard and someone will reply.

  2. Join our discord channelarrow-up-right for community support.

  3. Contact [email protected] for email support.

  4. Contact us herearrow-up-right.

Last updated