Loading

OIDC secret rotation is zero-downtime: old and new client secrets can co-exist (Azure / Entra ID)

Julkaisupäivä: Sep 18, 2026
Kuvaus

This article applies to APIs protected by the OpenID Connect Access Token Enforcement policy where the external OIDC client provider is Microsoft Entra ID (Azure AD) — the most common OIDC provider used with Anypoint. Customers often ask whether rotating a client secret will cause downtime, or whether the old and new secrets can be valid at the same time.

They can. When you rotate a client secret, the old and new secrets can be active simultaneously on the provider, so rotation causes no downtime — consumers keep working on the old secret while they are migrated to the new one.

This is because, with this policy, the consumer sends only a bearer token to the Mule API — never the client_id/secret. The secret is used only at the IdP token endpoint to obtain a token. So while both secrets are valid:
- An app still on the old secret can keep getting tokens with it.
- An app updated to the new secret immediately starts getting tokens with the new secret.

Both work in parallel, so there is no cutover moment where traffic breaks.

Ratkaisu

Both rotation methods add a new secret without removing the old one:
1. Add a new secret on the provider (Azure) side, or
2. Rotate from the Anypoint Platform client application settings. 

Either way, the previous secret stays valid until you explicitly remove it (or it expires).

Lisäresurssit

Recommended zero-downtime steps:

1. Add the new secret — do not delete the old one yet.
2. Update each consuming app to the new secret. It immediately starts acquiring tokens with the new secret.
3. Once all apps are on the new secret, remove the old one.

Knowledge-artikkelin numero

005460260

 
Ladataan
Salesforce Help | Article