-
Notifications
You must be signed in to change notification settings - Fork 9.2k
YARN-10814. Fallback to RandomSecretProvider if the secret file is empty #3206
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
…pty. The rest endpoint would be unusable with an empty secret file (throwing IllegalArgumentExceptions). Any IO error would have resulted in the same fallback path. Change-Id: Ieb147a0f6f8f628cdafb3c987d0c9a440fa8c6d0
|
🎊 +1 overall
This message was automatically generated. |
…e is empty. Change-Id: I83d828915e7763e02d30f48f923e2d8ed2b7d146
|
🎊 +1 overall
This message was automatically generated. |
9uapaw
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.
Thank you for the patch @tomicooler. I have found some minor nit, overall it looks good to me!
...uth/src/main/java/org/apache/hadoop/security/authentication/server/AuthenticationFilter.java
Outdated
Show resolved
Hide resolved
...src/test/java/org/apache/hadoop/security/authentication/server/TestAuthenticationFilter.java
Show resolved
Hide resolved
...c/test/java/org/apache/hadoop/security/authentication/util/TestFileSignerSecretProvider.java
Outdated
Show resolved
Hide resolved
…e is empty. Change-Id: Ib92d2daa687cccde8a9d202b647679f55ea126a5
…e is empty. Change-Id: Id54862b6a4ce88ca7b09515ab7399069468c04a2
…e is empty. Change-Id: I9cd066e80076b3501cbf7f9e74994a3b9388b033
|
💔 -1 overall
This message was automatically generated. |
Change-Id: Ibbfc042d4979bcb72eba799303ee56b67d5d0396
|
🎊 +1 overall
This message was automatically generated. |
|
Thanks @tomicooler for the update. Latest revision looks good to me, +1 non-binding. |
shuzirra
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.
@tomicooler thank you for working on this, nice clean solution, LGTM+1.
...uth/src/main/java/org/apache/hadoop/security/authentication/server/AuthenticationFilter.java
Show resolved
Hide resolved
...c/test/java/org/apache/hadoop/security/authentication/util/TestFileSignerSecretProvider.java
Show resolved
Hide resolved
…pty (apache#3206) The rest endpoint would be unusable with an empty secret file (throwing IllegalArgumentExceptions). Any IO error would have resulted in the same fallback path. Co-authored-by: Tamas Domok <tdomok@cloudera.com>
…t file is empty (apache#3206) The rest endpoint would be unusable with an empty secret file (throwing IllegalArgumentExceptions). Any IO error would have resulted in the same fallback path. Co-authored-by: Tamas Domok <tdomok@cloudera.com> (cherry picked from commit 798a083) Change-Id: I4eb41064a86be3d8e8a1e7e9abe40841d1680cf1
…pty.
The rest endpoint would be unusable with an empty secret file
(throwing IllegalArgumentExceptions).
Any IO error would have resulted in the same fallback path.
Change-Id: Ieb147a0f6f8f628cdafb3c987d0c9a440fa8c6d0
NOTICE
Please create an issue in ASF JIRA before opening a pull request,
and you need to set the title of the pull request which starts with
the corresponding JIRA issue number. (e.g. HADOOP-XXXXX. Fix a typo in YYY.)
For more details, please see https://cwiki.apache.org/confluence/display/HADOOP/How+To+Contribute