Rest request to authn-oidc in Conjur failed because concurrency limited cache reached the limit
87
Created On 11/10/26 11:00 AM - Last Modified 11/10/26 12:59 PM
Symptom
A failure occurs when attempting to fetch the OIDC provider certificate from cache and as a result, the Conjur server is unable to validate the certificate and cannot decode the ID token of the requester.
Note: Cache is memory persistence per Follower
Different errors are received when fetching a certificate from the cache based on the status of the certificate and the cache
Error 1 log:
CONJ00044E - Concurrency limited cache reached before cache initialized
Error 1 console:
HTTP Code 500 internal server error / HTTP Code 503 service unavailable
Error 2 console:
HTTP Code 401 unauthorized
Error 3 console:
HTTP Code 500 internal server error / HTTP Code 503 service unavailable / HTTP Code 401 unauthorizedEnvironment
10.10
Cause
Error 1:
When fetching the certificate and a server error (500/503) is received, then this means that the concurrency limit has been reached before a certificate (the new, valid one) can be saved in the cache.
Error 2:
When fetching the certificate and an unauthorized error (401) is received, then this means that the OIDC certificate in the cache is not up-to-date and the concurrency limit has been reached while attempting to update the certificate in cache.
Error 3:
When fetching the certificate and a 500/503/401 error is received, then this means that the OIDC provider (defined as the provider-uri variable in the Conjur policy) is unreachable and the concurrency limit has been reached because other threads are trying to communicate with an unreachable OIDC provider but have timed out.
Resolution
Error 1:
If the concurrency limit cache has been reached before a certificate (the new, valid one) can be saved to cache, then rerun the authentication requests until the following message is written to the log:
CONJ00021D - Concurrency limited cache updated successfully
Error 2:
If the OIDC certificate in the cache is not up-to-date, then rerun the authentication requests until the following message is written to the log:
CONJ00021D - Concurrency limited cache updated successfully
Error 3:
If the OIDC provider is unreachable, ensure the OIDC provider-uri variable defined in the authenticator policy is accessible from the Follower machine.
To do this:
1. Login to Conjur CLI and fetch the provider-id variable
conjur variable value conjur/authn-oidc/keycloak/provider-uri > https://keycloak:8443/auth/realms/master
2. Check communication from the Follower machine to the OIDC provider
curl -Is https://keycloak:8443/auth/realms/master | head -n 1 > HTTP/1.1 200 OK