Behind the chat
An AI chat built like production software
V3GA is an educational DevSecOps project: a small chat that answers with an LLM, wrapped in the engineering practices of a real service. Access is granted by an administrator after registration.
7Cloudflare Workers
2blue/green slots, zero-downtime releases
200+automated tests
30days chat retention, then deleted
What happens when you send a message
- 1BrowserSends the message over HTTPS with a one-time idempotency key.
- 2Edge routerSends traffic to the active blue or green release; the other one stays as a hot standby.
- 3Web app and APIChecks the session, applies limits and encrypts the content before storing it.
- 4QueueDecouples the request from the slow model call, with retries and a dead-letter queue.
- 5AI agentCalls an LLM on Cloudflare Workers AI and returns the answer through a second queue.
- 6Encrypted storageThe answer is saved encrypted; your browser polls until it is ready.
Security
- CAPTCHA on sign-up and manual admin approval for every account
- Passwords hashed with PBKDF2; chat content encrypted with AES-GCM
- Brute-force protection and rate limits on sensitive routes
- Admin panel behind a password with optional TOTP second factor
Delivery
- CI/CD on GitHub Actions: lint, tests, dependency audit and requirement-traceability gates before every deploy
- Blue/green releases checked by smoke tests of security properties, one-step rollback
- Infrastructure as code (Terraform, Terragrunt) and scheduled static security scans
- Secrets live in a secret store and are delivered by the pipeline, never committed
Privacy by design
- IP addresses are stored only as salted hashes, logs use pseudonyms
- Consent is recorded by the server; analytics is opt-in and can be switched off
- Data export, deletion and processing restriction are built in (GDPR)
- Chats expire automatically after 30 days
Built with
- Cloudflare Workers
- Queues
- KV
- Workers AI
- Wrangler
- Terraform
- Terragrunt
- GitHub Actions
- Vitest
- ESLint
- Semgrep
- Checkov