Skip to content

Add support for EdDSA JWT verification and JWKS parsing #5835

@tachiniererin

Description

@tachiniererin

What is the underlying problem you're trying to solve?

OPA currently doesn't support verifying JSON Web Signatures based on EdDSA (https://www.rfc-editor.org/rfc/rfc8037.html).

Describe the ideal solution

Ideally OPA would have the same support for EdDSA keysets and signatures same as it does for other algorithms.

Describe a "Good Enough" solution

Parsing keysets containing EdDSA keys and verifying JSON Web Tokens signed with EdDSA.

Additional Context

JWX already supports EdDSA, but I'm unsure how much of a hassle it would be to implement support for EdDSA in OPA. I had a cursory look, and the main issue i could find is that the current algorithms are all HMAC based and EdDSA as defined in https://www.rfc-editor.org/rfc/rfc8037.html#section-3.1 is not. Technically, there's a PureEdDSA and a HashedEdDSA variant defined in https://www.rfc-editor.org/rfc/rfc8032#section-4, but HashedEdDSA doesn't seem to be defined for use in JWS.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions