Skip to content

fix: Ensure that the SqlDataEndpoint includes the default port :443 - #1148

Merged
hessjcg merged 1 commit into
mainfrom
postgres-aide-e2e
Aug 17, 2026
Merged

fix: Ensure that the SqlDataEndpoint includes the default port :443#1148
hessjcg merged 1 commit into
mainfrom
postgres-aide-e2e

Conversation

@hessjcg

@hessjcg hessjcg commented Aug 15, 2026

Copy link
Copy Markdown
Collaborator

The GAPIC client library for SqlDataService requires that the endpoint include the port, for example "sqladmin.googleapis.com:443" This updates the default endpoint string, and adds logic to ensure
that ":443" is automatically added to the config option value if necessary.

The previous implementation using a generated gRPC library did not require the port number, so it worked with "sqladmin.googleapis.com".

Additionally, PR adds an end-to-end test verifying PostgreSQL connectivity via SqlDataService (AIDE) and updates CI and build scripts to manage AIDE secrets.

  • Add TestPostgresSQLDataConnect end-to-end integration test
  • Update write_e2e_env in build.sh to fetch POSTGRES_AIDE_* secrets from Secret Manager
  • Update .github/workflows/tests.yaml to fetch and pass POSTGRES_AIDE_* secrets in integration test runs

@hessjcg
hessjcg force-pushed the postgres-aide-e2e branch 3 times, most recently from 25efd4f to 668e4e4 Compare August 15, 2026 17:49
@hessjcg hessjcg changed the title test(e2e): add end-to-end test for postgres connection with sqldata iptype test: Add integration test for Developer Edition instance. Aug 15, 2026
@hessjcg hessjcg changed the title test: Add integration test for Developer Edition instance. test: Add integration test for Developer Edition Aug 15, 2026
@hessjcg
hessjcg marked this pull request as ready for review August 15, 2026 17:55
@hessjcg
hessjcg requested a review from a team as a code owner August 15, 2026 17:55
@hessjcg
hessjcg force-pushed the postgres-aide-e2e branch 4 times, most recently from 221e3da to 16fa8ca Compare August 17, 2026 17:35
…iptype

- Add TestPostgresSQLDataConnect for direct AIDE SQLData connection
- Add TestPostgresSQLDataFallback for fallback from SQLData to direct IP on PreconditionFailed
- Support SQLData fallback IP address preference order: PRIVATE, PSC, PUBLIC in ConnectionInfo
- Add TestConnectInfoSQLDataFallbackIP unit tests covering IP preference order
- Configure GAPIC SqlDataClient option initialization and streaming buffer handling
- Update write_e2e_env and build.sh to auto-detect GITHUB_TOKEN via gh CLI
- Update write_e2e_env and .github/workflows/tests.yaml for POSTGRES_AIDE_* and POSTGRES_FALLBACK_* secrets
@hessjcg hessjcg changed the title test: Add integration test for Developer Edition fix: Ensure that the SqlDataEndpoint includes the default port :443 Aug 17, 2026
@hessjcg
hessjcg force-pushed the postgres-aide-e2e branch from 16fa8ca to 0c3159d Compare August 17, 2026 20:42
@hessjcg
hessjcg enabled auto-merge (squash) August 17, 2026 20:43
@hessjcg
hessjcg merged commit a399bd5 into main Aug 17, 2026
21 checks passed
@hessjcg
hessjcg deleted the postgres-aide-e2e branch August 17, 2026 20:45
hessjcg added a commit to GoogleCloudPlatform/cloud-sql-proxy that referenced this pull request Aug 17, 2026
hessjcg added a commit to GoogleCloudPlatform/cloud-sql-proxy that referenced this pull request Aug 17, 2026
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.

2 participants