Skip to content

Audit season panic

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
  • 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.

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.

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
  1. Classify your data and map which systems hold the sensitive kinds. This defines the scope of most audits.
  2. 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.
  3. Send audit events to an immutable store in a separate account, with retention that meets your obligations.
  4. Enforce policies in code: block public storage, unencrypted databases and unreviewed changes automatically.
  5. Collect evidence continuously, so audit preparation becomes exporting a report rather than a project.
Systems that produce their own evidence1. Every change, including infrastructure, starts as reviewed code. 2. The pipeline enforces review, tests and policies before anything reaches production. 3. Policies are driven by the data inventory, so the strictest rules apply where sensitive data lives. 4. Every sensitive action in production is written to an immutable log in a separate account. 5. Compliance checks run continuously, and auditors get read-only reports.Separate security account Code changeinfrastructure and apps Pipelinereview, tests, policies Productionno manual changes Data inventorywhat is sensitive, where Policy as codeblocks non-compliance Audit log storeimmutable, retained Auditorsread-only reportsCompliance checkscontinuous evidence12345
Systems that produce their own evidence Controls are enforced in the pipeline and the cloud accounts; every sensitive action lands in a store that nobody can quietly change.
  1. Every change, including infrastructure, starts as reviewed code.
  2. The pipeline enforces review, tests and policies before anything reaches production.
  3. Policies are driven by the data inventory, so the strictest rules apply where sensitive data lives.
  4. Every sensitive action in production is written to an immutable log in a separate account.
  5. Compliance checks run continuously, and auditors get read-only reports.
  • 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.

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.

  • 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.

Written and edited by Abhinav Taduka, enterprise software architect.