Move remaining STRR services and jobs to Cloud SQL IAM auth - #1764
Open
Jacky-Pham wants to merge 13 commits into
Open
Move remaining STRR services and jobs to Cloud SQL IAM auth#1764Jacky-Pham wants to merge 13 commits into
Jacky-Pham wants to merge 13 commits into
Conversation
Collaborator
Author
|
CI container builds could not fetch the companion commit from the upstream repository before bcgov/sbc-connect-common#77 merges, so the dependency is now pinned to the exact commit on my fork. Once the companion PR merges, I will switch the source URL back to bcgov before this PR is merged. |
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



what changed
this moves
strr-email,strr-pay, and the eight database jobs to Cloud SQL automatic IAM auth using the shared Python Connector andpg8000setup from bcgov/sbc-connect-common#77.local development still uses the current password or socket settings when Cloud SQL runtime variables are not set.
interactions-updatenow uses the shared helper so IAM wins even when old database variables are still presentstrr-emailsandbox instance now usesnorthamerica-northeast1relationship and dependency
this uses the same Python Connector and pg8000 setup as #1763.
this pr and #1763 do not change the same files, so they can merge in either order after #77 is merged and the pins are updated.
the branch is pinned to the tested #77 commit through my fork for now. #77 needs to merge first, then i will update all ten consumers to the bcgov merge commit and regenerate the locks before this merges.
before merge
merging to
mainstarts the deploy, so these need to be done first:DATABASE_IAM_USERNAMEfor queue services,DATABASE_JOB_IAM_USERNAMEfor jobs,DATABASE_INSTANCE_CONNECTION_NAME, andDATABASE_NAMEin 1Passwordbcrbk9-devfor dev,bcrbk9-testfor test and uat,bcrbk9-toolsfor sandbox, andbcrbk9-prodfor prodsa-jobwrite access tostrr-dbbecause it only has readonly access today and all eight jobs write to the databaseDATABASE_PASSWORD,DATABASE_URL,DATABASE_HOST,DATABASE_PORT, andDATABASE_UNIX_SOCKETbecause the redeploy path keeps old variablestesting
interactions-updaterun: 36 passed, 90.91% coverage