mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 18:31:54 +00:00
Wait for databases to be provisioned before granting database-specific roles to the operator access user. ## Test plan Re-apply fixed https://sourcegraph.slack.com/archives/C05E2LHPQLX/p1718850688397579, indicating a race condition on database creation. Diff looks good: ```diff @@ -1447,10 +1472,15 @@ "path": "cloudrun/cloudrun-postgresqlroles-msp_iam-operator_access_service_account_table_grant", "uniqueId": "cloudrun-postgresqlroles-msp_iam-operator_access_service_account_table_grant" } }, "database": "msp_iam", + "depends_on": [ + "google_sql_database.postgresql-database-enterprise-portal", + "google_sql_database.postgresql-database-enterprise_portal", + "google_sql_database.postgresql-database-msp_iam" + ], "object_type": "table", "objects": [ ], "privileges": [ "SELECT" ``` ## Changelog - MSP Cloud SQL: Fix race condition between database creation and role grants for the read-only operator access user |
||
|---|---|---|
| .. | ||
| clouddeploy | ||
| googlesecretsmanager | ||
| internal | ||
| operationdocs | ||
| spec | ||
| stacks | ||
| terraformcloud | ||
| BUILD.bazel | ||
| cdktf.go | ||
| CODENOTIFY | ||
| managedservicesplatform.go | ||