Book a free call

How to Design a SOC 2 Compliance Architecture

A SOC 2 compliance architecture maps each trust services criterion to controls in identity, networking, data, logging and change, so the audit checks your work.

Hertiv engineering teamReviewed by a senior engineer
8 min read
How to Design a SOC 2 Compliance Architecture
On this page

Short answer

A SOC 2 compliance architecture is the design of your systems, controls and evidence flows so that security, availability, processing integrity, confidentiality and privacy are built in rather than added later. It maps each trust services criterion to concrete controls in identity, networking, data, logging and change management, with evidence collected automatically as the system runs.

What is a SOC 2 compliance architecture?

A SOC 2 compliance architecture is the way a software system is designed so that the controls an auditor checks are part of how the system works, not documents written afterwards. It covers who can reach what, how data is protected, how changes are made, how problems are found, and how each of those facts is recorded as evidence.

The design starts from the five trust services criteria: security, availability, processing integrity, confidentiality and privacy. Security applies to every SOC 2 report; the other four apply only when they are in scope for the services you sell. Your architecture maps each criterion in scope to the systems and controls that satisfy it, as described in the SOC 2 overview.

The table below shows what each criterion asks the architecture to prove.

CriterionWhat the architecture must show
SecurityOnly the right people and systems can reach data and functions
AvailabilityThe service keeps running and recovers after a failure
Processing integrityData stays complete, correct and processed on time
ConfidentialitySensitive information stays private and is shared only as agreed
PrivacyPersonal information is collected, used and deleted as promised

The difference from a compliance checklist is that the architecture is built into the product. Access rules live in the identity system, not in a spreadsheet. Logs flow to one place automatically. Evidence is a by-product of running the system, which is what makes the audit repeatable year after year.

How do the trust services criteria shape the design?

Each criterion in scope adds a design question the architecture must answer. Security asks how you stop unauthorised access and misuse. Availability asks how the service keeps running and recovers. Processing integrity asks how data stays complete and correct. Confidentiality asks how sensitive information stays private. Privacy asks how personal information is collected, used and deleted.

The practical effect is that you design for the criteria you claim, and nothing more. A team that promises only security designs a tight identity and monitoring layer; a team that also claims availability must add redundancy, backups and recovery testing. Claiming a criterion you have not designed for is the fastest way to fail an audit, so scope the report to what the architecture actually does.

Keep the mapping visible. A one-page table that links each criterion to the controls and systems behind it helps engineers make decisions and gives the auditor a map of where to look. When a new feature is planned, the table shows which criteria it touches before any code is written.

How should you design identity and access?

Identity is the centre of a SOC 2 architecture, because most criteria come back to who can do what. Give every person and service one identity in a single directory, require multi-factor authentication for all sign-ins, and grant the minimum access each role needs. Shared accounts and long-lived passwords have no place in the design.

Build joiner, mover and leaver flows into the system from the start. A new hire gets access through a role, not a favour; a role change removes the old access the same day; a departure closes every account in one step. Review privileged access every quarter and remove roles nobody uses. Service accounts get their own identities with narrow permissions and rotating secrets, and they are reviewed like people.

Decide how access is approved and recorded. Each grant should name who approved it, why, and when it expires. Time-limited access for admin work beats standing admin rights, and a log of every grant and removal is evidence the auditor will ask for. The cost of getting SOC 2 wrong is mostly rework, and most of that rework is identity fixes made late.

How do you design the network and data layers?

Separate the network into zones so that a breach in one place cannot reach everything. Production, staging and internal tools sit in different segments, databases accept connections only from named services, and administrative access goes through a single guarded path. Encrypt traffic between services as well as from users, because internal traffic is not trusted by default.

Protect data by its sensitivity. Classify data when it is created: customer data, credentials and payment details get the strongest controls. Encrypt data at rest with keys you can rotate and revoke, and keep keys separate from the data they protect. Backups are encrypted too, tested by restoring them, and kept in a different location from the primary data.

Plan for the data you do not need. Retention rules decide how long each kind of data is kept and when it is deleted, and deletion must actually remove the data from backups on a defined schedule. A system that keeps everything forever fails the privacy and confidentiality criteria even if its encryption is perfect.

How do you build logging, monitoring and evidence?

Send every important event to one central log store: sign-ins, access grants, admin actions, configuration changes, failed authorisations and data exports. Logs are append-only, timestamped and kept for the full audit period, so nobody can edit away a mistake. If an event is not logged, the auditor treats it as if it did not happen.

Log sourceWhat it recordsWhy the auditor cares
Identity providerSign-ins, grants, removalsProves who had access and when
Cloud accountConfiguration changesProves the environment stayed as designed
ApplicationAdmin actions, data exportsProves what happened to customer data
Code repositoryReviews, approvals, deploysProves changes went through control

Monitor the logs rather than just storing them. Alerts for unusual sign-ins, failed authorisation spikes, privilege changes and data exports let the team respond while the problem is small. Each alert names who is on call and what the first step is, and the response is recorded so the incident trail is complete.

Make evidence automatic. A compliance tool that pulls control data from your systems each day replaces screenshots taken the week before the audit. Connect it to the identity provider, the cloud account, the code repository and the ticketing system, so each control has a live data source. The SOC 2 automation tools comparison shows what these tools collect and where they fall short.

