You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Marton Elek (Jira)" <ji...@apache.org> on 2021/06/04 10:40:00 UTC

[jira] [Created] (HDDS-5303) OzoneDelegationTokenSecretManager breaks the interface contract of S3SecretManager

Marton Elek created HDDS-5303:
---------------------------------

             Summary: OzoneDelegationTokenSecretManager breaks the interface contract of S3SecretManager
                 Key: HDDS-5303
                 URL: https://issues.apache.org/jira/browse/HDDS-5303
             Project: Apache Ozone
          Issue Type: Bug
            Reporter: Marton Elek
            Assignee: Marton Elek


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.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org