-
Notifications
You must be signed in to change notification settings - Fork 3.4k
HBASE-29791: Backport 'HBASE-29761: The HBase UI's Debug Dump is not redacting sensitive information' to branch-2.6 #7571
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…redacting sensitive information' to branch-2.6 Change-Id: Ibdd5c605a7cb65702562428c5b865060b0a49254
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Change-Id: I3811e5f8bb98c81e2a73b266341dec1acfe28dce
|
🎊 +1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
PDavid
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Many thanks! 👍
taklwu
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
https://issues.apache.org/jira/browse/HBASE-29791
This pull request back-ports HBASE-29761: The HBase UI's Debug Dump is not redacting sensitive information into branch-2. HBASE-29761 fixes an issue where sensitive information, such as passwords, were not being redacted when looking at a server's Debug Dump in the HBase UI. Similar to PR #7568 with branch-2, some small modifications needed to be made in the Java code in order to get this commit to build. The changes included:
MasterDumpServlet.java and RSDumpServlet.java
StandardCharsets.UTF_8.toString()instead ofStandardCharsets.UTF_8MasterDumpServlet.java
if (isShowQueueDump(conf))toif (isShowQueueDump(master.getConfiguration()))since theconfvariable no longer exists in the code (the master branch does not have thisifblock at all).TestDebugDumpRedaction.java
HBaseTestingUtilityinstead ofHBaseTestingUtilREDACTED_PROPSusingArrays.asList()instead ofList.of()and using.collect(Collectors.toList())instead of.toList().TestServerHttpUtils.java
static final String PLAIN_TEXT = "text/plain"instead ofstatic final String PLAIN_TEXT_UTF8 = "text/plain;charset=utf-8".