Who Holds Your Keys
Este conteúdo não está disponível em sua língua ainda.
Module 7 of 8 in the chapter Enterprise Integration Architecture, chapter 18 of the Integration Architect course. Each module stands on its own. Previous: Gateways and API Management · Next: Files and Trading Partners
The question this module answers: If the middle holds the keys to every system, how do you keep that from being the company’s biggest risk? And what about the vendors who hold keys to your org?
The Vault of the Credentials
Section titled “The Vault of the Credentials”When I list what middleware gives you, central security is near the top. I don’t have Salesforce’s usernames stored in system B, C and D. Each system connects to the middleware, and the middleware is the vault of the credentials going out. Fewer places to keep secrets means fewer places to lose them (chapter 5 module 5).
And then, every time, I say the other half: you really do need to secure your middleware’s credentials. If you’re on MuleSoft, or anything else, really good credentials and a real credential store.
Because a vault is also a target. Anyone who gets into the middle doesn’t get one system. They get every key the middle holds. It’s chapter 5’s strong basket again, and this module is about the lock on it.
What’s in the Vault
Section titled “What’s in the Vault”Start by counting. Here’s what the middle of a typical company holds.
- Its own way into Salesforce. An External Client App, an integration user, and a certificate or a token (chapter 13).
- Its way into every other system. The ERP’s client secret, the finance system’s API key, the warehouse’s certificate, the file server’s SSH key.
- The partners’ ways in. The credentials it issues to partners and other teams to call its own APIs, through the gateway (module 6).
- Its signing and encryption keys. For webhooks it verifies, files it encrypts and messages it signs (chapter 12).
- Now, agents’ keys. The identities agents use to call tools through it.
For each one, write down a row. What it opens. Who issued it. Where it’s stored. Who can read it. When it was last rotated, and how you’d rotate it today if you had to. That’s the same inventory as chapter 5 module 6, with one more column, and it’s the first thing you’ll want on the day something leaks.
Someone Else’s Vault
Section titled “Someone Else’s Vault”Your middle isn’t the only vault holding keys to your org. Every outside product you connect to Salesforce holds a token for it: the sales tool, the support tool, the analytics product, the e-signature app. Each of those vendors runs a vault of its own, with your key in it, next to the keys of all its other customers.
Chapter 13 module 3 told what happened in August 2025, when an attacker who had broken into one sales-chat vendor used the tokens that vendor held for its customers’ orgs, and exported their data. Those orgs did nothing wrong that day. Their keys were in someone else’s vault.
As chapter 13 put it, you can’t secure your partner’s servers. What you can do is decide what their key opens, and check it. So for every vendor that holds a key to your org, ask:
- What exactly does the token allow? Which scopes, which user, which objects. Narrow, never everything without a reason.
- Where can it be used from? The vendor’s own IP addresses, or anywhere.
- How long does it live? And does it rotate, so a copy that’s stolen stops working?
- How would we revoke it, today, in minutes, and who would do it?
- Does the vendor meet Salesforce’s controls for partner apps? That’s the next section.
What Salesforce Now Requires of Partner Apps
Section titled “What Salesforce Now Requires of Partner Apps”Salesforce has turned some of those questions into rules for the vendors.
Since May 2026, for partner apps. Partner apps “in use by more than two customer production orgs” must have four controls: PKCE, refresh token rotation, an idle time limit on refresh tokens, and a refresh token IP allowlist. The deadline was May 11, 2026, with “no plans for a formal extension program”, and after it, “the ability of the partner’s integrations to interoperate with the Salesforce services may be suspended until such time as the partner updates the integration” (Salesforce Connected Apps & ECA Security Controls - Partner App FAQs (opens in a new tab), Salesforce Help, published 2026-10-12, checked 2026-11-21).
From March 30, 2027, for every app installed in other orgs. An app that doesn’t have refresh token rotation, PKCE and at least one proof-of-possession control, each enabled and locked, can’t be installed in new orgs. Existing connections keep working (chapter 13 module 7 has the details in Salesforce’s words).
As the customer, here’s what that means for you. Check each installed app’s controls on the Insights page, where each one shows green or red. For an app that’s red, ask the vendor when it will be green. And if a vendor can’t tell you what its token can do or how it’s protected, that’s your answer about whether it belongs in your org.
A Vault Worth Trusting
Section titled “A Vault Worth Trusting”Back to your own middle. Here’s what a strong vault looks like, whichever platform it runs on.
- A real secrets store, not configuration files, not environment variables copied around, and never a field on a record (chapter 13 module 8). Integration platforms and the clouds all offer one. Use it.
- One credential per connection, with only the access that connection needs. When one leaks, one connection is exposed, and you know which.
- Rotation you’ve practised. A key you’ve never rotated is a key you don’t know how to rotate. Do it on a schedule, so the day you have to do it in a hurry isn’t the first time.
- Separate hands. The people who build integrations don’t need to read production secrets. The platform’s administrators and the developers are different roles.
- Watch the vault. Log who reads secrets and when, and alert on the unusual: a secret read at three in the morning, a token used from a new country.
- A plan for the bad day. The list from “What’s in the Vault”, and for each key, who rotates it and how long it takes.
This is where the hub really earns chapter 5’s promise. Point to point, one leaked key can mean talking to every system that calls the breached one. Through a well-run vault, it’s one key, in one place, rotated by one team that has done it before.
Test knowledge. Know that middleware centralizes credentials, and what that requires: a secure credential store, least privilege for each connection, and rotation. Know the integration-user practices from chapter 13: a dedicated integration user, narrow permissions, External Client Apps for new integrations, and OAuth controls such as PKCE, refresh token rotation and IP restrictions. Expect a scenario where a third-party app holds access to Salesforce, and the answer limits what its token can do.
Beyond the exam: what AI changes. Two things. First, agents add keys: each agent that calls tools needs an identity, and those identities go in the vault with the rest. Second, never put a secret where an AI can read it: not in a prompt, not in a pasted log, not in a record an agent can query. An attacker who searches stolen records for keys, as in 2025, will search an agent’s context too.
What an Architect Decides Here
Section titled “What an Architect Decides Here”- What the middle holds, key by key, with where it’s stored, who can read it and how it’s rotated.
- Which vendors hold keys to your org, what each key opens, and how fast it can be revoked.
- Whether each installed app meets Salesforce’s controls, and what happens to the ones that don’t.
- How the vault is run: the secrets store, separate roles, monitoring, and rotation you’ve practised.
- Where agents’ identities live, and who approves what they can reach.
Explore
Section titled “Explore”- Salesforce Connected Apps & ECA Security Controls - Partner App FAQs (opens in a new tab), Salesforce Help (published 2026-10-12): what partner apps must do.
- The Three Doors: chapter 13, the partner door in the investigators’ words.
- Secrets: chapter 13, where a secret must never be kept.
