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

Augment unified resource requests with login information #38559

Closed
wants to merge 1 commit into from

Conversation

rosstimothy
Copy link
Contributor

Adds a new IncludeLogin flag to unified resource requests to indicate that unified resource responses should include both the resource and the allowed logins the user has per resource. The Web UI was updated to add this flag when listing resources in leaf clusters so that the login dropdown can be correctly populated. Instead of showing all logins, the Web UI will only show the subset of allowed logins for the resource as reported by the leaf, and the logins that exist in the user certificates held by the Proxy. This is required because user certificates are only generated for the root cluster, and if we were to allow all logins as reported by the leaf a user would be denied access because the login they are attempting to use would not be in the list of valid principals.

api/client/client.go Outdated Show resolved Hide resolved
api/proto/teleport/legacy/client/proto/authservice.proto Outdated Show resolved Hide resolved
lib/web/apiserver.go Outdated Show resolved Hide resolved
@rosstimothy rosstimothy force-pushed the tross/include_logins branch 2 times, most recently from 12d094a to f6c3caa Compare February 23, 2024 16:37
Copy link
Contributor

@nklaassen nklaassen left a comment

Choose a reason for hiding this comment

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

This approach looks pretty good to me

lib/auth/auth_with_roles_test.go Show resolved Hide resolved
lib/web/servers.go Show resolved Hide resolved
api/client/client.go Outdated Show resolved Hide resolved
api/client/client.go Outdated Show resolved Hide resolved
api/client/client.go Outdated Show resolved Hide resolved
@rosstimothy rosstimothy force-pushed the tross/include_logins branch 4 times, most recently from 737c573 to aa196ba Compare February 29, 2024 22:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants