Skip to content

Cloud SQL ​

Parity grade: B · SDK hashicorp/terraform-provider-google@v8.5.0 · last audited 2026-10-29 (c7d1c8106)

Category: GCP · View PARITY.md on GitHub · All Services

Parity & Coverage ​

MetricValue
PARITY entries audited52 (38 ok, 14 partial)
Feature families12 (9 ok, 3 partial)
Known gaps5
Deferred items0
Resource leaksclean

Known Gaps ​

  • Not served: SQL Server (the only SQL Server engine in the repo is internal to services/rds and is wired to that service's own instance model; Cloud SQL would need its own engine with logins, BAK import/export and SQLSERVER_* versions, and the image is amd64-only), rescheduleMaintenance (no route; Google schedules maintenance events and the emulator never creates one, so there is nothing to reschedule), cross-project replicas (replicas.go prepareReplicaLocked: a replica must share its primary's project), the CAS-based server certificate and Entra ID certificate calls, major version upgrade, the backupdrBackup field of restoreBackup (Backup and DR vaults are not emulated), DNS connect settings, Auth Proxy and IAM database authentication.
  • Point-in-time recovery continues across a PostgreSQL failover (the archive volume belongs to the instance, not to the engine slot) but still restarts its window after a MySQL failover (the binary log lives on the data volume that pkgs/mysqlengine manages) and after a switchover, where the promoted replica is another instance with its own archive volume.
  • sslMode and requireSsl are not enforced because the engine speaks plain TCP (netfront.go forwards bytes without a TLS layer); dataDiskType, insightsConfig and maintenanceWindow are echoed only.
  • PostgreSQL ignores database charset and collation (stored only); MySQL users get GRANT ALL on .; PostgreSQL users join a cloudsqlsuperuser role the emulator creates. Backups keep object ownership, so restoring one into a different instance needs the same roles to exist.
  • flags.list is a static subset (about 60 flags) and tiers.list a fixed list; a flag outside the subset is rejected although the engine would accept it. crash_recovery:

Audited Operations ​

52 audited operations
OperationWireErrorsStatePersist
InsertInstanceokokokok
GetInstanceokokokn/a
ListInstancesokokokn/a
PatchInstanceokokokok
UpdateInstanceokokokok
DeleteInstanceokpartialokok
RestartInstanceokokokn/a
CloneInstanceokpartialokok
GetLatestRecoveryTimeokpartialokok
PromoteReplicaokpartialokok
StartReplicaokpartialokok
StopReplicaokpartialokok
ExportInstanceokokokn/a
ImportInstanceokokokn/a
RestoreBackupokokokok
InsertDatabaseokpartialokok
GetDatabaseokokokn/a
ListDatabasesokokokn/a
PatchDatabaseokokokn/a
UpdateDatabaseokokokn/a
DeleteDatabaseokokokok
InsertUserokpartialokok
UpdateUserokokokok
GetUserokokokn/a
ListUsersokokokn/a
DeleteUserokokokok
InsertBackupRunokokokok
GetBackupRunokokokn/a
ListBackupRunsokokokn/a
DeleteBackupRunokokokok
CreateBackupokokokok
GetBackupokokokn/a
ListBackupsokokokn/a
UpdateBackupokokokok
DeleteBackupokokokok
Demoteokpartialpartialok
DemoteMasterokpartialpartialok
InsertSslCertokokokok
GetSslCertokokokn/a
ListSslCertsokokokn/a
DeleteSslCertokokokok
CreateEphemeralokokokn/a
GenerateEphemeralCertokokokn/a
GetConnectSettingsokokokn/a
ExecuteSqlokpartialokn/a
Failoverokokokok
Switchoverokokokok
GetOperationokokokok
ListOperationsokokokok
CancelOperationokpartialokn/a
ListFlagspartialokokn/a
ListTierspartialokokn/a

Audited Feature Families ​

Feature FamilyStatus
enginesok
state_onlypartial
connectingpartial
lrook
error_envelopeok
routing_isolationok
persistenceok
replicationok
point_in_time_recoveryok
tier_limitsok
authpartial
observabilityok

Released under the MIT License.