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

[Server] Turn into executable #22

Open
jonnyhyman opened this issue May 21, 2021 · 1 comment
Open

[Server] Turn into executable #22

jonnyhyman opened this issue May 21, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@jonnyhyman
Copy link
Owner

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
Copy link
Owner Author

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 jonnyhyman added the enhancement New feature or request label Aug 11, 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