Uploaded image for project: 'CDAP'
  1. CDAP
  2. CDAP-7287

CDAP Authentication - Support for Mutual TLS

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.5.0
    • Fix Version/s: 4.0.0
    • Component/s: Security
    • Labels:
      None
    • Release Notes:
      Added support for enabling client certificate based authentication to CDAP Authentication server
    • Rank:
      1|hzzlzr:

      Description

      Currently CDAP supports only 1 way TLS authentication by allowing CDAP customers to enable SSL. There should be a configurable way by which CDAP Authentication server can support mutual TLS(2-way SSL) where in the CDAP Auth Server also requests a CDAP client to provide a certificate which is trusted.

      Proposal :

      1. Set ExternalAuthenticationServer's sslContextFactory with needClientAuth(true) & a trustore
      2. For CDAP Routers, co.cask.cdap.security.tools.SSLHandlerFactory will initialize a trustore & set with sslContext with needClientAuth(true)

      The following properties need to be configured correctly in cdap-site.xml & cdap-security.xml to enable MTLS

      cdap-site.xml

      ssl.need.client.auth false( default)

      cdap-security.xml

      security.auth.server.ssl.truststore.password
      security.auth.server.ssl.truststore.path
      security.auth.server.ssl.truststore.type JKS (default)

      router.ssl.truststore.path
      router.ssl.truststore.password
      router.ssl.truststore.type JKS(default)

      3.The CDAP admin will have to drop in a custom handler that uses Jetty's ClientCertAuthenticator and provide her own implementation for the LoginModule, IdentityService & LoginService.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sharanya Sharanya Santhanam
                Reporter:
                sharanya Sharanya Santhanam
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: