# Client secret rotation

**URL:** <https://forum.keycloak.org/t/client-secret-rotation/10977>\
**Category:** Getting advice\
**Tags:** authentication, client-configuration\
**Created:** [September 13, 2021, 2:38pm UTC](https://forum.keycloak.org/t/client-secret-rotation/10977 "2021-09-13T14:38:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sveratum](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/sveratum/32/3891_2.png) [@sveratum](https://forum.keycloak.org/u/sveratum)\
**Post date:** [September 13, 2021, 2:38pm UTC](https://forum.keycloak.org/t/client-secret-rotation/10977/1 "2021-09-13T14:38:55Z")

</div>

Hello,  
I need to rotate the secret for the client.  
I have a service account client:  
 ![image](https://global.discourse-cdn.com/free1/uploads/keycloak/original/2X/2/2af1e010a12012e7e92f1240b48d74a089a7cf67.png)

It is necessary to change the secret periodically. But I can’t seem to find a solution for this.  
If you have any suggestions or hints I will be glad

---

<div class="post-metadata">

**Author:** ![xgp](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/xgp/32/2589_2.png) [@xgp](https://forum.keycloak.org/u/xgp)\
**Post date:** [September 13, 2021, 5:08pm UTC](https://forum.keycloak.org/t/client-secret-rotation/10977/2 "2021-09-13T17:08:46Z")

</div>

There is no automated secret rotation. You have to regenerated the secret and then update the value in your client. Not ideal, but currently the only way to do it.
