Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

feat: ssl support for OceanBase (#5741)

He Wang9de7a8b00461
diff --git a/backend/server/sql.go b/backend/server/sql.go
index f8d33685ad..d71c971a93 100644
--- a/backend/server/sql.go
+++ b/backend/server/sql.go
@@ -66,7 +66,7 @@ func (s *Server) registerSQLRoutes(g *echo.Group) {
}
var tlsConfig db.TLSConfig
- supportTLS := (connectionInfo.Engine == db.ClickHouse || connectionInfo.Engine == db.MySQL || connectionInfo.Engine == db.TiDB || connectionInfo.Engine == db.MariaDB)
+ supportTLS := connectionInfo.Engine == db.ClickHouse || connectionInfo.Engine == db.MySQL || connectionInfo.Engine == db.TiDB || connectionInfo.Engine == db.MariaDB || connectionInfo.Engine == db.OceanBase
if supportTLS {
if connectionInfo.SslCa == nil && connectionInfo.SslCert == nil && connectionInfo.SslKey == nil && connectionInfo.InstanceID != nil {
// Frontend will not pass ssl related field if user don't modify ssl suite, we need get ssl suite from database for this case.
diff --git a/frontend/src/utils/instance.ts b/frontend/src/utils/instance.ts
index d69cbbe60b..7ef3ec36e3 100644
--- a/frontend/src/utils/instance.ts
+++ b/frontend/src/utils/instance.ts
@@ -132,6 +132,7 @@ export const instanceHasSSL = (
"REDIS",
"ORACLE",
"MARIADB",
+ "OCEANBASE",
].includes(engine);
};