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

Make the Adding Nodes guide more usable #12504

Merged
merged 2 commits into from
Jun 1, 2022

Conversation

ptgott
Copy link
Contributor

@ptgott ptgott commented May 6, 2022

See: #11841

This change makes the Adding Nodes guide more usable for self-hosted
clusters based on manual testing.

  • Make it clearer that you can use tctl on your local machine with
    a self-hosted cluster, including changing the tctl.mdx partial. For
    convenience, all instructions in this guide assume you are using
    tctl from a local machine.

  • Misc. minor edits for clarity.

  • Move different methods of using tokens into Details boxes, since
    following the guide only requires the first "tctl nodes add" command.

  • Use environment variables to store the CA pin, invite token, and
    Proxy/Auth address, making it slightly more convenient to copy the
    "teleport start" command and run it on the Node.

  • Turn the Node Tunneling section into a Details box below the
    instruction to assign the Auth/Proxy address to an environment
    variable, and better integrate the text into the guide. Previously,
    the Node Tunneling section also advised the reader to create
    a token, which they would have doe already at this point in the guide.

@github-actions github-actions bot requested review from r0mant, xinding33 and zmb3 May 6, 2022 21:26
@ptgott ptgott force-pushed the paul.gottschling/11841-adding-nodes-self-hosted branch from 0158d01 to b7fc3c7 Compare May 6, 2022 21:27
Copy link
Contributor

@strideynet strideynet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, just a nit and a thought

--token=(=presets.tokens.first=) \
--ca-pin=(=presets.ca_pin=) \
--auth-server=10.12.0.6:3025
$ echo "export CA_PIN=${CA_PIN?}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This feels a bit weird, but I can't really think of another way of doing it other than:

echo "export CA_PIN=${CA_PIN?}\nexport INVITE_TOKEN=${INVITE_TOKEN?}"

Which feels worse :(

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it make more sense to show the export commands the user would run on the Node's host, then let the readers work out for themselves that they should paste the values of the variables from a terminal on their local machine?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps that's easier :) Or a bit less weird.

docs/pages/setup/admin/adding-nodes.mdx Outdated Show resolved Hide resolved
@ptgott ptgott force-pushed the paul.gottschling/11841-adding-nodes-self-hosted branch 2 times, most recently from f033bf4 to 655055d Compare May 24, 2022 19:48
```

If you want to provide your own token, you can do so using the `--token` flag:
<Details title="Tokens with known values">
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Maybe say "Provide your own token value" as a title instead or something like this, and add a warning to use cryptographically secure token values for better security.

@ptgott ptgott force-pushed the paul.gottschling/11841-adding-nodes-self-hosted branch from 655055d to 7698fcc Compare June 1, 2022 18:23
@ptgott ptgott enabled auto-merge (squash) June 1, 2022 18:23
ptgott added 2 commits June 1, 2022 14:23
See: #11841

This change makes the Adding Nodes guide more usable for self-hosted
clusters based on manual testing.

- Make it clearer that you can use tctl on your local machine with
  a self-hosted cluster. For convenience, all instructions in this guide
  assume you are using tctl from a local machine.

- Misc. minor edits for clarity.

- Move different methods of using tokens into Details boxes, since
  following the guide only requires the first "tctl nodes add" command.

- Use environment variables to store the CA pin, invite token, and
  Proxy/Auth address, making it slightly more convenient to copy the
  "teleport start" command and run it on the Node.

- Turn the Node Tunneling section into a Details box below the
  instruction to assign the Auth/Proxy address to an environment
  variable, and better integrate the text into the guide. Previously,
  the Node Tunneling section also advised the reader to create
  a token, which they would have doe already at this point in the guide.
Also remove some erroneous command output
@ptgott ptgott force-pushed the paul.gottschling/11841-adding-nodes-self-hosted branch from 7698fcc to efe04b2 Compare June 1, 2022 18:23
@ptgott ptgott merged commit f3efd1d into master Jun 1, 2022
ptgott added a commit that referenced this pull request Jun 3, 2022
* Make the Adding Nodes guide more usable

See: #11841

This change makes the Adding Nodes guide more usable for self-hosted
clusters based on manual testing.

- Make it clearer that you can use tctl on your local machine with
  a self-hosted cluster. For convenience, all instructions in this guide
  assume you are using tctl from a local machine.

- Misc. minor edits for clarity.

- Move different methods of using tokens into Details boxes, since
  following the guide only requires the first "tctl nodes add" command.

- Use environment variables to store the CA pin, invite token, and
  Proxy/Auth address, making it slightly more convenient to copy the
  "teleport start" command and run it on the Node.

- Turn the Node Tunneling section into a Details box below the
  instruction to assign the Auth/Proxy address to an environment
  variable, and better integrate the text into the guide. Previously,
  the Node Tunneling section also advised the reader to create
  a token, which they would have doe already at this point in the guide.

* Respond to PR feedback

Also remove some erroneous command output
ptgott added a commit that referenced this pull request Jun 3, 2022
* Make the Adding Nodes guide more usable

See: #11841

This change makes the Adding Nodes guide more usable for self-hosted
clusters based on manual testing.

- Make it clearer that you can use tctl on your local machine with
  a self-hosted cluster. For convenience, all instructions in this guide
  assume you are using tctl from a local machine.

- Misc. minor edits for clarity.

- Move different methods of using tokens into Details boxes, since
  following the guide only requires the first "tctl nodes add" command.

- Use environment variables to store the CA pin, invite token, and
  Proxy/Auth address, making it slightly more convenient to copy the
  "teleport start" command and run it on the Node.

- Turn the Node Tunneling section into a Details box below the
  instruction to assign the Auth/Proxy address to an environment
  variable, and better integrate the text into the guide. Previously,
  the Node Tunneling section also advised the reader to create
  a token, which they would have doe already at this point in the guide.

* Respond to PR feedback

Also remove some erroneous command output
ptgott added a commit that referenced this pull request Jun 3, 2022
* Make the Adding Nodes guide more usable

See: #11841

This change makes the Adding Nodes guide more usable for self-hosted
clusters based on manual testing.

- Make it clearer that you can use tctl on your local machine with
  a self-hosted cluster. For convenience, all instructions in this guide
  assume you are using tctl from a local machine.

- Misc. minor edits for clarity.

- Move different methods of using tokens into Details boxes, since
  following the guide only requires the first "tctl nodes add" command.

- Use environment variables to store the CA pin, invite token, and
  Proxy/Auth address, making it slightly more convenient to copy the
  "teleport start" command and run it on the Node.

- Turn the Node Tunneling section into a Details box below the
  instruction to assign the Auth/Proxy address to an environment
  variable, and better integrate the text into the guide. Previously,
  the Node Tunneling section also advised the reader to create
  a token, which they would have doe already at this point in the guide.

* Respond to PR feedback

Also remove some erroneous command output
@webvictim webvictim mentioned this pull request Jun 8, 2022
@ptgott ptgott deleted the paul.gottschling/11841-adding-nodes-self-hosted branch February 16, 2023 19:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants