Skip to content
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

#RFE - Can we execute certain set of commands when an event occurs rather than generating the sosreport #34

Open
amey70404 opened this issue Dec 3, 2020 · 1 comment

Comments

@amey70404
Copy link

When analyzing an issue we sometimes require output of certain commands which are not included in sosreport, can we take this as a RFE?
If there is some log (event) then the reaction should be the execution of a certain set of commands as suggested by the support engineer.

@TurboTurtle
Copy link
Owner

While I understand the desire for something like this, I'm extremely wary of providing for arbitrary command execution as an action. Two parts to this:

  1. First, there's the user experience part to consider - current actions are built in such a way that they can't deadlock the rig process (barring some other major issue with the system). This can't be said for executing user-providing scripts/ad-hoc commands. Second, there's the security concerns to consider - we don't allow shell scripting to be passed to E.G. the sosreport action for this reason, but it'd be downright required for an exec action or somsuch. Then there's the consideration that rig is not designed to make any changes to a system in response to an event - only collect diagnostic data. If we allow arbitrary command execution or script execution, we have no way of providing that guarantee.

  2. If there is diagnostic data that is missing from sosreport, it would be best to open an RFE to have sos collect that data.

All that said I'm not completely opposed to an such an action at some point - but we'd need to build it in such a way that we don't risk opening ourselves to greater problems than we're already trying to solve. If there's a proposal about how that can be done, I'm all ears.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants