What security hardening measures protect enterprise Salesforce integrations from unauthorized access and data breaches?
Answer
Basics: Integrations are high-value targets because they run unattended with broad access. Security is layered: who the integration is, what it can do, how its secrets are stored, how requests are verified, and how misuse is detected.
How it works (controls):
- Identity: a dedicated integration user per system with the "API Only User" permission and a minimal permission set (no UI login, no admin rights).
- Authentication: OAuth with JWT Bearer or Client Credentials rather than stored passwords; narrow scopes; Connected App (or External Client App) policies: admin-approved users, IP relaxation settings, session and refresh-token policies.
- Network: TLS 1.2 or higher; IP allowlists via login IP ranges or connected app policy; mutual TLS with a certificate in a Named Credential where the partner supports it.
- Secrets: Named Credentials and External Credentials keep secrets out of code; never in plain custom settings or custom labels.
- Inbound integrity: Apex REST endpoints validate signatures and inputs.
- Monitoring: Event Monitoring (Shield) for login and API events, plus alerts.
Advanced / deep dive: Enforce sharing and field security in Apex REST (use with sharing, WITH USER_MODE queries or Security.stripInaccessible) because API users with broad access can otherwise leak data. Verify webhooks with an HMAC signature using a shared secret via Crypto.generateMac. Rotate keys and certificates, expire unused connected apps, and review "API Access Control" (restricts which connected apps users may use; verify availability) and OAuth usage reports. Protect data at rest with Platform Encryption where required. Reduce blast radius with separate users per integration so one compromised credential does not expose all.