You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the JWKS URL of an JWT Auth is updated in an high availability setup, the new JWKS URL is called by Vault at configuration time for validation but the old URL is still in use until the Vault switches of master.
Setup : Non-enterprise Vault version 1.5.2 (Also tested on 1.4.2), 3 servers, PostgreSQL HA and Storage Backend
How to reproduce:
I spun up a test Vault HA Cluster with two small Python webservers (lets call them URL A & B) with both the same JWKSet with expired JWKeys. This force Vault to request JWKS each time and, I hoped, to avoid key caching.
I configure the JWT endpoint in Vault through the UI with URL A.
Vault requests URL A for initial configuration validation.
Then I start to auth with a sample JWT against this Vault like this:
Hello,
I encounter the following issue:
When the JWKS URL of an JWT Auth is updated in an high availability setup, the new JWKS URL is called by Vault at configuration time for validation but the old URL is still in use until the Vault switches of master.
Setup : Non-enterprise Vault version 1.5.2 (Also tested on 1.4.2), 3 servers, PostgreSQL HA and Storage Backend
How to reproduce:
I spun up a test Vault HA Cluster with two small Python webservers (lets call them URL A & B) with both the same JWKSet with expired JWKeys. This force Vault to request JWKS each time and, I hoped, to avoid key caching.
I configure the JWT endpoint in Vault through the UI with URL A.
Vault requests URL A for initial configuration validation.
Then I start to auth with a sample JWT against this Vault like this:
Vault always requests URL A upon each authent request (so no cache ?, weird, sometime it seems more than what is specified here ).
At this point, I change the JWT endpoint's JWKS URL to URL B.
Vault requests URL B for configuration validation.
When I try again to authenticate against Vault, it still requests URL A, even after 10 minutes.
Then I issue a
vault operator step-down
to change the Vault master.Upon new authent request, Vault now calls correctly URL B.
URL A logs:
URL B logs:
Behavior I expected:
Once the JWKS URL is updated, all requests should be made against immediately to the new URL. Not after a switch of Vault master :)
Kind regards,
The text was updated successfully, but these errors were encountered: