Connect Akto with Apigee
Last updated
Was this helpful?
Last updated
Was this helpful?
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.
Before setting up the Apigee connector, deploy the Akto Data-Ingestion Service by following these steps:
SSH into the instance where you want to deploy the data-ingestion service and run these commands:
DATABASE_ABSTRACTOR_SERVICE_TOKEN
Log 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.
docker-mini-runtime.env
FileOpen the docker-mini-runtime.env
file and replace token
with the DATABASE_ABSTRACTOR_SERVICE_TOKEN
you retrieved earlier.
Run the following command to start 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.
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.
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.
Navigate to Proxy Development → API Proxies from the left-side navigation bar.
Click + Create to start creating a new API proxy.
Configure the proxy with the following details:
Proxy Name: Enter a unique name for your proxy.
Base Path: Specify the base path for the proxy (e.g., /api/v1
). This path will be used as the prefix for all API calls.
Target (Existing API): Provide the URL of your backend service (e.g., https://your-backend-service.com
).
Proxy Template: Select Reverse Proxy as the proxy template.
Environment: Select an Intermediate or Comprehensive environment where the proxy will be deployed.
Do not deploy the proxy yet, as you will need to configure policies before deploying.
Click Create to complete the proxy setup. You will then be directed to the proxy editor to configure additional settings.
Copy the following JavaScript policy code and save it as AktoPolicy.js
:
In the Apigee Management Console, go to your API proxy's Develop tab.
Click on Proxy Endpoints → PostFlow.
Click on the +
symbol of PostFlow.
Select Create New Policy and choose Extensible Policies → JavaScript.
Enter a name for your policy and, in the JavaScript file
option, click Create New Resource.
Upload your saved AktoPolicy.js
file and click Add.
Select the uploaded file as your JavaScript policy and click Add.
Edit the JavaScript policy to set the ingestion URL (from Step 1.5):
Save your changes.
Deploy the proxy to your selected environment.
Make a test API call through the Apigee proxy.
Verify in the Akto dashboard that the traffic is being ingested correctly.
There are multiple ways to request support from Akto. We are 24X7 available on the following:
In-app intercom
support. Message us with your query on intercom in Akto dashboard and someone will reply.
Join our discord channel for community support.
Contact help@akto.io
for email support.
Contact us here.