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
DATABASE_ABSTRACTOR_SERVICE_TOKENLog in to the Akto Dashboard.
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
docker-mini-runtime.env FileOpen the
docker-mini-runtime.envfile and replacetokenwith theDATABASE_ABSTRACTOR_SERVICE_TOKENyou 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:
Log in to the Apigee Management Console.
Navigate to Management → Environments from the left-side navigation bar.

Click + Create Environment.

Provide the required details:
Name: Specify a name for your environment.
Environment Type: Choose Intermediate or Comprehensive.
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.
In Apigee, go to Proxy development → Shared Flows and click + Create.

Create a shared flow (for example:
akto-traffic-collector).Open the shared flow, go to Develop → default, and add two Steps in order: first
AktoJavascript, thenML-SendAktoTcpSyslog.In the same shared flow, click Policies + and add a JavaScript policy named
AktoJavascript.
Open the JavaScript policy XML (Under Policies section) and set it as:
Create a JS resource file named
AktoJavascript.jsand paste the script below.Click Policies + again and add a MessageLogging policy named
ML-SendAktoTcpSyslog. Set the policy XML as:
Save and deploy the shared flow to your target environment.

Go to Management → Environments → your_environment → Flow Hooks.
Attach the shared flow to a hook point (recommended:
PostProxyFlowHook).
Important policy behavior:
Both
AktoJavascriptandML-SendAktoTcpSyslogmust havecontinueOnError="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_IPin the MessageLogging policy with the IP noted in Step 1.5.
2.3 Option B: Terraform Automation
Use Terraform from:
Repository: https://github.com/akto-api-security/infra
Branch:
feature/quick-setupFolder:
apigee-connect-terraform
Clone and switch to the required branch:
Provide the required values in a
terraform.tfvarsfile insideapigee-connect-terraform.
If the repository contains terraform.tfvars.example, copy it first:
Otherwise create terraform.tfvars manually with:
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:
In-app
intercomsupport. Message us with your query on intercom in Akto dashboard and someone will reply.Join our discord channel for community support.
Contact
[email protected]for email support.Contact us here.
Last updated