The Simplest Way to Make Ceph and CircleCI Work Like They Should
Using ceph and circleci together lets build jobs read and write storage objects during tests. CircleCI runs your code pipelines while Ceph stores build artifacts, caches, and test data. Teams often link these two tools to handle large binary files outside of git. When a pipeline starts, the runner fetches test assets from a Ceph bucket. After the build finishes, the job uploads compiled packages back to the storage cluster. This setup keeps git repos small and makes test runs much faster. How
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.
Using ceph and circleci together lets build jobs read and write storage objects during tests. CircleCI runs your code pipelines while Ceph stores build artifacts, caches, and test data.
Teams often link these two tools to handle large binary files outside of git. When a pipeline starts, the runner fetches test assets from a Ceph bucket. After the build finishes, the job uploads compiled packages back to the storage cluster. This setup keeps git repos small and makes test runs much faster.
How data and keys flow between ceph and circleci
To make this workflow run, CircleCI jobs need a way to talk to Ceph. Most teams use the object storage interface that Ceph provides. This interface works with standard object storage tools and client libraries. You generate an access key and a secret key inside the Ceph cluster. Then you save those keys as secret variables inside your CircleCI project settings.
When a job starts, CircleCI loads those variables into the build runner. The runner uses the keys to sign requests sent over the network to Ceph. Ceph checks the signature against its user list before allowing any read or write action. If the key matches a valid user with bucket permissions, the transfer begins right away.
For self-hosted runners, the data stays inside your private network during the whole run. Cloud runners must reach the Ceph endpoint over the public internet or a private link. In both cases, you should encrypt traffic in transit using standard TLS certificates. This stops outsiders from reading your keys or build files on the wire.
Common failure modes and how to scope roles
The biggest mistake teams make is sharing one master Ceph key across all pipelines. If a developer prints variables in a build log, that master key leaks out. Anyone with that key can then delete buckets or steal data from other projects. Shared service accounts also make it hard to see which pipeline changed a file.
Broad network rules cause another set of issues for storage admins. Opening your Ceph object endpoints to all public IP addresses invites brute force attacks. Since cloud build runners change IP addresses often, firewall rules become tough to manage. Teams often leave ports wide open just to keep builds from failing.
End-to-End Encryption + CircleCI Security: architecture patterns and best practices
Continue reading? Get the full guide.
Free. No spam. Unsubscribe anytime.
You can fix key sprawl by creating one Ceph user per CircleCI project. Give each user access to only the single bucket that project needs. Set read-only permissions for jobs that only pull test data. Save write permissions for the final build step that uploads release artifacts. Use CircleCI contexts to group keys by team and lock them to specific branches.
To fix network risks, run self-hosted CircleCI runners inside your own private network. Place these runners in a subnet that can only reach the Ceph object nodes. Block the runners from talking to the Ceph cluster management network. Turn on bucket logging in Ceph so you have a clear record of every request.
You should also set up lifecycle rules on your buckets to clear old files. Build pipelines create huge amounts of temporary data every single day. Without cleanup rules, failed builds will fill up your storage drives fast. Set your test buckets to delete untagged build artifacts after thirty days. Rotate your pipeline storage keys every ninety days to limit the risk of leaked secrets.
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
Should I use cloud runners or self-hosted runners for Ceph storage?
Self-hosted runners work best because they sit inside your private network near your storage cluster. This avoids public internet exposure, cuts data transfer fees, and speeds up large file downloads.
How do I stop test branches from overwriting production artifacts in Ceph?
Use separate Ceph buckets and separate user keys for branch builds and main releases. Lock the release keys inside a CircleCI context that only runs on your main branch.
What kind of Ceph storage interface works best with CircleCI jobs?
The object storage interface works best for build pipelines. It uses standard HTTP requests that work well across networks without needing kernel mounts on runners.
Related guides
In this post