-
Notifications
You must be signed in to change notification settings - Fork 9.2k
HADOOP-17618. ABFS: Partially obfuscate SAS object IDs in Logs #2845
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
|
this security/privacy issues, or just due diligence? |
|
Hi @steveloughran this is for privacy (no issue yet); the values masked identify the security principal (user/app) |
| public void maskSASObjectIDs() { | ||
| int oidStartIdx, ampIdx, oidEndIndex, qpStrIdx; | ||
| for (String qpKey : SAS_OID_PARAM_KEYS) { | ||
| qpStrIdx = maskedUrl.indexOf('&' + qpKey); |
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.
this.maskedUrl to be consistent with rest of file
| } | ||
|
|
||
| public void maskSASObjectIDs() { | ||
| int oidStartIdx, ampIdx, oidEndIndex, qpStrIdx; |
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.
move to point of first use
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.
done
...ols/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/services/AbfsHttpOperation.java
Outdated
Show resolved
Hide resolved
|
TEST RESULTS HNS Account Location: East US 2 |
...ols/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/services/AbfsHttpOperation.java
Show resolved
Hide resolved
| if (maskedEncodedUrl != null) { | ||
| return maskedEncodedUrl; | ||
| } | ||
| return UriUtils.encodedUrlStr(getMaskedUrl()); |
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.
assign the value to this.maskedEncodedUrl, then return the same.
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.
done
bilaharith
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.
Please check the comments
|
TEST RESULTS HNS Account Location: East US 2 |
hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/utils/UriUtils.java
Outdated
Show resolved
Hide resolved
hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/utils/UriUtils.java
Outdated
Show resolved
Hide resolved
hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/utils/UriUtils.java
Outdated
Show resolved
Hide resolved
hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/utils/UriUtils.java
Show resolved
Hide resolved
sumangala-patki
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.
check comments
|
TEST RESULTS HNS Account Location: East US 2 JIRA to track timeout failure: ITestAbfsReadWriteAndSeek |
|
Hi @steveloughran, thanks for the review. Have addressed the comments, please take a look. Thank you! |
steveloughran
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.
I'm happy with this.
@sumangala-patki -can you rebase/merge with trunk and push up for yetus to recheck?
+1 pending yetus being happy
|
TEST RESULTS HNS Account Location: East US 2 JIRAs to track failures: Appendblob lease, TestAbfsClientThrottlingAnalyzer, StreamOps |
|
thanks, merged to trunk. Do a test run after cherrypicking to 3.3 and we can merge it there too |
Contributed by Sumangala Patki (cherry picked from commit 3450522)
…e#2845) Contributed by Sumangala Patki
Delegation SAS tokens are created using various parameters for specifying details such as permissions and validity. The requests are logged, along with values of all the query parameters. This change will partially mask values logged for the following object IDs representing the security principal:
skoid,saoid,suoid