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

Way to provide links to specific hosts in the web UI #1511

Closed
aashley opened this issue Dec 14, 2017 · 7 comments
Closed

Way to provide links to specific hosts in the web UI #1511

aashley opened this issue Dec 14, 2017 · 7 comments

Comments

@aashley
Copy link

aashley commented Dec 14, 2017

We use teleport to manage nodes in our distributed systems, I'd like to provide a way to link from our management interface direct to the teleport web interface for a specific node to assist our support staff.

From our side we know the name of the node and can figure out the name of the cluster it's in, is there a way to generate a URL that will open the teleport Web UI on a console for that node, or to the list of nodes within that cluster?

@alex-kovoy
Copy link
Contributor

alex-kovoy commented Dec 14, 2017

You can construct an URL to a particular node terminal with the following:
https://host:3080/web/cluster/:clusterName/node/:nodeId/:login

where :clusterName is your cluster name, :nodeId is your node id, and :login is a login name.

WebUI will create a new SSH session with above parameters.

I suggest to open a terminal in Web UI and examine\play with the URL. You can also use the existing session URL to send it others to share your existing session.

@klizhentas
Copy link
Contributor

klizhentas commented Dec 14, 2017

I would leave this ticket open as an opportunity to improve the user experience, e.g. there is an icon "get shareable link" for Google docs. I think it will be cool if we added something similar to that to promote session sharing. @kontsevoy what do you think?

@klizhentas klizhentas reopened this Dec 14, 2017
@aashley
Copy link
Author

aashley commented Dec 15, 2017

@alex-kovoy was this fixed in 2.3 or later? Playing in the web UI is where I went straight away however 2.2 uses an internal guid for the nodeId and does not accept the hostname as a nodeId

@alex-kovoy
Copy link
Contributor

in Web UI, you can connect to SSH node via hostname starting from 2.3.0.

@aashley
Copy link
Author

aashley commented Dec 15, 2017

I'm not trying to connect to a SSH node, I'm trying to connect to a teleport node.

As per your note I generate a URL:
https://teleport:3080/web/cluster/od-server-00183/node/od-server-00183/root

This gives a console with disconnected at the top of the screen and nothing happens.

The links in the teleport UI are:
https://teleport:3080/web/cluster/od-server-00183/node/bb757478-7d26-48db-9d77-51cd71cc6e48/root

The node ID used in teleport appears to be an internal guid which I can't retrieve to generate a link

@alex-kovoy
Copy link
Contributor

Sorry, we added a hostname resolution for a terminal node in 2.3.5 release.

@kontsevoy
Copy link
Contributor

@aashley yes, this works in the newer Teleport versions, but to make it more obvious, we've created #1514

Closing....

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

4 participants