Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-4944 Multi-Tenant Support in Ozone
  3. HDDS-6608

[MultiTenancy] Create uniform output for AWS secrets across APIs

    XMLWordPrintableJSON

Details

    Description

      While assigning user to tenant, it logs the access/secret key on the console in shell export variables.

      bash-4.2$ ozone tenant user assign '**' -t tenantone
      Assigned '**' to 'tenantone' with accessId 'tenantone$**'.
      export AWS_ACCESS_KEY_ID='tenantone$**'
      export AWS_SECRET_ACCESS_KEY='35d5075f8a4d5dce4a6491a06c2f6f7cf4c2ba443f7f483841551d923527ebcf'

      But while fetching the keys via getsecret API the output is in different format.

      bash-4.2$ ozone tenant user getsecret 'tenantone$**'
      awsAccessKey=tenantone$**
      awsSecret=35d5075f8a4d5dce4a6491a06c2f6f7cf4c2ba443f7f483841551d923527ebcf 

      Better to have similar format. 

      Attachments

        Issue Links

          Activity

            People

              smeng Siyao Meng
              ssulav Soumitra Sulav
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: