-
Notifications
You must be signed in to change notification settings - Fork 16
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
Show stderr when error occurs on command execution #39
Show stderr when error occurs on command execution #39
Conversation
Checked commit https://github.com/isimluk/awesome_spawn/commit/5c53830b9613f0f6edba9cb02a569deef1bca428 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0 |
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.
LGTM 👍
@jrafanie Please review |
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.
LGTM, we might have suppressed the error in case there were passwords or something else logged or printed from standard error. It's probably better to just fix those rare occasions where we need to sanitize the output.
Do we need to truncate the standard error output in case it's really long? If needed, we can do a followup PR.
Thanks!! Note that if the password is written to stderr, it is not our bug. The problem would be in the tool we run. |
I'm less concerned about passwords specifically than I am about other information, such as IP addresses on STDERR. |
Yeah, it's really anything containing sensitive information that you may not want to capture from STDERR. But, it feels like we shouldn't cripple our ability to diagnose problems by not capturing anything so I'd rather we try to have clients sanitize command STDERR data when they consume this. |
Awesome spawn is used to run external utilities. Sometimes rare error occurs, then we through exception like this:
Usually there is an stderr that is contains useful details that could help admins, operators, supporters, developers and qa. Let's publish this stderr to give quick clue.