elek opened a new pull request #1889:
URL: https://github.com/apache/ozone/pull/1889


   ## What changes were proposed in this pull request?
   
   I am testing the S3g a lot in secure environment.
   
   It's slightly painful to set the AWS acces key Id and secret every time.
   
   I propose to improve the usability to print out the credentials in a 
read-to-use format:
   
   ```
   ozone s3 getsecret 
   AWS_ACCESS_KEY_ID=testuser/[email protected]
   AWS_SECRET_ACCESS_KEY=...
   ```
   
   Instead of:
   ```
   ozone s3 getsecret 
   awsAccessKey=testuser/[email protected]
   awsSecret=...
   ```
   
   The `-e` option even adds the required `export` prefixes:
   
   ```
   ozone s3 getsecret -e 
   export AWS_ACCESS_KEY_ID=testuser/[email protected]
   export AWS_SECRET_ACCESS_KEY=...
   ```
   
   Which makes the usage as easy as :
   
   ```
   eval $(ozone s3 getsecret -e)
   ```
   
   or for docker-compose based environments:
   
   ```
   eval $(docker-compose exec scm ozone s3 getsecret -e)
   ```
   
   ## How was this patch tested?
   
   From CLI and from acceptance tests


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to