Package org.apache.hadoop.hbase.http
Class TestDebugDumpRedaction
java.lang.Object
org.apache.hadoop.hbase.http.TestDebugDumpRedaction
This class performs tests that ensure sensitive config values found in the HBase UI's Debug Dump
are redacted. A config property name must follow one of the regex patterns specified in
hadoop.security.sensitive-config-keys in order to have its value redacted.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HBaseClassTestRuleprivate static org.apache.hadoop.hbase.LocalHBaseClusterprivate static final Stringprivate static final org.slf4j.Loggerprivate static final Stringprivate static final Stringprivate static final intprivate static final HBaseTestingUtilprivate static final Stringprivate static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic voidvoidvoidprivate voidverifyDebugDumpResponseConfig(String response)
-
Field Details
-
LOG
-
UTIL
-
XML_CONFIGURATION_START_TAG
- See Also:
-
XML_CONFIGURATION_END_TAG
- See Also:
-
SUBSTRING_OFFSET
-
REDACTED_TEXT
- See Also:
-
SENSITIVE_CONF_PROPERTIES
-
NON_SENSITIVE_KEYS_WITH_DEFAULT_VALUES
-
NULL_CONFIG_KEY
- See Also:
-
EMPTY_CONFIG_KEY
- See Also:
-
REDACTED_PROPS
-
CLUSTER
-
CLASS_RULE
-
-
Constructor Details
-
TestDebugDumpRedaction
public TestDebugDumpRedaction()
-
-
Method Details
-
beforeClass
- Throws:
Exception
-
afterClass
- Throws:
Exception
-
testMasterPasswordsAreRedacted
- Throws:
IOException
-
testRegionServerPasswordsAreRedacted
- Throws:
IOException
-
verifyDebugDumpResponseConfig
- Throws:
IOException
-