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

Provide a pluggable executor for tasks #7

Open
rtyler opened this issue Jan 19, 2021 · 0 comments
Open

Provide a pluggable executor for tasks #7

rtyler opened this issue Jan 19, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@rtyler
Copy link
Owner

rtyler commented Jan 19, 2021

I'm thinking a lot more about how scripts are invoked on machines. Perhaps rather than providing transport-level privilege escalation via #2, instead the "shell executor" shouldn't just be a dumb /bin/sh but rather something configurable at run time.

  • ShellExecutor (/bin/sh scriptfile)
  • SudoExecutor (sudo scriptfile)
  • JailShell ([sudo] jexec scriptfile)

Each of these should probably have some form of options, but I don't believe they need to necessarily be options specified at task time 🤔

(thinking out loud)

Perhaps a plan should be able to define the executor and configuration for it. For example, if I have a plan that sets up PostgreSQL in a jail, the plan would specify the details about the jail for jexec.

@rtyler rtyler added the enhancement New feature or request label Jan 19, 2021
@rtyler rtyler self-assigned this Jan 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant