Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-17566 Über-jira: S3A Hadoop 3.3.2 features
  3. HADOOP-17894

CredentialProviderFactory.getProviders() recursion loading JCEKS file from s3a

    XMLWordPrintableJSON

Details

    Description

      CredentialProviderFactory.getProviders() will be called recursively if the FS being instantiated as a source of a JCECKs file calls Configuration.getPassword().
      S3A FileSystem does this when looking at encryption settings, even when authentication
      is not being done by hadoop config options.

      Recursion is straightforward to detect, leaving a choice of actions

      1. Fail
      2. Fix by having getPassword() return null; this implicitly skips use of the credential providers for the nested FS instance.
      3. fix by skipping the specific credential provider factory with the problem (warn first?)

      My preference is for #3.

      Attachments

        Issue Links

          Activity

            People

              stevel@apache.org Steve Loughran
              stevel@apache.org Steve Loughran
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 20m
                  1h 20m