Skip to content
Christoph Kassen

Strategic technology advisor / Cloud & AI / Munich

AboutServicesBlogContact
AboutServicesBlogContact
Back to Blog

Compliance by Design: Governing AI-Accelerated Development

Published on March 13, 20264 min read
AISecurityCompliancePlatform Engineering

AI-assisted development creates a tension we don't discuss enough: the tools that make developers faster also make compliance harder to maintain.

The problem isn't new. Compliance has always lagged behind delivery. But the scale has changed. When teams ship twice as much code, the surface area for bad configurations, exposed secrets, and insecure dependencies grows with it. Review capacity usually doesn't.

Manual compliance processes — code reviews that check for security issues, post-deployment audits, periodic scans — were already struggling before AI tools became mainstream. The math doesn't improve.

Why the traditional approach breaks under velocity

The classic DevOps security model treats security as a gate: code goes through CI, linting, review, deployment, and a scan. Each stage can catch problems.

This works while development is the bottleneck. Once developers ship faster, review and audit become the bottleneck. A security review that took an hour for ten pull requests a day becomes a serious problem at twenty.

The usual response is to make the gates faster: shorter review windows, automated scanning, less thorough audits. Each of these trades thoroughness for speed. At some point the compliance process becomes a formality rather than a genuine control.

Shifting left means making it structural

The better answer is to bake compliance into the infrastructure. A non-compliant deployment should be technically difficult, not merely prohibited by policy.

Three patterns help:

Policy-as-Code is the most direct version of this. Tools like Open Policy Agent (OPA), Kyverno for Kubernetes, and HashiCorp Sentinel let you express compliance requirements as code that runs in your CI/CD pipeline or as admission controllers in your cluster. A deployment that violates a policy fails automatically — no human review required for the common cases.

These policies are version-controlled, testable, and auditable. You can show an auditor the policy and its tests instead of a document describing what people are supposed to do.

Service templates and golden paths work at a higher level. Instead of reviewing every service for compliance issues, you invest in templates that are compliant by default. The scaffolding includes the right logging format, the right secret handling patterns, the right network configuration. Developers who follow the golden path get compliance for free; deviations from the path trigger a review.

The effort moves from reviewing output to making the compliant path the easiest one.

Secrets management needs particular attention. AI-generated code sometimes includes hardcoded credentials, revealing environment variable names, or insecure patterns. Static analysis in CI catches many of these. But with more code written from less context, the checks matter more, not less.

The human in the loop question

Humans still need to make compliance decisions. They should focus on cases that require judgment: new security questions, architectural trade-offs, and exceptions to standard policy. A scanner can handle the routine checks.

This takes upfront work: defining policies, building templates, and agreeing on the golden paths. Still, it is usually more manageable than repeatedly reviewing the same issues by hand.

The teams I've seen handle this well treat compliance much like testing: the faster they ship, the more they invest in it.

A note on AI-generated code specifically

AI tools sometimes generate working code with problems a careful review would catch: injectable SQL, error handling that logs sensitive data, or dependencies with known vulnerabilities.

That isn't a reason to avoid the tools. It is a reason to check what matters and agree on what "secure by default" means for your stack.

The tools and the processes need to evolve together. The teams that get into trouble are usually the ones where tooling velocity accelerates faster than operational and security practices catch up.

If you're working through this, I'm happy to compare notes.

If something here was useful or you're thinking through a related problem, feel free to get in touch.

Back to Blog