Skip to content
ConfigHub for coding agents
Reference / review/README.md Source on GitHub

Configuration review

This page is for a team that reviews every configuration change as a pull request, more and more of them written by agents. A diff can show replicas: 4 → 1 in a Kustomize overlay. It does not show what that becomes in each environment, or that the 4 was set last week for a sale. This GitHub Action adds a comment to each pull request that says what each value becomes where it is deployed, why it was set, and what merging would undo.

You need no hub (ConfigHub server), no account, and nothing installed in the cluster. Nothing leaves the runner but the comment.

Add the review to a repository

  1. In your repository, add a GitHub Actions workflow, under .github/workflows/, with this content:
    name: Configuration review
    on: pull_request
    permissions:
      contents: read
      pull-requests: write
    jobs:
      review:
        runs-on: ubuntu-latest
        steps:
          - uses: actions/checkout@v4
            with:
              fetch-depth: 0
          - uses: confighubai/confighub-mini-plugin/review@v0

    @v0 follows every 0.x release. To stay on one release, use a version such as @v0.99.36.

  2. For the "why" of each value, have agents that use the ConfigHub plugin keep their records in the repository. Turn on CUB_MINI_RECORD_IN_REPO=1 in the plugin's settings. Without these records, the review still lists each value changed.
  3. Open a pull request. The review comments on it.

A person approves, and Argo CD keeps reading Git

For a platform team whose clusters Argo CD or Flux deploys from Git. Nothing changes in how they deploy, and nothing is installed on anyone's computer: the review runs on GitHub's runners, may read the repository and write a comment, and needs no secret.

  1. Add the review, as above.
  2. Name who approves each part of the repository, in .github/CODEOWNERS:
    /clusters/   @your-org/platform
    /catalog/    @your-org/platform
  3. In the branch protection for main, require a pull request, and a review from the code owners.

Each change to a cluster's values then waits for someone on that team. They see in the comment what each cluster gets, and why. GitHub keeps who approved each pull request, and the comment stays on it: what changed, on which clusters, why, and who said yes.

Here is part of the comment on a pull request that raises us-east's ingress for a launch, in a repository whose ApplicationSet deploys the ingress chart to each cluster labeled ingress=enabled, with each cluster's own values in clusters/CLUSTER/ingress/values.yaml:

clusters/us-east/ingress/values.yaml (Helm values)

ValueChangeWhyWhat it was, and why
replicas4 → 6commit ede07e5: us-east launch: 6 ingress replicas4 since commit 9967c61 by Amara on 2026-11-24: start

ApplicationSet argocd/ingress: Application us-east-ingress

for us-east, whose values this repository keeps. The ApplicationSet makes one Application for each cluster labeled ingress=enabled; Argo CD knows the full list.

ValueChangeWhy
Deployment/ingress/spec.replicas4 → 6commit ede07e5: us-east launch: 6 ingress replicas

A change to the chart itself, in catalog/ingress, is rendered for each cluster whose values the repository keeps. A cluster that overrides the changed value shows no change.

When agents make the changes, and you want only named people to be able to approve them, with each approval kept in ConfigHub: a check that only the approved copy merges. Argo CD still reads Git.

Record each pull request in a self-hosted hub with SSO

If your platform or security team wants an immutable audit trail across GitOps repositories inside your own network: without replacing Git, branch protection, or Argo CD/Flux: run ConfigHub self-hosted in your own cluster behind your company's OIDC or SAML single sign-on (SSO), and pass three optional inputs to the review Action (hub-url, hub-space, and a scoped CI service account hub-token). Each pull request with configuration changes is recorded as an immutable PullRequestReview attestation with its changed values, reasons, reviewers who approved it, and a SHA-256 digest of the redacted review. Credentials never leave the runner. See recording pull requests in a self-hosted hub with SSO.

What the comment shows

The comment lists every configuration value the pull request changes, from what to what. Where the ConfigHub plugin's record says why a value was set, the comment says why. The record is the plugin's list of what agents changed, with the reason for each change. Where no record explains a value, the reason is the message of the pull request's commit that set it: its line for that value in a section headed Reasons:, or else its first line.

The review reads Kubernetes files, Helm values, Kustomize, Compose, GitHub Actions workflows, settings files, Terraform variables and agent configuration.

A comment, from a GitOps repository

Agents set a sale's capacity in a repository with Kustomize overlays and a Flux HelmRelease, and kept their records in it. This is part of the comment on their pull request:

apps/api/overlays/prod/replicas.yaml (Kubernetes)

ValueChangeWhy
Deployment/api/spec.replicas3 → 6Black Friday, ~3x normal traffic

apps/api/overlays/prod/resources.yaml (Kubernetes)

ValueChangeWhy
Deployment/api/spec.template.spec.containers[api].resources.limits.memory(none) → 512MiBlack Friday, ~3x normal traffic

infra/redis/helmrelease.yaml (Kubernetes)

ValueChangeWhy
HelmRelease/redis/spec.values.replica.replicaCount1 → 2Black Friday, ~3x normal traffic

The comment then renders each Kustomize overlay and Helm release that the change reaches, before and after. It says what each value becomes where it is deployed. In this example:

  • The memory limit is new in the overlay's patch file, but prod already had 256Mi from the base.
  • The HelmRelease's replicaCount is the StatefulSet's replicas in the bitnami Redis chart.

apps/api/overlays/prod

ValueChangeWhy
Deployment/api/spec.replicas3 → 6Black Friday, ~3x normal traffic
Deployment/api/spec.template.spec.containers[api].resources.limits.memory256Mi → 512MiBlack Friday, ~3x normal traffic

HelmRelease shop-prod/redis

ValueChangeWhy
StatefulSet/redis-replicas/spec.replicas1 → 2Black Friday, ~3x normal traffic

The chart makes these anew each time it renders, so they are not compared: Secret/redis/data.redis-password.

What the review can render

Overlays are rendered with kubectl kustomize, and charts with helm template, both on GitHub's runners.

  • A Flux HelmRelease is rendered when its chart is in the repository, or comes from a HelmRepository or OCIRepository defined in the repository.
  • An Argo CD Application is rendered when its chart is a folder of the repository or comes from a Helm or OCI repository. Its value files, values and parameters are used, including value files it takes from this repository through another of its sources ($values/...). Applications are rendered with helm template --skip-tests as Argo CD applies those settings.
  • An Argo CD ApplicationSet is rendered as the Applications it makes. For a list generator, or a Git generator of this repository, that is one for each entry. For a clusters generator, only Argo CD knows the clusters, so it is one for each cluster whose value file the repository keeps, such as clusters/us-east/ingress/values.yaml. At most 12 of one ApplicationSet's Applications are rendered, and the rest are counted.
  • A chart's dependencies, such as a library chart of the repository taken with file://, are built with helm dependency build in the review's copy of each commit, never in your files.

Verified live (2026-12-02) against real Argo CD multi-source $values/... OCI charts (oci://ghcr.io/stefanprodan/charts/podinfo:6.7.0) and HTTP Helm ApplicationSet list generators (https://stefanprodan.github.io/podinfo:6.7.0), rendering exact Deployment diffs (spec.replicas, env, command) without Helm test-hook noise.

Private Helm & OCI registries in CI: Add a login step right before review@v0: helm template inherits your runner's Helm registry login (helm registry login ghcr.io -u "$GITHUB_ACTOR" --password-stdin <<< "${{ secrets.GITHUB_TOKEN }}") for OCI charts, and reads optional CUB_MINI_HELM_USERNAME / CUB_MINI_HELM_PASSWORD environment variables for private HTTP Helm repositories. Otherwise, the comment states clearly why a source was not rendered.

What merging it would undo

The comment opens with what merging the pull request would undo.

Here is an example. An agent scaled the api to 4 on the cluster for a sale, and its record was kept in the repository. Later, a pull request changes only the api's image, in a file that still says 2 replicas. The comment opens:

This change undoes 1 earlier change(s):

  • deploy.yaml has Deployment/api/spec.replicas at 2; an agent set it to 4 on the cluster with kubectl -n shop scale deploy api --replicas=4, 25 October 07:01. Deploying this puts it back. Why it was set: the commit with its record, accf5fd, Note live scale-up of api to 4 replicas for flash sale

The pull request never touches the replicas. But deploying it, by Argo CD or by kubectl apply, puts the sale's 4 back to 2.

The review flags a second case the same way: a value put back to what it was before an earlier commit set it.

What a value was, and why

When a pull request replaces a value, the comment also says:

  • what the value was;
  • the commit that set it, and who made it;
  • why it was set. The reason comes from the record, or from the commit message's Reasons section, or else from the commit's subject line.

For example, weeks after the sale, someone without the plugin scales prod back:

ValueChangeWhyWhat it was, and why
Deployment/api/spec.replicas6 → 2no record6 since 0f426fd, …, 2026-10-24: Black Friday, ~3x normal traffic