You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
As a cross-platform developer I need connect from a Mac to a Linux host when developing software. Root accounts are disabled by default on all linux machines.
However, when developing software that must run as root I cannot run and debug the code as that user. This means I need to enable the root account on the linux hosts and connect as that user when developing software. This presents a significant security risk.
Describe the solution you'd like
The ability to configure a sudo when running/debugging code.
Describe alternatives you've considered
Enabling the root account on the remote host and connecting as root.
Additional context
None.
The text was updated successfully, but these errors were encountered:
In order to debug as a root, the debugger (dlv) must run as a root. Nether dlv, nor this extension aims to offer privilege escalation solutions.
In remote debugging, dlv on the remote machine is externally managed, not by this extension, so it's out of scope. Moreover, this extension just communicates with the dlv on the remote host with DAP, which is not designed for security. So I am afraid this extension is not the right layer for privilege escalation.
To debug as a root, as you already know, run dlv on the remote machine as a root (you may also need to set --only-same-user=false if the remote host is Linux) but protect access to the dlv server & the remote machine appropriately using proven security technologies.
For local debugging, this is tracked in #558. But, I want to emphasize that debugging as a root still needs to be done with great care.
@hyangah if I'm understanding your comment, it sounds like there is nothing actionable for us here, as there is nothing we can do about remote debugging and local debugging is covered by #558. Closing -- please reopen if I missed something.
Is your feature request related to a problem? Please describe.
As a cross-platform developer I need connect from a Mac to a Linux host when developing software. Root accounts are disabled by default on all linux machines.
However, when developing software that must run as root I cannot run and debug the code as that user. This means I need to enable the root account on the linux hosts and connect as that user when developing software. This presents a significant security risk.
Describe the solution you'd like
The ability to configure a sudo when running/debugging code.
Describe alternatives you've considered
Enabling the root account on the remote host and connecting as root.
Additional context
None.
The text was updated successfully, but these errors were encountered: