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

run command: implement --userdata flag #39

Open
radekg opened this issue Mar 22, 2021 · 0 comments
Open

run command: implement --userdata flag #39

radekg opened this issue Mar 22, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@radekg
Copy link
Member

radekg commented Mar 22, 2021

Implement --userdata flag and follow the EC2 style for user data.

When resolving the flag, check if:

  • starts with a shebang like string, if yes, assume it's an inline command, embed the execution into the vminit service
  • if no shebang:
    • check if value starts with http:// or https://, if so, vminit will download and execute a remote program
    • check if the value is a host local path, require a specific path prefix and use filepath.Clean to make sure no host secret data can be put in the VM, read the file and put on the VM, vminit to execute the command
    • if none of the above, put the data as-is at a specific location in the VM, vminit will do nothing
@radekg radekg added the enhancement New feature or request label Mar 22, 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