Resources /
Blog

Salesforce SOC 2 Compliance: Complete Guide

Submit your details to get a book

12
Min Read
Resources /
Blog

Salesforce SOC 2 Compliance: Complete Guide

Download

Submit your details to get a book

12
Min Read

A single red flag on a security questionnaire can freeze a seven-figure deal. Enterprise buyers now expect every SaaS vendor and every internal platform team to prove SOC 2 alignment before contracts reach legal.

Salesforce recognizes the stakes. Its SOC 2 attestation reports demonstrate rigorous, third-party-audited controls over infrastructure and encryption. Those reports satisfy auditors only up to the platform edge.

The cloud operates on a shared responsibility model: Salesforce secures the data centers and the Hyperforce network, while your organization owns every profile, permission set, line of Apex, and connected app inside your own org.

That responsibility gap is where most compliance programs stumble. Over-privileged users and ad-hoc hotfixes routinely derail audits despite the platform attestation. Auditors do not accept "Salesforce is compliant" when a custom trigger updates customer data without peer review or documentation.

The answer is to treat every commit and deployment as future audit evidence. Instead of point-in-time checklists, embed SOC 2 controls into everyday workflows so routine development activity becomes continuous, automated compliance.

Is Salesforce SOC 2 Compliant?

Salesforce maintains SOC 2 attestation for its platform, but that does not make your Salesforce org compliant. The attestation covers what Salesforce operates. It says nothing about how you have configured your environment.

One clarification worth making early, because it recurs in vendor marketing and in security questionnaires: SOC 2 produces an attestation report issued by a licensed CPA firm. It is not a certification, and no organization is formally "SOC 2 certified." Auditors and compliance reviewers notice the distinction, so using the correct term signals that you understand the framework.

The practical question for a Salesforce team is not whether Salesforce holds an attestation. It is which controls sit on your side of the line, and whether you can evidence that they operated throughout the audit period.

Control areaCovered by Salesforce's attestationYour responsibility to evidence
Physical and infrastructure securityData centers, Hyperforce network, hardware, hypervisorNothing, but you must retain the report covering your audit period
Platform availabilityService uptime, redundancy, disaster recovery of the platformYour own backup, restore testing, and recovery runbooks
Access controlSalesforce employee access to infrastructureProfiles, permission sets, MFA enforcement, and periodic access reviews
Change managementSalesforce's own release processEvery metadata deployment, approval, and emergency change in your org
Custom codeNot in scopeApex, LWC, flows, and the review process that approved them
Connected apps and integrationsNot in scopeInventory, authorization, scope review, and token rotation
Data classification and retentionNot in scopeRetention policies, deletion, and evidence they ran
Audit loggingPlatform-level loggingRetaining org change history beyond the native 180-day window

Takeaway for administrators: you inherit Salesforce’s infrastructure controls, not its compliance. Everything you configure, deploy, or grant remains yours to evidence.

Understanding SOC 2 Requirements for Salesforce Organizations

SOC 2 originated with the American Institute of Certified Public Accountants to help service providers prove they protect customer data. The framework centers on five Trust Services Criteria.

Only Security is mandatory in every SOC 2 engagement. The other four are included based on the commitments your organization makes to customers, so scope is a deliberate decision rather than a default. The table below maps each criterion to what it means in a Salesforce environment specifically.

CriterionRequired?What it means in SalesforceTypical evidence an auditor requests
SecurityMandatory in every engagementMFA, least-privilege permission sets, IP restrictions, code scanning, branch protectionAccess review records, permission set exports, scan results, Shield logs
AvailabilityOptional, based on commitmentsBackup schedules, rollback capability, disaster recovery runbooks, sandbox rehearsalRestore test results, incident records, deployment rollback logs
Processing IntegrityOptional, based on commitmentsPeer-reviewed changes, automated test gates, validated business logicPull request approvals, test run artifacts, coverage reports
ConfidentialityOptional, based on commitmentsShield Platform Encryption, field-level security, Named Credentials, sandbox maskingEncryption policy, key rotation records, masking configuration
PrivacyOptional, based on commitmentsData minimization, automated retention, right-to-be-forgotten flows, consent trackingRetention job logs, anonymization records, consent object data

Security

