tsh proxy db --tunnel ignores --db-roles #52943
Labels
bug
database-access
Database access related issues and PRs
db/postgres
PostgreSQL related database access issues
rbac
Issues related to Role Based Access Control
tsh
tsh - Teleport's command line tool for logging into nodes running Teleport.
Expected behavior:
tsh proxy db <db> --tunnel --db-roles=role1
should start a local proxy tunnel where automatic user provisioning will grant onlyrole1
for the session.Current behavior:
<db>
still exists, then it will uses the--db-roles
from that cert, if any were requestedrole1
- instead it will grant all alloweddb_roles
from the user's role set.Bug details:
--db-roles
was added to tsh.Recreation steps:
tsh login
tsh proxy db <yourdatabase> --tunnel --db-roles=<role1>
db_roles
were granted instead of only<role1>
Footnotes
https://goteleport.com/docs/enroll-resources/database-access/auto-user-provisioning/postgres/ ↩
The text was updated successfully, but these errors were encountered: