- Home
- Insights
- Integrations
- Salesforce API security: keeping integrations under control
Salesforce API security: keeping integrations under control
What to review when maintaining Salesforce integrations: API permissions, credentials, error recovery, traceability and regression tests.
An existing integration between Salesforce, an ERP and other applications can fail when a credential expires, permissions change or an API receives unexpected data. During maintenance, the priority is to identify which operation stopped, which records were affected and how to restore the data flow safely.
For a growing B2B company, APIs carry orders, prices, stock, customer records and service statuses. Their reliability and protection matter directly to sales, finance, warehousing and customer support.
Security concerns the entire data flow
HTTPS and access tokens are necessary, but insufficient. Who can change an order? What happens if the same message arrives twice? Who detects unusual data access? How can an external supplier's access be revoked without shutting down unrelated integrations?
An inventory of APIs, consumers, owners, exchanged data and authentication methods is useful for access reviews and incident investigation. Without that information, credential rotation or a contract change can affect undocumented dependencies.
Distinguish internal APIs, third-party integrations and interfaces exposed to customers or partners. Their attack surfaces, sensitivity and operational requirements differ; applying one uniform pattern can result in weak public controls or unnecessary internal friction.
Authentication is not authorization
Authentication identifies the caller; authorization limits the resources and operations it may use. A valid token does not by itself grant access to every requested record. Controls must check permissions on the resource and, where relevant, the customer's or business unit's data scope.
Use separate service identities for different applications, suppliers and environments. Do not reuse an ERP integration account for reporting or another connector. Isolation allows precise revocation, investigation and containment.
Apply least privilege to objects and operations. An inventory lookup does not need financial-data access or product-creation rights. In multi-tenant or multi-account systems, authorization must also verify ownership of the requested record, rather than trusting an ID supplied in a URL.
Validate requests and limit responses
Expect incomplete, malformed, repeated and manipulated requests. Validate schemas, types, lengths, formats and allowed values before applying business logic. Also enforce business rules: an order state change may require a valid account, permitted status and a unique external reference.
Idempotency is essential for operations that create or update business records. Retrying after a timeout must not create a second order, payment or opportunity. Make response contracts explicit too; returning every available field exposes unnecessary data and tightly couples consumers to internal changes.
Manage the full lifecycle of secrets and certificates
API keys, client secrets, certificates and tokens need controlled storage, restricted access and a tested rotation process. For outbound calls from Salesforce, Named Credentials and External Credentials can help separate authentication configuration from code, depending on the destination's requirements.
Practice rotation before it becomes urgent. If replacing a credential requires uncertain manual intervention, that is an operational risk even before an attack occurs. Critical integrations may need a controlled overlap between old and new credentials and a recorded retirement date.
Reduce the blast radius by design
An API gateway or integration layer can centralize authentication, throttling, versioning and logs. Authorization and business validation still need to be checked by the systems processing the operations, and each additional layer needs maintenance ownership.
Separate administrative APIs from public-facing interfaces, and isolate development, test and production identities, secrets and data. Copying production records into a sandbox without suitable anonymization can create a privacy exposure even if the production API is protected.
Rate limits, quotas and request-size limits can contain abuse, integration loops and accidental overload. Set them according to actual traffic patterns: overnight catalogue synchronization is not the same as real-time stock reservation.
Detect, investigate and recover integration failures
HTTP 401, 429 and 500 responses need to be understood in context: which integration, version, service identity and business transaction failed? Logging raw sensitive records creates another risk, while logs without correlation IDs provide little operational value.
Record enough information to trace the request, outcome, duration, source and cause, while masking secrets and personal data. Teams should be able to identify which orders never reached the ERP, when a version began failing and which service identity made an unusual request.
Avoid alert fatigue. Combine thresholds, time windows and business criticality. One transient failed lookup is not equivalent to twenty minutes without successful order confirmation.
What to request in an integration security review
- A list of business-critical APIs, consumers and owners.
- Assessment of service identities, per-resource permissions and secret management.
- Agreed tests for validation, failures and retries in an appropriate environment.
- Evidence-backed findings, priorities and dependencies for corrections.
- A change plan with business validation and recovery measures.
An integration review is not automatically a penetration test or a formal security certification. If either is required, define the separate scope and specialist skills explicitly.
Prioritize security improvements by operational risk
Rank each API by exposure, data sensitivity and the business impact of an interruption. Shared service accounts, overly broad authorization or missing traces in critical flows provide specific, testable reasons to make changes.
Every security change needs regression tests and an appropriate recovery plan. Hardening an integration must not accidentally interrupt billing or order fulfillment. Finally, treat security as an ongoing responsibility: periodically review access, rotate cryptographic material, maintain dependencies and update operational documentation.
A maintainable integration needs verifiable access controls, useful tracing for each operation and a tested recovery procedure. With those in place, permissions, API versions and connected processes can evolve without losing visibility. If your Salesforce integrations need attention, tell me which flow is affected and what needs to change.