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

OzoneDelegationTokenSecretManager breaks the interface contract of S3SecretManager

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • None
    • 1.4.0
    • None
    • None

    Description

      S3SecretManager is a generic interface which supposed to return with the secret key for one specific AWS access key id.

      It's a generic interface which may have multiple implementation.

      Unfortunately, it's not possible to use any implementation as OzoneDelegationTokenSecretManager does an explicit cast to retrieve the MetadataManager.

      Instead of breaking the abstract contract of interface it seems to be better to directly inject the required MetadataManager to the OzoneDelegationTokenSecretManager which makes it possible to use an implementation.

      Attachments

        Issue Links

          Activity

            People

              elek Marton Elek
              elek Marton Elek
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: