-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add context to "tsh ls" in docs (#12583)
* Add context to "tsh ls" in docs Fixes #7051 - Create a partial for how the Teleport Auth Service filters Nodes based on user roles/logins in response to queries. - Add the partial to provide context for example commands that include "tsh ls". - Make our existing text on Teleport's authorization checks clearer by enumerating the checks in the order they are executed in services.RoleSet.CheckAccess. Note that this does not change guides that instruct the user to create a new user and role, since a user following these guides will see the correct "tsh ls" output. * Respond to PR feedback
- Loading branch information
Showing
9 changed files
with
58 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -325,16 +325,22 @@ store it in `~/.tsh/keys/<proxy>` directory. | |
With a certificate in place, Joe can now interact with the Teleport cluster: | ||
|
||
```code | ||
# SSH into any host behind the proxy (Unix user 'joe' should already exist on the node): | ||
$ tsh ssh [email protected] | ||
# See what hosts are available behind the proxy: | ||
$ tsh ls | ||
# SSH into any host behind the proxy (Unix user 'joe' should already exist on the node): | ||
$ tsh ssh [email protected] | ||
# Log out (this will remove the user certificate from ~/.tsh) | ||
$ tsh logout | ||
``` | ||
|
||
<Details title="tsh not showing Nodes?" opened={false}> | ||
|
||
(!docs/pages/includes/node-logins.mdx!) | ||
|
||
</Details> | ||
|
||
## Configuring SSO | ||
|
||
The local account is good for administrative purposes but regular users of | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
When Teleport's Auth Service receives a request to list Teleport Nodes (e.g., to | ||
display Nodes in the Web UI or via `tsh ls`), it only returns the Nodes that the | ||
current user is authorized to view. | ||
|
||
For each Node in the user's Teleport cluster, the Auth Service applies the | ||
following checks in order and, if one check fails, hides the Node from the user: | ||
|
||
- None of the user's roles contain a `deny` rule that matches the Node's labels. | ||
- None of the user's roles contain a `deny` rule that matches the user's login. | ||
- At least one of the user's roles contains an `allow` rule that matches the | ||
Node's labels. | ||
- At least one of the user's roles contains an `allow` rule that matches the | ||
user's login. | ||
|
||
If you are not seeing Nodes when expected, make sure that your user's roles | ||
include the appropriate `allow` and `deny` rules as documented in the | ||
[Teleport Access Controls Reference](../access-controls/reference.mdx). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters