-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
CLI ref for tctl sso
commands.
#13148
Conversation
docs/pages/setup/reference/cli.mdx
Outdated
|
||
Required params `--id` and `--secret` come from the [Github OAuth app](https://docs.github.com/en/developers/apps/building-oauth-apps/creating-an-oauth-app). | ||
|
||
The flag `--teams-to-logins` can be provided multiple times to specify which Github Teams are assigned which roles. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we call this --teams-to-roles
instead? teams-to-logins
is a legacy name that predates RBAC, and there's actually an open PR that may make it into v10 which will rename the field in the connector.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, this is a good change, although I need to modify the actual code to make it so. This expands the scope of PR, but I'm happy to do so.
tctl sso
commands.tctl sso
commands. Use non-deprecated teams-to-roles field for GitHub.
@ptgott PTAL? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good - all of my comments are just minor nits/grammar etc. Feel free to accept or ignore as many of them as you'd like.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good - all of my comments are just minor nits/grammar etc. Feel free to accept or ignore as many of them as you'd like.
These are good suggestions, thank you! |
@ptgott can you please take a look? |
docs/pages/setup/reference/cli.mdx
Outdated
|
||
The command supports all auth connector types: `github`, `oidc`, `saml`. The latter two require Teleport Enterprise. | ||
|
||
The testing consists of running a single end-to-end authentication request using the provided auth connector definition. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe put this paragraph after the command format? I think it would help readers to have the format in mind while reading this paragraph (e.g., the meaning of "the provided auth connector definition").
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done: 1d6841cfaf83f54e0092bba3c3150370695b2ccb
docs/pages/setup/reference/cli.mdx
Outdated
|
||
The testing consists of running a single end-to-end authentication request using the provided auth connector definition. | ||
Once the request is finished, the results will be printed to console along with context-specific diagnostic information. | ||
The test process may modify the list of configured auth connectors or result in new certificates being issued. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How can the test process modify the list of configured auth connectors? I think one or two brief examples would help.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, this is actually a mistake: there should be negation there, as the test process will not do any of those things. I'll rephrase.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done: 1d6841cfaf83f54e0092bba3c3150370695b2ccb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ptgott PTAL
Co-authored-by: Zac Bergquist <[email protected]>
Co-authored-by: Zac Bergquist <[email protected]>
Co-authored-by: Paul Gottschling <[email protected]>
f26840f
to
3ad8391
Compare
tctl sso
commands. Use non-deprecated teams-to-roles field for GitHub.tctl sso
commands.
Co-authored-by: Paul Gottschling <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved with some minor suggestions
Co-authored-by: Paul Gottschling <[email protected]>
* CLI ref for `tctl sso` commands. Co-authored-by: Zac Bergquist <[email protected]> Co-authored-by: Paul Gottschling <[email protected]>
Co-authored-by: Zac Bergquist <[email protected]> Co-authored-by: Paul Gottschling <[email protected]>
Taken out of another PR (#12941) to reduce scope.
Parent: #9270
Edit: There is nowteams-to-roles
field in the GitHub connector. The PR was updated to make thetctl sso configure github
use it, instead of the legacyteams-to-logins
.Edit: Code changes moved to #13463.