Fork me on GitHub

Database Access


Database Access

Teleport can provide secure access to PostgreSQL, MySQL and MongoDB databases, while improving both access control and visibility.

Some of the things you can do with Database Access:

  • Users can retrieve short-lived database certificates using single sign-on flow thus maintaining their organization-wide identity.
  • Configure role-based access controls for databases and implement custom access request workflows.
  • Capture database access events as well as query activity in the audit log.


Let's connect to a PostgreSQL server with psql and pgAdmin 4 after authenticating with Github, execute a few SQL queries and observe them in the audit log:

Getting started

Cloud-hosted guides

Self-hosted guides

General guides


To learn more about configuring role-based access control for Database Access, check out RBAC section.

Architecture provides a more in-depth look at Database Access internals such as networking and security.

See Reference for an overview of Database Access related configuration and CLI commands.


Finally, check out Frequently Asked Questions.

Have a suggestion or can’t find something?