hashicorp / hashicorp/vault-plugin-auth-jwt
Intermittent error: claim "ref_protected" does not match any associated bound claim values
- Dominant language
- Go
- Stars
- 107
- Forks
- 73
- Avg merge
- 13h 49m
- Merged PRs (30d)
- 7
Description
Hi Team,
We are on 1.7.1 (https://github.com/hashicorp/vault/blob/main/CHANGELOG-pre-v1.10.md#171) which uses github.com/hashicorp/vault-plugin-auth-jwt v0.9.3
We are on GitLab 16.11.1-ee
We experience intermittent error "claim "ref_protected" does not match any associated bound claim values" which disappears itself with unknown to us conditions.
It seems coming from:
https://github.com/hashicorp/vault-plugin-auth-jwt/blob/cb729ddbd4ba4b5199345dab1c43448a64b10567/claims.go#L138
Role yaml file is:
```yaml
---
name: app-ci
role_type: jwt
token_policies:
- app-ci
- gitlab-runner
token_explicit_max_ttl: 60
user_claim: user_email
bound_claims:
project_path:
iss:
- https://
-
bound_claims_type: string
```
I have checked both changelogs:
* https://github.com/hashicorp/vault-plugin-auth-jwt/blob/main/CHANGELOG.md
* https://github.com/hashicorp/vault/blob/main/CHANGELOG.md
Have not found any related issue.
Still this issue is intermittent on our side. It occurs for pipeline jobs on protected tags / branches. And it disappears itself with no known changes on your side.
Could you please share any guidance?
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with claims.go at line 138 and compare claims from protected tag or branch pipeline jobs with the role YAML's bound_claims. Review the referenced plugin and Vault changelogs, then reproduce the intermittent ref_protected mismatch if possible; done means the triggering conditions are established and guidance or a corrective change is supported by the evidence.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- authentication
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100