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

router enroll.go - "failed to parse JWT" could have various causes #2898

Open
qrkourier opened this issue Mar 17, 2025 · 0 comments
Open

router enroll.go - "failed to parse JWT" could have various causes #2898

qrkourier opened this issue Mar 17, 2025 · 0 comments

Comments

@qrkourier
Copy link
Member

failed to parse JWT

This error doesn't imply the full scope of failure modes that may cause enrollment to fail. It's because the triggering function validates that the token was signed by the pubkey of the server in the issuer claim (iss), which involves DNS resolution, creating a TCP stream with the controller, and completing TLS negotiation.


Should we expand the error to imply more of the possible causes or find a way to surface the specific cause in a more focused error message?

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