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
Encrypt at Rest: Fields
Name: Darla Hood
Name: aI90xi60csICOdk
Enc
rypt
ion
Ser
vice
Darla Hood
***********
Encrypt at Rest: Files
Lorem ipsum dolor E
ncry
ptio
n S
ervi
ce Xvier0c
9ghcrucjf4x21ffdqbB Lorem
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…
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
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
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 survey 2Enroll in a session 1