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

Console and Exec not proxied via dashboard #62

Open
JohnnyElvis opened this issue Jan 6, 2023 · 1 comment
Open

Console and Exec not proxied via dashboard #62

JohnnyElvis opened this issue Jan 6, 2023 · 1 comment

Comments

@JohnnyElvis
Copy link

When trying to execute "Console" or "Exec" to a VM or container the request is sent towards a node instead of being proxied via lxd-dashboard.

Although this issue is not of technical nature it causes a potential security risk if audited, since "end user" requires connection to LXD API and therefore defeating RBAC if "end user" has malicious intentions and additional know how.

Issue examined in version 3.6. Previous versions were not tested

@matthewalanpenning
Copy link
Contributor

In the current implementation of exec and console you are correct the user's computer will need access to the LXD API endpoints on the LXD host. The external address/port options on the hosts page were added to allow users to use to configure different traffic options for connecting to the LXD API. A user still needs to obtain the websocket secret through the dashboard before a websocket connection can be established to the LXD host, preventing anyone from being able to connect without that secret.

I do prefer proxying the connection through the dashboard, that would make it a lot easier when dealing with routing traffic through firewalls, etc. Now that I am porting the software to Python there are a few modules that will make the option a lot easier for me to implement this. I have it on my list of things to incorporate in this rewrite of the software.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants