HerokuDavid BalilesExplainer
Securing Salesforce Integrations with Heroku AppLink
Summary
Salesforce integrations commonly use Connected Apps or External Services, but long-lived OAuth tokens and public vendor endpoints can expose org data to replay and misuse. Heroku AppLink provides a managed bridge in which a service mesh admits requests only from explicitly connected Salesforce orgs, validates context, and exposes services as native Salesforce actions. For calls back to Salesforce, its SDK obtains short-lived, scoped credentials at runtime through user, user-plus, or authorized-user modes, avoiding refresh-token storage in vendor systems. The mesh uses the x-client-context header to convey org and user information, while the SDK keeps bearer credentials out of application code. The post describes setup commands for the AppLink add-on, service-mesh buildpack, External Service publication, and authorizations, concluding that AppLink improves governance, least privilege, and replay resistance.
Context
Connected Apps may require vendors or custom code to store long-lived OAuth tokens, while External Services traditionally depend on vendor-managed endpoints and security. The post identifies token replay, broad API access, data export, and insufficient trust boundaries as risks when credentials or endpoints are compromised.
Approach / What changed
Heroku AppLink places a service mesh in front of Heroku-deployed services, restricts inbound traffic to connected Salesforce orgs, validates request context, and obtains short-lived credentials for outbound Salesforce calls. It supports user, user-plus, and authorized-user modes, API Catalog publication, and managed authorizations.
Takeaways
The AppLink mesh allows traffic only from explicitly connected Salesforce orgs and validates each request before it reaches the deployed service.
User and user-plus modes obtain short-lived credentials at runtime; authorized-user mode uses a customer-controlled authorization for a named integration user rather than a vendor-held refresh-token cache.
AppLink supports inbound External Service setup through a Heroku add-on and service-mesh buildpack, followed by API-spec publication and permission-set assignment.
Source and freshness
- Source
- heroku.com
- Published
- Added to Yomu
Summaries are generated from the original by a language model. Check the original before relying on it.
Keep reading
Related reading
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
The best engineering reads, once a week
One useful email. Unsubscribe anytime.