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

support teleport jwt auth #17226

Open
junnplus opened this issue Sep 20, 2022 · 5 comments
Open

support teleport jwt auth #17226

junnplus opened this issue Sep 20, 2022 · 5 comments

Comments

@junnplus
Copy link

junnplus commented Sep 20, 2022

Is your feature request related to a problem? Please describe.

I'm always frustrated when I use teleport as a reverse proxy for vault ui. Although vault ui already supports jwt auth, but teleport reverse proxy will send the jwt token as header Teleport-Jwt-Assertion to vault, but vault can't read the jwt header automatically.

https://goteleport.com/docs/application-access/jwt/introduction/

Describe the solution you'd like
A clear and concise description of what you want to happen.

vault ui can read jwt token from header like grafana.

https://grafana.com/docs/grafana/latest/setup-grafana/configure-security/configure-authentication/jwt/

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Explain any additional use-cases
If there are any use-cases that would help us understand the use/need/value please share them as they can help us decide on acceptance and prioritization.

Additional context
Add any other context or screenshots about the feature request here.

@tbjers
Copy link

tbjers commented Apr 25, 2023

You can inject a JWT token into any header using headers passthrough. This works in all recent versions of Teleport.

@junnplus
Copy link
Author

You can inject a JWT token into any header using headers passthrough. This works in all recent versions of Teleport.

I know it, but my issue is that the JWT cannot be retrieved by Vault UI.

@xom4ek
Copy link

xom4ek commented Jul 14, 2023

Any news?

@tbjers
Copy link

tbjers commented Jul 14, 2023

You can inject a JWT token into any header using headers passthrough. This works in all recent versions of Teleport.

I know it, but my issue is that the JWT cannot be retrieved by Vault UI.

https://developer.hashicorp.com/vault/docs/auth/jwt#configuration

Did you add Vault UI as an application in Teleport? Did you also configure the correct header?
Furthermore, did you use the JWKS URL for your Teleport server in the Vault JWT configuration?

For example: https://teleport.example.com/.well-known/jwks.json

@dmsergeevN26
Copy link

@tbjers i think the issue here is that vault doesn't understand JWT tokens sent in headers only as a payload

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

No branches or pull requests

6 participants