Uploaded image for project: 'Apache Knox'
  1. Apache Knox
  2. KNOX-2146

Docs: Knox JWT token signature verification using public key

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.0.0
    • 1.4.0
    • Site
    • None
    • Ubuntu 18.04, HDP 3.1

    Description

      Hello,

       I have configured an Apache Knox (1.0.0) topology to accept 3rd party JWTs by following this [Cloudera guide|https://community.cloudera.com/t5/Community-Articles/Knox-Accept-third-party-JWT/ta-p/248488].

       

       I would also like to verify the 3rd party JWts based on their signature by adding  my IdP's public key in PEM format for the JWT provider, but in the guide it is specified that only PEM certificates are accepted (' [...] In current Knox version, public key is not supported, have to configure public certificate [...]') and I have not found any relevant documentation from Knox on this subject.

       

       Can you please tell me if there is any solution to use public keys for JWT verification in Knox 1.0.0 ? If not, are there any plans to support this in future Knox releases ?

      P.S.:

      When adding the 'knox.token.verification.pem' parameter with the public key in the JWT provider of my topology I noticed the below error in my gateway.log, which does seem to confirm the public key limitation.

       

      javax.servlet.ServletException: javax.servlet.ServletException: CertificateException - PEM may be corrupt
      

       

      Regards,

       

       

      Attachments

        1. knox_jwt_topo_apache_jira.txt
          2 kB
          Matei C.
        2. knox_jwt_topo_apache_jira.txt
          2 kB
          Matei C.
        3. knox_jwt_topo_apache_jira.txt
          2 kB
          Matei C.

        Activity

          People

            smore Sandeep More
            FortKnox Matei C.
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: