This is an automated email from the ASF dual-hosted git repository.
adoroszlai pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ozone.git
The following commit(s) were added to refs/heads/master by this push:
new 72240fa726 HDDS-10692. ozone s3 getsecret prints some internal details
(#6531)
72240fa726 is described below
commit 72240fa7263993426f580cb8b807a47843f0fccc
Author: Doroszlai, Attila <[email protected]>
AuthorDate: Wed Apr 17 06:10:26 2024 +0200
HDDS-10692. ozone s3 getsecret prints some internal details (#6531)
---
.../main/java/org/apache/hadoop/ozone/om/helpers/S3SecretValue.java | 4 +---
hadoop-ozone/dist/src/main/smoketest/security/S3-secret.robot | 2 ++
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git
a/hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/om/helpers/S3SecretValue.java
b/hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/om/helpers/S3SecretValue.java
index cb1ed0976a..20c145bd0c 100644
---
a/hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/om/helpers/S3SecretValue.java
+++
b/hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/om/helpers/S3SecretValue.java
@@ -101,9 +101,7 @@ public final class S3SecretValue {
@Override
public String toString() {
- return "awsAccessKey=" + kerberosID + "\nawsSecret=" + awsSecret +
- "\nisDeleted=" + isDeleted + "\ntransactionLogIndex=" +
- transactionLogIndex;
+ return "awsAccessKey=" + kerberosID + "\nawsSecret=" + awsSecret;
}
@Override
diff --git a/hadoop-ozone/dist/src/main/smoketest/security/S3-secret.robot
b/hadoop-ozone/dist/src/main/smoketest/security/S3-secret.robot
index 2f1eda13e2..9d42fa154e 100644
--- a/hadoop-ozone/dist/src/main/smoketest/security/S3-secret.robot
+++ b/hadoop-ozone/dist/src/main/smoketest/security/S3-secret.robot
@@ -26,6 +26,8 @@ GetSecret success
${output}= Execute ozone s3 getsecret -u testuser2
Should contain ${output} awsAccessKey
Should contain ${output} awsSecret
+ Should not contain ${output} isDeleted
+ Should not contain ${output} transactionLogIndex
GetSecret failure
${output2}= Execute and Ignore Error ozone s3 getsecret -u
testuser2
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]