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

k8s auth with PSATs and custom audiecne fails #73

Closed
riuvshyn opened this issue Nov 14, 2019 · 2 comments
Closed

k8s auth with PSATs and custom audiecne fails #73

riuvshyn opened this issue Nov 14, 2019 · 2 comments

Comments

@riuvshyn
Copy link
Contributor

Hey guys! I was trying to get these changes #70 working and stuck with this:

{
  "errors": [
    "lookup failed: [invalid bearer token, token audiences [\"vault\"] is invalid for the target audiences [\"api\"]]"
  ]
}

while audience on my PSAT is vault:

  "aud": [
    "vault"
  ],
  "exp": 1573731794,
  "iat": 1573724594,
  "iss": "api",

and audience on the role is also vault:


Key                                 Value
---                                 -----
audience                            vault
bound_service_account_names         [default]
bound_service_account_namespaces    [service]
token_bound_cidrs                   []
token_explicit_max_ttl              0s
token_max_ttl                       0s
token_no_default_policy             false
token_num_uses                      0
token_period                        0s
token_policies                      [vault]
token_ttl                           0s
token_type                          default

it work ONLY if I use audience = api on role and on PSAT so this looks like a bug.

@riuvshyn
Copy link
Contributor Author

@riuvshyn
Copy link
Contributor Author

riuvshyn commented Dec 4, 2019

this should be fixed by #74

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