-
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
Changes for tctl sso test
, tctl sso configure
commands [SAML]
#11508
Conversation
Dear reviewers, but especially @r0mant @smallinsky : please take a close look at the security angle, including the topics mentioned in the respective RFDs. Thanks! |
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.
First pass, Left some comments.
@r0mant thanks for the review, I'll add test coverage next. |
Co-authored-by: Roman Tkachenko <roman@goteleport.com>
- Rename auth.AssertionInfoWrapper to shorter auth.AssertionInfo. - Add bool TestFlow to SSODiagnosticInfo - Make SSODiagnosticInfo.Success a bool instead of string. - Rename SAMLAttributesToRolesWarnings to more generic SSOWarnings - Add godocs in several places. - Avoid explicit call to trace.AddUserMessage() where possible.
@r0mant I've added test coverage for the critical pieces. Let me know if you'd like me to add more coverage anywhere. |
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.
@Tener Ship it! But after 2nd approval :)
Awesome, thanks for approval. @smallinsky PTAL? |
These are necessary changes to support
tctl sso test
and (to a much smaller degree)tctl sso configure
command.RFD:
tctl sso configure
command: #9845RFD:
tctl sso test
command: #9775See: #9270 for original issue, which covers larger scope: SAML, OIDC and GitHub auth connectors. This PR is only touching on SAML, but the implementations for OIDC and GitHub should be parallel to this one.
Actual commands for SAML are implemented in: https://github.com/gravitational/teleport.e/pull/425
Webapps PR: gravitational/webapps#717