How do you design change and incident handling?

Every change to production passes through the same path: a reviewed pull request, automated tests, a deployment record and a way to roll back. Emergency changes follow a shorter path that still records who approved the change and why, with a review afterwards. Nobody deploys from a laptop, and nobody changes production data by hand without a ticket.

Write the incident plan before you need it. It names who leads, how severity is judged, how customers are told, and what evidence is preserved. Run a tabletop exercise at least once a year so the plan is familiar when a real incident arrives. After an incident, the post-mortem records the cause, the fix and the control that will stop it happening again.

Vendors are part of the architecture too. List every provider that touches customer data or runs part of the service, check their own audit reports, and record what happens if one of them fails. A vendor with no audit report and no contract terms on security is a gap in your own report, not theirs.

Example (hypothetical): a 40-person SaaS company designs its compliance architecture

Example (hypothetical): a 40-person SaaS company sells a scheduling tool to clinics and needs a SOC 2 Type II report to win larger customers. It has one cloud account, a single database, and engineers who deploy from their laptops. The team gives itself twelve weeks to design the architecture before the observation period starts.

The team starts with identity: one directory, multi-factor authentication for all 40 staff, and roles that match the work. It removes 12 dormant accounts and 3 shared logins, then sets a quarterly access review. The database moves into a private segment that only the application servers can reach, and backups are encrypted and restored once a month to prove they work.

Logging goes to a central store with alerts for failed sign-ins and privilege changes, and a compliance tool pulls evidence from the identity provider, the cloud account and the code repository each day. The design work takes 6 engineers for 3 weeks, or 18 engineer-weeks, plus 4 hours a month of evidence review.

The first audit finds two gaps, an unreviewed service account and a missing vendor report, and both are fixed before the observation period ends.

What are the common mistakes?

The most common SOC 2 architecture mistakes are bolting controls on after the system is built, trusting tools to do the work, and collecting evidence by hand the week before the audit.

  • Designing for the audit, not the system. controls added as paperwork after the product is built fail as soon as the auditor tests them in practice
  • Shared accounts and standing admin rights. a login nobody owns cannot be reviewed, revoked or tied to a person when something goes wrong
  • Logs nobody reads. storing events without alerts or review means problems are found by the auditor, not by the team
  • Claiming criteria the design does not support. promising availability or privacy without redundancy, backups or deletion flows guarantees findings
  • Forgetting vendors and service accounts. a provider without an audit report and a service account nobody reviews are both gaps in your report
  • No rollback or incident plan. a change path without a way back and an incident plan nobody has practised fails under pressure

Key takeaways

  • SOC 2 architecture is the design of systems and controls, not a set of documents written for the auditor
  • Security is always in scope; availability, processing integrity, confidentiality and privacy only when claimed
  • Identity is the centre: one directory, multi-factor authentication, least privilege and quarterly reviews
  • Logs must be central, append-only and monitored, with evidence collected automatically
  • Scope the report to what the architecture actually does, and fix gaps before the observation period

Frequently asked questions

What is the difference between SOC 2 compliance and a SOC 2 architecture?

Compliance is the programme and the audit result. The architecture is the design of the systems, controls and evidence flows that makes compliance true. A team can have compliance paperwork without a sound architecture, but the auditor tests the systems, so the architecture is what actually passes.

Do I need all five trust services criteria?

No. Security is required in every SOC 2 report, and the other four apply only when they are in scope for your services. Most software companies start with security alone, then add availability or confidentiality when customers ask for them. Claiming a criterion you have not designed for is a common reason audits fail.

Can a small team build a SOC 2 architecture?

Yes. Start with the three layers that cover most findings: one identity directory with multi-factor authentication, central logging with alerts, and a single change path with reviews. A small team can design those in weeks. Add vendor management and formal incident exercises as the team grows.

How long does it take to design a SOC 2 architecture?

A small SaaS product can design the core architecture in four to twelve weeks, depending on how much already exists. Larger systems with several products and regions take longer, because each environment needs the same controls. The observation period for a Type II report adds several months after the design is ready.

What tools help with SOC 2 evidence?

Compliance automation tools pull control data from your identity provider, cloud account, code repository and ticketing system each day, so evidence is collected as the system runs. They do not replace the architecture itself. Prices and plans change often, so check the vendor site for current details.

Does a SOC 2 architecture replace other security work?

No. It is one part of a security programme. Code review, dependency patching, penetration testing and secure coding still matter, and SOC 2 does not test them in depth. Treat the architecture as the frame that holds those practices together, not as a substitute for them.

Found this useful? Share it.
Hertiv engineering team

Written from projects we build for clients: software products in production. Every post is reviewed by a senior engineer before publishing and updated when practice changes.

About HertivHow we work

Building a SOC 2-ready system? Talk to Hertiv.

A senior engineer replies within one business day. Or see our Data Security & Compliance service.

Book a free call

Keep reading

All posts

Tell us what you want to build

A senior engineer reads every request and replies within one business day with questions, a rough range, or a call link.

  • NDA on request before any details
  • You own all code, models and IP
  • US, UK and EU time-zone overlap

Your email app should open with your message ready to send. If it does not, write to contact@hertiv.com.

Prefer email? Write to contact@hertiv.com
Estimate costBook a call