Skip to content

add ip type var due to mismatch in vpc usage across envs#4361

Merged
bolyachevets merged 3 commits into
mainfrom
fix-vpc-connector-var
May 7, 2026
Merged

add ip type var due to mismatch in vpc usage across envs#4361
bolyachevets merged 3 commits into
mainfrom
fix-vpc-connector-var

Conversation

@bolyachevets
Copy link
Copy Markdown
Collaborator

Issue #: /bcgov/entity33349

Description of changes:

Business db in prod is not configured to use shared vpc (this needs to be addressed via db migration referenced in the linked ticket).

For now, need to make sure that IP TYPE used in prod is Public (while dev/test/sandbox is Private)

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the lear license (Apache 2.0).

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR introduces a new 1Password-sourced environment variable intended to control Cloud SQL Connector IP type per environment (public in prod vs private in lower envs) to work around current VPC configuration differences.

Changes:

  • Add DATABASE_IP_TYPE to multiple vaults.gcp.env files for services/jobs that connect to business-db.
  • Standardize retrieving the IP type from 1Password (op://database/$APP_ENV/business-db/DATABASE_IP_TYPE) across impacted deployments.

Reviewed changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
queue_services/business-pay/devops/vaults.gcp.env Adds DATABASE_IP_TYPE secret mapping for Business Pay DB connectivity.
queue_services/business-filer/devops/vaults.gcp.env Adds DATABASE_IP_TYPE secret mapping for Business Filer DB connectivity.
queue_services/business-emailer/devops/vaults.gcp.env Adds DATABASE_IP_TYPE secret mapping for Business Emailer DB connectivity.
queue_services/business-digital-credentials/devops/vaults.gcp.env Adds DATABASE_IP_TYPE secret mapping for Digital Credentials DB connectivity.
queue_services/business-bn/devops/vaults.gcp.env Adds DATABASE_IP_TYPE secret mapping for Business BN DB connectivity.
legal-api/devops/vaults.gcp.env Adds DATABASE_IP_TYPE secret mapping for Legal API DB connectivity.
gcp-jobs/involuntary-dissolutions/devops/vaults.gcp.env Adds DATABASE_IP_TYPE secret mapping for this job’s DB connectivity.
gcp-jobs/filings-notebook-report/devops/vaults.gcp.env Adds DATABASE_IP_TYPE (but job code currently reads IP_TYPE).
gcp-jobs/entity-bn/devops/vaults.gcp.env Adds DATABASE_IP_TYPE (but notebook currently reads IP_TYPE).
gcp-jobs/email-reminder/devops/vaults.gcp.env Adds DATABASE_IP_TYPE secret mapping for this job’s DB connectivity.
gcp-jobs/bn-retry/devops/vaults.gcp.env Adds DATABASE_IP_TYPE secret mapping for this job’s DB connectivity.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread gcp-jobs/filings-notebook-report/devops/vaults.gcp.env Outdated
Comment thread gcp-jobs/entity-bn/devops/vaults.gcp.env Outdated
Comment thread legal-api/devops/vaults.gcp.env
@bolyachevets bolyachevets changed the title add vpc connector var due to mismatch in vpc usage across envs add ip type var due to mismatch in vpc usage across envs May 6, 2026
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented May 6, 2026

@bolyachevets bolyachevets merged commit 7ce58c5 into main May 7, 2026
56 of 62 checks passed
@bolyachevets bolyachevets deleted the fix-vpc-connector-var branch May 7, 2026 15:18
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