Skip to content

Commit

Permalink
HDDS-10692. ozone s3 getsecret prints some internal details (apache#6531
Browse files Browse the repository at this point in the history
)
  • Loading branch information
adoroszlai authored Apr 17, 2024
1 parent 20c84d8 commit 72240fa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions hadoop-ozone/dist/src/main/smoketest/security/S3-secret.robot
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 72240fa

Please sign in to comment.