serokell / deploy-rs

A simple multi-profile Nix-flake deploy tool.
Other
1.22k stars 100 forks source link

Support for minimising required privileges when activating target machine #279

Open hauleth opened 2 weeks ago

hauleth commented 2 weeks ago

Currently activation script will be ran using its full path, which mean, that there is no feasible way to limit what script can be ran by sudo using sudoers file. It would be interesting to somehow support activating machine without such requirement, as passwordless sudo for some user may be non-safe.

Possible solutions I see are:

My goal there would be to allow user to run activation script with higher privileges, but only activation script.