Skip to content

Commit 1aadcf9

Browse files
authored
Sanitize storage account access keys (#25461)
1 parent c92f8d4 commit 1aadcf9

File tree

15 files changed

+2054
-750
lines changed

15 files changed

+2054
-750
lines changed

src/HDInsight/HDInsight.Test/SessionRecords/Commands.HDInsight.Test.ScenarioTests.HDInsightAutoscaleTests/TestAutoscaleRelatedCommands.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@
339339
"-1"
340340
]
341341
},
342-
"ResponseBody": "{\r\n \"keys\": [\r\n {\r\n \"keyName\": \"key1\",\r\n \"value\": \"0z5wPbRxMqRSNNPG4YldlTiwbxd4n+SBmRWVe9UyDx5da99ethJqBrxs2icb1oBNtkkXpcIZReWu+AStVXukVA==\",\r\n \"permissions\": \"FULL\"\r\n },\r\n {\r\n \"keyName\": \"key2\",\r\n \"value\": \"wrpIrbS5+3+ur4J00q3IkxxngUfYugQG44GgUQCXJ57mKQ/HXdJBRmIBqUlo5o3hn25umNGIKJuD+AStPY2exw==\",\r\n \"permissions\": \"FULL\"\r\n }\r\n ]\r\n}",
342+
"ResponseBody": "{\r\n \"keys\": [\r\n {\r\n \"keyName\": \"key1\",\r\n \"value\": \"Sanitized\",\r\n \"permissions\": \"FULL\"\r\n },\r\n {\r\n \"keyName\": \"key2\",\r\n \"value\": \"Sanitized\",\r\n \"permissions\": \"FULL\"\r\n }\r\n ]\r\n}",
343343
"StatusCode": 200
344344
},
345345
{
@@ -435,7 +435,7 @@
435435
"2140"
436436
]
437437
},
438-
"RequestBody": "{\r\n \"location\": \"japaneast\",\r\n \"properties\": {\r\n \"clusterVersion\": \"4.0\",\r\n \"osType\": \"Linux\",\r\n \"clusterDefinition\": {\r\n \"kind\": \"Spark\",\r\n \"componentVersion\": {},\r\n \"configurations\": {\r\n \"gateway\": {\r\n \"restAuthCredential.isEnabled\": \"true\",\r\n \"restAuthCredential.username\": \"admin\",\r\n \"restAuthCredential.password\": \"YourPw!00953\"\r\n },\r\n \"core-site\": {}\r\n }\r\n },\r\n \"computeProfile\": {\r\n \"roles\": [\r\n {\r\n \"name\": \"headnode\",\r\n \"targetInstanceCount\": 2,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"STANDARD_E8_V3\"\r\n },\r\n \"osProfile\": {\r\n \"linuxOperatingSystemProfile\": {\r\n \"username\": \"sshuser\",\r\n \"password\": \"YourPw!00953\"\r\n }\r\n }\r\n },\r\n {\r\n \"name\": \"workernode\",\r\n \"targetInstanceCount\": 3,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"STANDARD_E8_V3\"\r\n },\r\n \"osProfile\": {\r\n \"linuxOperatingSystemProfile\": {\r\n \"username\": \"sshuser\",\r\n \"password\": \"YourPw!00953\"\r\n }\r\n }\r\n },\r\n {\r\n \"name\": \"zookeepernode\",\r\n \"targetInstanceCount\": 3,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"STANDARD_A2_V2\"\r\n },\r\n \"osProfile\": {\r\n \"linuxOperatingSystemProfile\": {\r\n \"username\": \"sshuser\",\r\n \"password\": \"YourPw!00953\"\r\n }\r\n }\r\n }\r\n ]\r\n },\r\n \"storageProfile\": {\r\n \"storageaccounts\": [\r\n {\r\n \"name\": \"storagepstest2128.blob.core.windows.net\",\r\n \"isDefault\": true,\r\n \"container\": \"hdi-ps-test7028\",\r\n \"key\": \"0z5wPbRxMqRSNNPG4YldlTiwbxd4n+SBmRWVe9UyDx5da99ethJqBrxs2icb1oBNtkkXpcIZReWu+AStVXukVA==\",\r\n \"resourceId\": \"/subscriptions/964c10bb-8a6c-43bc-83d3-6b318c6c7305/resourceGroups/group-ps-test8040/providers/Microsoft.Storage/storageAccounts/storagepstest2128\"\r\n }\r\n ]\r\n },\r\n \"minSupportedTlsVersion\": \"1.2\"\r\n }\r\n}",
438+
"RequestBody": "{\r\n \"location\": \"japaneast\",\r\n \"properties\": {\r\n \"clusterVersion\": \"4.0\",\r\n \"osType\": \"Linux\",\r\n \"clusterDefinition\": {\r\n \"kind\": \"Spark\",\r\n \"componentVersion\": {},\r\n \"configurations\": {\r\n \"gateway\": {\r\n \"restAuthCredential.isEnabled\": \"true\",\r\n \"restAuthCredential.username\": \"admin\",\r\n \"restAuthCredential.password\": \"YourPw!00953\"\r\n },\r\n \"core-site\": {}\r\n }\r\n },\r\n \"computeProfile\": {\r\n \"roles\": [\r\n {\r\n \"name\": \"headnode\",\r\n \"targetInstanceCount\": 2,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"STANDARD_E8_V3\"\r\n },\r\n \"osProfile\": {\r\n \"linuxOperatingSystemProfile\": {\r\n \"username\": \"sshuser\",\r\n \"password\": \"YourPw!00953\"\r\n }\r\n }\r\n },\r\n {\r\n \"name\": \"workernode\",\r\n \"targetInstanceCount\": 3,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"STANDARD_E8_V3\"\r\n },\r\n \"osProfile\": {\r\n \"linuxOperatingSystemProfile\": {\r\n \"username\": \"sshuser\",\r\n \"password\": \"YourPw!00953\"\r\n }\r\n }\r\n },\r\n {\r\n \"name\": \"zookeepernode\",\r\n \"targetInstanceCount\": 3,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"STANDARD_A2_V2\"\r\n },\r\n \"osProfile\": {\r\n \"linuxOperatingSystemProfile\": {\r\n \"username\": \"sshuser\",\r\n \"password\": \"YourPw!00953\"\r\n }\r\n }\r\n }\r\n ]\r\n },\r\n \"storageProfile\": {\r\n \"storageaccounts\": [\r\n {\r\n \"name\": \"storagepstest2128.blob.core.windows.net\",\r\n \"isDefault\": true,\r\n \"container\": \"hdi-ps-test7028\",\r\n \"key\": \"Sanitized\",\r\n \"resourceId\": \"/subscriptions/964c10bb-8a6c-43bc-83d3-6b318c6c7305/resourceGroups/group-ps-test8040/providers/Microsoft.Storage/storageAccounts/storagepstest2128\"\r\n }\r\n ]\r\n },\r\n \"minSupportedTlsVersion\": \"1.2\"\r\n }\r\n}",
439439
"ResponseHeaders": {
440440
"Cache-Control": [
441441
"no-cache"
@@ -4844,4 +4844,4 @@
48444844
"Variables": {
48454845
"SubscriptionId": "964c10bb-8a6c-43bc-83d3-6b318c6c7305"
48464846
}
4847-
}
4847+
}

src/HDInsight/HDInsight.Test/SessionRecords/Commands.HDInsight.Test.ScenarioTests.HDInsightAzureMonitorTests/TestAzureMonitorRelatedCommands.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@
339339
"-1"
340340
]
341341
},
342-
"ResponseBody": "{\r\n \"keys\": [\r\n {\r\n \"keyName\": \"key1\",\r\n \"value\": \"CJX1teGT3yWe7olcifoor0RuAlnvF2EZepe4Hb7UlT3csFPlT1EszM8MxNQOC0Y4HyTECxQEkvCd+ASt4wmsPw==\",\r\n \"permissions\": \"FULL\"\r\n },\r\n {\r\n \"keyName\": \"key2\",\r\n \"value\": \"e+QvEC3RVd8mFJbr0IQ101CrhSaLrOMF6xApm8NAzCoSPzzHbgAEs5obHmZOVdYbsRx68jrYb4AJ+AStGxE9pQ==\",\r\n \"permissions\": \"FULL\"\r\n }\r\n ]\r\n}",
342+
"ResponseBody": "{\r\n \"keys\": [\r\n {\r\n \"keyName\": \"key1\",\r\n \"value\": \"Sanitized\",\r\n \"permissions\": \"FULL\"\r\n },\r\n {\r\n \"keyName\": \"key2\",\r\n \"value\": \"Sanitized\",\r\n \"permissions\": \"FULL\"\r\n }\r\n ]\r\n}",
343343
"StatusCode": 200
344344
},
345345
{
@@ -435,7 +435,7 @@
435435
"2139"
436436
]
437437
},
438-
"RequestBody": "{\r\n \"location\": \"Japan East\",\r\n \"properties\": {\r\n \"clusterVersion\": \"4.0\",\r\n \"osType\": \"Linux\",\r\n \"clusterDefinition\": {\r\n \"kind\": \"Spark\",\r\n \"componentVersion\": {},\r\n \"configurations\": {\r\n \"gateway\": {\r\n \"restAuthCredential.isEnabled\": \"true\",\r\n \"restAuthCredential.username\": \"admin\",\r\n \"restAuthCredential.password\": \"YourPw!00953\"\r\n },\r\n \"core-site\": {}\r\n }\r\n },\r\n \"computeProfile\": {\r\n \"roles\": [\r\n {\r\n \"name\": \"headnode\",\r\n \"targetInstanceCount\": 2,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"STANDARD_E8_V3\"\r\n },\r\n \"osProfile\": {\r\n \"linuxOperatingSystemProfile\": {\r\n \"username\": \"sshuser\",\r\n \"password\": \"YourPw!00953\"\r\n }\r\n }\r\n },\r\n {\r\n \"name\": \"workernode\",\r\n \"targetInstanceCount\": 3,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"STANDARD_E8_V3\"\r\n },\r\n \"osProfile\": {\r\n \"linuxOperatingSystemProfile\": {\r\n \"username\": \"sshuser\",\r\n \"password\": \"YourPw!00953\"\r\n }\r\n }\r\n },\r\n {\r\n \"name\": \"zookeepernode\",\r\n \"targetInstanceCount\": 3,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"STANDARD_A2_V2\"\r\n },\r\n \"osProfile\": {\r\n \"linuxOperatingSystemProfile\": {\r\n \"username\": \"sshuser\",\r\n \"password\": \"YourPw!00953\"\r\n }\r\n }\r\n }\r\n ]\r\n },\r\n \"storageProfile\": {\r\n \"storageaccounts\": [\r\n {\r\n \"name\": \"storagepstest595.blob.core.windows.net\",\r\n \"isDefault\": true,\r\n \"container\": \"hdi-ps-test5912\",\r\n \"key\": \"CJX1teGT3yWe7olcifoor0RuAlnvF2EZepe4Hb7UlT3csFPlT1EszM8MxNQOC0Y4HyTECxQEkvCd+ASt4wmsPw==\",\r\n \"resourceId\": \"/subscriptions/964c10bb-8a6c-43bc-83d3-6b318c6c7305/resourceGroups/group-ps-test8078/providers/Microsoft.Storage/storageAccounts/storagepstest595\"\r\n }\r\n ]\r\n },\r\n \"minSupportedTlsVersion\": \"1.2\"\r\n }\r\n}",
438+
"RequestBody": "{\r\n \"location\": \"Japan East\",\r\n \"properties\": {\r\n \"clusterVersion\": \"4.0\",\r\n \"osType\": \"Linux\",\r\n \"clusterDefinition\": {\r\n \"kind\": \"Spark\",\r\n \"componentVersion\": {},\r\n \"configurations\": {\r\n \"gateway\": {\r\n \"restAuthCredential.isEnabled\": \"true\",\r\n \"restAuthCredential.username\": \"admin\",\r\n \"restAuthCredential.password\": \"YourPw!00953\"\r\n },\r\n \"core-site\": {}\r\n }\r\n },\r\n \"computeProfile\": {\r\n \"roles\": [\r\n {\r\n \"name\": \"headnode\",\r\n \"targetInstanceCount\": 2,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"STANDARD_E8_V3\"\r\n },\r\n \"osProfile\": {\r\n \"linuxOperatingSystemProfile\": {\r\n \"username\": \"sshuser\",\r\n \"password\": \"YourPw!00953\"\r\n }\r\n }\r\n },\r\n {\r\n \"name\": \"workernode\",\r\n \"targetInstanceCount\": 3,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"STANDARD_E8_V3\"\r\n },\r\n \"osProfile\": {\r\n \"linuxOperatingSystemProfile\": {\r\n \"username\": \"sshuser\",\r\n \"password\": \"YourPw!00953\"\r\n }\r\n }\r\n },\r\n {\r\n \"name\": \"zookeepernode\",\r\n \"targetInstanceCount\": 3,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"STANDARD_A2_V2\"\r\n },\r\n \"osProfile\": {\r\n \"linuxOperatingSystemProfile\": {\r\n \"username\": \"sshuser\",\r\n \"password\": \"YourPw!00953\"\r\n }\r\n }\r\n }\r\n ]\r\n },\r\n \"storageProfile\": {\r\n \"storageaccounts\": [\r\n {\r\n \"name\": \"storagepstest595.blob.core.windows.net\",\r\n \"isDefault\": true,\r\n \"container\": \"hdi-ps-test5912\",\r\n \"key\": \"Sanitized\",\r\n \"resourceId\": \"/subscriptions/964c10bb-8a6c-43bc-83d3-6b318c6c7305/resourceGroups/group-ps-test8078/providers/Microsoft.Storage/storageAccounts/storagepstest595\"\r\n }\r\n ]\r\n },\r\n \"minSupportedTlsVersion\": \"1.2\"\r\n }\r\n}",
439439
"ResponseHeaders": {
440440
"Cache-Control": [
441441
"no-cache"
@@ -4335,4 +4335,4 @@
43354335
"Variables": {
43364336
"SubscriptionId": "964c10bb-8a6c-43bc-83d3-6b318c6c7305"
43374337
}
4338-
}
4338+
}

src/HDInsight/HDInsight.Test/SessionRecords/Commands.HDInsight.Test.ScenarioTests.HDInsightClusterTests/TestCreateClusterWithCustomAmbariDatabase.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@
339339
"-1"
340340
]
341341
},
342-
"ResponseBody": "{\r\n \"keys\": [\r\n {\r\n \"keyName\": \"key1\",\r\n \"value\": \"xSZTa2Kp+bMg7mQ2lzxDZ+q2BpKbT2Fz44rOUvaM22ZCAnqW1XiqkbSki6R6H8NO0AWAlDXEJ+RG+AStBQEcUA==\",\r\n \"permissions\": \"FULL\"\r\n },\r\n {\r\n \"keyName\": \"key2\",\r\n \"value\": \"OEk289EvL5HLo9g1aomujotE+uyULiDo9etfcIILwxoRKmeCqTWJsLZnCkOTIinC0VFmAUkt5ujx+AStpCL6iQ==\",\r\n \"permissions\": \"FULL\"\r\n }\r\n ]\r\n}",
342+
"ResponseBody": "{\r\n \"keys\": [\r\n {\r\n \"keyName\": \"key1\",\r\n \"value\": \"Sanitized\",\r\n \"permissions\": \"FULL\"\r\n },\r\n {\r\n \"keyName\": \"key2\",\r\n \"value\": \"Sanitized\",\r\n \"permissions\": \"FULL\"\r\n }\r\n ]\r\n}",
343343
"StatusCode": 200
344344
},
345345
{
@@ -435,7 +435,7 @@
435435
"2344"
436436
]
437437
},
438-
"RequestBody": "{\r\n \"location\": \"Japaneast\",\r\n \"properties\": {\r\n \"clusterVersion\": \"4.0\",\r\n \"osType\": \"Linux\",\r\n \"clusterDefinition\": {\r\n \"kind\": \"Spark\",\r\n \"componentVersion\": {},\r\n \"configurations\": {\r\n \"gateway\": {\r\n \"restAuthCredential.isEnabled\": \"true\",\r\n \"restAuthCredential.username\": \"admin\",\r\n \"restAuthCredential.password\": \"YourPw!00953\"\r\n },\r\n \"core-site\": {},\r\n \"ambari-conf\": {\r\n \"database-server\": \"testpssqlserver.database.windows.net\",\r\n \"database-name\": \"ambardb2\",\r\n \"database-user-name\": \"lyc-admin\",\r\n \"database-user-password\": \"Password1.\"\r\n }\r\n }\r\n },\r\n \"computeProfile\": {\r\n \"roles\": [\r\n {\r\n \"name\": \"headnode\",\r\n \"targetInstanceCount\": 2,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"STANDARD_E8_V3\"\r\n },\r\n \"osProfile\": {\r\n \"linuxOperatingSystemProfile\": {\r\n \"username\": \"sshuser\",\r\n \"password\": \"YourPw!00953\"\r\n }\r\n }\r\n },\r\n {\r\n \"name\": \"workernode\",\r\n \"targetInstanceCount\": 3,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"STANDARD_E8_V3\"\r\n },\r\n \"osProfile\": {\r\n \"linuxOperatingSystemProfile\": {\r\n \"username\": \"sshuser\",\r\n \"password\": \"YourPw!00953\"\r\n }\r\n }\r\n },\r\n {\r\n \"name\": \"zookeepernode\",\r\n \"targetInstanceCount\": 3,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"STANDARD_A2_V2\"\r\n },\r\n \"osProfile\": {\r\n \"linuxOperatingSystemProfile\": {\r\n \"username\": \"sshuser\",\r\n \"password\": \"YourPw!00953\"\r\n }\r\n }\r\n }\r\n ]\r\n },\r\n \"storageProfile\": {\r\n \"storageaccounts\": [\r\n {\r\n \"name\": \"storagepstest4916.blob.core.windows.net\",\r\n \"isDefault\": true,\r\n \"container\": \"hdi-ps-test15\",\r\n \"key\": \"xSZTa2Kp+bMg7mQ2lzxDZ+q2BpKbT2Fz44rOUvaM22ZCAnqW1XiqkbSki6R6H8NO0AWAlDXEJ+RG+AStBQEcUA==\",\r\n \"resourceId\": \"/subscriptions/964c10bb-8a6c-43bc-83d3-6b318c6c7305/resourceGroups/group-ps-test6055/providers/Microsoft.Storage/storageAccounts/storagepstest4916\"\r\n }\r\n ]\r\n }\r\n }\r\n}",
438+
"RequestBody": "{\r\n \"location\": \"Japaneast\",\r\n \"properties\": {\r\n \"clusterVersion\": \"4.0\",\r\n \"osType\": \"Linux\",\r\n \"clusterDefinition\": {\r\n \"kind\": \"Spark\",\r\n \"componentVersion\": {},\r\n \"configurations\": {\r\n \"gateway\": {\r\n \"restAuthCredential.isEnabled\": \"true\",\r\n \"restAuthCredential.username\": \"admin\",\r\n \"restAuthCredential.password\": \"YourPw!00953\"\r\n },\r\n \"core-site\": {},\r\n \"ambari-conf\": {\r\n \"database-server\": \"testpssqlserver.database.windows.net\",\r\n \"database-name\": \"ambardb2\",\r\n \"database-user-name\": \"lyc-admin\",\r\n \"database-user-password\": \"Password1.\"\r\n }\r\n }\r\n },\r\n \"computeProfile\": {\r\n \"roles\": [\r\n {\r\n \"name\": \"headnode\",\r\n \"targetInstanceCount\": 2,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"STANDARD_E8_V3\"\r\n },\r\n \"osProfile\": {\r\n \"linuxOperatingSystemProfile\": {\r\n \"username\": \"sshuser\",\r\n \"password\": \"YourPw!00953\"\r\n }\r\n }\r\n },\r\n {\r\n \"name\": \"workernode\",\r\n \"targetInstanceCount\": 3,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"STANDARD_E8_V3\"\r\n },\r\n \"osProfile\": {\r\n \"linuxOperatingSystemProfile\": {\r\n \"username\": \"sshuser\",\r\n \"password\": \"YourPw!00953\"\r\n }\r\n }\r\n },\r\n {\r\n \"name\": \"zookeepernode\",\r\n \"targetInstanceCount\": 3,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"STANDARD_A2_V2\"\r\n },\r\n \"osProfile\": {\r\n \"linuxOperatingSystemProfile\": {\r\n \"username\": \"sshuser\",\r\n \"password\": \"YourPw!00953\"\r\n }\r\n }\r\n }\r\n ]\r\n },\r\n \"storageProfile\": {\r\n \"storageaccounts\": [\r\n {\r\n \"name\": \"storagepstest4916.blob.core.windows.net\",\r\n \"isDefault\": true,\r\n \"container\": \"hdi-ps-test15\",\r\n \"key\": \"Sanitized\",\r\n \"resourceId\": \"/subscriptions/964c10bb-8a6c-43bc-83d3-6b318c6c7305/resourceGroups/group-ps-test6055/providers/Microsoft.Storage/storageAccounts/storagepstest4916\"\r\n }\r\n ]\r\n }\r\n }\r\n}",
439439
"ResponseHeaders": {
440440
"Cache-Control": [
441441
"no-cache"
@@ -6110,4 +6110,4 @@
61106110
"Variables": {
61116111
"SubscriptionId": "964c10bb-8a6c-43bc-83d3-6b318c6c7305"
61126112
}
6113-
}
6113+
}

0 commit comments

Comments
 (0)