StackGate
A self-service internal developer platform that turns plain-English PostgreSQL requests into structured specs, classifies risk, routes policy-based approvals, and provisions databases with a complete audit trail.
The problem
Infra requests get lost across tickets, Slack, and tribal knowledge, with inconsistent approvals and no audit trail. StackGate makes the plain-English request the input and produces a governed, auditable provisioning workflow.
What it does
- Plain-English intake: Claude parses a database need into a structured PostgreSQL spec (deterministic regex fallback if the API is down).
- A policy engine classifies each request low / medium / high risk and a cost band from environment, tier, vCores, storage, HA, networking, and data class.
- Approval routing: low-risk auto-approves; medium and high route to approvers with rationale, comments, and full ticket-level audit history.
- Role-based views (requester, approver, admin): dashboard, approvals inbox, ticket timeline, and a resource handoff card.
how it fits together
NL request → governed, reviewable provisioning
Plain-English database requests become risk-classified, policy-approved infrastructure as code with a full audit trail.
- Natural-language request"I need a small Postgres for a staging app…" → Claude parse (deterministic regex fallback).
- Structured spec + validationEnvironment, tier, vCores, storage, HA, networking, data classification.
- Policy engine · risk + costNine deterministic rules classify low / medium / high risk plus an estimated monthly cost band.
- Low risk → auto-approveStraight to the provisioning queue.Med / high → approversTransactional, status-guarded, self-approval blocked.
- Provisioning adapterSimulation or guarded Azure (az CLI). Live calls gated to a low-risk eligibility envelope, else auto-fallback to simulation.
product screens
key engineering decisions
Real access control, not a mock user
A server-owned, HMAC-signed session; every route derives the actor server-side, blocking spoofing and self-approval, and approvals commit in one transaction so two approvers can't double-provision.
Guarded live cloud provisioning
A strict eligibility envelope of 9 hard limits gates real Azure calls; anything outside it falls back to simulation to cap blast radius and cost.
results & outcomes
- Plain-English requests become traceable workflows with consistent approvals and a full audit trail (13 event types).
- Spoofing, self-approval, and double-provisioning eliminated (server-owned sessions plus transactional approvals, 409 on conflict), covered by an end-to-end smoke test across the three risk paths.
- A guarded Azure path that's safe by construction, falling back to simulation outside a 9-limit low-risk envelope.
How StackGate turns plain-English infra requests into governed workflows: a deterministic risk and cost policy engine, an LLM that only proposes, and Terraform that references secrets instead of embedding them.
