Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions config/kubero/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ scoped handoff and risks cross-tenant visibility for admin logins.
| ClickHouse | `clickhouse:com_clickhouse` | upstream |
| S3 (RustFS `Tenant`) | `s3:rustfs` | this fork — `io.stackblaze.dbeaver.ext.rustfs` |
| DuckDB companion for S3 | `duckdb:duckdb_jdbc` | upstream (embedded; needs `enabledDrivers`) |
| MongoDB / FerretDB / DocumentDB | `mongodb:mongodb` | this fork — `io.stackblaze.dbeaver.ext.mongodb` |
| OpenSearch (`OpenSearchCluster`, HTTPS 9200) | `opensearch:opensearch_jdbc` | this fork — `io.stackblaze.dbeaver.ext.opensearch` declares it on the generic provider with the jars bundled from `server/drivers/opensearch` ([opensearch-project/sql-jdbc](https://github.com/opensearch-project/sql-jdbc) 1.4.0.1, Apache-2.0). Upstream `generic:opensearch` only downloads from Maven at connect. kubero-server passes `useSSL`, `trustSelfSigned`, `hostnameVerification=false` for the self-signed listener. Read-only. |

The runtime gate wins over this file once a runtime config exists on the
workspace — see [`deploy/k8s/ensure-drivers-enabled.mjs`](../../deploy/k8s/ensure-drivers-enabled.mjs).
Expand Down
3 changes: 2 additions & 1 deletion config/kubero/cloudbeaver.conf
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
"s3:rustfs",
"duckdb:duckdb_jdbc",
"clickhouse:com_clickhouse",
"mongodb:mongodb"
"mongodb:mongodb",
"opensearch:opensearch_jdbc"
],
disabledDrivers: [
"sqlite:sqlite_jdbc",
Expand Down
3 changes: 2 additions & 1 deletion deploy/k8s/cloudbeaver.conf
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@
"s3:rustfs",
"duckdb:duckdb_jdbc",
"clickhouse:com_clickhouse",
"mongodb:mongodb"
"mongodb:mongodb",
"opensearch:opensearch_jdbc"
],
resourceQuotas: {
dataExportFileSizeLimit: 10000000,
Expand Down
3 changes: 2 additions & 1 deletion deploy/k8s/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ data:
"s3:rustfs",
"duckdb:duckdb_jdbc",
"clickhouse:com_clickhouse",
"mongodb:mongodb"
"mongodb:mongodb",
"opensearch:opensearch_jdbc"
],
resourceQuotas: {
dataExportFileSizeLimit: 10000000,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
<resource name="drivers/redis"/>
<resource name="drivers/minio"/>
<resource name="drivers/mongodb"/>
<resource name="drivers/opensearch"/>
</extension>

<!-- Bundles -->
Expand All @@ -50,6 +51,7 @@
<bundle id="drivers.redis" label="Redis / Valkey drivers"/>
<bundle id="drivers.minio" label="MinIO S3 drivers"/>
<bundle id="drivers.mongodb" label="MongoDB drivers"/>
<bundle id="drivers.opensearch" label="OpenSearch drivers"/>
</extension>

<!-- Enabled drivers -->
Expand All @@ -76,6 +78,7 @@
<driver id="redis:redis"/>
<driver id="s3:rustfs"/>
<driver id="mongodb:mongodb"/>
<driver id="opensearch:opensearch_jdbc"/>
</extension>


Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Stackblaze OpenSearch Driver
Bundle-Vendor: Stackblaze
Bundle-SymbolicName: io.stackblaze.dbeaver.ext.opensearch;singleton:=true
Bundle-Version: 1.0.0.qualifier
Bundle-RequiredExecutionEnvironment: JavaSE-21
Bundle-ActivationPolicy: lazy
Require-Bundle: org.jkiss.dbeaver.model;visibility:=reexport,
org.jkiss.dbeaver.registry;visibility:=reexport,
org.jkiss.dbeaver.ext.generic;visibility:=reexport
Automatic-Module-Name: io.stackblaze.dbeaver.ext.opensearch
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
bin.includes = META-INF/,\
plugin.xml
59 changes: 59 additions & 0 deletions server/bundles/io.stackblaze.dbeaver.ext.opensearch/plugin.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.2"?>
<!--
OpenSearch through the generic JDBC provider, with the driver jars BUNDLED
(drivers/opensearch, built by server/drivers/opensearch).

Upstream DBeaver already declares generic:opensearch, but only with a
maven:/ file, i.e. a download on first connect. The fork never relies on
runtime driver downloads, and upstream plugin.xml lives in the dbeaver
checkout the Docker build clones, so the driver is declared here as its own
provider (parent="generic": generic tree, dialect and metadata), the same
shape upstream uses for Elasticsearch.

TLS: the add-on's HTTPS listener uses a per-cluster self-signed CA and
CloudBeaver may dial it through a 127.0.0.1 tunnel, so kubero-server passes
useSSL=true, trustSelfSigned=true and hostnameVerification=false as JDBC
connection properties (the driver's own names). Nothing insecure is baked
in as a driver default. trustSelfSigned accepts a certificate chain of
length 1, which is what the operator's HTTP listener serves (tls.crt holds
the leaf only).
-->
<plugin>
<extension point="org.jkiss.dbeaver.dataSourceProvider">
<datasource
class="org.jkiss.dbeaver.ext.generic.GenericDataSourceProviderBasic"
description="OpenSearch (SQL plugin over JDBC, Stackblaze)"
id="opensearch"
parent="generic"
label="OpenSearch"
icon="platform:/plugin/org.jkiss.dbeaver.ext.generic/icons/opensearch_icon.png"
dialect="generic">
<drivers managable="true">
<driver
id="opensearch_jdbc"
label="OpenSearch"
class="org.opensearch.jdbc.Driver"
icon="platform:/plugin/org.jkiss.dbeaver.ext.generic/icons/opensearch_icon.png"
iconBig="platform:/plugin/org.jkiss.dbeaver.ext.generic/icons/opensearch_icon_big.png"
sampleURL="jdbc:opensearch://[{scheme}://][{host}][:{port}]"
defaultPort="9200"
defaultDatabase=""
defaultUser="admin"
description="OpenSearch SQL JDBC driver (opensearch-project/sql-jdbc 1.4.0.1)"
webURL="https://github.com/opensearch-project/sql-jdbc"
supportedConfigurationTypes="MANUAL,URL"
categories="fulltext,sql">
<replace provider="generic" driver="opensearch"/>
<file type="jar" path="maven:/org.opensearch.driver:opensearch-sql-jdbc:1.4.0.1" bundle="!drivers.opensearch"/>
<file type="jar" path="drivers/opensearch" bundle="drivers.opensearch"/>
<parameter name="read-only-data" value="true"/>
<parameter name="read-only-meta-data" value="true"/>
<parameter name="supports-references" value="false"/>
<parameter name="supports-indexes" value="false"/>
<parameter name="supports-stored-code" value="false"/>
</driver>
</drivers>
</datasource>
</extension>
</plugin>
15 changes: 15 additions & 0 deletions server/bundles/io.stackblaze.dbeaver.ext.opensearch/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>io.cloudbeaver</groupId>
<artifactId>bundles</artifactId>
<version>1.0.0-SNAPSHOT</version>
<relativePath>../</relativePath>
</parent>
<artifactId>io.stackblaze.dbeaver.ext.opensearch</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>eclipse-plugin</packaging>
</project>
1 change: 1 addition & 0 deletions server/bundles/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
<module>io.stackblaze.dbeaver.ext.redis</module>
<module>io.stackblaze.dbeaver.ext.s3</module>
<module>io.stackblaze.dbeaver.ext.mongodb</module>
<module>io.stackblaze.dbeaver.ext.opensearch</module>

<module>io.cloudbeaver.product.ce</module>
</modules>
Expand Down
30 changes: 30 additions & 0 deletions server/drivers/opensearch/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<artifactId>drivers.opensearch</artifactId>
<version>1.0.0</version>
<parent>
<groupId>io.cloudbeaver</groupId>
<artifactId>drivers</artifactId>
<version>1.0.0</version>
<relativePath>../</relativePath>
</parent>
<packaging>pom</packaging>

<properties>
<deps.output.dir>opensearch</deps.output.dir>
</properties>

<dependencies>
<!-- OpenSearch SQL JDBC driver (opensearch-project/sql-jdbc, Apache-2.0).
1.4.0.1 is the latest release; it talks to the SQL plugin's
/_plugins/_sql?format=jdbc endpoint, which OpenSearch 3.x keeps.
Runtime deps (httpclient 4.5, jackson, aws-java-sdk-core for the
unused SigV4 auth path) come along through copy-dependencies. -->
<dependency>
<groupId>org.opensearch.driver</groupId>
<artifactId>opensearch-sql-jdbc</artifactId>
<version>1.4.0.1</version>
</dependency>
</dependencies>
</project>
1 change: 1 addition & 0 deletions server/drivers/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
<module>mysql</module>
<module>mariadb</module>
<module>mongodb</module>
<module>opensearch</module>
<module>oracle</module>
<module>postgresql</module>
<module>redis</module>
Expand Down
1 change: 1 addition & 0 deletions server/features/io.cloudbeaver.server.feature/feature.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
<plugin id="io.stackblaze.dbeaver.ext.redis" version="0.0.0"/>
<plugin id="io.stackblaze.dbeaver.ext.s3" version="0.0.0"/>
<plugin id="io.stackblaze.dbeaver.ext.mongodb" version="0.0.0"/>
<plugin id="io.stackblaze.dbeaver.ext.opensearch" version="0.0.0"/>

<!-- Extra plugins -->
<plugin id="org.jkiss.dbeaver.data.office" version="0.0.0"/>
Expand Down
Loading