Connect Akto with Hybrid SaaS
Learn how to send API traffic data to Akto SaaS from your cloud setup.
1. Go to app.akto.io
2. Login/Signup into your account.
3. Click on Quick Start tab in left nav.

4. Search for Hybrid SaaS Connector and click connect.

Installing Traffic connector
You can use either a CloudFormation template, Terraform template or a Helm chart to install Traffic aggregator in your env.
Terraform
To install using Terraform, use the Terraform script here.
Please make sure you install it in a private subnet from your application VPC.
This private subnet should also have network connectivity (typically via NAT).
You can use
https://cyborg.akto.ioasDatabaseAbstractorUrl. ForDatabaseAbstractorTokenyou can copy it from the helm install command in the above screenshot.Once complete, copy
akto_nlb_dnsfrom the output.The next step is to install a traffic connector.
You can use the above copied
AktoNLBIPasAKTO_KAFKA_BROKER_MALin your traffic connectors. Note thatAKTO_KAFKA_BROKER_MALis inclusive of port (egakto-N-.....amazonaws.com:9092)
CloudFormation template
To install using CloudFormation, run the Cloudformation template here.
i) Please make sure you install it in a private subnet from your application VPC.
ii) This private subnet should also have network connectivity (typically via NAT).
You can use
https://cyborg.akto.ioasDatabaseAbstractorUrl. ForDatabaseAbstractorTokenyou can copy it from the helm install command in the above screenshot.Once complete, go to the Output section of CloudFormation Stack and copy
AktoNLBIP.The next step is to install a traffic connector.
You can use the above copied
AktoNLBIPasAKTO_KAFKA_BROKER_MALin your traffic connectors. Note thatAKTO_KAFKA_BROKER_MALis inclusive of port (egakto-N-.....amazonaws.com:9092)
Helm chart
1. If you have K8s clusters, you can use helm chart to install Traffic aggregator.
2. Add akto helm repository.
helm repo add akto https://akto-api-security.github.io/helm-charts/Install
akto-mini-runtimehelm chart in your kubernetes cluster.Directly using database abstractor token
helm install akto-mini-runtime akto/akto-mini-runtime -n <your-namespace> --set mini_runtime.aktoApiSecurityRuntime.env.databaseAbstractorToken="<your-database-abstractor-token>"Storing the database abstractor token in a secret
helm install akto-mini-runtime akto/akto-mini-runtime -n <your-namespace> --set mini_runtime.aktoApiSecurityRuntime.env.useSecretsForDatabaseAbstractorToken=true --set mini_runtime.aktoApiSecurityRuntime.env.databaseAbstractorTokenSecrets.token="<your-database-abstractor-token>"Bring your own secret which has the database abstractor token
helm install akto-mini-runtime akto/akto-mini-runtime -n <your-namespace> --set mini_runtime.aktoApiSecurityRuntime.env.useSecretsForDatabaseAbstractorToken=true --set mini_runtime.aktoApiSecurityRuntime.env.databaseAbstractorTokenSecrets.existingSecret=<my-secret>
4. Running the above commands in your k8s cluster will deploy a new Akto Traffic aggregator service.
5. Run the below command and copy the CLUSTER-IP and PORT value for Traffic aggregator service. In the below example it will be 10.0.23.145:9092. You can also use the kubernetes service ip, which in this case will be akto-mini-runtime-mini-runtime.dev.svc.cluster.local:9092
kubectl get svc -n <namespace>
6. The next step is to install a traffic connector.
You can use the above copied
IP:PORTvalue asAKTO_KAFKA_BROKER_MALin your traffic connectors. Note thatAKTO_KAFKA_BROKER_MALis inclusive of port (eg10.0.23.145:9092,akto-mini-runtime-mini-runtime.dev.svc.cluster.local:9092)

Linux VM
Create a new instance with the following requirements
Platform
Linux
Spec
16 vCPU
32GB RAM
40GB Hard disk
Don’t use burstable instances
Network
Private subnet
connectivity to internet (typically via NAT)
connectivity to your staging service
Security groups
Inbound - Open port 9091 (http), 9092 (kafka)
Outbound - Open all
SSH into this new instance in your Cloud
Run
sudo su -Install docker and docker-compose.
Run the following commands to download setup files -
wget https://raw.githubusercontent.com/akto-api-security/infra/refs/heads/feature/quick-setup/docker-compose-mini-runtime.yml
wget https://raw.githubusercontent.com/akto-api-security/infra/refs/heads/feature/quick-setup/watchtower.env
wget https://raw.githubusercontent.com/akto-api-security/infra/refs/heads/feature/quick-setup/docker-mini-runtime.env
wget https://raw.githubusercontent.com/akto-api-security/infra/refs/heads/feature/quick-setup/docker-threat-detection.env
wget https://raw.githubusercontent.com/akto-api-security/infra/refs/heads/feature/quick-setup/data-ingestion-docker.envReplace
${AKTO_KAFKA_IP}indocker-compose-mini-runtime.ymlwith the theinstance-ipGet your token from Quick Start> Hybrid SaaS > Connect > Copy the token that's in
redcolor.Replace the value of
DATABASE_ABSTRACTOR_SERVICE_TOKENindocker-mini-runtime.envwith the token. Don't use double quotes. (The new docker takes double-quotes literally as part of the value!)Replace the value of
AKTO_KAFKA_BROKER_URLwith <instance_ip>:9092.Replace the value of
AKTO_THREAT_PROTECTION_BACKEND_TOKENandDATABASE_ABSTRACTOR_SERVICE_TOKENindocker-threat-detection.envwith the token.Run
docker-compose -f docker-compose-mini-runtime.yml up -d. If you are using new version ofdocker, you should usedocker composeinstead ofdocker-composeRun
systemctl enable /usr/lib/systemd/system/docker.serviceto ensure Docker starts up in case of instance restarts
Notes:
Ensure internet connectivity in Traffic aggregator service.
In case of closed network, please whitelist (https://cyborg.akto.io)
Ensure that traffic connector is able to connect to Traffic aggregator service
Log levels for Akto services can be configured by setting the environment variable
AKTO_LOG_LEVELSupported values include
TRACE,DEBUG,INFO,WARN,ERRORandOFF.Default log level is set to
WARN.
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
Was this helpful?