After a major breach, we learned the hard way that 'one-click Policy as Code' from security vendors barely covered half of our actual requirements.
The problem wasn't just the tooling—it was that the industry keeps slapping 'as-Code' onto different disciplines. Some define target states, some enforce SDLC workflows, and some just run generic compliance checklists. If you don't separate them, you'll spend a year automating someone else's rules instead of your own.
(More detail at the link at bottom)
Infrastructure as Code defines a declarative target state so drift is detectable and correctable, whereas "Security as Code" is just AppSec checks enforcing an SDLC process rather than a target state.
Compliance as Code automates checks against frameworks like CIS or NIST 800-53—which is what most vendors actually sell as "one-click Policy as Code," though true PaC translates your written corporate policies and standards into machine-readable enforcement.
At Equifax after the 2017 breach, federal consent orders, litigation settlements, and our own separation of concerns meant a quarter of those applied. So we built our own Policy as Code program from scratch, and over the coming weeks I'll be sharing a generic version of how I built it.
Soon, I'll kick off a 5-part Policy as Code series by looking at why written corporate policies break down in practice—and the missing architectural layer most teams skip when they try to turn them into code.
Where have you seen "as-Code" buzzwords—or generic vendor remediations—collide with your actual architecture?
#PolicyAsCode #PaC #InfrastructureAsCode #IaC #ComplianceAsCode