Skip to main content

Your databases in the browser,
with the team's connections.

CloudBeaver brings the SQL editor, the data grid, and the schema tree of databases such as Trino, ClickHouse, and PostgreSQL together in a browser, with connections that the administrator shares with the team. Follow a query from the editor to the results grid and see what the server stores and who accesses each connection.

This feature is only available starting from version 3.0.

A web database manager is an application accessed through the browser in which databases are queried, explored, and administered.

CloudBeaver is the web database manager of TDP Kubernetes: in it, a single interface reaches different databases, such as Trino and ClickHouse.

Only the server talks to the database

The browser displays, the server connects

The interface runs in the browser. The one that opens the connection to each database is the CloudBeaver server, through the JDBC driver of that database.

One interface, many databases

Each database becomes a connection

Trino, ClickHouse, and PostgreSQL are among the databases with a bundled driver. Each access is a connection in the object tree.

For the team

Shared connections

A shared connection is maintained by the administrator and is available to the users and teams that have access to it.

On this page

See a query happen​

Press Play or step through one at a time. Underlined names lead to the Glossary.

BrowserWho queries
BrowserSQL editor and results grid
CloudBeaver serverWho connects
CloudBeaver serverGraphQL API and DBeaver core
JDBC driverOne per database type
DatabasesWhere the data lives
TrinoQuery engine
ClickHouseAnalytical database
PostgreSQLRelational database
Stored on the serverConnections and permissions
WorkspaceConnection definitions
Internal databaseUsers, teams, and permissions
Step 1 of 6

1 Who signs in and what they find

The user signs in to CloudBeaver through the browser. The server stores the users, teams, and permissions in the internal database, and it is through them that it knows which connections are available to whoever signed in. The connection definitions live in the server workspace.

  1. Who signs in and what they find. The user signs in to CloudBeaver through the browser. The server stores the users, teams, and permissions in the internal database, and it is through them that it knows which connections are available to whoever signed in. The connection definitions live in the server workspace.
  2. The SQL editor opens the connection. The statement is written in the SQL editor, on a connection. When the first editor tab opens, the server opens the connection to the database through the connection's JDBC driver. Other tabs for the same database reuse that connection.
  3. The statement goes to the server. On execution, the browser sends the statement to the server through the GraphQL API. The server is the one that talks to the database: database connectivity is the part of DBeaver that runs inside it.
  4. The driver runs it on the database. The server hands the statement to the JDBC driver, which runs it on Trino.
  5. The result returns to the grid. The result travels back and appears in the results panel, in a tab. Each tab is a data editor: the grid in which data is sorted, filtered, and exported, and edited when the table has a primary or unique key and the connection is not read-only.
  6. Another database, the same statement. The SQL editor can be linked to another connection, or to another database or schema, without losing the statement text. Here, the same screen starts querying ClickHouse, through its driver. A connection to PostgreSQL follows the same path.
Figure 1 - A query in CloudBeaver. The browser talks only to the server. The server opens the connection to each database through the connection's JDBC driver.

Architecture​

A web interface in front, a Java server behind. Only the server connects to the databases.

CloudBeaver architecture: browser, CloudBeaver Server with JDBC drivers, databases, server configuration, workspace and internal databaseThe browser runs the web interface and talks only to the CloudBeaver Server, through the GraphQL API. The server, with the Jetty web server and the DBeaver core, connects to the databases, such as Trino, ClickHouse and PostgreSQL, through the JDBC driver of each one. The server reads the server configuration, stores connections and projects in the workspace, on a PersistentVolumeClaim, and stores users, teams and permissions in the internal database, either H2 or PostgreSQL.BrowserWeb interfaceTypeScript and ReactCloudBeaver ServerWeb serverJettyGraphQL APIDBeaver coreconnectivity and projectsJDBC driversTrinoClickHousePostgreSQLDatabasesTrinoClickHousePostgreSQLServerconfigurationcloudbeaver.confWorkspaceConnectionsProjectsPersistentVolumeClaimInternal databaseH2PostgreSQLUsers, teams and permissions
Figure 2 - CloudBeaver architecture: the browser, the server with the JDBC drivers, the databases, the server configuration, the workspace, and the internal database. Underlined terms lead to the Glossary.

What the figure shows:

  1. The browser runs the web interface, written in TypeScript and React, and talks only to the CloudBeaver server, through the GraphQL API. The interface keeps a WebSocket open with the server, through which real-time events arrive.
  2. The CloudBeaver server is a Java application, built on the Equinox OSGi framework, with Jetty as the web server and a GraphQL API for communication with the interface. From DBeaver, it uses the headless part: everything related to database connectivity and project management.
  3. The JDBC drivers live on the server, one for each database type. The server opens the connection to each database through its JDBC driver.
  4. The databases, such as Trino, ClickHouse, and PostgreSQL, are where the data is. Only the server connects to them.
  5. The server configuration, in the cloudbeaver.conf file, is read by the server and defines how it behaves.
  6. The workspace is where the server stores the connections and the projects, in a PersistentVolumeClaim.
  7. The internal database, in H2 or PostgreSQL, is where the server stores the users, the teams, and the permissions.

What the server stores​

The data stays in the databases that are queried. The server stores how to reach them and who may.

The workspace is the server folder that is the root of the projects and holds the working files. Alongside it, three pieces define how the server behaves, which databases it reaches, and who may use each one:

cloudbeaver.conf

Server Configuration

A JSONC file with the port, the workspace, the internal database, the enabled authentication providers, the permission for users to create connections, and the resource quotas. A runtime file, written while the server is running, takes priority over it.

data-sources.json

Pre-configured connections

The connections that the administrator defines before the server starts: whoever uses them just picks the connection and enters the credentials. Credentials included in the file are encrypted and removed from it on the first connection.

H2 or PostgreSQL

Internal database

The users, credentials, and access permissions. The Community edition uses an embedded H2. The server also supports PostgreSQL, MariaDB, Oracle, and SQL Server.

From folder to table​

On the left of the window, the object tree places each database inside a connection. Go into each level.

Level 1 of 5

Folder

Organizes the connections in the object navigator tree. A folder can group the connections of a single platform, such as the TDP folder in which the TDP Kubernetes chart places the connections it creates.

  1. Folder. Organizes the connections in the object navigator tree. A folder can group the connections of a single platform, such as the TDP folder in which the TDP Kubernetes chart places the connections it creates.
  2. Connection. Access to a database: the driver, the host, the port, the database, the name shown in the tree, and the authentication. The connection type gives it a color and the behavior of the environment.
    • JDBC driver. The library that talks to that database type. Each connection chooses its own.
  3. Catalog. In a connection to Trino, the first level inside it: each catalog gives access to a data source. The SQL editor can switch the active catalog or schema without losing the statement.
  4. Schema. Groups the tables and other objects inside the catalog.
    • SQL editor. From the menu of any object, a SQL editor opens for the connection.
  5. Table or view. When opened, it shows the object's properties and its definition in DDL. From the menu, SQL is generated (SELECT, INSERT, UPDATE, DELETE, MERGE, and DDL) and the data is exported.
    • Data editor. The Data tab of a table or view: the grid with its data.
Figure 3 - The object navigator with a connection to Trino. Below the connection, the levels vary by database type.

One connection, one address​

Behind a connection to Trino, the JDBC address is a single line.

Click each part of the address.

Protocol

Says that the address is for a JDBC connection, served by one of the CloudBeaver server's JDBC drivers.

See in the Glossary
jdbc: — Protocol
Says that the address is for a JDBC connection, served by one of the CloudBeaver server's JDBC drivers.
trino: — Driver
Says which driver serves the address: here, the Trino driver, which already ships with CloudBeaver.
//{host}:{port} — Address
The host and port of the Trino Coordinator, which receives the queries.
/{catalog} — Catalog
Optional: the catalog the connection opens with, and the schema can follow it. The catalog is what says which data source is behind it.

Each driver has its own address format. A connection to ClickHouse follows the same idea, with its own driver: jdbc:clickhouse://{host}:{port}/{database}. Through Trino, a single connection reaches all the sources that its catalogs describe. See Trino.

Who accesses each connection​

A connection is private or shared. Teams decide who receives the shared ones.

Private connection

Visible only to whoever created it. The saved credentials apply to that user, who connects without typing them again.

Shared connection

Maintained by the administrator and accessible to multiple users or teams, chosen one by one. The credentials saved at creation apply to everyone who has access.

Team admin

All CloudBeaver administration privileges.

Team user

Regular users, to whom the administrator grants access to databases. A user can be in several teams.

Users

Local, created by the administrator, or coming from an external identity provider, such as an LDAP directory.

Teams group users with the same permissions and the same available connections. For that reason, each person's object tree shows their private connections and those shared with them or with a team they belong to. Authentication across the whole platform is covered in Security.

Why CloudBeaver​

SQL editor

Scripts that stay saved

Several scripts on a single connection, saved as files and reopened later, with suggestions for keywords, object names, and code snippets, and the execution plan when the driver provides it.

Data editor

A grid to view and edit

The data of a table or the result of a query, with sorting, filters, editing, export, and import.

Object navigator

From object to SQL

The tree of connections and objects, from which SQL is generated from a table and the definition of each object is seen in DDL.

Team

A multi-user environment

Connections shared by the administrator, teams, and permissions per connection, on a single server.

Databases

Drivers already included

Free and open-source databases, such as Trino, ClickHouse, PostgreSQL, MySQL, MariaDB, SQLite, and DuckDB.

Browser

Everything on the web

The whole interface runs in the browser, and the server concentrates the connections to the databases.

Where it comes from

CloudBeaver is developed by the DBeaver team, the desktop database client, and reuses from it the headless part: database connectivity and project management. The Community edition, the one in TDP Kubernetes, is free and open source, under the Apache 2.0 license.

In the TDP editions​

Available in the TDP editions
EditionVersionDocumentation
TDP Kubernetes25.3.0 · chart tdp-cloudbeaver 3.0.3Configuration in TDP Kubernetes

In TDP Kubernetes​

In TDP Kubernetes, CloudBeaver is installed by the tdp-cloudbeaver chart, which packages the CloudBeaver chart and gathers its settings under tdp-cloudbeaver.

What the chart deploys

The CloudBeaver server, in the Community edition, with the workspace on a PersistentVolumeClaim (tdp-cloudbeaver.persistence.enabled). The workspace holds the connections, the adjustments made through the interface, and, when embedded, the internal database.

Server configuration

The chart generates the cloudbeaver.conf and mounts it on the server. At every start, the runtime configuration is discarded, and the chart's configuration prevails.

Initial administrator

Created on the first initialization, with an empty workspace, without the setup wizard: enabled by default in tdp-cloudbeaver.initialData.enabled, with the password in a Secret (tdp-cloudbeaver.adminSecret). After the first sign-in, the password is changed through the interface.

Internal database

Embedded, in an H2 inside the workspace, or an external PostgreSQL, such as the one from the tdp-postgresql chart, in tdp-cloudbeaver.database.enabled, disabled by default. With PostgreSQL, a chart Job creates the database and the user before CloudBeaver starts.

Connections created by the chart

Trino and ClickHouse can be pre-configured in the TDP folder, in tdp-cloudbeaver.dataSources.*, disabled by default (tdp-cloudbeaver.dataSources.enabled). The connections file is copied to the workspace only on the first start. Afterwards, changes made through the interface stay in the workspace. See CloudBeaver integrations.

Who creates connections

By default, only the connections defined by the administrator are available (tdp-cloudbeaver.app.supportsCustomConnections). With the option on, authenticated users also create their own. The local administrator always signs in through the LOCAL tab.

Authentication

Local and, disabled by default, LDAP, including Active Directory through the same provider (tdp-cloudbeaver.ldap.enabled). With LDAP on, both forms apply at the same time, and the chart reads the bind password from the Secret given in tdp-cloudbeaver.ldap.bind.passwordSecretName. See CloudBeaver security.

Instances

Each CloudBeaver instance needs its own namespace, because three chart resources have fixed names (tdp-cloudbeaver-admin-secret, tdp-cloudbeaver-initial-data and tdp-cloudbeaver-data-sources). A second release in the same namespace conflicts with these resources and the installation fails.

Access

The interface is exposed by a Kubernetes Service. Ingress (TDP-Settings.gateway.ingress.enabled) or Gateway API (TDP-Settings.gateway.gatewayApi.enabled), one or the other, bring the interface outside the cluster.

A query made in TDP Kubernetes follows the path of Figure 1: from the SQL editor to the server, from the server to the database through the connection's JDBC driver. Through the connection to Trino, the SQL editor reaches the lakehouse tables and the other sources that the Trino catalogs describe.

Next steps​

Sources​

CloudBeaver - Repository

CloudBeaver Wiki

CloudBeaver - Server Architecture

CloudBeaver - Server Configuration

CloudBeaver - Server Database

CloudBeaver - Configuring Server Datasources

CloudBeaver - Create Connection

CloudBeaver - Database Navigator

CloudBeaver - SQL Editor

CloudBeaver - Data Editor

CloudBeaver - Teams

CloudBeaver - Supported Databases

Trino - JDBC Driver