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.
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
- Architecture
- What the server stores
- From folder to table
- One connection, one address
- Who accesses each connection
- Why CloudBeaver
- In the TDP editions
See a query happen
Press Play or step through one at a time. Underlined names lead to the Glossary.
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.
In the Glossary: CloudBeaver server · Workspace · Internal database · Team · Connection
- 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.
- 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.
- 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.
- The driver runs it on the database. The server hands the statement to the JDBC driver, which runs it on Trino.
- 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.
- 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.
Architecture
A web interface in front, a Java server behind. Only the server connects to the databases.
What the figure shows:
- 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.
- 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.
- The JDBC drivers live on the server, one for each database type. The server opens the connection to each database through its JDBC driver.
- The databases, such as Trino, ClickHouse, and PostgreSQL, are where the data is. Only the server connects to them.
- The server configuration, in the
cloudbeaver.conffile, is read by the server and defines how it behaves. - The workspace is where the server stores the connections and the projects, in a PersistentVolumeClaim.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
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 Glossaryjdbc:— 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.
Visible only to whoever created it. The saved credentials apply to that user, who connects without typing them again.
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.
All CloudBeaver administration privileges.
Regular users, to whom the administrator grants access to databases. A user can be in several teams.
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.
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
| Edition | Version | Documentation |
|---|---|---|
| TDP Kubernetes | 25.3.0 · chart tdp-cloudbeaver 3.0.3 | Configuration 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.
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.
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.
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.
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.
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.
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.
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.
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.
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
TDP Kubernetes
CloudBeaver Configuration
Initial administrator, workspace, internal database, and access in the chart.
TDP Kubernetes
CloudBeaver Integrations
The connections to Trino and ClickHouse created at installation.
TDP Kubernetes
PostgreSQL Configuration
The PostgreSQL that can hold the CloudBeaver internal database.
Sources
CloudBeaver - Server Architecture
CloudBeaver - Server Configuration
CloudBeaver - Configuring Server Datasources
CloudBeaver - Create Connection
CloudBeaver - Database Navigator