Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
eeac5f7
test: add new int tests for Connector with domain name (#1244)
jackwotherspoon Mar 18, 2025
15934bd
feat: add domain name validation (#1246)
jackwotherspoon Mar 19, 2025
80ca379
refactor: Use new ConnectSettings.DnsNames field determine the DNS Na…
hessjcg Mar 20, 2025
dee267f
chore(deps): update python-nonmajor (#1240)
renovate-bot Mar 20, 2025
1405f56
feat: reset connection when the DNS record changes (#1241)
jackwotherspoon Mar 21, 2025
be8fd06
chore(main): release 1.18.0 (#1247)
release-please[bot] Mar 21, 2025
52d4cba
build: update license identifiers in pyproject.toml (#1249)
jackwotherspoon Mar 21, 2025
3e45958
chore: Update blunderbuss.yml (#1250)
jackwotherspoon Mar 24, 2025
6ecf894
docs: use lambda over getconn func (#1251)
jackwotherspoon Mar 26, 2025
0106e0d
chore: initial commit with sample cloudbuild file
kgala2 Mar 7, 2025
195e0bb
chore: update cloudbuild location
kgala2 Mar 19, 2025
5db6c44
chore: update sample cloudbuild file
kgala2 Mar 19, 2025
fd6d5c3
chore: test cloudbuild logging and remove tests.yaml
kgala2 Mar 19, 2025
c17c130
chore: update license header for cloudbuild yaml file
kgala2 Mar 19, 2025
667f6e5
Update cloudbuild.yaml
kgala2 Mar 27, 2025
8caf3aa
Merge branch 'integrate-cloudbuild-psa' into test-cloudbuild
kgala2 Mar 27, 2025
db4cf92
Update cloudbuild.yaml
kgala2 Mar 27, 2025
ca2d2c4
Update cloudbuild.yaml
kgala2 Mar 27, 2025
54223d6
Update cloudbuild.yaml
kgala2 Mar 27, 2025
d9281af
Update cloudbuild.yaml
kgala2 Mar 27, 2025
d240589
Update cloudbuild.yaml
kgala2 Mar 27, 2025
4074fd3
chore: install nox
kgala2 Mar 27, 2025
bebb2f2
chore: update cloudbuild
kgala2 Mar 27, 2025
93db432
chore: update cloudbuild
kgala2 Mar 27, 2025
40c261b
chore: update iam user references
kgala2 Mar 27, 2025
bac7f2b
chore: remove test_connector_with_credentail test
kgala2 Mar 27, 2025
3ff0aff
chore: update ip type param
kgala2 Mar 27, 2025
e4aeed3
chore: update ip type
kgala2 Mar 27, 2025
d33df6f
chore:update cloudbuild.yaml
kgala2 Mar 27, 2025
be39898
chore: remove google.auth import statement
kgala2 Mar 27, 2025
de62cfe
chore: update unit test call on cloudbuild
kgala2 Mar 27, 2025
72369dc
chore: update pip install call
kgala2 Mar 27, 2025
5ae6850
chore: test private ip with logging
kgala2 Mar 28, 2025
ab49241
chore: update id names for tests
kgala2 Mar 28, 2025
05c70ef
chore: run tests in parallel
kgala2 Mar 28, 2025
4cfbf97
chore: update python version
kgala2 Mar 28, 2025
67804d2
chore: update _version substitution
kgala2 Mar 28, 2025
47dac6f
chore: update string usage for version
kgala2 Mar 28, 2025
698ef0b
chore: update _version substitution
kgala2 Mar 28, 2025
393b114
chore: update ${_VERSION} use
kgala2 Mar 28, 2025
13f7f3b
chore: replace string with list of strings for version
kgala2 Mar 28, 2025
c6d721f
chore: update versions
kgala2 Mar 28, 2025
5e3243d
chore: update python version
kgala2 Mar 28, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
78 changes: 69 additions & 9 deletions .cl/cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,76 @@
# limitations under the License.

steps:
- id: ping-google
name: alpine:3.10
entrypoint: ping
- id: run integration tests ${_EARLIEST_PYTHON_VERSION}
name: python:${_EARLIEST_PYTHON_VERSION}
entrypoint: bash
env:
- "IP_TYPE=private"
secretEnv: ["MYSQL_CONNECTION_NAME", "MYSQL_USER", "MYSQL_IAM_USER", "MYSQL_PASS", "MYSQL_DB", "POSTGRES_CONNECTION_NAME", "POSTGRES_USER", "POSTGRES_IAM_USER", "POSTGRES_PASS", "POSTGRES_DB", "POSTGRES_CAS_CONNECTION_NAME", "POSTGRES_CAS_PASS", "POSTGRES_CUSTOMER_CAS_CONNECTION_NAME", "POSTGRES_CUSTOMER_CAS_PASS", "POSTGRES_CUSTOMER_CAS_PASS_VALID_DOMAIN_NAME","SQLSERVER_CONNECTION_NAME", "SQLSERVER_USER", "SQLSERVER_PASS", "SQLSERVER_DB"]
args:
- -c
- "4"
- google.com

- "-c"
- |
pip install nox
nox -s system-${_EARLIEST_PYTHON_VERSION}
waitFor: ["-"]
- id: run integration tests ${_LATEST_PYTHON_VERSION}
name: python:${_LATEST_PYTHON_VERSION}
entrypoint: bash
env:
- "IP_TYPE=private"
secretEnv: ["MYSQL_CONNECTION_NAME", "MYSQL_USER", "MYSQL_IAM_USER", "MYSQL_PASS", "MYSQL_DB", "POSTGRES_CONNECTION_NAME", "POSTGRES_USER", "POSTGRES_IAM_USER", "POSTGRES_PASS", "POSTGRES_DB", "POSTGRES_CAS_CONNECTION_NAME", "POSTGRES_CAS_PASS", "POSTGRES_CUSTOMER_CAS_CONNECTION_NAME", "POSTGRES_CUSTOMER_CAS_PASS", "POSTGRES_CUSTOMER_CAS_PASS_VALID_DOMAIN_NAME","SQLSERVER_CONNECTION_NAME", "SQLSERVER_USER", "SQLSERVER_PASS", "SQLSERVER_DB"]
args:
- "-c"
- |
pip install nox
nox -s system-${_LATEST_PYTHON_VERSION}
waitFor: ["-"]
availableSecrets:
secretManager:
- versionName: 'projects/$PROJECT_ID/secrets/MYSQL_CONNECTION_NAME/versions/latest'
env: 'MYSQL_CONNECTION_NAME'
- versionName: 'projects/$PROJECT_ID/secrets/MYSQL_USER/versions/latest'
env: 'MYSQL_USER'
- versionName: 'projects/$PROJECT_ID/secrets/CLOUD_BUILD_MYSQL_IAM_USER/versions/latest'
env: 'MYSQL_IAM_USER'
- versionName: 'projects/$PROJECT_ID/secrets/MYSQL_PASS/versions/latest'
env: 'MYSQL_PASS'
- versionName: 'projects/$PROJECT_ID/secrets/MYSQL_DB/versions/latest'
env: 'MYSQL_DB'
- versionName: 'projects/$PROJECT_ID/secrets/POSTGRES_CONNECTION_NAME/versions/latest'
env: 'POSTGRES_CONNECTION_NAME'
- versionName: 'projects/$PROJECT_ID/secrets/POSTGRES_USER/versions/latest'
env: 'POSTGRES_USER'
- versionName: 'projects/$PROJECT_ID/secrets/CLOUD_BUILD_POSTGRES_IAM_USER/versions/latest'
env: 'POSTGRES_IAM_USER'
- versionName: 'projects/$PROJECT_ID/secrets/POSTGRES_PASS/versions/latest'
env: 'POSTGRES_PASS'
- versionName: 'projects/$PROJECT_ID/secrets/POSTGRES_DB/versions/latest'
env: 'POSTGRES_DB'
- versionName: 'projects/$PROJECT_ID/secrets/POSTGRES_CAS_CONNECTION_NAME/versions/latest'
env: 'POSTGRES_CAS_CONNECTION_NAME'
- versionName: 'projects/$PROJECT_ID/secrets/POSTGRES_CAS_PASS/versions/latest'
env: 'POSTGRES_CAS_PASS'
- versionName: 'projects/$PROJECT_ID/secrets/POSTGRES_CUSTOMER_CAS_CONNECTION_NAME/versions/latest'
env: 'POSTGRES_CUSTOMER_CAS_CONNECTION_NAME'
- versionName: 'projects/$PROJECT_ID/secrets/POSTGRES_CUSTOMER_CAS_PASS/versions/latest'
env: 'POSTGRES_CUSTOMER_CAS_PASS'
- versionName: 'projects/$PROJECT_ID/secrets/POSTGRES_CUSTOMER_CAS_PASS_VALID_DOMAIN_NAME/versions/latest'
env: 'POSTGRES_CUSTOMER_CAS_PASS_VALID_DOMAIN_NAME'
- versionName: 'projects/$PROJECT_ID/secrets/SQLSERVER_CONNECTION_NAME/versions/latest'
env: 'SQLSERVER_CONNECTION_NAME'
- versionName: 'projects/$PROJECT_ID/secrets/SQLSERVER_USER/versions/latest'
env: 'SQLSERVER_USER'
- versionName: 'projects/$PROJECT_ID/secrets/SQLSERVER_PASS/versions/latest'
env: 'SQLSERVER_PASS'
- versionName: 'projects/$PROJECT_ID/secrets/SQLSERVER_DB/versions/latest'
env: 'SQLSERVER_DB'
substitutions:
_LATEST_PYTHON_VERSION: '3.13'
_EARLIEST_PYTHON_VERSION: '3.9'

options:
dynamicSubstitutions: true
pool:
name: $_POOL_NAME
logging: CLOUD_LOGGING_ONLY
name: ${_POOL_NAME}
logging: CLOUD_LOGGING_ONLY
1 change: 1 addition & 0 deletions .github/blunderbuss.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

assign_issues:
- jackwotherspoon
- kgala2


assign_prs:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ jobs:
POSTGRES_CAS_PASS:${{ vars.GOOGLE_CLOUD_PROJECT }}/POSTGRES_CAS_PASS
POSTGRES_CUSTOMER_CAS_CONNECTION_NAME:${{ vars.GOOGLE_CLOUD_PROJECT }}/POSTGRES_CUSTOMER_CAS_CONNECTION_NAME
POSTGRES_CUSTOMER_CAS_PASS:${{ vars.GOOGLE_CLOUD_PROJECT }}/POSTGRES_CUSTOMER_CAS_PASS
POSTGRES_CUSTOMER_CAS_PASS_VALID_DOMAIN_NAME:${{ vars.GOOGLE_CLOUD_PROJECT }}/POSTGRES_CUSTOMER_CAS_PASS_VALID_DOMAIN_NAME
SQLSERVER_CONNECTION_NAME:${{ vars.GOOGLE_CLOUD_PROJECT }}/SQLSERVER_CONNECTION_NAME
SQLSERVER_USER:${{ vars.GOOGLE_CLOUD_PROJECT }}/SQLSERVER_USER
SQLSERVER_PASS:${{ vars.GOOGLE_CLOUD_PROJECT }}/SQLSERVER_PASS
Expand All @@ -102,6 +103,7 @@ jobs:
POSTGRES_CAS_PASS: "${{ steps.secrets.outputs.POSTGRES_CAS_PASS }}"
POSTGRES_CUSTOMER_CAS_CONNECTION_NAME: "${{ steps.secrets.outputs.POSTGRES_CUSTOMER_CAS_CONNECTION_NAME }}"
POSTGRES_CUSTOMER_CAS_PASS: "${{ steps.secrets.outputs.POSTGRES_CUSTOMER_CAS_PASS }}"
POSTGRES_CUSTOMER_CAS_PASS_VALID_DOMAIN_NAME: "${{ steps.secrets.outputs.POSTGRES_CUSTOMER_CAS_PASS_VALID_DOMAIN_NAME }}"
SQLSERVER_CONNECTION_NAME: "${{ steps.secrets.outputs.SQLSERVER_CONNECTION_NAME }}"
SQLSERVER_USER: "${{ steps.secrets.outputs.SQLSERVER_USER }}"
SQLSERVER_PASS: "${{ steps.secrets.outputs.SQLSERVER_PASS }}"
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ venv
.python-version
cloud_sql_python_connector.egg-info/
dist/
.idea
.coverage
sponge_log.xml
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## [1.18.0](https://github.com/GoogleCloudPlatform/cloud-sql-python-connector/compare/v1.17.0...v1.18.0) (2025-03-21)


### Features

* add domain name validation ([#1246](https://github.com/GoogleCloudPlatform/cloud-sql-python-connector/issues/1246)) ([15934bd](https://github.com/GoogleCloudPlatform/cloud-sql-python-connector/commit/15934bd18ab426edd19af67be799876b52895a48))
* reset connection when the DNS record changes ([#1241](https://github.com/GoogleCloudPlatform/cloud-sql-python-connector/issues/1241)) ([1405f56](https://github.com/GoogleCloudPlatform/cloud-sql-python-connector/commit/1405f564019f6a30a15535ed2e0d1dc108f38195))

## [1.17.0](https://github.com/GoogleCloudPlatform/cloud-sql-python-connector/compare/v1.16.0...v1.17.0) (2025-02-12)


Expand Down
Loading
Loading