SlideShare a Scribd company logo
Platform Encryption
Enhanced Native Encryption in the App Cloud
​ Peter Chittum
​ Developer Evangelist
​ @pchittum
​ github.com/pchittum
​ 
​ Assaf Ben-Gur
​ Senior Product Manager
​ @assafbengur
​ 
Safe Harbor
Safe harbor statement under the Private Securities Litigation Reform Act of 1995:
This presentation may contain forward-looking statements that involve risks, uncertainties, and assumptions. If any such uncertainties materialize
or if any of the assumptions proves incorrect, the results of salesforce.com, inc. could differ materially from the results expressed or implied by
the forward-looking statements we make. All statements other than statements of historical fact could be deemed forward-looking, including any
projections of product or service availability, subscriber growth, earnings, revenues, or other financial items and any statements regarding
strategies or plans of management for future operations, statements of belief, any statements concerning new, planned, or upgraded services or
technology developments and customer contracts or use of our services.
The risks and uncertainties referred to above include – but are not limited to – risks associated with developing and delivering new functionality
for our service, new products and services, our new business model, our past operating losses, possible fluctuations in our operating results and
rate of growth, interruptions or delays in our Web hosting, breach of our security measures, the outcome of any litigation, risks associated with
completed and any possible mergers and acquisitions, the immature market in which we operate, our relatively limited operating history, our
ability to expand, retain, and motivate our employees and manage our growth, new releases of our service and successful customer deployment,
our limited history reselling non-salesforce.com products, and utilization and selling to larger enterprise customers. Further information on
potential factors that could affect the financial results of salesforce.com, inc. is included in our annual report on Form 10-K for the most recent
fiscal year and in our quarterly report on Form 10-Q for the most recent fiscal quarter. These documents and others containing important
disclosures are available on the SEC Filings section of the Investor Information section of our Web site.
Any unreleased services or features referenced in this or other presentations, press releases or public statements are not currently available and
may not be delivered on time or at all. Customers who purchase our services should make the purchase decisions based upon features that are
currently available. Salesforce.com, inc. assumes no obligation and does not intend to update these forward-looking statements.
Peter Chittum
Developer Evangelist
@pchittum
github.com/pchittum
Assaf Ben-Gur
Senior Product Manager
@assafbengur
Speakers
Agenda
▪  Overview of Platform Encryption
▪  Features and Architecture
▪  Managing Platform Encryption
▪  Developing in a Platform Encryption Environment
Introducing: Salesforce Shield
New services to help you build trusted apps fast
Infrastructure Services
Network Services
Application Services
Secure Data
Centers
Backup and
Disaster Recovery
HTTPS
Encryption
Penetration
Testing
Advanced
Threat Detection
Identity & Single
Sign On
Two Factor
Authentication
User Roles &
Permissions
Field & Row
Level Security
Secure
Firewalls
Real-time
replication
Password
Policies
Third Party
Certifications
IP Login
Restrictions
Customer
Audits
Salesforce Shield
Platform
Encryption
Event
Monitoring
Field Audit
Trail
Encrypt Sensitive Data, Preserving Business
Functionality
Seamlessly protect data at rest
Encrypt standard & custom fields, files & attachments
​ 
Natively integrated with key Salesforce
features
E.g., Search, Validation Rules, Lookups work with
encrypted data
Customer managed keys
Customer-driven encryption key lifecycle management
Platform Encryption Use Cases
▪  Regulatory Compliance
▪  Unauthorized Access to Database
▪  Contractual Obligations
Platform Encryption is Not
▪  Sharing Model
▪  Object/Field Level Security
▪  Data Residency Solution
▪  Encryption for Other Non-Salesforce Data
▪  Protection against Social Engineering
trust.salesforce.com
Encryption
Authentication & SSO
Two factor Auth
Profiles/Permissions
Sharing & FLS
Setup Audit Trail
Field History Tracking
Event Monitoring
Identity
Encryption
Platform Encryption Is Unique
▪  Quickly Seamlessly interact and protect sensitive data
▪  Setup takes minutes - No Software! No Hardware!
▪  Makes the App Cloud ‘encryption aware’ (metadata driven)
▪  Salesforce1 Mobile-ready, natively
Agenda
▪  Overview of Platform Encryption
▪  Features and Architecture
▪  Managing Platform Encryption
▪  Developing in a Platform Encryption Environment
Users
Encrypt at Rest: Fields
Name:
Darla Hood
Name:
aI90xi60csICOdk
Encryption
Service
Darla Hood
***********
Encrypt at Rest: Files
Lorem
ipsum
dolor
Encryption
Service
Xvier0c
9ghcru
cjf4x21f
fdqbBLorem
ipsum
dolor
Granular Control: Fields
▪  Individual Custom Fields
–  Text
–  Text Area
–  Text Area (Long)
–  Email
–  Phone
–  URL
–  Selected Standard Fields
▪  Enabled with flag
Granular Control: Files
▪  Files enabled separately
–  Attachments
–  Chatter
–  Files
–  Libraries
▪  All or none
Encryption Key
▪  Master Secret (Salesforce)
–  Rotated each release
–  Stored in the Key Derivation Servers
▪  Tenant Secret (Customer)
–  Can be Rotated once per day in Prod
–  Stored encrypted in DB
▪  Data Encryption Key
–  Derived from Secrets
–  Stored in cache, never persisted
Features and Support
▪  Feature License Required
▪  Available to evaluate in Developer Edition orgs
▪  Support for
–  Search
–  Workflow Rules
–  Validation Rules
–  Apex and VF Pages
–  And A LOT MORE...
Architecture & Encryption Process Flow
Customer driven key lifecycle
management
FIPS140-2 Hardware Security
Module based key management
infrastructure
AES encryption using 256bit keys
in CBC mode and random IV
Uses PBDKF2 HMAC with
SHA256 deriving secure 256-bit
keys that are never persisted in
Salesforce
Data encryption and decryption
actions are transparent
Agenda
▪  Overview of Platform Encryption
▪  Features and Architecture
▪  Managing Platform Encryption
▪  Developing in a Platform Encryption Environment
Demo
▪  Managing Encryption
–  Select Fields/Files
–  Audit Encrypted Fields
–  Rotate Your Key
–  The TenantSecret sObject
The Tenant Secret sObject
​ String descText = UserInfo.getName() + ' new secret via Lightning';
​ TenantSecret newSecret = new TenantSecret(Description=descText);
​ insert newSecret;
​ 1
​ 2
​ 3
​ 4
​ 5
​ 6
Agenda
▪  Overview of Platform Encryption
▪  Features and Architecture
▪  Managing Platform Encryption
▪  Developing in a Platform Encryption Environment
Building Apps with Platform Encryption
​  SOQL Where Clauses/Filters
​  SOQL Order By/Sorting
​  Formula Fields
​  SOSL Search
​  Sort in Apex
​  Workflow/Apex Trigger
​  Instead of… ​  Use this feature…
Demo
▪  Customizing with Encryption
–  Searching with SOSL
–  Sorting in Apex
Searching with SOSL
​ 'FIND '' + searchStr1 + ''
​ IN ALL FIELDS
​ RETURNING
​  Account (Id, Name, type),
​  Contact (name,email, DLN__c, SSN__c)'
​ 1
​ 2
​ 3
​ 4
​ 5
Sorting with Apex: Wrapper with Comparable Interface
​ public class AccountSortable implements Comparable {
​  public Account acct;
​  AccountSortable(Account acctParam){
​  acct = acctParam;
​  }
​  public Integer compareTo(Object compareTo){
​  AccountSortable compareToAcct = (AccountSortable) compareTo;
​  return acct.Name.compareTo(compareToAcct.acct.Name);
​  }
​ }
​ //invoked like:
​ List<AccountSortable> listWithCustomSort = new List<AccountSortable>();
​ //...fill list with Accounts
​ listWithCustomSort.sort();
​ 1
​ 2
​ 3
​ 4
​ 5
​ 6
​ 7
​ 8
​ 9
​ 10
​ 11
​ 12
​ 13
​ 14
​ 15
Searching with SOSL: Handling Descending in Controller
​ //invoke your sort
​ listWithCustomSort.sort();
​ //
​ List<AccountSortable> listToReturn = new List<AccountSortable>();
​ if (order.toLowerCase() == 'desc’) {
​  for(integer i = resultList.size()-1; i >= 0; i--){
​  items.add(resultList[i].obj);
​  }
​ } else {
​  listToReturn.addAll(listWithCustomSort);
​ }
​ return listToReturn;
​ 1
​ 2
​ 3
​ 4
​ 5
​ 6
​ 7
​ 8
​ 9
​ 10
​ 11
​ 12
​ 13
​ 14
​ 15
​ 16
​ 17
​ 18
Workflow Field Update
Day__c Month__c Year__c
Birthday__c
Building Apps with Platform Encryption
​  SOSL Search
​  Sort in Apex
​  Workflow/Apex Trigger
​  SOSL is not SOQL
​  Search First
​  Text Data Type Field
​  Feature ​  Considerations
Read the Docs
Plan
Back Up Your Secret
Q & A
Peter Chittum
Developer Evangelist
@pchittum
github.com/pchittum
Assaf Ben-Gur
Senior Product Manager
@assafbengur
​ A list of resources will be posted to the session Chatter feed.
Share Your Feedback, and Win a GoPro!
3
Earn a GoPro prize entry for
each completed survey
Tap the bell to take a
survey2Enroll in a session1
Thank you

More Related Content

What's hot (20)

PDF
How Securematics Reseller can Sell its Products using VARStreet Ecommmerce Pl...
Shane Emerson
 
PPTX
Paris Salesforce Developer Group - 16 09 2014 - Summer '14
Paris Salesforce Developer Group
 
PPT
Security and Your Salesforce Org
Salesforce Admins
 
PDF
Secure Salesforce: Org Access Controls
Salesforce Developers
 
PDF
What’s new in summer’15 release - Security & Compliance
Shesh Kondi
 
PPTX
Salesforce Security Best Practices for Every Admin
Cloud Analogy
 
PDF
Single Sign-On and User Provisioning with Salesforce Identity
Salesforce Developers
 
PDF
Introduction to the Salesforce Security Model
Salesforce Developers
 
PPT
2. 8 things that will make your business love your developers again
EuroCloud
 
PDF
Secure Salesforce: Secret Storage in Your Salesforce Instance
Salesforce Developers
 
PDF
Integrating Active Directory With Salesforce Using Identity Connect
Salesforce Developers
 
PPTX
JDF18 - Connecting the customer success platform
Deepu Chacko
 
PPTX
Navi Mumbai Salesforce DUG meetup on integration
Rakesh Gupta
 
PDF
Secure Salesforce: External App Integrations
Salesforce Developers
 
PDF
Introducing Salesforce Identity
Salesforce Developers
 
PPTX
Summer '15: User Provisioning for Connected Apps
Salesforce Developers
 
PDF
Managing the Role Hierarchy at Enterprise Scale
Salesforce Developers
 
PDF
Salesforce Identity: Don't Treat Your Customers Like Your Employees
Salesforce Developers
 
PPTX
Integrating The Cloud - How to integrate Salesforce
Roy Gilad
 
PDF
Integrating Active Directory with Salesforce
Salesforce Developers
 
How Securematics Reseller can Sell its Products using VARStreet Ecommmerce Pl...
Shane Emerson
 
Paris Salesforce Developer Group - 16 09 2014 - Summer '14
Paris Salesforce Developer Group
 
Security and Your Salesforce Org
Salesforce Admins
 
Secure Salesforce: Org Access Controls
Salesforce Developers
 
What’s new in summer’15 release - Security & Compliance
Shesh Kondi
 
Salesforce Security Best Practices for Every Admin
Cloud Analogy
 
Single Sign-On and User Provisioning with Salesforce Identity
Salesforce Developers
 
Introduction to the Salesforce Security Model
Salesforce Developers
 
2. 8 things that will make your business love your developers again
EuroCloud
 
Secure Salesforce: Secret Storage in Your Salesforce Instance
Salesforce Developers
 
Integrating Active Directory With Salesforce Using Identity Connect
Salesforce Developers
 
JDF18 - Connecting the customer success platform
Deepu Chacko
 
Navi Mumbai Salesforce DUG meetup on integration
Rakesh Gupta
 
Secure Salesforce: External App Integrations
Salesforce Developers
 
Introducing Salesforce Identity
Salesforce Developers
 
Summer '15: User Provisioning for Connected Apps
Salesforce Developers
 
Managing the Role Hierarchy at Enterprise Scale
Salesforce Developers
 
Salesforce Identity: Don't Treat Your Customers Like Your Employees
Salesforce Developers
 
Integrating The Cloud - How to integrate Salesforce
Roy Gilad
 
Integrating Active Directory with Salesforce
Salesforce Developers
 

Similar to Dreamforce 15 - Platform Encryption for Developers (20)

PDF
Salesforce shield &amp; summer 20 release
Devendra Sawant
 
PDF
Platform Encryption for ISVs (February 23, 2016)
Salesforce Partners
 
PDF
Salesforce platform session 2
Salesforce - Sweden, Denmark, Norway
 
PPTX
Lightning Developer Week - Bangalore Salesforce Developer Group
Abhilash Kuntar
 
PDF
Dreamforce 2017: Salesforce DX - an Admin's Perspective
Mike White
 
PPTX
Platform Encryption World Tour Admin Zone
Peter Chittum
 
PDF
Secure Salesforce: Lightning Components Best Practices
Salesforce Developers
 
PDF
Introduction to Developing Android Apps With the Salesforce Mobile SDK
Salesforce Developers
 
PPTX
Platform Shield encryption - Trailblazer Admin Community Kochi
Anil Somasundaran
 
PPTX
TrailheaDX and Summer '19: Developer Highlights
Salesforce Developers
 
PPTX
Integrating with salesforce
Mark Adcock
 
PPTX
The Power of Salesforce APIs World Tour Edition
Peter Chittum
 
PPTX
Building Apps Faster with Lightning and Winter '17
Mark Adcock
 
PPTX
Building apps faster with lightning and winter '17
Salesforce Developers
 
PPTX
Salesforce DX for Accidential Admins
Martin Humpolec
 
PDF
API Design for Your Packaged App
Salesforce Developers
 
PPTX
CCT London 2013 Theatre Intro to Apex
Peter Chittum
 
PDF
Visualforce Hack for Junction Objects
Ritesh Aswaney
 
PDF
API Design for Your Packaged App
Salesforce Developers
 
PDF
Elevate london dec 2014.pptx
Peter Chittum
 
Salesforce shield &amp; summer 20 release
Devendra Sawant
 
Platform Encryption for ISVs (February 23, 2016)
Salesforce Partners
 
Salesforce platform session 2
Salesforce - Sweden, Denmark, Norway
 
Lightning Developer Week - Bangalore Salesforce Developer Group
Abhilash Kuntar
 
Dreamforce 2017: Salesforce DX - an Admin's Perspective
Mike White
 
Platform Encryption World Tour Admin Zone
Peter Chittum
 
Secure Salesforce: Lightning Components Best Practices
Salesforce Developers
 
Introduction to Developing Android Apps With the Salesforce Mobile SDK
Salesforce Developers
 
Platform Shield encryption - Trailblazer Admin Community Kochi
Anil Somasundaran
 
TrailheaDX and Summer '19: Developer Highlights
Salesforce Developers
 
Integrating with salesforce
Mark Adcock
 
The Power of Salesforce APIs World Tour Edition
Peter Chittum
 
Building Apps Faster with Lightning and Winter '17
Mark Adcock
 
Building apps faster with lightning and winter '17
Salesforce Developers
 
Salesforce DX for Accidential Admins
Martin Humpolec
 
API Design for Your Packaged App
Salesforce Developers
 
CCT London 2013 Theatre Intro to Apex
Peter Chittum
 
Visualforce Hack for Junction Objects
Ritesh Aswaney
 
API Design for Your Packaged App
Salesforce Developers
 
Elevate london dec 2014.pptx
Peter Chittum
 
Ad

More from Peter Chittum (20)

PPTX
Dreamforce 2013 - Enhancing the Chatter Feed with Topics and Apex
Peter Chittum
 
PDF
Winter 21 Developer Highlights for Salesforce
Peter Chittum
 
PPTX
LMS Lightning Message Service
Peter Chittum
 
PPTX
Apply the Salesforce CLI To Everyday Problems
Peter Chittum
 
PDF
If You Can Write a Salesforce Formula, You Can Use the Command Line
Peter Chittum
 
PDF
If you can write a Salesforce Formula you can use the command line
Peter Chittum
 
PDF
Do Not Fear the Command Line
Peter Chittum
 
PPTX
Don't Fear the Command Line
Peter Chittum
 
PPTX
Maths Week - About Computers, for Kids
Peter Chittum
 
PPTX
Best api features of 2016
Peter Chittum
 
PDF
Streaming api with generic and durable streaming
Peter Chittum
 
PDF
Spring '16 Release Overview - Bilbao Feb 2016
Peter Chittum
 
PDF
All Aboard the Lightning Components Action Service
Peter Chittum
 
PDF
Boxcars and Cabooses: When One More XHR Is Too Much
Peter Chittum
 
PDF
Salesforce Lightning Components and App Builder EMEA World Tour 2015
Peter Chittum
 
PPTX
Building Applications on the Salesforce1 Platform for Imperial College London
Peter Chittum
 
PPTX
AngularJS App In Two Weeks
Peter Chittum
 
PPTX
Df14 Salesforce Advanced Developer Certification
Peter Chittum
 
PPTX
Javascript and Remote Objects on Force.com Winter 15
Peter Chittum
 
PPTX
S1 Tour Paris Developpeurs
Peter Chittum
 
Dreamforce 2013 - Enhancing the Chatter Feed with Topics and Apex
Peter Chittum
 
Winter 21 Developer Highlights for Salesforce
Peter Chittum
 
LMS Lightning Message Service
Peter Chittum
 
Apply the Salesforce CLI To Everyday Problems
Peter Chittum
 
If You Can Write a Salesforce Formula, You Can Use the Command Line
Peter Chittum
 
If you can write a Salesforce Formula you can use the command line
Peter Chittum
 
Do Not Fear the Command Line
Peter Chittum
 
Don't Fear the Command Line
Peter Chittum
 
Maths Week - About Computers, for Kids
Peter Chittum
 
Best api features of 2016
Peter Chittum
 
Streaming api with generic and durable streaming
Peter Chittum
 
Spring '16 Release Overview - Bilbao Feb 2016
Peter Chittum
 
All Aboard the Lightning Components Action Service
Peter Chittum
 
Boxcars and Cabooses: When One More XHR Is Too Much
Peter Chittum
 
Salesforce Lightning Components and App Builder EMEA World Tour 2015
Peter Chittum
 
Building Applications on the Salesforce1 Platform for Imperial College London
Peter Chittum
 
AngularJS App In Two Weeks
Peter Chittum
 
Df14 Salesforce Advanced Developer Certification
Peter Chittum
 
Javascript and Remote Objects on Force.com Winter 15
Peter Chittum
 
S1 Tour Paris Developpeurs
Peter Chittum
 
Ad

Recently uploaded (20)

PDF
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
PPTX
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
PDF
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
PDF
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
PDF
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
PPTX
Designing Production-Ready AI Agents
Kunal Rai
 
PDF
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
PDF
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
PDF
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
PPTX
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
PDF
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
PDF
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
PPTX
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
PDF
Advancing WebDriver BiDi support in WebKit
Igalia
 
PDF
What Makes Contify’s News API Stand Out: Key Features at a Glance
Contify
 
PDF
Biography of Daniel Podor.pdf
Daniel Podor
 
PDF
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
PDF
July Patch Tuesday
Ivanti
 
PDF
Staying Human in a Machine- Accelerated World
Catalin Jora
 
PPTX
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
Designing Production-Ready AI Agents
Kunal Rai
 
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
Advancing WebDriver BiDi support in WebKit
Igalia
 
What Makes Contify’s News API Stand Out: Key Features at a Glance
Contify
 
Biography of Daniel Podor.pdf
Daniel Podor
 
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
July Patch Tuesday
Ivanti
 
Staying Human in a Machine- Accelerated World
Catalin Jora
 
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 

