Audit season panic
At a glance
Section titled “At a glance”| Aspect | Aspect |
|---|---|
| Typical organization | Any company subject to financial, security or privacy audits, from SOC 2 to industry regulators |
| Symptoms | Evidence gathered by hand at audit time; findings repeat year after year; nobody can answer “who changed this, and when?” |
| Root cause | Controls exist as policies and habits, not as something systems enforce and record |
| Usual fix | Enforce controls in code and pipelines, log every sensitive action immutably, and collect evidence continuously |
| Patterns | Immutable audit logs, policy as code, infrastructure as code, continuous compliance monitoring |
Sound familiar?
Section titled “Sound familiar?”- Engineers spend weeks taking screenshots of settings for auditors.
- The same finding, such as unreviewed production access, appears every year.
- Logs are kept, but in a place administrators can edit or delete.
- Nobody can say quickly which systems hold personal or payment data.
- Changes reach production without a record of who approved them.
Why it happens
Section titled “Why it happens”Compliance is often treated as a once-a-year exercise run by a separate team, while systems change daily. Controls live in policy documents rather than in the systems themselves, so proving them means gathering evidence by hand after the fact. The fix is architectural: build systems that enforce controls and record evidence as a side effect of normal work.
Your options
Section titled “Your options”| Option | Helps with | Watch out for |
|---|---|---|
| Data classification and inventory | Knowing where sensitive data lives, which decides what’s in scope | Must be kept current as systems change |
| Immutable audit logging | Proving who did what, and when | Volume, retention periods and privacy of the logs themselves |
| Policy as code in pipelines and cloud accounts | Preventing non-compliant changes before they happen | Needs owners for the policies |
| Infrastructure as code with peer review | A reviewed, versioned record of every change | Manual console changes must be blocked or detected |
| Continuous compliance tools | Evidence collected automatically, all year | Tools don’t replace owning the controls |
A proven approach
Section titled “A proven approach”- Classify your data and map which systems hold the sensitive kinds. This defines the scope of most audits.
- Map each control to something a system can enforce or record, such as “every production change is reviewed” becoming a required approval in the pipeline.
- Send audit events to an immutable store in a separate account, with retention that meets your obligations.
- Enforce policies in code: block public storage, unencrypted databases and unreviewed changes automatically.
- Collect evidence continuously, so audit preparation becomes exporting a report rather than a project.
- Every change, including infrastructure, starts as reviewed code.
- The pipeline enforces review, tests and policies before anything reaches production.
- Policies are driven by the data inventory, so the strictest rules apply where sensitive data lives.
- Every sensitive action in production is written to an immutable log in a separate account.
- Compliance checks run continuously, and auditors get read-only reports.
Trade-offs and what to watch
Section titled “Trade-offs and what to watch”- Logging everything is expensive and can create privacy risks of its own. Log what controls require, and protect the logs.
- Blocking policies slow teams down if they are wrong. Start in warning mode, then enforce.
- Tools are not controls. Every control still needs an owner who understands why it exists.
How you’ll know it worked
Section titled “How you’ll know it worked”Audit evidence is produced in days instead of weeks, repeat findings disappear, and questions like “who accessed this data last month?” are answered with a query.
Seen in the real world
Section titled “Seen in the real world”- Shopify measured architecture rules automatically on every test run, the same idea applied to design.
- The worked TOGAF example keeps every credit decision in an append-only log to meet record-keeping rules.
Related on ArchitectureCompass
Section titled “Related on ArchitectureCompass”Written and edited by Abhinav Taduka, enterprise software architect.
New pages are added regularly. Follow Abhinav on LinkedIn to see them first.