Files
teleport/lib
Marco André Dinis 117d7d2d40 Add Suggested Labels to Provision Tokens (#15114)
For Teleport Discover, the user will be able to test connecting to a
resource right after adding it.

The flow should look like this:
- User selects the resource type - in this case Server/Nodes
- WebUI generates a new Token
- WebUI shows the `sudo bash .../<token>/install.sh` to the user
- When the user runs this command, and assuming everything works out,
  the WebUI should be able to receive the Server/Node that was
  generated from that specific Token.

To achieve this, here's a more detailed flow, which this PR implements
- User selects the resource type - in this case Server/Nodes
- WebUI generates a new Token
  This generates a Provision Token which contains a RefResourceID
  WebUI receives back that ID
- WebUI shows the `sudo bash .../<token>/install.sh` to the user
  This generates a script which includes setting the labels as part of
  the `teleport configure` command:
  `$ teleport configure ... --labels teleport.internal/resource-id=<refResourceID> ...`
- User runs the provided command on the target host
- WebUI should be able to query the Servers/Nodes which contain that
  specific `<resource-id>` and allow the user to connect to it.

Demo:
![image](https://user-images.githubusercontent.com/689271/182440692-97c75ae0-1e14-4f76-b9ff-d41060c73ed0.png)
2022-08-08 17:06:41 +00:00
..
2022-07-14 10:51:23 +00:00
2022-07-15 00:16:56 +00:00
2022-04-21 11:48:04 -06:00
2021-10-19 09:21:55 -06:00
2022-06-08 18:12:45 +00:00
2022-07-26 16:35:42 +00:00
2021-10-19 14:00:24 -04:00
2021-10-19 09:21:55 -06:00
2022-08-06 03:39:05 +00:00
2022-08-04 22:14:37 +00:00
2022-06-08 18:12:45 +00:00
2022-08-03 19:44:54 +00:00