The Simplest Way to Make Cloud Run and Minio Work Like They Should
Pairing cloud run and minio lets stateless containers read and write persistent object files. Your apps run on Google servers while Minio stores buckets over a standard API. Cloud Run spins containers up and down based on incoming web traffic. When a container stops, any files saved on its local disk disappear right away. Minio fixes this problem by giving those containers a fast place to keep files. This setup works well for teams that want portable object storage across clouds. How cloud ru
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.
Pairing cloud run and minio lets stateless containers read and write persistent object files. Your apps run on Google servers while Minio stores buckets over a standard API.
Cloud Run spins containers up and down based on incoming web traffic. When a container stops, any files saved on its local disk disappear right away. Minio fixes this problem by giving those containers a fast place to keep files. This setup works well for teams that want portable object storage across clouds.
How cloud run and minio handle keys and data flow
A container on Cloud Run needs an endpoint URL and a key pair. The app uses these details to log in to the Minio server. Once logged in, the app can list buckets, read files, and write new objects. All traffic moves over standard HTTPS calls between the container and the storage host.
Cloud Run itself cannot hold Minio cluster state on its own local disks. If you run Minio inside Cloud Run, it must point to external storage. Most teams run the Minio server on dedicated virtual machines with attached disks. Others run it as a service that translates calls to cloud storage buckets.
Identity flows from the Google service account to the secret store at startup. Your container reads the Minio key from a mounted secret volume or variable. Then your storage client signs each HTTP request before sending data over the network. Minio checks the signature against its own internal user list and policy rules.
Common failure modes and how to scope roles
The biggest mistake teams make is sharing one root key across every service. If one app has a bug, it can delete buckets owned by other apps. Shared keys also make audit logs very hard to read during an incident. You cannot tell which container deleted a file when every app uses one user.
Another trap is leaving the Minio admin port open to the public internet. Bots scan for open storage ports and try common keys all day long. You should place the storage server inside a private network instead. Next, attach a serverless VPC connector to your Cloud Run service for private routing.
End-to-End Encryption: architecture patterns and best practices
Continue reading? Get the full guide.
Free. No spam. Unsubscribe anytime.
Give each Cloud Run service its own Minio user and a narrow policy. If a worker only reads images, give it read permissions on one single bucket. Do not grant list or write rules to services that do not need them. Rotate those storage keys on a set schedule using your cloud secret manager.
Unlogged file reads can also create huge blind spots for security teams. When apps pull customer files, you need clear records of every single request. Turn on audit logging in Minio and send those logs to a central sink. Check that sensitive data like emails or card numbers stay safe in your buckets.
Keeping local and production setups aligned
Many teams choose this pair so local dev setups match live production systems. A developer can run a local Minio container on a laptop during testing. The app code uses the exact same storage client library in both places. When you deploy to Cloud Run, you only change the endpoint and key.
Still, humans often need to check buckets or fix broken files in production. Giving developers static production keys on their laptops breaks your clean security model. Keep human sessions separate from the service keys that your containers use.
Check database and API queries on the wire
Identity tools, roles, and network rules decide who opens a session. Setup alone cannot check what each query does or mask sensitive values in a response once a session starts. When workflows touch Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes APIs, SSH, or internal HTTP APIs, hoop.dev runs beside those services as an open-source proxy, a sidecar for your Postgres or API. It inspects requests coming in and results going back on the wire.
Your login details and client tools stay as they are while hoop.dev guardrails refuse bad deletes or drops before they run. On responses, hoop.dev data masking rewrites matched sensitive values in memory. Furthermore, hoop.dev holds SOC 2 Type II, is MIT licensed, and writes every query and decision to an audit trail that generates evidence for HIPAA, GDPR, and PCI DSS. See the source on GitHub.
Frequently asked questions
Can Minio store data on a Cloud Run local disk?
No, because Cloud Run disks live in memory and vanish when containers stop. You must back Minio with persistent disks on virtual machines or cloud buckets.
How should Cloud Run reach a private Minio server?
Use Direct VPC Egress or a Serverless VPC Access connector on your service. This routes traffic over private IP addresses instead of the public internet.
Where should we store Minio keys for Cloud Run apps?
Store your access key and secret key inside Google Cloud Secret Manager. Grant the Cloud Run service account permission to read only its own secret.
Related guides
In this post