Skip to content

Environment Variables & Bindings Reference ⚙️

This page provides a complete reference of the environment variables, secrets, and Cloudflare Worker bindings used across the Swazz architecture.


🏛 Edge Coordinator (Cloudflare Workers)

These configurations apply to the Edge Coordinator service located in packages/edge. They are configured in wrangler.toml or bound via the Cloudflare dashboard as secrets.

1. Resource Bindings

Binding NameTypeDescription
DBD1 DatabaseThe primary SQLite database binding (swazz_db) for core relational state.
STORAGER2 BucketObject storage bucket (swazz-reports) containing raw OpenAPI specs and encrypted reports.
SESSION_CACHEKV NamespaceEventual-consistency KV storage for fast token and API key lookups.
COORDINATOR_DODurable ObjectStateful RunnerCoordinator DO binding managing runner WebSockets and live scan sessions.
SCAN_QUEUECloudflare QueueQueue producer/consumer for distributing fuzzer payloads.
FINDINGS_QUEUECloudflare QueueQueue producer/consumer for buffering fuzzer vulnerabilities back to D1.

2. Secrets (Environment Variables)

Configure these in production using wrangler secret put <NAME> or via the Cloudflare Dashboard.

Variable NameDescriptionDefault / Example
JWT_SECRETSecret key for signing and validating session JSON Web Tokens.Secret string (Dev: test-secret)
TURNSTILE_SECRET_KEYSecret key used for validating Cloudflare Turnstile CAPTCHA responses.Secret string

3. Config Vars (Environment Variables)

Configure these in the [vars] block of wrangler.toml.

Variable NameDescriptionDefault / Example
AUTH_ENABLEDEnables user registration and token authentication checks."true" (Set to "false" in local dev)
LIMIT_ANONYMOUSRestricts unauthenticated/guest capabilities."true"
ALLOWED_ORIGINSCORS allowed origins list."*"
TURNSTILE_SITE_KEYPublic site key for Cloudflare Turnstile CAPTCHA.0x4AAAAAAD...
VERSIONDeployed Edge Worker version."1.0.0"
BETA_MODE_ENABLEDtrue(Optional) Set to false to disable the closed beta limits and hide beta banners entirely.
BETA_USER_LIMIT50(Optional) The maximum number of users allowed to register before requiring an invite code (when beta is enabled).
BETA_BYPASS_CODESWAZZ_BETA_2026(Optional) The invite code that allows bypassing the beta limit.

🐳 Go Runner Agent & CLI

These environment variables are read by the fuzzer agent engine (packages/container).

Variable NameDescriptionAllowed Values / Example
SWAZZ_AGENT_TOKENCryptographic token for agent authorization on the Edge Coordinator.Hex/Base64 Token
SWAZZ_LOG_LEVELVerbosity threshold for fuzzer engine logging.debug, info, warn, error (Default: info)
SWAZZ_LOG_FORMATFormat of log messages output to stdout/stderr.text, json (Default: text)
SWAZZ_DEVBypass local URL/SSRF blocks (enables scanning localhost).1 (Bypasses check), 0 (Enforced default)
CLOUDFLARE_APPLICATION_IDOptional Cloudflare Access client ID header injection.Header string

Released under the Business Source License 1.1.