-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-11354] [Web UI] Expose custom log4j files on executor page for standalone cluster. #9321
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
|
@yongjiaw I believe the changes here actually have security implications. Previously the viewers could only read |
|
ok to test |
|
Test build #47707 has finished for PR 9321 at commit
|
|
@andrewor14 regarding the security concern, yes, I think inside LogPage.scala which is run with the worker process, it's hardcoded to only read from the workerDir, and one can already temper with appId and executorId to potentially read the log from other apps. But only the file "stdout" and "stderr" are allowed to be read. |
What if I have some plain text secret (e.g. private key) in some file? Anyone with access to the UI will be able to read it. |
|
I agree that it's not okay to allow arbitrary file reads inside of the worker directory. What might be okay is a configuration mechanism which lets users register specific custom log files to be displayed in the UI (e.g. an explicit whitelist) |
|
Ping @yongjiaw, could you please either close this pull request or address our comments? What do you think about adding an explicit whitelisting mechanism? |
|
I agree, a whitelisting mechanism is preferable. Let's close this PR for now since it's inactive and re-open it later with a different approach if there is still interest. |
|
yea, explicitly registering custom log files makes sense. It's good to close it for now. |
Expose custom log4j files in Spark driver UI's executor page. Only works for standalone cluster (screenshot attached).