Skip to content

Conversation

govegasbudapest
Copy link
Contributor

@govegasbudapest govegasbudapest commented Aug 31, 2025

Fixes #1286

Motivation

  • Allow secure connections to PostgreSQL without custom code.

Changes

Sources

  • mysql: Config.QueryParams added; DSN building rewritten via url.Values.

@govegasbudapest govegasbudapest requested a review from a team as a code owner August 31, 2025 14:09
Copy link

google-cla bot commented Aug 31, 2025

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@govegasbudapest govegasbudapest force-pushed the issue-1286-mysql-postgres-tls branch from 898d7a4 to 7b31be3 Compare August 31, 2025 14:29
@kurtisvg kurtisvg assigned Yuan325 and unassigned averikitsch Sep 1, 2025
Copy link
Contributor

@Yuan325 Yuan325 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @govegasbudapest thankyou for contributing! If you can update the docs that will be great too! ref: #1047

@govegasbudapest govegasbudapest changed the title feat: TLS/SSL support for MySQL and Postgres sources (#1286) feat: add TLS & query param support to MySQL source and expand YAML tests (#1286) Sep 2, 2025
Copy link
Contributor

@Yuan325 Yuan325 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your prompt response! Left a couple more comments on the changes.

Copy link
Contributor

@Yuan325 Yuan325 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@govegasbudapest Awesome, thank you for your contribution!! :)

@Yuan325
Copy link
Contributor

Yuan325 commented Sep 3, 2025

/gcbrun

@Yuan325 Yuan325 added the tests: run Label to trigger Github Action tests. label Sep 3, 2025
@github-actions github-actions bot removed the tests: run Label to trigger Github Action tests. label Sep 3, 2025
@Yuan325 Yuan325 changed the title feat: add TLS & query param support to MySQL source and expand YAML tests (#1286) feat: support queryParams in MySQL source Sep 3, 2025
@Yuan325 Yuan325 changed the title feat: support queryParams in MySQL source feat(source/mysql): support queryParams in MySQL source Sep 3, 2025
@Yuan325 Yuan325 added the tests: run Label to trigger Github Action tests. label Sep 3, 2025
@Yuan325
Copy link
Contributor

Yuan325 commented Sep 3, 2025

/gcbrun

@github-actions github-actions bot removed the tests: run Label to trigger Github Action tests. label Sep 3, 2025
@Yuan325
Copy link
Contributor

Yuan325 commented Sep 3, 2025

/gcbrun

@Yuan325 Yuan325 added the tests: run Label to trigger Github Action tests. label Sep 3, 2025
@github-actions github-actions bot removed the tests: run Label to trigger Github Action tests. label Sep 3, 2025
@Yuan325
Copy link
Contributor

Yuan325 commented Sep 3, 2025

/gcbrun

@Yuan325 Yuan325 added the tests: run Label to trigger Github Action tests. label Sep 3, 2025
@github-actions github-actions bot removed the tests: run Label to trigger Github Action tests. label Sep 3, 2025
@Yuan325 Yuan325 merged commit 3ae2526 into googleapis:main Sep 3, 2025
12 checks passed
github-actions bot pushed a commit that referenced this pull request Sep 3, 2025
)

Fixes #1286

### Motivation
* Allow secure connections to PostgreSQL without custom code.

### Changes
#### Sources
* `mysql`: `Config.QueryParams` added; DSN building rewritten via
`url.Values`.

---------

Co-authored-by: Yuan Teoh <[email protected]>
Co-authored-by: Yuan Teoh <[email protected]> 3ae2526
Yuan325 added a commit that referenced this pull request Sep 5, 2025
🤖 I have created a release *beep* *boop*
---


##
[0.14.0](v0.13.0...v0.14.0)
(2025-09-05)


### ⚠ BREAKING CHANGES

* **bigquery:** Move `useClientOAuth` config from tool to source
([#1279](#1279))
([8d20a48](8d20a48))
* **tools/bigquerysql:** remove `useClientOAuth` from tools config
([#1312](#1312))

### Features

* **clickhouse:** Add ClickHouse Source and Tools
([#1088](#1088))
([75a04a5](75a04a5))
* **prebuilt/alloydb-postgres:** Support ipType and IAM users
([#1324](#1324))
([0b2121e](0b2121e))
* **server/mcp:** Support toolbox auth in mcp
([#1140](#1140))
([ca353e0](ca353e0))
* **source/mysql:** Support `queryParams` in MySQL source
([#1299](#1299))
([3ae2526](3ae2526))
* **tools/bigquery:** Support end-user credential passthrough on
multiple BQ tools
([#1314](#1314))
([88f4b30](88f4b30))
* **tools/looker:** Add description for looker-get-models tool
([#1266](#1266))
([89af3a4](89af3a4))
* **tools/looker:** Authenticate via end user credentials
([#1257](#1257))
([8755e3d](8755e3d))
* **tools/looker:** Report field suggestions to agent
([#1267](#1267))
([2cad82e](2cad82e))


### Bug Fixes

* Do not print usage on runtime error
([#1315](#1315))
([afba7a5](afba7a5))
* Update env var to allow empty string
([#1260](#1260))
([03aa9fa](03aa9fa))
* **tools/firestore:** Add document/collection path validation
([#1229](#1229))
([14c2249](14c2249))
* **tools/looker-get-dashboards:** Fix Looker client OAuth check
([#1338](#1338))
([36225aa](36225aa))
* **tools/oceanbase:** Fix encoded text with mysql driver
([#1283](#1283))
([d16f89f](d16f89f)),
closes [#1161](#1161)

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

---------

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: Yuan Teoh <[email protected]>
github-actions bot pushed a commit that referenced this pull request Sep 5, 2025
🤖 I have created a release *beep* *boop*
---

##
[0.14.0](v0.13.0...v0.14.0)
(2025-09-05)

### ⚠ BREAKING CHANGES

* **bigquery:** Move `useClientOAuth` config from tool to source
([#1279](#1279))
([8d20a48](8d20a48))
* **tools/bigquerysql:** remove `useClientOAuth` from tools config
([#1312](#1312))

### Features

* **clickhouse:** Add ClickHouse Source and Tools
([#1088](#1088))
([75a04a5](75a04a5))
* **prebuilt/alloydb-postgres:** Support ipType and IAM users
([#1324](#1324))
([0b2121e](0b2121e))
* **server/mcp:** Support toolbox auth in mcp
([#1140](#1140))
([ca353e0](ca353e0))
* **source/mysql:** Support `queryParams` in MySQL source
([#1299](#1299))
([3ae2526](3ae2526))
* **tools/bigquery:** Support end-user credential passthrough on
multiple BQ tools
([#1314](#1314))
([88f4b30](88f4b30))
* **tools/looker:** Add description for looker-get-models tool
([#1266](#1266))
([89af3a4](89af3a4))
* **tools/looker:** Authenticate via end user credentials
([#1257](#1257))
([8755e3d](8755e3d))
* **tools/looker:** Report field suggestions to agent
([#1267](#1267))
([2cad82e](2cad82e))

### Bug Fixes

* Do not print usage on runtime error
([#1315](#1315))
([afba7a5](afba7a5))
* Update env var to allow empty string
([#1260](#1260))
([03aa9fa](03aa9fa))
* **tools/firestore:** Add document/collection path validation
([#1229](#1229))
([14c2249](14c2249))
* **tools/looker-get-dashboards:** Fix Looker client OAuth check
([#1338](#1338))
([36225aa](36225aa))
* **tools/oceanbase:** Fix encoded text with mysql driver
([#1283](#1283))
([d16f89f](d16f89f)),
closes [#1161](#1161)

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

---------

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: Yuan Teoh <[email protected]> 4f022b6
github-actions bot pushed a commit to renovate-bot/googleapis-_-genai-toolbox that referenced this pull request Sep 5, 2025
🤖 I have created a release *beep* *boop*
---

##
[0.14.0](googleapis/genai-toolbox@v0.13.0...v0.14.0)
(2025-09-05)

### ⚠ BREAKING CHANGES

* **bigquery:** Move `useClientOAuth` config from tool to source
([googleapis#1279](googleapis#1279))
([8d20a48](googleapis@8d20a48))
* **tools/bigquerysql:** remove `useClientOAuth` from tools config
([googleapis#1312](googleapis#1312))

### Features

* **clickhouse:** Add ClickHouse Source and Tools
([googleapis#1088](googleapis#1088))
([75a04a5](googleapis@75a04a5))
* **prebuilt/alloydb-postgres:** Support ipType and IAM users
([googleapis#1324](googleapis#1324))
([0b2121e](googleapis@0b2121e))
* **server/mcp:** Support toolbox auth in mcp
([googleapis#1140](googleapis#1140))
([ca353e0](googleapis@ca353e0))
* **source/mysql:** Support `queryParams` in MySQL source
([googleapis#1299](googleapis#1299))
([3ae2526](googleapis@3ae2526))
* **tools/bigquery:** Support end-user credential passthrough on
multiple BQ tools
([googleapis#1314](googleapis#1314))
([88f4b30](googleapis@88f4b30))
* **tools/looker:** Add description for looker-get-models tool
([googleapis#1266](googleapis#1266))
([89af3a4](googleapis@89af3a4))
* **tools/looker:** Authenticate via end user credentials
([googleapis#1257](googleapis#1257))
([8755e3d](googleapis@8755e3d))
* **tools/looker:** Report field suggestions to agent
([googleapis#1267](googleapis#1267))
([2cad82e](googleapis@2cad82e))

### Bug Fixes

* Do not print usage on runtime error
([googleapis#1315](googleapis#1315))
([afba7a5](googleapis@afba7a5))
* Update env var to allow empty string
([googleapis#1260](googleapis#1260))
([03aa9fa](googleapis@03aa9fa))
* **tools/firestore:** Add document/collection path validation
([googleapis#1229](googleapis#1229))
([14c2249](googleapis@14c2249))
* **tools/looker-get-dashboards:** Fix Looker client OAuth check
([googleapis#1338](googleapis#1338))
([36225aa](googleapis@36225aa))
* **tools/oceanbase:** Fix encoded text with mysql driver
([googleapis#1283](googleapis#1283))
([d16f89f](googleapis@d16f89f)),
closes [googleapis#1161](googleapis#1161)

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

---------

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: Yuan Teoh <[email protected]> 4f022b6
github-actions bot pushed a commit to Jaleel-zhu/genai-toolbox that referenced this pull request Sep 5, 2025
🤖 I have created a release *beep* *boop*
---

##
[0.14.0](googleapis/genai-toolbox@v0.13.0...v0.14.0)
(2025-09-05)

### ⚠ BREAKING CHANGES

* **bigquery:** Move `useClientOAuth` config from tool to source
([googleapis#1279](googleapis#1279))
([8d20a48](googleapis@8d20a48))
* **tools/bigquerysql:** remove `useClientOAuth` from tools config
([googleapis#1312](googleapis#1312))

### Features

* **clickhouse:** Add ClickHouse Source and Tools
([googleapis#1088](googleapis#1088))
([75a04a5](googleapis@75a04a5))
* **prebuilt/alloydb-postgres:** Support ipType and IAM users
([googleapis#1324](googleapis#1324))
([0b2121e](googleapis@0b2121e))
* **server/mcp:** Support toolbox auth in mcp
([googleapis#1140](googleapis#1140))
([ca353e0](googleapis@ca353e0))
* **source/mysql:** Support `queryParams` in MySQL source
([googleapis#1299](googleapis#1299))
([3ae2526](googleapis@3ae2526))
* **tools/bigquery:** Support end-user credential passthrough on
multiple BQ tools
([googleapis#1314](googleapis#1314))
([88f4b30](googleapis@88f4b30))
* **tools/looker:** Add description for looker-get-models tool
([googleapis#1266](googleapis#1266))
([89af3a4](googleapis@89af3a4))
* **tools/looker:** Authenticate via end user credentials
([googleapis#1257](googleapis#1257))
([8755e3d](googleapis@8755e3d))
* **tools/looker:** Report field suggestions to agent
([googleapis#1267](googleapis#1267))
([2cad82e](googleapis@2cad82e))

### Bug Fixes

* Do not print usage on runtime error
([googleapis#1315](googleapis#1315))
([afba7a5](googleapis@afba7a5))
* Update env var to allow empty string
([googleapis#1260](googleapis#1260))
([03aa9fa](googleapis@03aa9fa))
* **tools/firestore:** Add document/collection path validation
([googleapis#1229](googleapis#1229))
([14c2249](googleapis@14c2249))
* **tools/looker-get-dashboards:** Fix Looker client OAuth check
([googleapis#1338](googleapis#1338))
([36225aa](googleapis@36225aa))
* **tools/oceanbase:** Fix encoded text with mysql driver
([googleapis#1283](googleapis#1283))
([d16f89f](googleapis@d16f89f)),
closes [googleapis#1161](googleapis#1161)

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

---------

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: Yuan Teoh <[email protected]> 4f022b6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

add custom query parameters to mysql and postgresql
3 participants