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

Published
Length
3 min read

Luis Felipe Dias

All posts

Teams use kustomize and port to manage cluster manifests through a developer portal. Port triggers actions from forms, while Kustomize builds the right overlays for each stage. This workflow lets developers launch or update apps without editing raw YAML files by hand. Platform teams keep control over base templates while developers change safe values like replica counts. How kustomize and port share data and roles Port acts as the front door where developers view services and request changes

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 kustomize and port to manage cluster manifests through a developer portal. Port triggers actions from forms, while Kustomize builds the right overlays for each stage.

This workflow lets developers launch or update apps without editing raw YAML files by hand. Platform teams keep control over base templates while developers change safe values like replica counts.

How kustomize and port share data and roles

Port acts as the front door where developers view services and request changes. Kustomize acts as the template engine that patches base files into final cluster manifests.

Data flows between the two tools through your version control system and build runners. A developer fills out a form in Port to change a service setting. Port sends a webhook or API call to your source control or build runner. The runner updates the Kustomize overlay file in your git repo and commits the change. Next, your deployment tool reads the updated Kustomize files and applies them to the cluster. Finally, a cluster agent or build job sends the new live state back to Port.

Each step in this chain needs its own scoped identity and clear permissions. Port needs a token that can only trigger specific build workflows or open pull requests. The build runner needs write access to the overlay folder in your git repo. The cluster sync agent needs read-only access to cluster state and write access to Port.

Common failure modes and how to scope roles

Many teams set up this workflow fast by using one shared admin service account. That single token often gets full write access to git repos, clusters, and the portal. If that broad token leaks, an attacker can change production manifests and hide the trail.

Shared accounts also break audit logs because every change looks like the same bot user. When a bad patch breaks an app, you cannot tell who requested the change. Unlogged API calls between runners and clusters make it hard to trace failed rollouts.

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

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

You can fix these risks by splitting roles across each step of the workflow. First, map every portal action to the human user who clicked the button in Port. Pass that user identity into the git commit message and the build log. Second, give Port a webhook key that only starts one specific workflow in your runner. Never give the portal direct write permissions to your production cluster API.

Third, lock down your git branches so Kustomize base files need platform team approval. Allow automated portal commits to touch only specific overlay folders for dev or staging. Fourth, restrict network paths so only your build runner can reach the cluster control plane. Keep the cluster API off the public net and require strict network rules for agents.

Keeping portal catalogs and cluster overlays in sync

State drift happens when someone runs a manual Kustomize build outside the portal workflow. The cluster gets a new setting, but the Port catalog still shows the old value. Developers then trust stale data and make bad choices during an incident.

To prevent drift, block manual local applies to shared clusters and force all changes through git. Run a scheduled check that compares your git overlays against the data stored in Port. If a mismatch shows up, alert the owning team and update the catalog card right away. When you must inspect live cluster state or database records, use data masking for sensitive fields. Masking rewrites matched fields like emails, phone numbers, card numbers, or national IDs in query results.

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

Does Port run Kustomize builds directly inside the portal?

No, Port does not run Kustomize builds on its own servers. Port sends a payload to your build runner, which runs Kustomize and updates your repo.

How do we stop developers from changing base Kustomize files from Port?

Scope the portal inputs to specific fields and write changes only to overlay folders. Use git branch rules to block automated bots from editing the base folder.

How does Port know when a Kustomize rollout finishes in the cluster?

Your deployment tool or cluster exporter watches the rollout status inside the cluster. Once the rollout finishes, that tool sends an API update back to the Port catalog.

The query runs. The emails stay hidden.