ResolveCollaboration
ResolveCollaboration copied to clipboard
[Server] Turn into executable
macOS:
- move all sudo commands to subprocess calls, which ask for sudo password each time, OR:
- capture computer password at startup, hold throughout, use
echo "password" | sudo -S ...
to run commands as sudo automatically. but then we're holding computer passwords in memory. dodgy?
Windows:
- require uac-admin on startup (doable with pyinstaller)
- test that all privileges are actually given
Starting with macOS...
The sudo required operations are:
- Restart PostgreSQL Server
- All Wireguard commands
wg up
,wg down
- Wireguard firewall config commands using
pctl
It looks like the elevate
package will do everything we need for every platform.