Organizations must prevent unauthorized access to systems and data through comprehensive access controls and monitoring. Multi-factor authentication organization-wide forms the foundation, followed by least-privilege permission sets that prevent users from deploying or exporting unnecessary data. IP range restrictions should lock down integrations that run from fixed locations.

Code security requires Git main branch protection with approved pull requests for all merges. Static scanners embedded in the CI stage catch Apex, Lightning Web Components, and metadata security misconfigurations before vulnerabilities reach the build server.

Salesforce Shield features provide the evidence auditors need:

  • Platform Encryption offers encrypted storage
  • Event Monitoring delivers tamper-proof logs
  • Field Audit Trail maintains long-term change history

These security controls form the foundation for all other Trust Services Criteria and demonstrate an organization’s commitment to protecting sensitive data throughout its lifecycle.

Availability

Systems must operate reliably with documented recovery procedures when incidents occur. Full-copy or partial-copy sandboxes allow teams to rehearse peak-load scenarios and failover drills before each major release. Performance regressions surface early through health-check scripts during this testing phase.

Automated rollback capabilities should exist at every pipeline step. Post-deployment smoke test failures trigger the same script that reverts metadata in minutes to preserve SLA commitments. Organizations must implement comprehensive backup and recovery strategies:

  • Backup schedules capture both data and metadata at frequencies matching business tolerance levels
  • Disaster-recovery procedures require documentation alongside runbooks for incident detection and escalation
  • Recovery testing validates that restoration processes work under actual failure conditions

Availability controls ensure business continuity and demonstrate an organization’s ability to maintain service levels even during adverse conditions.

Processing Integrity

Data processing must be complete, accurate, and authorized throughout system operations. Peer-reviewed pull requests become mandatory for all changes, with approvers confirming that acceptance criteria and test coverage thresholds are met.

Static code analysis tools like PMD or ESLint flag logic that could corrupt data. Pipeline gates execute unit, integration, and regression tests before publishing results as immutable artifacts. Critical workflows must process sample records end to end without error before promotion occurs.

Confidentiality

Sensitive information must be protected from unauthorized disclosure through encryption and access controls. Shield Platform Encryption must cover any field storing regulated or sensitive data. Annual key rotation and audit trails tracking encrypted export downloads provide additional protection. Field-level security through profiles and permission sets blocks access to personally identifiable information unless essential for job functions.

External service integrations require Named Credentials and the Salesforce-managed certificate store to avoid hard-coded secrets in Apex. Lower environments need masked or synthesized data so confidential values never leave production systems.

Privacy

Personal information must be collected, used, and disposed of according to stated privacy policies and applicable regulations. Data minimization starts with capturing only fields tied to documented business purposes. Retention policies automated through Scheduled Apex or Flow purge or archive records after contractual or regulatory deadlines expire. Broader privacy requirements extend beyond SOC 2 into GDPR and similar regimes.

Right-to-be-forgotten requests require declarative sub-flows that locate and anonymize subject data across objects, then log the action as audit evidence. Consent Management objects track marketing permissions and synchronize them with downstream systems to maintain compliance across platforms.

Takeaway for administrators: scope the criteria deliberately. Every criterion you include adds controls you must evidence for the full audit period.

Common Compliance Gaps in Salesforce Deployments

Organizations that download Salesforce’s attestation report often discover blind spots when auditors examine daily operations. These gaps sit on the customer side of the shared responsibility line.

GapCriterion affectedAudit riskMitigation
Excessive user permissionsSecurityAccess review finds deployment rights on profiles that do not need themLeast-privilege permission sets and scheduled access reviews with recorded outcomes
Insufficient audit trail retentionSecurity, Processing IntegrityChange history requested beyond 180 days cannot be producedRetain deployment and change records outside the native window
Unmanaged third-party connectionsSecurity, ConfidentialityAuditor finds undocumented data flows to external systemsConnected app inventory with scheduled scope review and token rotation
Emergency changes without controlsAvailability, Processing IntegrityHotfixes with no approval record are logged as control failuresDocumented break-glass process with retrospective approval inside the pipeline
Inadequate data lifecycle managementPrivacy, ConfidentialityData persists beyond stated retention, contradicting the privacy policyAutomated retention jobs with logged execution as evidence
Author and approver are the same personProcessing IntegritySeparation of duties cannot be demonstratedPipeline policy preventing self-approval of production changes

Excessive User Permissions

Large teams regularly grant broad API and metadata rights, widening the attack surface and breaking least-privilege principles. Permissions accumulate over time, allowing users to deploy to production without approval in many organizations.

This creates audit violations when multiple users can modify critical configurations without oversight. The gap becomes visible during access reviews when auditors find deployment permissions scattered across profiles that do not require them for daily job functions.

Insufficient Audit Trail Retention

Salesforce’s Setup Audit Trail retains only 180 days of records, falling short of SOC 2’s requirement for tamper-evident evidence. Event Monitoring helps but stores logs for a limited window, creating evidence gaps that auditors immediately flag. When auditors request change history beyond the retention period, organizations cannot provide the required documentation. Comprehensive audit management requires extending beyond native capabilities to meet regulatory requirements.

Unmanaged Third-Party Connections

Unauthorized middleware and forgotten API tokens create undetected data egress paths that multiply security risks beyond org boundaries. Connected apps exporting data often lack proper inventory management and oversight.

Teams create integrations during projects but fail to document or review them afterward. These connections persist indefinitely, creating compliance violations when auditors discover undocumented data flows to external systems.

Emergency Changes Without Proper Controls

Emergency fixes pushed directly from sandboxes bypass CI/CD checks during critical incidents. The risk affects both broken functionality and unaccounted change history, violating availability and processing integrity requirements.

These hotfixes create gaps in the deployment audit trail because they circumvent normal approval workflows. Auditors flag these incidents as control failures when emergency procedures lack proper documentation and approval processes.

Inadequate Data Lifecycle Management

Privacy criteria require uniform retention and destruction, yet many enterprises leave legacy objects lingering indefinitely across multiple jurisdictions. Data aging policies often lack consistency across orgs, violating privacy requirements.

Organizations struggle to demonstrate compliance when data persists beyond regulatory limits. The gap widens when different business units apply different retention standards to similar data types across multiple Salesforce environments.

McKinsey research found that in the preceding 12 months, nearly 10 percent of respondents reported stopping business with a supplier after learning of a data breach. The commercial consequence of a control failure is not only the audit finding.

Takeaway for administrators: every gap here is an operational habit rather than a platform limitation, which means every one of them is fixable by process.

How Salesforce DevOps Helps with SOC 2 Compliance

SOC 2 asks a question that DevOps already answers: who changed what, when, and who approved it. A disciplined pipeline produces that evidence automatically, as a by-product of shipping work.

The difference is between point-in-time and continuous compliance. Manual preparation means reconstructing months of history in the weeks before an audit. Embedded controls mean the evidence already exists on the day the auditor asks.

  • Version control records every change and its author, satisfying the change management evidence auditors request first.
  • Automated approvals prove authorization happened before deployment rather than being documented afterward, which is the distinction that fails most control tests.
  • Deployment policies enforce separation of duties by preventing the same person from authoring and approving a production change.
  • Automated testing evidences processing integrity, showing that changes were validated before reaching customer data.
  • Immutable audit logs give auditors a tamper-evident record that extends past the 180-day native retention window.

A practical audit scenario shows the difference. An auditor selects five production changes at random and asks for the business justification, the approver, the test results, and the deployment record for each. With embedded controls, that request is a report. Without them, it is a week of searching tickets, chat threads, and email.

Takeaway for administrators: if answering a sampled-change request takes more than an afternoon, your controls are documented rather than operational.

Building Controls into Salesforce DevOps Workflows

Transforming CI/CD pipelines into compliance engines requires embedding controls at every stage. Controls that live inside the pipeline run on every change, which is what produces continuous evidence instead of periodic snapshots that miss configuration drift between assessments.

The practical test of an embedded control is whether it can be bypassed under deadline pressure. A control that a release manager can skip is a documented intention, not an operating control, and auditors test the difference.

Development Phase Controls

Signed commits prove authorship through GPG signatures that establish cryptographic proof of developer identity. Commit messages linking to ticket numbers create traceable authorization chains back to business requirements.

Static code scans trigger automatically using tools like PMD for Apex vulnerabilities, ESLint for Lightning Web Components, and SFDX scanner for metadata security anti-patterns. These scans identify issues like SOQL injection risks, missing field-level security checks, and overly permissive sharing rules before code reaches shared environments.

Branch protection policies prevent direct commits to main branches through configuration requirements: status checks from specific CI jobs, dismissing stale reviews when new commits push, and restricting merge permissions to designated release managers.

Peer Review Requirements

Effective implementations require reviews from different functional areas beyond simple approval counts. Technical review focuses on code quality, security review examines permission changes, and business review validates process modifications affecting organizational workflows.

Code review tools that integrate with Salesforce metadata provide context-aware analysis. Reviews of Profile changes show field-level security implications. Flow modifications highlight downstream automation effects that could impact business processes across departments.

Pull requests containing permission set modifications, integration endpoint changes, or data access logic require documented justification for the business need driving each change. This creates approval chains that demonstrate proper authorization at multiple organizational levels.

Sandbox Testing Controls

Tiered masking policies balance Privacy requirements with testing effectiveness across development stages. Full sandboxes receive comprehensive masking, partial sandboxes get targeted field obfuscation, and developer sandboxes use completely synthetic datasets.

Format-preserving masking maintains data relationships for realistic testing scenarios while protecting sensitive information. This approach preserves referential integrity and workflow logic validation without exposing confidential data during development cycles.

Automated Testing Controls

Automated testing extends beyond unit validation. Three test categories produce distinct evidence, and auditors increasingly ask about them separately.

Integration testing validates that connected systems behave correctly together: multi-step approval workflows maintain proper audit trails, batch processing jobs handle record locking correctly, and external API integrations respect rate limits and error handling protocols. This is the evidence that supports processing integrity across system boundaries.

Regression testing proves that new changes did not break existing controls. A permission change that quietly widens access to an object protected under Confidentiality is exactly the failure regression suites are meant to catch, and running them on every promotion turns that into continuous evidence.

Security validation checks the security posture of the change itself: field-level security on new fields, sharing rule implications, permission set changes, and whether any new integration endpoint introduces an undocumented data flow. Failing this check should block promotion rather than raise a warning.

Production Deployment Controls

Deployment timing coordination reveals operational maturity in global organizations. Scheduling deployments to minimize business impact across time zones while maintaining audit trails that satisfy regulators in multiple jurisdictions requires sophisticated change management processes.

Environmental context logging captures comprehensive deployment state: which connected apps were active, what background jobs were running, and which users were logged in during maintenance windows. This detailed logging supports forensic analysis when deployment issues surface days or weeks later.

Continuous monitoring integration feeds deployment events to security systems with tagged metadata that enables correlation analysis between specific changes and observed system behavior. This supports both incident response and performance optimization efforts.

Automated Control Validation

Progressive rollback strategies minimize availability impact through incremental restoration rather than complete system reversion. Critical path functionality restores immediately. Less essential features undergo thorough validation before re-deployment.

Exception handling generates detailed incident reports that document control failure detection, restoration timing, and compensating control activation during incident response. These reports become valuable compliance artifacts demonstrating control effectiveness during adverse conditions.

Weighted scoring systems evaluate deployment readiness through logic rather than binary pass or fail decisions. Critical security vulnerabilities block deployment entirely. Lower-severity issues generate warnings requiring documented acceptance by designated approvers with appropriate authority levels.

Takeaway for administrators: a control only counts if it runs automatically and cannot be skipped, because that is the version an auditor can test.

Salesforce DevOps Tools for SOC 2 Compliance

Not every DevOps platform generates audit-grade evidence. When evaluating DevOps tools against SOC 2 requirements, the capabilities below are the ones an auditor will eventually test.

Change management evidence
  • Version control recording every metadata change with a named author.
  • Traceable link from each change back to the request that authorized it.
  • Approval captured before deployment, with timestamp and approver identity.
  • Policy preventing the same person from authoring and approving a production change.
  • Complete deployment history retained beyond the native 180-day window.
Control enforcement
  • Approval gates that cannot be bypassed under deadline pressure.
  • Automated test execution on every promotion, with retained results.
  • Policy-based deployment rules enforced by the pipeline, not by convention.
  • Role-based access that maps to existing Salesforce profiles and permission sets.
  • Documented break-glass procedure for emergency changes that still produces a record.
  • Rollback capability with the rollback itself logged as an auditable event.
Audit readiness
  • Immutable logs that cannot be edited after the fact.
  • Evidence exportable as a report rather than assembled by hand.
  • Ability to answer a sampled-change request from a single system.
  • Clear audit scope, so the tool does not widen the boundary auditors must assess.
  • Retention configurable to match your audit period, not the vendor's default.

One evaluation question cuts through most vendor claims: ask to see the exact report a tool produces when an auditor samples five production changes and requests justification, approver, tests, and deployment record for each. If that requires exporting from three systems and reconciling them by hand, the tool is not generating audit evidence.

Scope is the other consideration. Tooling that copies metadata to external infrastructure widens the boundary an auditor has to assess, which means more systems in scope and more evidence to gather.

Takeaway for administrators: evaluate DevOps tools on the evidence they produce, not only the deployments they perform.

Making SOC 2 Compliance Repeatable with Flosum

Three principles run through everything above. Salesforce’s attestation covers Salesforce, not your org. Controls only count when they run automatically on every change. And compliance is an ongoing governance process, not a certificate you earn once and file away.

Manual control testing and deployment tracking create gaps while slowing development velocity. Evidence scattered across repositories, CI servers, and chat threads makes traceability difficult exactly when an auditor is waiting.

Flosum is an end-to-end enterprise DevSecOps platform purpose-built for Salesforce, with three deployment options (Salesforce-native, cloud, and customer-hosted) so teams can choose the model that keeps their audit scope where their auditors expect it. Teams that need change history to remain inside the Salesforce boundary can select the Salesforce-native option.

Whichever model you choose, the compliance mechanics are the same: immutable audit logs capture each commit, peer review, and deployment with user identifiers, timestamps, and checksums, and role-based access controls integrate with existing Salesforce profiles and permission sets.

The outcome is audit preparation as workflow output rather than disruptive overhead. Teams maintain velocity while producing the evidence trails compliance frameworks demand. Explore how Flosum embeds compliance controls directly into Salesforce DevOps workflows.

Frequently Asked Questions (FAQ)

Does Salesforce have a SOC 2 report?
Yes. Salesforce publishes SOC 2 attestation reports covering its platform infrastructure and controls. Customers download them from the Salesforce Compliance portal, which requires authentication. Check that the report period covers your audit window, and take the service coverage documentation showing which products fall inside the report's scope.
Is Salesforce SOC 2 compliant?
Salesforce maintains SOC 2 attestation for its platform, but that does not make your org compliant. Under the shared responsibility model, Salesforce secures the infrastructure while you remain responsible for user permissions, configuration, custom code, connected apps, and change management inside your own org.
Is SOC 2 compliance required?
No law requires SOC 2. It is a voluntary framework driven by commercial pressure rather than regulation. In practice, enterprise buyers, procurement teams, and security questionnaires treat it as a prerequisite, so most SaaS vendors and many internal platform teams pursue it to win and keep contracts.
What are SOC 2 compliance services?
SOC 2 compliance services typically cover readiness assessments, gap analysis, control design, evidence collection, and the audit itself. Only a licensed CPA firm can issue the report. Compliance automation platforms and consultancies handle preparation, while the attestation itself must come from an independent auditor.
How hard is SOC 2 compliance?
Difficulty depends less on the framework than on your starting point. Organizations with documented change management, access reviews, and audit logging already have most controls in place. The hard part is usually evidence: proving controls operated consistently across the entire audit period, not simply that they exist today.
Is SOC 2 only for cloud companies?
No. SOC 2 applies to any service organization that stores or processes customer data, including on-premises providers, managed service providers, and data centers. It is most associated with SaaS because cloud vendors face the most customer scrutiny, but the framework itself is not cloud-specific.
How does Salesforce DevOps help with SOC 2 compliance?
DevOps generates audit evidence as a by-product of normal work. Version control records what changed and who authored it, approval gates prove authorization happened before deployment, automated testing evidences processing integrity, and immutable deployment logs give auditors a continuous trail rather than a point-in-time snapshot.
Table Of Contents
Author
Stay Up-to-Date
Get flosum.com news in your inbox.

Thank you for subscribing