This project deploys the Akto mini-runtime container to Cloudflare Workers.
Before deploying, you need to:
- Have a Cloudflare account with Workers enabled
- Have
wranglerCLI installed and authenticated - Access to your Akto dashboard for configuration values
First, create the required queue:
wrangler queues create akto-traffic-queuePull the Akto mini-runtime container:
docker pull --platform linux/amd64 aktosecurity/mini-runtime-container:latestPush it to your Cloudflare registry:
wrangler containers push aktosecurity/mini-runtime-container:latestAfter pushing, you'll receive a container image URL. Add this URL to the image field in your wrangler.jsonc file:
In your index.ts file, update the envVars object with your Akto configuration:
const envVars = {
AKTO_DATABASE_ABSTRACTOR_TOKEN: "YOUR_UNIQUE_TOKEN_FROM_AKTO_DASHBOARD",
AKTO_DATABASE_ABSTRACTOR_URL: "https://cyborg.akto.io"
}You can get your unique token from your Akto dashboard. The database abstractor service URL is https://cyborg.akto.io by default.
Once configured, deploy your worker:
wrangler deploy- Database Abstractor Token: Get this from your Akto dashboard (unique per user)
- Database Abstractor URL: Default is
https://cyborg.akto.io - Container Image URL: Generated when you push the container to Cloudflare registry
{ "compatibility_date": "2023-05-18", "main": "src/index.ts", "container": { "image": "YOUR_PUSHED_IMAGE_URL_HERE" } }