This project deploys the Akto mini-runtime container to Cloudflare Workers.
Before deploying, you need to:
- Have a Cloudflare account with Workers enabled
- Have
wrangler
CLI installed and authenticated - Access to your Akto dashboard for configuration values
First, create the required queue:
wrangler queues create akto-traffic-queue
Pull the Akto mini-runtime container:
docker pull --platform linux/amd64 aktosecurity/mini-runtime-container:latest
Push it to your Cloudflare registry:
wrangler containers push aktosecurity/mini-runtime-container:latest
After 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