Secure Your Communication Channels

Protect your data as it moves between browsers, Salesforce services, APIs, mobile clients, and external systems. Enforce HTTPS, TLS 1.2 or higher, and trusted endpoints to safeguard communication channels against unauthorized access.

Unencrypted or improperly validated connections expose data to interception, tampering, and unauthorized disclosure. These communication channels are vulnerable to:

  • Man-in-the-middle (MITM) attacks
  • Data interception and tampering
  • Replay attacks
  • Downgrade attacks
  • Communication with untrusted endpoints

These risks arise when an app or integration:

  • Uses HTTP instead of HTTPS
  • Allows SSL, TLS 1.0, or TLS 1.1
  • Doesn’t validate server certificates
  • Connects to endpoints that aren’t securely configured
  • Transmits sensitive data unencrypted

Secure Your Communication Channels 

Enforce these guidelines across Visualforce, Lightning Web Components (LWC), Aura components, Apex callouts, and API integrations:

  • Use HTTPS for all communications; HTTP isn’t permitted.
  • Require TLS 1.2 or higher; TLS 1.3 is recommended where supported. SSL, TLS 1.0, and TLS 1.1 aren’t permitted.
  • Encrypt sensitive data in transit by using TLS.
  • Require outbound HTTPS connections to use valid, trusted server certificates. Don’t disable or bypass certificate validation.
  • Don’t disable TLS, certificate, hostname, or other transport-security validation to resolve connectivity or certificate errors.
  • Configure external endpoints by using Named Credentials where possible; use Remote Site Settings only if named credentials aren’t applicable.

Protocol and Validation Requirements 

ChannelRequired ProtocolValidationWhy
VisualforceHTTPS onlyNot applicableCookies carrying sensitive data must include the Secure attribute so browsers never send them over an unencrypted connection.
Aura / LWCHTTPS onlyAdd external domains as a CSP Trusted Site before making browser-based calls.Content Security Policy (CSP) controls which domains a component can reach—HTTPS alone doesn’t grant access.
Apex calloutsHTTPS onlyValidate server certificates on every outbound connection.Configure the endpoint by using a named credential (use Remote Site Settings only if a named credential isn’t available) so credentials aren’t hardcoded and the connection is centrally managed.
API integrationsHTTPS onlyConfigure endpoints through a Salesforce-supported mechanism.HTTP, FTP, and Telnet aren’t permitted—these protocols send data unencrypted, which defeats transport security entirely.

Considerations 

  • Make sure that any external system you integrate with supports TLS 1.2 or higher before connecting.
  • Remediate legacy integrations that use insecure protocols before deploying them against these requirements.