The Simplest Way to Make Cloud Storage and S3 Work Like They Should
Teams pair cloud storage and S3 to move files across two major clouds. This setup lets apps read, write, and back up data between both platforms. Many firms run data tools on one cloud and app servers on another. A good link between both object stores keeps daily work fast and safe. Without clear rules, teams end up with slow jobs and leaked keys. How cloud storage and s3 share keys and data Both systems store files as objects inside flat buckets. Each bucket holds objects, and each object h
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.
Teams pair cloud storage and S3 to move files across two major clouds. This setup lets apps read, write, and back up data between both platforms.
Many firms run data tools on one cloud and app servers on another. A good link between both object stores keeps daily work fast and safe. Without clear rules, teams end up with slow jobs and leaked keys.
How cloud storage and s3 share keys and data
Both systems store files as objects inside flat buckets. Each bucket holds objects, and each object has data and tags. To move files between them, one side must log in to the other.
In the old way, an engineer makes a static secret key on one platform. Then they paste that key into a script or transfer tool on the other. The tool uses that key to read objects from the source bucket. Next, it writes those objects into the target bucket over the network.
A better way uses workload identity federation between the two cloud providers. With federation, the source cloud proves its identity to the target cloud. The target cloud checks the token and grants a short role session. Now the transfer job can read or write files without stored keys.
Data can flow in one big batch or in small steps. Event tools can watch a source bucket for new uploads. When a new file lands, a worker job copies it to the other side. Both platforms also check file hashes during the copy step. If a hash does not match, the job drops the bad file and retries.
Common failure modes and how to scope roles
The biggest risk in cross-cloud setups is a shared service account. Teams often create one broad role and reuse it for every script. If an attacker steals that key, they can read or delete every bucket.
Broad tokens also cause trouble when an engineer leaves the team. Nobody knows which jobs will break if you turn off the old key. So the key stays active for years with full read and write power.
End-to-End Encryption: architecture patterns and best practices
Continue reading? Get the full guide.
Free. No spam. Unsubscribe anytime.
Unlogged reads are another major blind spot for security teams. If five apps share one role, bucket logs show only that role name. You cannot tell which person or job pulled a sensitive file. Plus, raw files often hold emails, phone numbers, card numbers, or national IDs. Masking rewrites matched fields in results before a script saves them elsewhere.
To fix this, give each transfer job its own narrow role. A backup job that reads from a source bucket needs read rights only. The target bucket role should allow writes only to one folder path. Never give a transfer worker full admin rights on either cloud.
You should also lock down the network paths between the two stores. Set bucket rules so they accept traffic only from known cloud IP ranges. Turn on object access logs in both clouds and send them to one place. Check these logs every week to spot odd read spikes or failed logins.
Keeping cross-cloud object transfers fast and clean
Moving terabytes across clouds can drive up network fees fast. Outbound data transfers cost money every time a job reads a file. To save cash, compress small files into larger bundles before you send them.
You should also set lifecycle rules on both sides right away. Old temp files and failed multipart uploads waste space and add cost. Tell both buckets to delete dead upload parts after a few days. Keep your folder layout the same on both clouds so scripts stay simple.
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
How do we move files between cloud storage and s3 without static keys?
Use workload identity federation between your two cloud accounts. This lets a job in one cloud trade its local token for temporary rights in the other.
How can we prevent data corruption during cross-cloud file transfers?
Check file hashes on every object before and after the transfer runs. Most transfer tools compare checksums and retry any file that does not match.
What is the safest way to scope bucket permissions for sync jobs?
Give the job read-only rights on the source bucket and write-only rights on the target path. Restrict the role by IP range and log every object request.
Related guides
In this post