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

DB access denied error improvement #13293

Closed
smallinsky opened this issue Jun 8, 2022 · 0 comments · Fixed by #16228
Closed

DB access denied error improvement #13293

smallinsky opened this issue Jun 8, 2022 · 0 comments · Fixed by #16228
Assignees
Labels
database-access Database access related issues and PRs error-msg Improving customer facing error messages. feature-request Used for new features in Teleport, improvements to current should be #enhancements ux

Comments

@smallinsky
Copy link
Contributor

When a user configures teleport the first time the default roles don't provide any db_users, and db_labels that allow a user to connect to db instance. During the db access flow teleport returns the access to db denied error that is omitted, or misunderstood by a teleport user.

tsh db connect eks-app-db
psql: error: connection to server at "localhost" (127.0.0.1), port 61378 failed: access to db denied`

TSH flow should return an actionable error for example instead of failed: access to db denied the error should indicate that a user is not assigned to any roles that provide valid db_users. Additionally, the tsh cli can check if a user has access to a particular database and return a detailed error. The work done is #10458 can be reused to determine if a user has access to a particular DB from tsh db login/connect flow.

@smallinsky smallinsky added feature-request Used for new features in Teleport, improvements to current should be #enhancements ux database-access Database access related issues and PRs labels Jun 8, 2022
@smallinsky smallinsky changed the title DB access denied error improvment DB access denied error improvement Jun 16, 2022
@zmb3 zmb3 added the error-msg Improving customer facing error messages. label Jun 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
database-access Database access related issues and PRs error-msg Improving customer facing error messages. feature-request Used for new features in Teleport, improvements to current should be #enhancements ux
Projects
None yet
3 participants