Real Messaging Engine

Security

RME inherits Salesforce platform security and adds messaging-specific controls.

Authentication and credentials

ControlImplementation
Provider credentialsNamed Credentials + External Credentials; never custom fields
OAuthClient credentials or JWT bearer for REST callers
Connected AppDedicated app per integration, scoped to api
Integration userLeast-privilege user with RME_Integration_User only
Webhook secretsProtected Custom Settings inside the managed namespace
Key rotationRotate provider keys and webhook secrets on a scheduled cadence

Email authentication

StandardPurposeRME enforcement
SPFAuthorizes sending hosts for your domainDomain verification checks the record before enabling sends
DKIMCryptographically signs each messageRequired; unsigned domains cannot be activated
DMARCTells receivers what to do on failurePolicy monitored; aggregate reports summarized in RME
BIMIDisplays your logo in supporting clientsOptional, requires DMARC at enforcement

Recommended progression: p=nonep=quarantine; pct=25p=quarantinep=reject.

Encryption

  • TLS 1.2+ enforced on every provider callout; opportunistic TLS is rejected where the provider supports enforcement.
  • Data at rest is protected by Salesforce platform encryption; Shield can encrypt message body fields.
  • Attachments stay in Salesforce Files; providers receive them only for the duration of the send.

Access control

LayerControl
Object and fieldPermission sets, FLS on message body and recipient fields
RecordStandard sharing; communication history respects record access
ActionOnly RME_Message_Sender can send; only RME_Administrator can configure
TemplateCategory restrictions per permission set
RatePer-user and per-org send ceilings

Merge rendering runs with the requesting user's field-level security, so a message can never expose a field the sender cannot see.

Audit logging

Audit_Log__c records every configuration and policy change: provider added or disabled, domain verified, template activated, consent overridden, suppression removed, secret rotated. Entries capture actor, timestamp, before and after values, and source IP, and are read-only to all profiles.

Provider security

Evaluate providers on SOC 2 Type II, ISO 27001, data-residency options, sub-processor transparency, and breach notification terms. Provider selection is recorded per message, so an incident can be scoped precisely.

Threat considerations

RiskMitigation
Credential exposureNamed Credentials, no keys in code or fields
Webhook spoofingMandatory signature verification, 401 on mismatch
Message injection via merge dataOutput escaping in HTML templates
Mass-send abusePer-user ceilings, approval on Marketing category, anomaly alerts
Data exfiltration via templatesFLS-aware rendering, template review workflow

Continue to Compliance.

Was this helpful?

Last updated 1 month ago