-
Notifications
You must be signed in to change notification settings - Fork 66
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
Feature: Remove the need for elevated permissions #217
Comments
@Eneuman sounds like a good idea. Endpoint manager does other things like allocate IP's, free ports, kill processes which might need admin access still but to start with instead of editing the host files you are proposing to replace it with reverse proxy. If I understand correctly endpoint manager would spin up a YARP with rules (dns names, ports, ip's) but I didn't understand the part why would we need the launcher profile? Thank you for bringing up this idea :) |
@hsubramanianaks yes, use YARP as a reverse proxy to route traffic. The environment variable controlling the proxy settings need to be limited to the process being debugged. The only way I know of (so far :) ) is by setting it using code or set it in the launcher profile. I think it should be possible to work around the other use cases where elevated permissions are needed by allowing the user to override certain settings using the config file, like ports to be used. Is allocation of IP-addresses needed if we use a revers proxy? I'm thinking about sending everything to the local host IP on a specific port and having YARP sort it out by host name :) These are just ideas and I don't have enough knowledge yet to know if this will work or not so any insight you have regarding this is highly appreciated. |
@Eneuman I was thinking about this and what if we do allocateIP's, freeIP's, edit host files, etc. that requires admin access in a container which locally running in user's machine so that admins access is not required and as well we can combine your YARP proxy idea in this container to redirect the traffic using the rules or we can also use |
@hsubramanianaks Interesting idea :) Are you thinking about using docker to run the local container? Can docker be run without elevated privileges? My knowledge in running docker locally is limited :(. |
One limitation I have found so far in my suggestion is that YARP only supports routing for Http/Https and Grpc, but maybe that's enough. |
@Eneuman are you still interested in implementing this feature ? Please let us know. Thank you. |
@elenavillamil @hsubramanianaks
I have been thinking of ways to remove the need for running as administrator and wanted to run my idea by you before going futher.
As I understand it, VS needs to run as administrator to be able to change the HOSTS file when setting up the connection to K8.
In .Net Core 3.0 they changed the HttpClient to respect the proxy settings from environment variables.
So maby this will work now:
What do you think?
The text was updated successfully, but these errors were encountered: