GitHub webhook event
POST /webhook/github
Signed with HMAC-SHA256.
DMD Cloud listens to your GitHub pushes, analyzes the code diff with DeepSeek AI, and writes an optimized GitHub Actions workflow — no manual configuration needed.
Four clear steps from GitHub webhook to generated workflow.
POST /webhook/github
Signed with HMAC-SHA256.
Validates signature, deduplicates commit SHA, and returns 200 in <100ms.
Processes diff, checks SHA-256 cache, then calls DeepSeek API over HTTPS.
Generated YAML is saved to .github/workflows/ci-cd.yml.
Built for reliability, efficiency, and security.
The webhook service acknowledges GitHub immediately and processes the diff in the background, well within GitHub's 30-second timeout window.
Identical diffs never trigger a second DeepSeek API call. An in-memory LRU cache returns the cached pipeline instantly, saving cost and energy.
Every incoming webhook is validated against the GitHub secret using constant-time comparison, preventing spoofed requests.
Transient AI service failures are handled with up to 3 retries (1 s → 2 s → 4 s). A built-in fallback pipeline ensures continuity at all times.
The same commit SHA is never processed twice within a 5-minute window, preventing cascading webhook retries from causing redundant AI calls.
Every service exposes /health. The orchestrator also serves /metrics with goroutine count, heap usage, and GC cycles.
AI service scales 2 → 8 pods on CPU/memory pressure. Webhook service scales 3 → 10. Both scale down automatically during quiet periods.
All containers run as UID 1000, drop ALL Linux capabilities, and forbid privilege escalation — enforced by Kubernetes security contexts.
ARM64 nodes, spot instance pools, scale-to-zero capability, short log retention in dev, and automated weekly carbon-footprint audits.
Every architectural decision balances performance with environmental responsibility.
Deploy DMD Cloud on your AKS cluster in minutes.
# 1. Clone the repository git clone https://github.com/taoufikmohamed/diff-dmd.git cd diff-dmd # 2. Provision infrastructure (Azure AKS, ACR, Key Vault) cd terraform terraform init && terraform apply # 3. Create the DEEPSEEK_API_KEY secret in the cluster kubectl create secret generic ai-service-secrets \ --from-literal=DEEPSEEK_API_KEY="your-key" \ -n dmd-production # 4. Deploy all services kubectl apply -f k8s/production/ # 5. Get the public webhook URL kubectl get svc webhook-service -n dmd-production # 6. Register the webhook in GitHub # Payload URL: https://<your-ip>:8001/webhook/github # Content-Type: application/json # Secret: same value as GITHUB_WEBHOOK_SECRET env var # Events: push
Modern, lean, and cloud-native from top to bottom.