The Simplest Way to Make GitLab CI and Rook Work Like They Should

Published
Length
3 min read

Luis Felipe Dias

All posts

Teams use gitlab ci and rook to automate storage updates inside Kubernetes clusters. The build runner sends manifests to the cluster, and the operator sets up disks. This workflow turns manual disk tasks into repeatable pipeline steps. Developers push code, and the storage cluster updates itself without manual commands. How gitlab ci and rook pass credentials and data The pipeline starts when a developer pushes storage rules to a repo. A runner picks up the job and prepares to talk to Kubern

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 use gitlab ci and rook to automate storage updates inside Kubernetes clusters. The build runner sends manifests to the cluster, and the operator sets up disks.

This workflow turns manual disk tasks into repeatable pipeline steps. Developers push code, and the storage cluster updates itself without manual commands.

How gitlab ci and rook pass credentials and data

The pipeline starts when a developer pushes storage rules to a repo. A runner picks up the job and prepares to talk to Kubernetes.

To log in, the runner uses a cluster token or a workload identity. Kubernetes checks this identity and decides what the runner can read or write.

Once inside, the runner updates custom resources for block, file, or object pools. The storage operator watches these resources and changes the underlying Ceph cluster.

Data flows from the pipeline YAML into the Kubernetes API server. From there, the operator translates those rules into real disk actions on nodes.

The runner also reads status fields back from the cluster API. This step lets the pipeline check if the storage pool is healthy.

Common failure modes in storage pipelines

Many teams give their pipeline runner a single cluster admin key. That broad token can delete whole storage pools if a script has a bug.

Shared service accounts also make audit logs hard to read. When five pipelines share one key, nobody knows which job broke a disk pool.

Long-lived keys stored in project variables create another big risk. If someone leaks a runner variable, an attacker can reach your production storage.

GitLab CI Security + End-to-End Encryption: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

Unlogged manual fixes cause drift between your git repo and the live cluster. Engineers often run quick commands during an outage and forget to update git.

Next, the pipeline runs again and overwrites those manual storage changes. This mismatch can drop volumes or stall database pods during a deploy.

How to scope roles and network paths

Start by creating a separate Kubernetes role for each pipeline job. Give the runner permission to edit only the specific storage namespace it needs.

Never let a standard app pipeline edit cluster-wide storage classes or Ceph settings. Keep storage operator changes in their own repo with strict branch rules.

Replace static cluster keys with short-lived tokens tied to the pipeline job identity. The cluster can check the job token and grant rights for minutes.

Lock down network paths between your runners and the Kubernetes API server. Run your storage jobs on private runners inside the same cloud network.

Add a dry-run step before any job writes changes to the live operator. This check catches bad disk settings before they touch real data.

Also, test your storage manifests in a scratch cluster during merge requests. Catching a bad pool rule early saves hours of recovery work later.

Govern statements and responses across databases and APIs

Good config and scoped roles are needed setup. They do not check single queries in flight or mask sensitive fields in returned rows. Across Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes APIs, SSH, and internal HTTP endpoints, hoop.dev runs beside each supported service as an open-source proxy, a sidecar for your database or API.

First, hoop.dev guardrails block banned queries before they run. Then hoop.dev data masking rewrites matched sensitive values in responses in memory. The audit trail records every statement and verdict per resource. Furthermore, hoop.dev holds SOC 2 Type II and is open source on GitHub.

Frequently asked questions

Should application pipelines update Rook cluster settings directly?

No, app pipelines should only request volume claims inside their own namespace. Keep operator updates and pool changes in a separate platform pipeline.

How do we stop runners from deleting live storage pools?

Remove delete permissions from the runner role for critical storage custom resources. Require a manual review step before any job can remove volumes.

What is the safest way for a runner to log in to Kubernetes?

Use open identity tokens that expire as soon as the pipeline job finishes. Avoid storing static kubeconfig files or admin keys in project variables.

The query runs. The emails stay hidden.