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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to