GCP MariaDB
You run gcp mariadb by launching virtual machines or partner cloud services on Google Cloud. Google Cloud SQL does not offer a native managed option for this specific database engine. Most teams start by setting up a virtual machine and opening network ports. They often create shared database users so developers and apps can log in fast. When these roles have broad rights, any person or script can alter production data. How gcp mariadb works on Google Cloud Teams have three main paths to run
Your coding agents run with your access.
Claude Code reaches prod with a developer's credentials, and approval prompts get clicked through. hoop.dev checks every query, masks sensitive data, and holds risky changes for a human.
You run gcp mariadb by launching virtual machines or partner cloud services on Google Cloud. Google Cloud SQL does not offer a native managed option for this specific database engine. Most teams start by setting up a virtual machine and opening network ports. They often create shared database users so developers and apps can log in fast. When these roles have broad rights, any person or script can alter production data.
How gcp mariadb works on Google Cloud
Teams have three main paths to run this database engine on Google Cloud. First, you can install the database software on a Compute Engine virtual machine. This path gives you full control over the operating system and storage disks. You must manage your own patches, backups, and failover nodes across cloud zones. Second, you can pick a ready image from the Google Cloud Marketplace. These images set up the software on virtual machines with a few simple clicks. Third, you can use a managed partner service that runs inside Google Cloud regions. No matter which option you pick, network rules control how traffic reaches the database. You place the database inside a private virtual network to block public internet traffic. Then you set up firewall rules so only trusted app servers can send queries. Inside the database, admins create user accounts and grant table permissions for each role. Cloud IAM roles control who can start, stop, or delete the host virtual machines. Still, Cloud IAM does not manage the internal user accounts inside the database engine.
What native network and role controls miss
Private networks and firewall rules do a good job of blocking outside attackers. They ensure that only approved machines inside your cloud network can reach the database port. Internal database roles also help by limiting which tables a specific user can read. Yet these native controls only check who logs in at the start of a session. Once a developer or app logs in, the database trusts every query that follows. If an engineer needs to fix a bug, they often get broad write access. A simple mistake in a query can delete rows or lock a busy table. Native database roles also cannot hide sensitive fields inside a table during a read query. If a user has read rights on a customer table, they get the full row. Every select query returns raw emails, phone numbers, card numbers, and national IDs. Sharing static database passwords across a team creates another major blind spot for security. When five engineers share one admin user, the native logs only show that role name. You cannot tell which actual person ran a risky command during an outage. Revoking access also takes work when someone leaves the team or finishes a task. You have to rotate the shared password and update every app that uses it.
Managing day-to-day database operations and audits
Running your own database on cloud virtual machines takes steady daily work from your team. You need to watch disk space, memory use, and slow query logs every day. You also need a clear way to review who touches production data and why. Native audit plugins can write database activity to local disk files on the server. Moving those log files into central cloud logging tools takes extra setup and storage space. Even with good logs, you only find out about a bad query after it runs. High-performing teams look for ways to inspect queries before they hit the database engine. They also want to tie every single SQL statement back to an individual person. Centralizing how people and scripts run queries helps solve these daily operational gaps. It lets you keep strict control over production data without changing your database setup.
GCP IAM Bindings: architecture patterns and best practices
Continue reading? Get the full guide.
Free. No spam. Unsubscribe anytime.
Check MySQL queries and results on the wire
MySQL grants control who logs in. They do not check single queries or mask sensitive columns once a session starts. With hoop.dev, you run an open-source proxy, a sidecar for your MySQL. It runs next to MySQL, RDS, or Aurora and reads the MySQL wire protocol.
Multi-statement batches and prepared queries are split and checked one by one by hoop.dev guardrails. When a rule refuses a query, MySQL returns a native error packet with your message. On the response path, hoop.dev data masking rewrites string values in returned rows that match your rules. Every query and decision is logged per resource. See the MIT-licensed project on GitHub.
Frequently asked questions
Does Google Cloud SQL support MariaDB directly?
No, Cloud SQL only offers managed MySQL, PostgreSQL, and SQL Server instances. To run MariaDB on Google Cloud, you must use Compute Engine or a partner service.
Can I use Cloud IAM to log into my MariaDB instance?
Self-managed MariaDB on Compute Engine does not link directly to Cloud IAM for database logins. You must manage local database users and passwords or set up external directory plugins yourself.
How can I protect sensitive data in MariaDB from broad read queries?
Native table grants give all-or-nothing read access to rows and columns. To protect emails or card numbers, use data masking that rewrites matched fields in query results.
Related guides
In this post