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
Describe the bug
While logging-in to Vault with JWT provider, I am not able to use bound_claims without providing bound_audiences as well but according to docs it says otherwise For "jwt" roles, at least one of bound_audiences, bound_subject, bound_claims or token_bound_cidrs is required.
To Reproduce
Steps to reproduce the behavior:
Configure JWT backend with keycloak as JWT provider.
POST {{VAULT_ADDR}}/v1/sys/auth/jwt
X-Vault-Token: {{ROOT_TOKEN}}
{
"type": "jwt"
}
{
"errors": [
"audience claim found in JWT but no audiences bound to the role"
]
}
Expected behavior
I should be able to login and get vault service token after validating exp, iss etc.. along with bound_claims and not worry about bound_audiences since I haven't set that explicitly in my role configuration.
Environment:
Vault Server Version (retrieve with vault status): 1.11.2
Vault CLI Version (retrieve with vault version): Vault v1.11.2 (3a8aa12), built 2022-07-29T09:48:47Z
Server Operating System/Architecture: Ubuntu 20.02 (WSL2 distro)
The text was updated successfully, but these errors were encountered:
souravs17031999
changed the title
JWT provider: bound_audiences checked while logging even if bound_claims
JWT provider: bound_audiences checked while logging even if bound_claims are set
Mar 6, 2024
souravs17031999
changed the title
JWT provider: bound_audiences checked while logging even if bound_claims are set
JWT provider: bound_audiences checked while login even if bound_claims are set
Mar 6, 2024
souravs17031999
changed the title
JWT provider: bound_audiences checked while login even if bound_claims are set
JWT Auth provider: bound_audiences checked while login even if bound_claims are set
Mar 6, 2024
Update: We have reverted the behavior change for auth jwt roles. This will be reflected in Vault 1.16.5 and 1.15.11.
However, 1.17 and later will maintain the requirement that the bound_audiences parameter of “jwt” roles is required if the aud claim is set on the JWT. If the aud claim on the JWT is empty, then the bound_audiences is not required on the role.
Describe the bug
While logging-in to Vault with JWT provider, I am not able to use
bound_claims
without providingbound_audiences
as well but according to docs it says otherwiseFor "jwt" roles, at least one of bound_audiences, bound_subject, bound_claims or token_bound_cidrs is required
.To Reproduce
Steps to reproduce the behavior:
Expected behavior
I should be able to login and get vault service token after validating exp, iss etc.. along with bound_claims and not worry about bound_audiences since I haven't set that explicitly in my role configuration.
Environment:
vault status
): 1.11.2vault version
): Vault v1.11.2 (3a8aa12), built 2022-07-29T09:48:47ZVault server configuration file(s):
Additional context
The text was updated successfully, but these errors were encountered: