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
| Metric | Value |
|---|---|
| PARITY entries audited | 52 (38 ok, 14 partial) |
| Feature families | 12 (9 ok, 3 partial) |
| Known gaps | 5 |
| Deferred items | 0 |
| Resource leaks | clean |
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
| Operation | Wire | Errors | State | Persist |
|---|---|---|---|---|
InsertInstance | ok | ok | ok | ok |
GetInstance | ok | ok | ok | n/a |
ListInstances | ok | ok | ok | n/a |
PatchInstance | ok | ok | ok | ok |
UpdateInstance | ok | ok | ok | ok |
DeleteInstance | ok | partial | ok | ok |
RestartInstance | ok | ok | ok | n/a |
CloneInstance | ok | partial | ok | ok |
GetLatestRecoveryTime | ok | partial | ok | ok |
PromoteReplica | ok | partial | ok | ok |
StartReplica | ok | partial | ok | ok |
StopReplica | ok | partial | ok | ok |
ExportInstance | ok | ok | ok | n/a |
ImportInstance | ok | ok | ok | n/a |
RestoreBackup | ok | ok | ok | ok |
InsertDatabase | ok | partial | ok | ok |
GetDatabase | ok | ok | ok | n/a |
ListDatabases | ok | ok | ok | n/a |
PatchDatabase | ok | ok | ok | n/a |
UpdateDatabase | ok | ok | ok | n/a |
DeleteDatabase | ok | ok | ok | ok |
InsertUser | ok | partial | ok | ok |
UpdateUser | ok | ok | ok | ok |
GetUser | ok | ok | ok | n/a |
ListUsers | ok | ok | ok | n/a |
DeleteUser | ok | ok | ok | ok |
InsertBackupRun | ok | ok | ok | ok |
GetBackupRun | ok | ok | ok | n/a |
ListBackupRuns | ok | ok | ok | n/a |
DeleteBackupRun | ok | ok | ok | ok |
CreateBackup | ok | ok | ok | ok |
GetBackup | ok | ok | ok | n/a |
ListBackups | ok | ok | ok | n/a |
UpdateBackup | ok | ok | ok | ok |
DeleteBackup | ok | ok | ok | ok |
Demote | ok | partial | partial | ok |
DemoteMaster | ok | partial | partial | ok |
InsertSslCert | ok | ok | ok | ok |
GetSslCert | ok | ok | ok | n/a |
ListSslCerts | ok | ok | ok | n/a |
DeleteSslCert | ok | ok | ok | ok |
CreateEphemeral | ok | ok | ok | n/a |
GenerateEphemeralCert | ok | ok | ok | n/a |
GetConnectSettings | ok | ok | ok | n/a |
ExecuteSql | ok | partial | ok | n/a |
Failover | ok | ok | ok | ok |
Switchover | ok | ok | ok | ok |
GetOperation | ok | ok | ok | ok |
ListOperations | ok | ok | ok | ok |
CancelOperation | ok | partial | ok | n/a |
ListFlags | partial | ok | ok | n/a |
ListTiers | partial | ok | ok | n/a |
Audited Feature Families
| Feature Family | Status |
|---|---|
engines | ok |
state_only | partial |
connecting | partial |
lro | ok |
error_envelope | ok |
routing_isolation | ok |
persistence | ok |
replication | ok |
point_in_time_recovery | ok |
tier_limits | ok |
auth | partial |
observability | ok |
