From d9b1e0980acf492dbd981dee6dab8ff04c0c8600 Mon Sep 17 00:00:00 2001 From: "Doroszlai, Attila" Date: Mon, 15 Apr 2024 19:32:55 +0200 Subject: [PATCH] HDDS-10692. ozone s3 getsecret prints some internal details --- .../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 cb1ed0976a0..20c145bd0c0 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 S3Secret getProtobuf() { @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 2f1eda13e20..9d42fa154e2 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