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

Validate a JWT hasn't expired before sending to controller #1045

Open
dovholuknf opened this issue Nov 21, 2024 · 0 comments
Open

Validate a JWT hasn't expired before sending to controller #1045

dovholuknf opened this issue Nov 21, 2024 · 0 comments

Comments

@dovholuknf
Copy link
Member

the ziti CLI will verify a token hasn't expired before even attempting to use it. for example:

ziti edge enroll expired.jwt
...
failed to parse JWT: token has invalid claims: token is expired

ziti-edge-tunnel should also verify the token's before trying to use it. Minimally we should verify the exp and nbf if present. possibly also check the iat to make sure it's not too far in the future?

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