From 25a83ad858c3488c0af788e80113562865215b97 Mon Sep 17 00:00:00 2001 From: matevip Date: Sun, 14 Jun 2026 10:33:23 +0800 Subject: [PATCH] fix(db): make KingbaseES driver opt-in and restore default SSRF guard MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The KingbaseES JDBC driver is not on Maven Central; declaring it as a required runtime dependency broke the default build for anyone without the proprietary jar. Move it into an opt-in `kingbase` Maven profile (build with `mvn package -Pkingbase`). No Java code imports the driver classes — it is loaded at runtime via driver-class-name only, so the default build no longer needs it. Also drop `mateclaw.browser.ssrf-check-enabled: false` from the default application.yml: the code default is true, and disabling the SSRF guard globally is unrelated to KingbaseES support. --- mateclaw-server/pom.xml | 48 +++++++++++-------- .../src/main/resources/application.yml | 2 - 2 files changed, 29 insertions(+), 21 deletions(-) diff --git a/mateclaw-server/pom.xml b/mateclaw-server/pom.xml index 746cc2d5..e04bb74f 100644 --- a/mateclaw-server/pom.xml +++ b/mateclaw-server/pom.xml @@ -349,27 +349,18 @@ runtime - - - com.kingbase8 - kingbase8 - 8.6.0 - runtime - @@ -503,5 +494,24 @@ + + + + kingbase + + + com.kingbase8 + kingbase8 + 8.6.0 + runtime + + + diff --git a/mateclaw-server/src/main/resources/application.yml b/mateclaw-server/src/main/resources/application.yml index 2a42915c..c492ff45 100644 --- a/mateclaw-server/src/main/resources/application.yml +++ b/mateclaw-server/src/main/resources/application.yml @@ -131,8 +131,6 @@ mateclaw: # Set this when agents deliver download links to channels/clients that cannot # resolve a relative URL (IM messages, copied links, external downloads). public-base-url: ${MATECLAW_PUBLIC_BASE_URL:} - browser: - ssrf-check-enabled: false jwt: secret: ${JWT_SECRET:MateClaw-JWT-Secret-Key-2024-Please-Change-In-Production} expiration: 86400000