[Open-source] Open-source and free CloudDM one-stop database management tool, SQL audit + permission + masking
![[Open-source] Open-source and free CloudDM one-stop database management tool, SQL audit + permission + masking](https://yy123.ink/api/img/1796364769841-517py9.webp)
1. Project Overview
CloudDMA low-code API interface development platform for teamsOpen-source database development and management toolProvides a unified database access entry for developers, DBAs, and administrators.
Unlike the main database client designed for personal use, CloudDM focuses on team use of databases.Security and CollaborationIssue. Administrators can assign permissions based on roles and resources, set security rules for query and change SQL, and manage database changes through tickets and approval processes. CloudDM also supports triggering database CI/CD processes through Git Push, Web Hook, and HttpCall, making it easy to integrate database changes into the development release process.
CloudDM 4.0 UpdateInterface and InteractionComprehensive upgrade of daily SQL queries and workflow separation, including approval, work orders, etc., and enhanced capabilities for SSH tunnels, SSL certificates, proxies, unified identity authentication, and approval engines.
2. Open Source License
Licensed under Apache-2.0
3. Interface Display & Function Overview
CloudDM centralizes database queries, permissions, security rules, and change processes into a single Web platform, which can be used as a unified database query tool for teams and also for SQL auditing, query control, and database change management.
Unified Management of Multiple Data Sources
CloudDM supports MySQL, Oracle, MariaDB, PostgreSQL, IBM DB2, SQL Server, OceanBase, PolarDB, TiDB, Greenplum, StarRocks, Doris, SelectDB, ClickHouse, Redis, Hologres, GaussDB, MongoDB, and multiple databases on Alibaba Cloud, AWS, and Azure. Currently, it supports over 20 types of data sources, allowing teams to manage different environments and database types through the same platform.
CloudDM 4.0 adds SSH tunnel management, supporting password, private key, proxy, known_hosts detection, and connection testing; data source connections can also be configured with SSL certificates, as well as HTTP, SOCKS4, SOCKS5 proxies, making it easier to connect to databases in different network environments.
SQL Query and Database Object Management
CloudDM provides a Web SQL workspace that supports syntax highlighting, intelligent tips, transactions, isolation levels, execution plans, and query result export. Users can also view and manage databases, schemas, tables, columns, indexes, views, functions, stored procedures, triggers, users, and roles, and the specific capabilities vary depending on the data source type.
CloudDM 4.0 separates SQL queries from approval and workflow processes, allowing developers to perform daily queries without switching between multiple workflow pages.
SQL Audit and Security Rules
CloudDM has 54 built-in SQL audit rules that can identify potential risks such as full table updates and missing necessary conditions before SQL execution and provide warnings or block execution based on policies. The rules can be applied to environments, instances, databases, tables, views, and materialized views, and can be extended using Rule Scripts according to enterprise standards.
The same set of rules can be used for SQL workspace queries and pre-checks for work orders, placing risk control before actual SQL execution.
Fine-grained permission control
CloudDM separates functional permissions from resource permissions and manages them separately. Administrators can use RBAC role control to determine which functions users can use and grant resource permissions at the instance, database, schema, and table levels. Statement-level authorization can further distinguish between DDL and DML to prevent users from obtaining excessive database permissions.
Team members access authorized database resources through their CloudDM accounts without needing to obtain and save database account passwords.
Work orders and approval workflows
For production database changes, users can submit SQL audit, permission applications, or change work orders. Work orders support manual execution, immediate execution, and scheduled execution, and can be enabled with check, approval, and execution nodes according to actual workflows.
CloudDM provides both built-in approval workflows and integrates with DingTalk, Feishu, and Enterprise WeChat, allowing database changes to follow the team's existing collaboration and approval methods.
Data de-sensitization and auditing
CloudDM can mask sensitive fields in query results based on rules, with a scope that can be as precise as environment, instance, database, table, view, and column. Administrators can also control the data content that different personnel see by combining user permissions and effective scope.
The platform provides operation auditing and SQL execution auditing for querying who executed what operation at what time. CloudDM 4.0 has added SQL audit log retention days setting and optimized operation auditing list and export capabilities.
Database CI/CD
CloudDM supports triggering database CI/CD workflows through Git Push, Web Hook, and HttpCall, integrating SQL checks, approvals, and executions into the application release process. Teams can centrally manage database change scripts, reducing the problem of application releases and database changes being disconnected.
Unified Authentication and Enterprise Integration
CloudDM supports OpenLDAP, Windows AD, OIDC, DingTalk, Feishu, and Enterprise WeChat for unified authentication or login methods. The 4.0 version separates SSO authentication providers and approval engines into independent configuration pages and provides IM, Git, SSO, and approval form integration configuration documents for easy administrator maintenance of enterprise system integration.
4. Technology Stack
Technical Selection
CloudDM's primary development languages are Java, JavaScript, and TypeScript, with the 4.0 version adding support for JDK 17.
Quick Deployment
CloudDM supports single-machine mode (Alone) and cluster mode (Console + Sidecar), as well as installation packages, Docker, and Kubernetes deployment methods. For teams with databases distributed across different networks or data centers, Console and Sidecar can be used to manage data sources without opening public network access ports.
If only local experience is needed, CloudDM can be quickly started with Docker in single-machine mode.
Start with Docker
Overseas Mirror:
docker run -d --name cgdm-alone \--restart always \-p 8222:8222 \-v cgdm_alone_conf:/root/cgdm/alone/conf \-v cgdm_alone_logs:/root/cgdm/alone/logs \-v cgdm_alone_data:/root/cgdm/alone/data \-v cgdm_mysql_data:/var/lib/mysql \bladepipe/cgdm-alone:latest
Domestic Mirror:
docker run -d --name cgdm-alone \--restart always \-p 8222:8222 \-v cgdm_alone_conf:/root/cgdm/alone/conf \-v cgdm_alone_logs:/root/cgdm/alone/logs \-v cgdm_alone_data:/root/cgdm/alone/data \-v cgdm_mysql_data:/var/lib/mysql \cloudcanal-registry.cn-shanghai.cr.aliyuncs.com/clougence/cgdm-alone:latest
After the image is started, access http://localhost:8222 in the browser, complete the database configuration and administrator account initialization according to the page prompts, and you can enter CloudDM.
Five, Source Code Address
Open-source project address
GitHub:https://github.com/ClouGence/open-cdm
Gitee:https://gitee.com/clougence/open-cdm
Product Documentation: https://www.cdmgr.com/docs/intro/product_intro/
Next steps