# Retrieve Keycloak OIDC client secret from vault provider

**URL:** <https://forum.keycloak.org/t/retrieve-keycloak-oidc-client-secret-from-vault-provider/12983>\
**Category:** Configuring the server\
**Created:** [January 11, 2022, 3:01pm UTC](https://forum.keycloak.org/t/retrieve-keycloak-oidc-client-secret-from-vault-provider/12983 "2022-01-11T15:01:13Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![lucascorailler](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/lucascorailler/32/3453_2.png) [@lucascorailler](https://forum.keycloak.org/u/lucascorailler)\
**Post date:** [January 11, 2022, 3:01pm UTC](https://forum.keycloak.org/t/retrieve-keycloak-oidc-client-secret-from-vault-provider/12983/1 "2022-01-11T15:01:13Z")

</div>

Hello,  
Is there a way to retrieve a Keycloak client’s client\_secret from [the Kubernetes files plain-text vault provider](https://www.keycloak.org/docs/latest/server_admin/#_providers) ?  
Already did it for the SMTP password, it’s working fine, but I’d like something like this :

 ![image](https://global.discourse-cdn.com/free1/uploads/keycloak/original/2X/3/3294fb0e661c9a2cd8877f491b964a2d5ce3d5f1.png)

The goal is to be able to link a Kubernetes secret with both Keycloak to manage the OIDC client, and the actual web app that is client

In the documentation it is indeed said that only the fields below are able to use this feature. :

- SMTP password
- LDAP bind credential
- OIDC identity provider secret

Is it in the backlog somewhere a plan to add this feature ?

Sorry if I am not clear, but thanks in advance for your help,

Best regards,

---

<div class="post-metadata">

**Author:** ![dasniko](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/dasniko/32/2969_2.png) [@dasniko](https://forum.keycloak.org/u/dasniko)\
**Post date:** [January 11, 2022, 3:22pm UTC](https://forum.keycloak.org/t/retrieve-keycloak-oidc-client-secret-from-vault-provider/12983/2 "2022-01-11T15:22:30Z")

</div>

This is not yet supported by Keycloak. There is somewhere a discussion item about client secrets, not only serving it from a vault, but also other aspects.  
See somewhere here:

> **[keycloak/keycloak · Discussions](https://github.com/keycloak/keycloak/discussions)**
>
> Explore the GitHub Discussions forum for keycloak keycloak. Discuss code, ask questions & collaborate with the developer community.

---

<div class="post-metadata">

**Author:** ![jfreeman-hbo](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/jfreeman-hbo/32/6363_2.png) [@jfreeman-hbo](https://forum.keycloak.org/u/jfreeman-hbo)\
**Post date:** [August 15, 2022, 11:12pm UTC](https://forum.keycloak.org/t/retrieve-keycloak-oidc-client-secret-from-vault-provider/12983/3 "2022-08-15T23:12:22Z")

</div>

We also really wish this was a feature. Wondering what the complexity involved in this would be?

---

<div class="post-metadata">

**Author:** ![jbickel](https://avatars.discourse-cdn.com/v4/letter/j/8491ac/32.png) [@jbickel](https://forum.keycloak.org/u/jbickel)\
**Post date:** [April 22, 2026, 2:40pm UTC](https://forum.keycloak.org/t/retrieve-keycloak-oidc-client-secret-from-vault-provider/12983/4 "2026-04-22T14:40:39Z")

</div>

I noticed [Release Notes](https://www.keycloak.org/docs/26.6.0/release_notes/index.html#looking-up-client-secrets-via-the-vault-spi) and [https://github.com/keycloak/keycloak/pull/39650](https://github.com/keycloak/keycloak/pull/39650).

Perhaps this is now delivered in 26.6.0 and later.

---

<div class="post-metadata">

**Author:** ![embesozzi](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/embesozzi/32/12390_2.png) [@embesozzi](https://forum.keycloak.org/u/embesozzi)\
**Post date:** [April 29, 2026, 5:24pm UTC](https://forum.keycloak.org/t/retrieve-keycloak-oidc-client-secret-from-vault-provider/12983/5 "2026-04-29T17:24:59Z")

</div>

Life will be easier by avoiding client secrets.  
Check if the Federated Client Authentication feature [1] works for you, or you can also use JWT client authentication

[1] [Federated client authentication - no more secrets - Keycloak](https://www.keycloak.org/2026/01/federated-client-authentication)

---

<div class="post-metadata">

**Author:** ![jbickel](https://avatars.discourse-cdn.com/v4/letter/j/8491ac/32.png) [@jbickel](https://forum.keycloak.org/u/jbickel)\
**Post date:** [April 29, 2026, 6:36pm UTC](https://forum.keycloak.org/t/retrieve-keycloak-oidc-client-secret-from-vault-provider/12983/6 "2026-04-29T18:36:52Z")

</div>

I’m not sure why an administrator needs access to the client secret in the first place. For example, an administrator can run a credential reset for a user, the user sets a secret passphrase, and the administrator cannot retrieve that secret passphrase.
