@bytebase/dbhub 0.13.1 → 0.13.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +15 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1327,6 +1327,16 @@ Expected: ${expectedFormat}`
1327
1327
  if (connectionTimeoutSeconds !== void 0) {
1328
1328
  config2.connectTimeout = connectionTimeoutSeconds * 1e3;
1329
1329
  }
1330
+ if (url.password && url.password.includes("X-Amz-Credential")) {
1331
+ config2.authPlugins = {
1332
+ mysql_clear_password: () => () => {
1333
+ return Buffer.from(url.password + "\0");
1334
+ }
1335
+ };
1336
+ if (config2.ssl === void 0) {
1337
+ config2.ssl = { rejectUnauthorized: false };
1338
+ }
1339
+ }
1330
1340
  return config2;
1331
1341
  } catch (error) {
1332
1342
  throw new Error(
@@ -1730,6 +1740,11 @@ Expected: ${expectedFormat}`
1730
1740
  }
1731
1741
  }
1732
1742
  });
1743
+ if (url.password && url.password.includes("X-Amz-Credential")) {
1744
+ if (config2.ssl === void 0) {
1745
+ config2.ssl = { rejectUnauthorized: false };
1746
+ }
1747
+ }
1733
1748
  return config2;
1734
1749
  } catch (error) {
1735
1750
  throw new Error(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bytebase/dbhub",
3
- "version": "0.13.1",
3
+ "version": "0.13.2",
4
4
  "mcpName": "io.github.bytebase/dbhub",
5
5
  "description": "Minimal Database MCP Server for PostgreSQL, MySQL, SQL Server, SQLite, MariaDB",
6
6
  "repository": {