Skip to content

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

@qrkourier

Description

@qrkourier

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions