You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "kousei47747 (via GitHub)" <gi...@apache.org> on 2025/10/06 17:42:43 UTC
[PR] HDDS-13681. Add docs for ozone tenant user get-secret/set-secret commands [ozone]
kousei47747 opened a new pull request, #9106:
URL: https://github.com/apache/ozone/pull/9106
## What changes were proposed in this pull request?
The S3 Multi-Tenant user documentation was missing two commands:
1. ozone tenant user get-secret
2. ozone tenant user set-secret --secret
This PR adds them.
## What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-13455
## How was this patch tested?
Page rendered as expected.
--
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.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
Re: [PR] HDDS-13681. Add docs for ozone tenant user get-secret/set-secret commands [ozone]
Posted by "smengcl (via GitHub)" <gi...@apache.org>.
smengcl merged PR #9106:
URL: https://github.com/apache/ozone/pull/9106
--
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.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
Re: [PR] HDDS-13681. Add docs for ozone tenant user get-secret/set-secret commands [ozone]
Posted by "smengcl (via GitHub)" <gi...@apache.org>.
smengcl commented on code in PR #9106:
URL: https://github.com/apache/ozone/pull/9106#discussion_r2408616074
##########
hadoop-hdds/docs/content/feature/S3-Tenant-Commands.md:
##########
@@ -246,6 +246,52 @@ bash-4.2$ ozone tenant user info --json testuser
}
```
+### Get tenant user secret key
+
+Get secret key by tenant user access ID.
+
+Unlike `ozone s3 getsecret`, it doesn’t generate a key if the access ID doesn’t exist.
+
+```shell
+ozone tenant user get-secret <ACCESS_ID>
+```
+or
+```shell
+ozone tenant user getsecret <ACCESS_ID>
+```
+
+Example:
+
+```shell
+bash-4.2$ ozone tenant user get-secret 'tenantone$testuser'
+export AWS_ACCESS_KEY_ID='tenantone$testuser'
+export AWS_SECRET_ACCESS_KEY='<GENERATED_SECRET>'
+```
+
+### Set tenant user secret key
+
+Set secret key for a tenant user access ID.
+
+Secret key length should be at least 8 characters.
+
+```shell
+ozone tenant user set-secret <ACCESS_ID> --secret <SECRET_KEY>
+```
+
+or
+
+```shell
+ozone tenant user setsecret <ACCESS_ID> --secret <SECRET_KEY>
+```
+
+Example:
+
+```shell
+bash-4.2$ ozone tenant user set-secret 'tenantone$testuser' --secret 'NEW_SECRET'
Review Comment:
```suggestion
bash-4.2$ ozone tenant user set-secret -e 'tenantone$testuser' --secret 'NEW_SECRET'
```
--
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.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
Re: [PR] HDDS-13681. Add docs for ozone tenant user get-secret/set-secret commands [ozone]
Posted by "smengcl (via GitHub)" <gi...@apache.org>.
smengcl commented on code in PR #9106:
URL: https://github.com/apache/ozone/pull/9106#discussion_r2408616074
##########
hadoop-hdds/docs/content/feature/S3-Tenant-Commands.md:
##########
@@ -246,6 +246,52 @@ bash-4.2$ ozone tenant user info --json testuser
}
```
+### Get tenant user secret key
+
+Get secret key by tenant user access ID.
+
+Unlike `ozone s3 getsecret`, it doesn’t generate a key if the access ID doesn’t exist.
+
+```shell
+ozone tenant user get-secret <ACCESS_ID>
+```
+or
+```shell
+ozone tenant user getsecret <ACCESS_ID>
+```
+
+Example:
+
+```shell
+bash-4.2$ ozone tenant user get-secret 'tenantone$testuser'
+export AWS_ACCESS_KEY_ID='tenantone$testuser'
+export AWS_SECRET_ACCESS_KEY='<GENERATED_SECRET>'
+```
+
+### Set tenant user secret key
+
+Set secret key for a tenant user access ID.
+
+Secret key length should be at least 8 characters.
+
+```shell
+ozone tenant user set-secret <ACCESS_ID> --secret <SECRET_KEY>
+```
+
+or
+
+```shell
+ozone tenant user setsecret <ACCESS_ID> --secret <SECRET_KEY>
+```
+
+Example:
+
+```shell
+bash-4.2$ ozone tenant user set-secret 'tenantone$testuser' --secret 'NEW_SECRET'
Review Comment:
```suggestion
bash-4.2$ ozone tenant user set-secret -e 'tenantone$testuser' --secret 'NEW_SECRET'
```
--
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.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
Re: [PR] HDDS-13681. Add docs for ozone tenant user get-secret/set-secret commands [ozone]
Posted by "smengcl (via GitHub)" <gi...@apache.org>.
smengcl commented on code in PR #9106:
URL: https://github.com/apache/ozone/pull/9106#discussion_r2408616074
##########
hadoop-hdds/docs/content/feature/S3-Tenant-Commands.md:
##########
@@ -246,6 +246,52 @@ bash-4.2$ ozone tenant user info --json testuser
}
```
+### Get tenant user secret key
+
+Get secret key by tenant user access ID.
+
+Unlike `ozone s3 getsecret`, it doesn’t generate a key if the access ID doesn’t exist.
+
+```shell
+ozone tenant user get-secret <ACCESS_ID>
+```
+or
+```shell
+ozone tenant user getsecret <ACCESS_ID>
+```
+
+Example:
+
+```shell
+bash-4.2$ ozone tenant user get-secret 'tenantone$testuser'
+export AWS_ACCESS_KEY_ID='tenantone$testuser'
+export AWS_SECRET_ACCESS_KEY='<GENERATED_SECRET>'
+```
+
+### Set tenant user secret key
+
+Set secret key for a tenant user access ID.
+
+Secret key length should be at least 8 characters.
+
+```shell
+ozone tenant user set-secret <ACCESS_ID> --secret <SECRET_KEY>
+```
+
+or
+
+```shell
+ozone tenant user setsecret <ACCESS_ID> --secret <SECRET_KEY>
+```
+
+Example:
+
+```shell
+bash-4.2$ ozone tenant user set-secret 'tenantone$testuser' --secret 'NEW_SECRET'
Review Comment:
```suggestion
bash-4.2$ ozone tenant user set-secret -e 'tenantone$testuser' --secret 'NEW_SECRET'
```
--
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.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
Re: [PR] HDDS-13681. Add docs for ozone tenant user get-secret/set-secret commands [ozone]
Posted by "smengcl (via GitHub)" <gi...@apache.org>.
smengcl commented on code in PR #9106:
URL: https://github.com/apache/ozone/pull/9106#discussion_r2408616074
##########
hadoop-hdds/docs/content/feature/S3-Tenant-Commands.md:
##########
@@ -246,6 +246,52 @@ bash-4.2$ ozone tenant user info --json testuser
}
```
+### Get tenant user secret key
+
+Get secret key by tenant user access ID.
+
+Unlike `ozone s3 getsecret`, it doesn’t generate a key if the access ID doesn’t exist.
+
+```shell
+ozone tenant user get-secret <ACCESS_ID>
+```
+or
+```shell
+ozone tenant user getsecret <ACCESS_ID>
+```
+
+Example:
+
+```shell
+bash-4.2$ ozone tenant user get-secret 'tenantone$testuser'
+export AWS_ACCESS_KEY_ID='tenantone$testuser'
+export AWS_SECRET_ACCESS_KEY='<GENERATED_SECRET>'
+```
+
+### Set tenant user secret key
+
+Set secret key for a tenant user access ID.
+
+Secret key length should be at least 8 characters.
+
+```shell
+ozone tenant user set-secret <ACCESS_ID> --secret <SECRET_KEY>
+```
+
+or
+
+```shell
+ozone tenant user setsecret <ACCESS_ID> --secret <SECRET_KEY>
+```
+
+Example:
+
+```shell
+bash-4.2$ ozone tenant user set-secret 'tenantone$testuser' --secret 'NEW_SECRET'
Review Comment:
```suggestion
bash-4.2$ ozone tenant user set-secret -e -u 'tenantone$testuser' --secret 'NEW_SECRET'
```
--
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.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org