ResolveCollaboration icon indicating copy to clipboard operation
ResolveCollaboration copied to clipboard

[Server] Turn into executable

Open jonnyhyman opened this issue 3 years ago • 1 comments

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

jonnyhyman avatar May 21 '21 20:05 jonnyhyman

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.

jonnyhyman avatar May 23 '21 21:05 jonnyhyman