Skip to content

[v10] Add Suggested Labels to Provision Tokens (#15114)#15319

Merged
marcoandredinis merged 1 commit into
branch/v10from
marco/v10/discover_label_join_token
Aug 8, 2022
Merged

[v10] Add Suggested Labels to Provision Tokens (#15114)#15319
marcoandredinis merged 1 commit into
branch/v10from
marco/v10/discover_label_join_token

Conversation

@marcoandredinis
Copy link
Copy Markdown
Contributor

@marcoandredinis marcoandredinis commented Aug 8, 2022

Backport of #15114

@marcoandredinis marcoandredinis changed the title [v10Add Suggested Labels to Provision Tokens (#15114) [v10] Add Suggested Labels to Provision Tokens (#15114) Aug 8, 2022
@marcoandredinis marcoandredinis force-pushed the marco/v10/discover_label_join_token branch from 795ad99 to 47df5fc Compare August 8, 2022 20:28
@marcoandredinis marcoandredinis marked this pull request as ready for review August 8, 2022 20:29
@github-actions github-actions Bot requested a review from espadolini August 8, 2022 20:29
@github-actions github-actions Bot requested review from Joerger, kimlisa and r0mant August 8, 2022 20:29
@marcoandredinis marcoandredinis force-pushed the marco/v10/discover_label_join_token branch from 47df5fc to b8f83fa Compare August 8, 2022 21:57
@marcoandredinis marcoandredinis enabled auto-merge (squash) August 8, 2022 21:58
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)
@marcoandredinis marcoandredinis force-pushed the marco/v10/discover_label_join_token branch from b8f83fa to 221481b Compare August 8, 2022 22:36
@marcoandredinis marcoandredinis merged commit 6f19959 into branch/v10 Aug 8, 2022
@marcoandredinis marcoandredinis deleted the marco/v10/discover_label_join_token branch August 9, 2022 06:59
@marcoandredinis marcoandredinis added the discover Issues related to Teleport Discover label Aug 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport discover Issues related to Teleport Discover

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants