Skip to main content

Salesforce DevSecOps for pharma and life sciences: GxP, validation and Part 11

Pharma, biotech and medical device companies run field teams, medical information, patient support and complaint intake on Salesforce. Some of those processes are GxP-relevant, which changes what "shipping a change" means. A regulated change is not finished when it deploys cleanly. It is finished when you can show it was specified, assessed for risk, verified, approved and recorded. This post maps those expectations onto a Salesforce delivery pipeline. It is general guidance, not regulatory advice: your quality and regulatory teams own the interpretation for your products and markets.

First: is the org in scope?

GxP is shorthand for the "good practice" regulations: manufacturing (GMP), clinical (GCP), laboratory (GLP), distribution (GDP) and pharmacovigilance (GVP). A Salesforce org is in scope when it creates, changes or stores records those regulations require, or supports decisions that affect product quality or patient safety. Adverse event or complaint intake usually is.

Many orgs are mixed. Decide scope per process and per object, document that assessment, and apply validated change control to the GxP parts rather than to everything.

Computer system validation, risk-based

Computer system validation (CSV) is documented evidence that a system does what it is intended to do, consistently. The industry has moved towards risk-based validation: more assurance effort where a failure could affect patient safety, product quality or data integrity, less where it could not. ISPE's GAMP 5 guide (Second Edition, 2022) is the common reference for this approach. For medical device production and quality system software, the FDA finalised its guidance on Computer Software Assurance in September 2025, which promotes the same risk-based thinking. In the EU, GMP Annex 11 covers computerised systems.

For Salesforce this has a particular shape:

  • The platform is a supplier. Salesforce runs and changes the platform, including three major releases a year. You assess the supplier and keep its documentation; you do not validate its internals.
  • Your configuration and code are your system. Objects, fields, validation rules, Flows, Apex, permission sets and sharing are what you validate and control.
  • Platform releases need a regression plan. Each release is a change you did not author, so validated processes need a defined check after every upgrade, ideally on a preview sandbox first.

What 21 CFR Part 11 asks for

Part 11 applies to electronic records and electronic signatures that FDA regulations require. The full text on eCFR is short and worth reading. FDA's 2003 guidance on Part 11 scope and application narrowed how the agency enforces some of these provisions, so check the current guidance with your regulatory team. The controls that touch software delivery most directly are:

Section What it requires Where it lands in Salesforce
11.10(a) Validation of systems for accuracy, reliability and consistent performance Your configuration and code, under change control
11.10(d), (g) Access limited to authorised people; authority checks on who can sign or change records Profiles, permission sets, sharing, and who holds admin-level permissions
11.10(e) Secure, computer-generated, time-stamped audit trails of record creation, change and deletion, kept as long as the records Field history tracking and Field Audit Trail on GxP fields
11.10(k) Controls over system documentation, including change control records Source control, pull requests and release records
11.50, 11.70 A signature shows the signer's name, date and time and meaning, and is linked to its record A validated signature design, not a checkbox
11.200 Non-biometric signatures use at least two distinct identification components Re-authentication at the moment of signing

Audit trails on the platform

Salesforce gives you three relevant trails. Field history tracking records changes to selected fields on an object. Field Audit Trail, part of Shield, extends how long that field history is retained, up to ten years. The Setup Audit Trail records configuration changes for 180 days. For GxP records, decide which fields need a trail, turn tracking on for exactly those, and make sure retention matches your record retention rules, exporting where the platform's window is shorter.

Electronic signatures

A signature under Part 11 is more than a user clicking "Approve". It needs to capture who signed, when, and what the signature means (review, approval, authorship), keep that bound to the record so it cannot be copied to another one, and verify identity at the moment of signing. Teams typically meet this with a validated signature application or a custom design that re-authenticates the user and writes an immutable signature record.

A pipeline that produces validation evidence

The pipeline shape for regulated finance applies here too; our post on Salesforce DevSecOps for banking and financial services covers it stage by stage. What life sciences adds is traceability to requirements and risk.

  1. Every change starts from a requirement and a risk assessment. The pull request references the change request, and the risk rating decides how much testing it needs.
  2. Independent review in the pull request. Branch protection requires a reviewer who is not the author. The automated security review runs on the change:
vulkro-sf review --range origin/main...HEAD --fail-on high

When the change touches metadata, the review also reports what it grants and to whom, which matters for 11.10(d) and (g): a permission set that newly grants Modify All Data is an access change your validation must account for.

  1. Verification is recorded, not remembered. Test results and scan output are stored with the release, tied to the commit.
  2. Deploy by the pipeline, under a dedicated integration user. People do not hold production deploy rights.
  3. Release records. A metadata diff between releases and a SHA-256 attestation of the evidence file, so you can later show it was not altered:
vulkro-sf metadiff ./release-2.3 ./release-2.4 --format json > metadiff.json
vulkro-sf compliance evidence-export ./force-app -o evidence.json
vulkro-sf compliance attest evidence.json --submitter "QA"
  1. Watch production between releases. Changes made directly in Setup bypass the pipeline. A scheduled, read-only check finds them, along with audit-trail gaps:
vulkro-sf org audit-trail --target-org prod
vulkro-sf org field-audit-trail --target-org prod

SF-AUDIT-TRAIL-001 flags permission escalations in the last 30 days, and org field-audit-trail reports SF-FIELD-AUDIT-001 for fields named like personal data with history tracking off. Both are leads for your periodic review, not conclusions.

What a scanner does not do

No tool makes a system validated or Part 11 compliant. Validation is a documented, risk-based judgement made by your organisation, and compliance is decided by your quality unit and, ultimately, by regulators. A scanner produces repeatable evidence for part of the technical controls: what changed, what it grants, what was found and when. The specification, risk assessment, test design and approvals remain yours.

FAQ

Is Salesforce GxP compliant?

No platform is GxP compliant on its own. Compliance belongs to the regulated company and its validated use of the system. Salesforce is assessed as a supplier, and your configuration, code and processes on it are what you validate and control.

Does 21 CFR Part 11 apply to Salesforce?

It applies when the org holds electronic records or signatures that FDA regulations require you to keep. In that case the audit trail, access control, validation and signature provisions apply to those records and the configuration that manages them.

How do you validate Salesforce releases?

Treat each of your own deployments as a controlled change with a risk assessment and recorded verification, and treat each Salesforce platform release as a supplier change that triggers a defined regression check of your validated processes, ideally in a preview sandbox first.

Build release evidence into your Salesforce pipeline with Vulkro for Salesforce, or Start a 14-day trial. Related: what auditors accept from a scanner.