Matching the Control to the Data
Dette indhold er ikke tilgængeligt i dit sprog endnu.
Module 6 of 7 in the chapter Encryption: Classic, Shield and Apex Crypto, chapter 18 of Securing Salesforce: Sharing and Visibility. Each module stands on its own.
The question this module answers: Someone says “this is health data,” “this is personal data” or “this is card data.” What does each rule actually ask for, and which Salesforce controls answer it?
What’s special about those fields?
Section titled “What’s special about those fields?”Every encryption conversation in this chapter has started with the same questions. Why aren’t we encrypting everything? And if we’re not, why these fields? What’s special about them? As soon as you hear financial services or healthcare, ask: are we encrypting? And then the next question: what exactly does the rule say?
That second question matters, because the short versions people repeat are wrong in both directions. “HIPAA requires encryption” and “GDPR doesn’t care about encryption” are both too short to design from. So in this module we read the rules’ own words, then match the control to the data.
One thing first. This isn’t legal advice. Which law applies, and what it requires of your client, is for their compliance team and lawyers to decide. Your job as the architect is to know what the controls are, ask the right questions, and design so the answer can be proved.
Start with the label on the field
Section titled “Start with the label on the field”Before any of the three, classify. Salesforce’s data classification fields let you record, on each field, its sensitivity and its compliance categorization, and the default categories include GDPR, HIPAA, PCI and PII (chapter 4, module 6). In class I mark a field like a birth date as confidential, PII and GDPR right there in the field’s settings. Then you have a list you can query, and the rest of this module has something to work from. The Data Architect course builds the full protection matrix from it (Classify, Then Protect).
Health data: HIPAA
Section titled “Health data: HIPAA”HIPAA’s Security Rule sets technical safeguards for electronic protected health information. Two are worth reading in full, because they map straight onto this course.
Access control is a standard: “Implement technical policies and procedures for electronic information systems that maintain electronic protected health information to allow access only to those persons or software programs that have been granted access rights.” That’s everything in Parts 1 and 2: object permissions, field-level security, the defaults, sharing. Note “software programs.” Integrations and agents count.
Encryption sits under it as an implementation specification: “Encryption and decryption (Addressable). Implement a mechanism to encrypt and decrypt electronic protected health information” (45 CFR 164.312 (opens in a new tab), eCFR, up to date as of 2026-11-19, checked 2026-11-26).
“Addressable” doesn’t mean optional. The rule says what it means: assess whether it’s “a reasonable and appropriate safeguard”; implement it if it is; and if it isn’t, “Document why it would not be reasonable and appropriate to implement the implementation specification” and “Implement an equivalent alternative measure if reasonable and appropriate” (45 CFR 164.306 (opens in a new tab), eCFR, up to date as of 2026-11-19, checked 2026-11-26). For health data in a cloud CRM, that’s a hard document to write. In my experience, when someone says HIPAA, one of the first questions a solution architect should ask is whether they have Shield, and it’s rare for a client under HIPAA not to.
And it may get stricter. In January 2025, HHS proposed changes to the Security Rule that would “remove the distinction between ‘addressable’ and ‘required’ implementation specifications” (HIPAA Security Rule To Strengthen the Cybersecurity of Electronic Protected Health Information (opens in a new tab), 90 FR 898, Federal Register, January 6, 2025, checked 2026-11-26). On 2026-11-21 that was still a proposal: the rule in force, quoted above, still says “Addressable.” Check the date when you read this.
The same section also has an audit controls standard: “Implement hardware, software, and/or procedural mechanisms that record and examine activity in information systems that contain or use electronic protected health information” (45 CFR 164.312). In Salesforce, that’s monitoring, and it’s chapter 19, which ends with a plan that shows someone examines the records (HIPAA’s audit controls).
Personal data: PII and GDPR
Section titled “Personal data: PII and GDPR”PII, personally identifiable information, isn’t one law. It’s the kind of data many privacy laws protect, and GDPR is the one most of us meet first. Here’s what it says about security: “the controller and the processor shall implement appropriate technical and organisational measures to ensure a level of security appropriate to the risk, including inter alia as appropriate: (a) the pseudonymisation and encryption of personal data” (Regulation (EU) 2016/679, Article 32 (opens in a new tab), EUR-Lex, checked 2026-11-26).
Read the words “appropriate to the risk” and “as appropriate.” So in class, when I said GDPR doesn’t have strict encryption, I meant it doesn’t name encryption as a must for every field. It names it as a measure, and the risk decides.
But there’s a reason encryption comes up in GDPR projects anyway. When a breach is likely to put people at high risk, the controller has to tell them, and that communication “shall not be required” if protection measures were applied “in particular those that render the personal data unintelligible to any person who is not authorised to access it, such as encryption” (same regulation, Article 34). Remember module 1, though: encryption at rest is about the stored data, not a logged-in user. A breach through a user who had access isn’t one encryption at rest made unintelligible.
For personal data, the strongest control is often the plainest one: collect less. The best sensitive data is data you don’t have (Classify, Then Protect).
Card data: PCI
Section titled “Card data: PCI”Card data is the case where the answer is usually not to keep it. Some of it, the card security code and the PIN, can’t be stored after the payment is authorized even if it’s encrypted, and the card number must be unreadable anywhere it’s stored. I’ve turned clients down when they wanted to keep card numbers or PINs in Salesforce. The answer is a payment gateway that holds the card, and a token in Salesforce that stands for it.
The Integration Architect course tells that story and quotes the PCI Security Standards Council’s own words, so I won’t repeat them here: What Never Travels. What this course adds is where card data turns up uninvited: an email to an email-to-case address, with the card in the body or an attachment, becomes a record nobody designed.
The side doors
Section titled “The side doors”All three rules protect the data, not the field. And the same value leaks out of the field you protected in more places than people expect.
I learned that one at my own firm, when a search turned up people’s reviews through attachments on a record everyone could see (chapter 4, module 4): list views, reports, search and files can all show what field-level security hid. Module 3 adds the encryption side: files and attachments, Chatter, search indexes and the event bus each have their own encryption switch. When a field is classified as health, personal or card data, follow the value: where else is it typed, copied, attached, indexed or sent?
Matching the control to the data
Section titled “Matching the control to the data”Put together, every one of the three starts the same way and then asks something different:
| Control | Health data (HIPAA) | Personal data (GDPR) | Card data (PCI) |
|---|---|---|---|
| Label it | Classify the field: sensitivity, and HIPAA as a compliance category | Classify the field: PII or GDPR | Classify the field: PCI |
| Who can see it | “Access only to those… granted access rights”: sharing and field-level security, for people and software | Measures “appropriate to the risk”: the same tools | Only the token, if you’ve designed it right |
| Encrypt it at rest | Addressable today: Shield, or a documented reason and an alternative | “As appropriate”; can change what a breach requires | The card number unreadable where stored; codes and PINs never stored |
| Watch who looked | Audit controls: chapter 19 | Part of the measures appropriate to the risk | Ask what the standard’s logging requirements are |
| Keep less | Only what care and billing need | Collect less | A gateway and a token |
| Follow the side doors | Files, search, Chatter, email | Files, search, Chatter, email | Email-to-case and attachments |
The rows in plain words are the course’s practice; the quotes are the rules’. The point of the table isn’t to memorize it. It’s that “encrypt it” is one row out of six, and never the first.
Test knowledge. Know that access controls for sensitive data start with classification and field-level and record-level access, not encryption. For HIPAA, know the Security Rule’s access control standard, that encryption is an addressable implementation specification (assess it; implement it, or document why not and implement an equivalent alternative), and its audit controls standard. For GDPR, know that Article 32 lists pseudonymisation and encryption as measures “appropriate to the risk,” and that encryption can affect breach notification. For PCI, know that sensitive authentication data (card codes, PINs) isn’t stored after authorization, the card number is rendered unreadable where stored, and a payment gateway with tokens keeps card data out of Salesforce. Know the side doors: files, attachments, search, Chatter, email-to-case. A likely area, not a known question.
What an architect decides here
Section titled “What an architect decides here”- Which fields carry health, personal or card data, recorded on each field as a compliance category.
- For each, what the client’s compliance team says the rule requires, in writing, with the rule’s own words.
- Who can see each one: sharing and field-level security for people, integrations and agents.
- Which get encrypted at rest, and if a HIPAA field doesn’t, the documented reason and the alternative.
- What the org will never store (card codes, PINs), and the gateway and tokens that replace it.
- Where the same values leak: files, attachments, search, Chatter, email-to-case, the event bus.
- How access is monitored, for chapter 19.
Beyond the exam: what AI changes. HIPAA’s access control standard says “persons or software programs.” An agent is a software program. It needs the same least-privilege access a person does, and its conversations, summaries and logs are new places for health, personal or card data to land. Classify those stores too, and keep card data out of them entirely. Chapter 20 covers agents.
Explore
Section titled “Explore”- 45 CFR 164.312, Technical safeguards (opens in a new tab), eCFR (checked 2026-11-26)
- 45 CFR 164.306, Security standards: General rules (opens in a new tab), eCFR (checked 2026-11-26)
- HIPAA Security Rule To Strengthen the Cybersecurity of Electronic Protected Health Information (opens in a new tab), proposed rule, Federal Register (checked 2026-11-26)
- Regulation (EU) 2016/679 (GDPR) (opens in a new tab), EUR-Lex (checked 2026-11-26)