Dreamforce 15 - Platform Encryption for Developers

  • 1. Platform Encryption Enhanced Native Encryption in the App Cloud ​ Peter Chittum ​ Developer Evangelist ​ @pchittum ​ github.com/pchittum ​  ​ Assaf Ben-Gur ​ Senior Product Manager ​ @assafbengur ​ 
  • 2. Safe Harbor Safe harbor statement under the Private Securities Litigation Reform Act of 1995: This presentation may contain forward-looking statements that involve risks, uncertainties, and assumptions. If any such uncertainties materialize or if any of the assumptions proves incorrect, the results of salesforce.com, inc. could differ materially from the results expressed or implied by the forward-looking statements we make. All statements other than statements of historical fact could be deemed forward-looking, including any projections of product or service availability, subscriber growth, earnings, revenues, or other financial items and any statements regarding strategies or plans of management for future operations, statements of belief, any statements concerning new, planned, or upgraded services or technology developments and customer contracts or use of our services. The risks and uncertainties referred to above include – but are not limited to – risks associated with developing and delivering new functionality for our service, new products and services, our new business model, our past operating losses, possible fluctuations in our operating results and rate of growth, interruptions or delays in our Web hosting, breach of our security measures, the outcome of any litigation, risks associated with completed and any possible mergers and acquisitions, the immature market in which we operate, our relatively limited operating history, our ability to expand, retain, and motivate our employees and manage our growth, new releases of our service and successful customer deployment, our limited history reselling non-salesforce.com products, and utilization and selling to larger enterprise customers. Further information on potential factors that could affect the financial results of salesforce.com, inc. is included in our annual report on Form 10-K for the most recent fiscal year and in our quarterly report on Form 10-Q for the most recent fiscal quarter. These documents and others containing important disclosures are available on the SEC Filings section of the Investor Information section of our Web site. Any unreleased services or features referenced in this or other presentations, press releases or public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make the purchase decisions based upon features that are currently available. Salesforce.com, inc. assumes no obligation and does not intend to update these forward-looking statements.
  • 3. Peter Chittum Developer Evangelist @pchittum github.com/pchittum Assaf Ben-Gur Senior Product Manager @assafbengur Speakers
  • 4. Agenda ▪  Overview of Platform Encryption ▪  Features and Architecture ▪  Managing Platform Encryption ▪  Developing in a Platform Encryption Environment
  • 5. Introducing: Salesforce Shield New services to help you build trusted apps fast Infrastructure Services Network Services Application Services Secure Data Centers Backup and Disaster Recovery HTTPS Encryption Penetration Testing Advanced Threat Detection Identity & Single Sign On Two Factor Authentication User Roles & Permissions Field & Row Level Security Secure Firewalls Real-time replication Password Policies Third Party Certifications IP Login Restrictions Customer Audits Salesforce Shield Platform Encryption Event Monitoring Field Audit Trail
  • 6. Encrypt Sensitive Data, Preserving Business Functionality Seamlessly protect data at rest Encrypt standard & custom fields, files & attachments ​  Natively integrated with key Salesforce features E.g., Search, Validation Rules, Lookups work with encrypted data Customer managed keys Customer-driven encryption key lifecycle management
  • 7. Platform Encryption Use Cases ▪  Regulatory Compliance ▪  Unauthorized Access to Database ▪  Contractual Obligations
  • 8. Platform Encryption is Not ▪  Sharing Model ▪  Object/Field Level Security ▪  Data Residency Solution ▪  Encryption for Other Non-Salesforce Data ▪  Protection against Social Engineering trust.salesforce.com
  • 9. Encryption Authentication & SSO Two factor Auth Profiles/Permissions Sharing & FLS Setup Audit Trail Field History Tracking Event Monitoring Identity Encryption
  • 10. Platform Encryption Is Unique ▪  Quickly Seamlessly interact and protect sensitive data ▪  Setup takes minutes - No Software! No Hardware! ▪  Makes the App Cloud ‘encryption aware’ (metadata driven) ▪  Salesforce1 Mobile-ready, natively
  • 11. Agenda ▪  Overview of Platform Encryption ▪  Features and Architecture ▪  Managing Platform Encryption ▪  Developing in a Platform Encryption Environment
  • 12. Users
  • 13. Encrypt at Rest: Fields Name: Darla Hood Name: aI90xi60csICOdk Encryption Service Darla Hood ***********
  • 14. Encrypt at Rest: Files Lorem ipsum dolor Encryption Service Xvier0c 9ghcru cjf4x21f fdqbBLorem ipsum dolor
  • 15. Granular Control: Fields ▪  Individual Custom Fields –  Text –  Text Area –  Text Area (Long) –  Email –  Phone –  URL –  Selected Standard Fields ▪  Enabled with flag
  • 16. Granular Control: Files ▪  Files enabled separately –  Attachments –  Chatter –  Files –  Libraries ▪  All or none
  • 17. Encryption Key ▪  Master Secret (Salesforce) –  Rotated each release –  Stored in the Key Derivation Servers ▪  Tenant Secret (Customer) –  Can be Rotated once per day in Prod –  Stored encrypted in DB ▪  Data Encryption Key –  Derived from Secrets –  Stored in cache, never persisted
  • 18. Features and Support ▪  Feature License Required ▪  Available to evaluate in Developer Edition orgs ▪  Support for –  Search –  Workflow Rules –  Validation Rules –  Apex and VF Pages –  And A LOT MORE...
  • 19. Architecture & Encryption Process Flow Customer driven key lifecycle management FIPS140-2 Hardware Security Module based key management infrastructure AES encryption using 256bit keys in CBC mode and random IV Uses PBDKF2 HMAC with SHA256 deriving secure 256-bit keys that are never persisted in Salesforce Data encryption and decryption actions are transparent
  • 20. Agenda ▪  Overview of Platform Encryption ▪  Features and Architecture ▪  Managing Platform Encryption ▪  Developing in a Platform Encryption Environment
  • 21. Demo ▪  Managing Encryption –  Select Fields/Files –  Audit Encrypted Fields –  Rotate Your Key –  The TenantSecret sObject
  • 22. The Tenant Secret sObject ​ String descText = UserInfo.getName() + ' new secret via Lightning'; ​ TenantSecret newSecret = new TenantSecret(Description=descText); ​ insert newSecret; ​ 1 ​ 2 ​ 3 ​ 4 ​ 5 ​ 6
  • 23. Agenda ▪  Overview of Platform Encryption ▪  Features and Architecture ▪  Managing Platform Encryption ▪  Developing in a Platform Encryption Environment
  • 24. Building Apps with Platform Encryption ​  SOQL Where Clauses/Filters ​  SOQL Order By/Sorting ​  Formula Fields ​  SOSL Search ​  Sort in Apex ​  Workflow/Apex Trigger ​  Instead of… ​  Use this feature…
  • 25. Demo ▪  Customizing with Encryption –  Searching with SOSL –  Sorting in Apex
  • 26. Searching with SOSL ​ 'FIND '' + searchStr1 + '' ​ IN ALL FIELDS ​ RETURNING ​  Account (Id, Name, type), ​  Contact (name,email, DLN__c, SSN__c)' ​ 1 ​ 2 ​ 3 ​ 4 ​ 5
  • 27. Sorting with Apex: Wrapper with Comparable Interface ​ public class AccountSortable implements Comparable { ​  public Account acct; ​  AccountSortable(Account acctParam){ ​  acct = acctParam; ​  } ​  public Integer compareTo(Object compareTo){ ​  AccountSortable compareToAcct = (AccountSortable) compareTo; ​  return acct.Name.compareTo(compareToAcct.acct.Name); ​  } ​ } ​ //invoked like: ​ List<AccountSortable> listWithCustomSort = new List<AccountSortable>(); ​ //...fill list with Accounts ​ listWithCustomSort.sort(); ​ 1 ​ 2 ​ 3 ​ 4 ​ 5 ​ 6 ​ 7 ​ 8 ​ 9 ​ 10 ​ 11 ​ 12 ​ 13 ​ 14 ​ 15
  • 28. Searching with SOSL: Handling Descending in Controller ​ //invoke your sort ​ listWithCustomSort.sort(); ​ // ​ List<AccountSortable> listToReturn = new List<AccountSortable>(); ​ if (order.toLowerCase() == 'desc’) { ​  for(integer i = resultList.size()-1; i >= 0; i--){ ​  items.add(resultList[i].obj); ​  } ​ } else { ​  listToReturn.addAll(listWithCustomSort); ​ } ​ return listToReturn; ​ 1 ​ 2 ​ 3 ​ 4 ​ 5 ​ 6 ​ 7 ​ 8 ​ 9 ​ 10 ​ 11 ​ 12 ​ 13 ​ 14 ​ 15 ​ 16 ​ 17 ​ 18
  • 29. Workflow Field Update Day__c Month__c Year__c Birthday__c
  • 30. Building Apps with Platform Encryption ​  SOSL Search ​  Sort in Apex ​  Workflow/Apex Trigger ​  SOSL is not SOQL ​  Search First ​  Text Data Type Field ​  Feature ​  Considerations
  • 32. Plan
  • 33. Back Up Your Secret
  • 34. Q & A Peter Chittum Developer Evangelist @pchittum github.com/pchittum Assaf Ben-Gur Senior Product Manager @assafbengur ​ A list of resources will be posted to the session Chatter feed.
  • 35. Share Your Feedback, and Win a GoPro! 3 Earn a GoPro prize entry for each completed survey Tap the bell to take a survey2Enroll in a session1