Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-1858

mTLS support for Ozone is not correct

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • None
    • 0.4.1
    • None
    • Done

    Description

      Thanks to Josh for reporting that we have missing 'Not' in the if condition check.

      if (conf.isGrpcMutualTlsRequired()) {
              return new GrpcTlsConfig(
                  null, null, conf.getTrustStoreFile(), false);
            } else {
              return new GrpcTlsConfig(conf.getClientPrivateKeyFile(),
                  conf.getClientCertChainFile(), conf.getTrustStoreFile(), true);
            }
      

      it should have been

      if (!conf.isGrpcMutualTlsRequired()) {
              return new GrpcTlsConfig(
                  null, null, conf.getTrustStoreFile(), false);
            } else {
              return new GrpcTlsConfig(conf.getClientPrivateKeyFile(),
                  conf.getClientCertChainFile(), conf.getTrustStoreFile(), true);
            }
      

      Attachments

        1. HDDS-1858.01.patch
          1 kB
          Siddharth Wagle
        2. HDDS-1858.02.patch
          0.9 kB
          Siddharth Wagle

        Activity

          People

            swagle Siddharth Wagle
            elserj Josh Elser
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: