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

Gracefully degrade tsh db ls in case fetching roles fails. #12318

Merged
merged 1 commit into from
Apr 29, 2022

Conversation

Tener
Copy link
Contributor

@Tener Tener commented Apr 29, 2022

When accessing the remote clusters, a user may get a different set of roles and traits than in the original cluster. This can cause the code to fail to fetch the set of applicable roles, which breaks the entire command. As a stop-gap measure this PR changes that behavior to a graceful degradation where we don't calculate the available user names and show (unknown) instead.

The complete fix is proposed in #12281, but it requires discussion about the proper way to fix the issue.

Fixes #12239

Caused by #10458

@github-actions github-actions bot requested review from codingllama and lxea April 29, 2022 10:04
@github-actions github-actions bot added the tsh tsh - Teleport's command line tool for logging into nodes running Teleport. label Apr 29, 2022
@Tener Tener requested review from xacrimon, r0mant and smallinsky April 29, 2022 10:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tsh tsh - Teleport's command line tool for logging into nodes running Teleport.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

tsh db ls returns AccessDeniedError in trusted cluster setup
3 participants