Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Intermittent error: claim "ref_protected" does not match any associated bound claim values #305

Open
hiaik opened this issue May 22, 2024 · 0 comments

Comments

@hiaik
Copy link

hiaik commented May 22, 2024

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:

return fmt.Errorf("claim %q does not match any associated bound claim values", claim)

Role yaml file is:

---
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: <project path in gitlab>
  iss:
    - https://<gitlab url>
    - <gitlab url>
bound_claims_type: string

I have checked both changelogs:

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant