The Simplest Way to Make Kustomize and Veritas Work Like They Should

Published
Length
3 min read

Luis Felipe Dias

All posts

You pair kustomize and veritas by defining backup rules inside declarative cluster manifests. Kustomize builds the YAML files, and Veritas runs the data protection jobs. Platform teams use this workflow to keep storage policies in version control. Each cluster gets the right backup schedule without manual setup. How kustomize and veritas handle logins and data flow Kustomize reads a base manifest and applies patches for each stage. You define storage classes, volume claims, and backup polici

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 pair kustomize and veritas by defining backup rules inside declarative cluster manifests. Kustomize builds the YAML files, and Veritas runs the data protection jobs.

Platform teams use this workflow to keep storage policies in version control. Each cluster gets the right backup schedule without manual setup.

How kustomize and veritas handle logins and data flow

Kustomize reads a base manifest and applies patches for each stage. You define storage classes, volume claims, and backup policies in these files.

When you deploy, the cluster API receives the merged YAML output. The Veritas operator watches the API for these specific custom resources.

Once detected, the operator logs in to the backup server using a secret. It checks the role attached to the Kubernetes service account.

If the role allows write actions, Veritas starts the snapshot job. It reads the target volumes and sends blocks to the storage pool.

Staging clusters often use smaller retention rules than production clusters. Kustomize overlays swap these values before the manifests reach the cluster.

This keeps the base files clean and easy to read. Teams do not need to copy full manifests for every single cluster.

Common failure modes and how to scope roles

A common mistake is putting plain API keys inside Git repos. Anyone who reads the repo can steal the backup server keys.

Another risk comes from using one shared service account for all namespaces. If one app breaks, an attacker can delete backups for other apps.

Unlogged queries and broad tokens also hurt security audits. When every job uses one admin token, logs do not show who ran what.

End-to-End Encryption + Kustomize Security Overlays: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

To fix this, give each namespace its own service account. Map each account to a tight role on the backup server.

An app team should only read and write its own volume snapshots. They should never have rights to alter global storage pools.

You should also lock down network paths between the tools. Only the backup operator pods need a path to the storage server.

Use network rules to block other pods from reaching the backup API. Store login keys in an external secret store instead of Git.

Let Kustomize reference secret names rather than holding the raw secret values. Rotate the service account keys on a fixed schedule to limit risk.

Testing manifest changes before deployment

Bad patches in an overlay can break backup schedules across a cluster. A typo in a storage class name stops snapshots from running.

Always run a local build check during your pull request review. Check that the merged YAML matches the schema required by the operator.

Verify that every overlay sets a valid retention limit and storage target. Automated checks catch missing fields before the cluster runs the file.

When a restore test runs, log the user identity and target volume. If backup records hold emails or card numbers, masking rewrites matched fields in results.

Clear logs help teams prove that data recovery works as planned. Good habits keep both your manifests and your stored data safe.

Add runtime guardrails and masking beside your databases and APIs

Login rules, role grants, and CI checks govern who connects to your stack. Yet any allowed script, engineer, or AI agent still runs commands with the full scope of its role. For workloads on Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes, SSH, or internal HTTP services, hoop.dev sits beside the service as an open-source proxy, a sidecar for your database or API.

Before a query runs, hoop.dev guardrails check the statement against your rules. An AI Analyzer you configure can score intent or hold risky calls for human review. Next, hoop.dev data masking rewrites sensitive fields in responses, and each verdict is logged per listener. Explore the MIT-licensed project on GitHub.

Frequently asked questions

How does Kustomize manage Veritas settings across clusters?

Kustomize uses a shared base file and small patch files called overlays. Overlays change backup schedules and storage targets for dev, staging, and prod.

Where should teams store Veritas login keys when using Kustomize?

Never store raw keys in Git overlays. Keep keys in an external secret manager and let Kustomize point to the secret name.

How do you limit blast radius for backup jobs?

Create a separate service account and role for every namespace. Restrict network traffic so only the backup operator pods reach the storage server.

The query runs. The emails stay hidden.