# Support multiple client secret for better client secret rotation and usage

**URL:** <https://community.auth0.com/t/support-multiple-client-secret-for-better-client-secret-rotation-and-usage/84443>\
**Category:** Product Feedback\
**Tags:** feature-request\
**Created:** [June 2, 2022, 1:48am UTC](https://community.auth0.com/t/support-multiple-client-secret-for-better-client-secret-rotation-and-usage/84443 "2022-06-02T01:48:26Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![KongMy](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/kongmy/32/34533_2.png) [@KongMy](https://community.auth0.com/u/KongMy)\
**Post date:** [June 2, 2022, 1:48am UTC](https://community.auth0.com/t/support-multiple-client-secret-for-better-client-secret-rotation-and-usage/84443/1 "2022-06-02T01:48:26Z")

</div>

**Feature:**  
Support multiple client secret for better client secret rotation and usage

**Description:**  
We would like to request for a new feature to allow multiple client secrets to be active at the same time for each client. Preferably, each client secret should have a name / description and set expiration for each secret.

This implementation is already existing in AzureAD.

**Use-case:**

- One of our security requirement is to regularly rotate client secrets. The current implementation carries operational risk because the old client secret will no longer work immediately, but the gap of updating the secret will cause issue. Having multiple client secret with expiry ensures sufficient time to issue new client secret and update it.
- This implementation also allows us to issue client secret to developers for local or troubleshooting use cases without compromising actual client secret used in deployed environments

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [June 10, 2022, 4:04pm UTC](https://community.auth0.com/t/support-multiple-client-secret-for-better-client-secret-rotation-and-usage/84443/2 "2022-06-10T16:04:06Z")

</div>

Hi @KongMy,

Welcome to the Auth0 Community and thank you for the detailed feature request!

---

<div class="post-metadata">

**Author:** ![tanner.stirrat](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/tanner.stirrat/32/42637_2.png) [@tanner.stirrat](https://community.auth0.com/u/tanner.stirrat)\
**Post date:** [January 25, 2023, 10:52pm UTC](https://community.auth0.com/t/support-multiple-client-secret-for-better-client-secret-rotation-and-usage/84443/3 "2023-01-25T22:52:10Z")

</div>

I’d like to second this. The “workaround” detailed [here](https://community.auth0.com/t/rotating-client-application-secret-without-downtime/90732) requires the implementing client to be concerned with the validity or invalidity of the key, which is something that I never want to have to think about in application code. It seems to imply application-level dynamic key management, which not every company will have implemented, nor will have engineering time to implement.

---

<div class="post-metadata">

**Author:** ![Jerome.Piquet.AD](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jerome.piquet.ad/32/36960_2.png) [@Jerome.Piquet.AD](https://community.auth0.com/u/Jerome.Piquet.AD)\
**Post date:** [January 26, 2023, 10:24am UTC](https://community.auth0.com/t/support-multiple-client-secret-for-better-client-secret-rotation-and-usage/84443/4 "2023-01-26T10:24:09Z")

</div>

Hello, I think it the same feature request that I made before: [Rotate application secrets](https://community.auth0.com/t/rotate-application-secrets/82566).  
@dan.woda @konrad.sopala can they be merged?  
Thanks

---

<div class="post-metadata">

**Author:** ![Jerome.Piquet.AD](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jerome.piquet.ad/32/36960_2.png) [@Jerome.Piquet.AD](https://community.auth0.com/u/Jerome.Piquet.AD)\
**Post date:** [April 28, 2022, 3:35pm UTC](https://community.auth0.com/t/support-multiple-client-secret-for-better-client-secret-rotation-and-usage/84443/5 "2022-04-28T15:35:18Z")

</div>

**Feature:**  
Multiple Application Secrets.

**Description:**  
As for the management of signing keys, it would be interesting to allow an application to have more than one secret at a time. Azure AD provides this functionality with the addition of a mandatory expiration.  
I know that this feature request have been already made.

**Use-case:**  
We are using Auth0 for machine to machine authentication. We need to rotate secrets for security purposes, but will not be able to guarantee the simultaneous update of all applications. We therefore require apps to have multiple secrets so that the old “expiring” credential can exist for a time period while apps update to the newer secret over time.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [April 29, 2022, 7:53am UTC](https://community.auth0.com/t/support-multiple-client-secret-for-better-client-secret-rotation-and-usage/84443/6 "2022-04-29T07:53:56Z")

</div>

Hey there!

Thanks for creating this feedback card! Let’s see if it gets some traction from other community members as well!

---

<div class="post-metadata">

**Author:** ![BGIBSON](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/bgibson/32/37481_2.png) [@BGIBSON](https://community.auth0.com/u/BGIBSON)\
**Post date:** [May 20, 2022, 1:26pm UTC](https://community.auth0.com/t/support-multiple-client-secret-for-better-client-secret-rotation-and-usage/84443/7 "2022-05-20T13:26:31Z")

</div>

Our company can really use this feature. We rotate secrets before a blue/green deployment. Green deploy is aware of the new secret. If Green fails its health check, Blue Gets rolled back. Blue is only aware of the old secret which is no longer valid. This causes immediate down time for us without user interaction.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [May 23, 2022, 7:51am UTC](https://community.auth0.com/t/support-multiple-client-secret-for-better-client-secret-rotation-and-usage/84443/8 "2022-05-23T07:51:51Z")

</div>

Thank you for advocating for that!

---

<div class="post-metadata">

**Author:** ![stash](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/stash/32/41323_2.png) [@stash](https://community.auth0.com/u/stash)\
**Post date:** [November 17, 2022, 12:37am UTC](https://community.auth0.com/t/support-multiple-client-secret-for-better-client-secret-rotation-and-usage/84443/9 "2022-11-17T00:37:24Z")

</div>

This is fundamentally a best practice for security.

Without rotation, you encourage the bad security practice (or anti-pattern) of never rotating a static credential. Static credentials are notoriously susceptible to leaks, hard-coding in source code, etc. One of the most appropriate and practical countermeasure is to rotate frequently! But, the way this is currently it forces downtime, and therefore incentivizes _not_ rotating because at the end of the day you need to have a working, available product to make money.

On the security compliance side: customers that can’t follow their service-account credential rotation policy would be also be de-incentivized from purchasing Auth0.

---

<div class="post-metadata">

**Author:** ![jessh](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jessh/32/42474_2.png) [@jessh](https://community.auth0.com/u/jessh)\
**Post date:** [January 11, 2023, 6:19pm UTC](https://community.auth0.com/t/support-multiple-client-secret-for-better-client-secret-rotation-and-usage/84443/10 "2023-01-11T18:19:49Z")

</div>

The worst thing is that Okta provides this feature – and auth0 and Okta are from the same company. This can’t be rocket science to add and is a really important and compelling feature!

---

<div class="post-metadata">

**Author:** ![tanyaYourchuck](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/tanyayourchuck/32/42541_2.png) [@tanyaYourchuck](https://community.auth0.com/u/tanyaYourchuck)\
**Post date:** [January 11, 2023, 6:37pm UTC](https://community.auth0.com/t/support-multiple-client-secret-for-better-client-secret-rotation-and-usage/84443/11 "2023-01-11T18:37:00Z")

</div>

This would be really useful for the use case here, and also to support using “off the shelf” libraries for authentication (use case brought up in another  
post [Is it possible to have multiple app secrets? - #3 by dan.woda](https://community.auth0.com/t/is-it-possible-to-have-multiple-app-secrets/25276/3))

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [January 12, 2023, 1:00pm UTC](https://community.auth0.com/t/support-multiple-client-secret-for-better-client-secret-rotation-and-usage/84443/12 "2023-01-12T13:00:31Z")

</div>

Hey there everyone!

We’re reviewing those feedback cards on a monthly basis and I’m gonna advocate for it in the next month’s round. Will let you know once I have any updates on that front.

---

<div class="post-metadata">

**Author:** ![mic.mcla](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/mic.mcla/32/42580_2.png) [@mic.mcla](https://community.auth0.com/u/mic.mcla)\
**Post date:** [January 12, 2023, 1:38pm UTC](https://community.auth0.com/t/support-multiple-client-secret-for-better-client-secret-rotation-and-usage/84443/13 "2023-01-12T13:38:56Z")

</div>

This seems really useful from a security standpoint and also useful for maintaining zero-downtime. I was surprised something like this wasn’t available already.

---

<div class="post-metadata">

**Author:** ![Jerome.Piquet.AD](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jerome.piquet.ad/32/36960_2.png) [@Jerome.Piquet.AD](https://community.auth0.com/u/Jerome.Piquet.AD)\
**Post date:** [January 26, 2023, 10:29am UTC](https://community.auth0.com/t/support-multiple-client-secret-for-better-client-secret-rotation-and-usage/84443/14 "2023-01-26T10:29:20Z")

</div>

Hello, @konrad.sopala same feature request here [Support multiple client secret for better client secret rotation and usage](https://community.auth0.com/t/support-multiple-client-secret-for-better-client-secret-rotation-and-usage/84443/1)  
Can they be merged for gain places in the feature request rank? 😉  
Regards,  
Jérôme

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [January 27, 2023, 2:44pm UTC](https://community.auth0.com/t/support-multiple-client-secret-for-better-client-secret-rotation-and-usage/84443/15 "2023-01-27T14:44:15Z")

</div>

@Jerome.Piquet.AD

Thanks for pointing it out. I merged them!

---

<div class="post-metadata">

**Author:** ![Rednox](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rednox/32/42728_2.png) [@Rednox](https://community.auth0.com/u/Rednox)\
**Post date:** [February 23, 2023, 4:51pm UTC](https://community.auth0.com/t/support-multiple-client-secret-for-better-client-secret-rotation-and-usage/84443/16 "2023-02-23T16:51:42Z")

</div>

Hey @dan.woda , @konrad.sopala ,  
any update if this can get promoted to the roadmap?

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [February 24, 2023, 8:45am UTC](https://community.auth0.com/t/support-multiple-client-secret-for-better-client-secret-rotation-and-usage/84443/17 "2023-02-24T08:45:37Z")

</div>

Hey there!

We should have some kind of update on that front next week. Thank you!

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [March 16, 2023, 11:19am UTC](https://community.auth0.com/t/support-multiple-client-secret-for-better-client-secret-rotation-and-usage/84443/21 "2023-03-16T11:19:05Z")

</div>

Hey there!

So that’s the update from our product team on that front.

This feature request makes full sense and it is in our radar of roadmap candidates.  
The good news is that we already offer an alternative for app credentials rotation with zero downtime. Enterprise customers can use Private Key JWT, where requests are signed with a private key by the app and Auth0 validates that with the corresponding public key, as registered for the App. This feature is in Early Access and will be in GA by mid April.

I’m gonna mark it as a temporary solution but obviously that doesn’t stop here.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [March 30, 2023, 11:19am UTC](https://community.auth0.com/t/support-multiple-client-secret-for-better-client-secret-rotation-and-usage/84443/22 "2023-03-30T11:19:30Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [June 21, 2023, 12:21pm UTC](https://community.auth0.com/t/support-multiple-client-secret-for-better-client-secret-rotation-and-usage/84443/23 "2023-06-21T12:21:32Z")

</div>



[Next page](https://community.auth0.com/t/support-multiple-client-secret-for-better-client-secret-rotation-and-usage/84443.md?page=2)
