The Simplest Way to Make App Of Apps and GitHub Actions Work Like They Should

Published
Length
3 min read

Luis Felipe Dias

All posts

Using app of apps and github actions together lets teams deploy many Kubernetes services from one parent definition. The runner updates version tags in Git, and the parent app syncs every child app to the cluster. This workflow keeps cluster state inside version control. Developers push code changes to a repo. The workflow runs tests, builds images, and updates the manifest repo. Then the GitOps controller reads the parent app and applies updates across all child apps. How app of apps and git

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 app of apps and github actions together lets teams deploy many Kubernetes services from one parent definition. The runner updates version tags in Git, and the parent app syncs every child app to the cluster.

This workflow keeps cluster state inside version control. Developers push code changes to a repo. The workflow runs tests, builds images, and updates the manifest repo. Then the GitOps controller reads the parent app and applies updates across all child apps.

How app of apps and github actions share permissions and data

Data flows between these two systems through Git commits and API calls. First, a developer merges code into the main branch. The runner starts a job to build the container image. Next, the job checks out the deployment repo that holds the parent app manifests.

The runner needs write permissions on the manifest repo to push new image tags. You can grant this with a scoped deploy key or a short-lived installation token. Once the runner commits the change, the cluster controller detects the new Git commit hash.

Sometimes the runner also calls the GitOps controller API to trigger an immediate sync. For this step, the workflow exchanges an OpenID Connect token with the identity provider. The controller checks this token against its role rules before allowing the sync command.

Data flows in one clear direction during normal operations. The CI job writes desired state to Git. The parent app reads that state and updates child apps in the cluster. Child apps then pull container images and run the workloads.

Common failure modes and how to scope roles

Many teams fail by giving one shared service account full admin rights. If a workflow uses a broad static token, anyone with repo write rights can control every cluster. A leaked token in a build log exposes the entire system.

Another common issue happens when runners push directly to the parent app folder without checks. One bad syntax change in the parent manifest can delete all child apps at once. Unlogged API calls from runners also make it hard to see who triggered a bad rollout.

GitHub Actions Security + DPoP (Demonstration of Proof-of-Possession): architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

You can fix these risks by scoping roles and network paths between both tools. Give each repo its own identity through OpenID Connect federation. Map that identity to a narrow role that only updates specific child app paths.

Split your repos so code and cluster manifests live in separate places. Restrict write permissions on the parent app folder to senior platform engineers. Let automated workflows update only the image tag files inside specific child app folders.

Lock down network paths between the CI runner and your cluster control plane. Do not expose the cluster API or controller dashboard to the public internet. Use private runners inside your virtual network, or require strict identity checks on every webhook call.

Testing changes before syncing child apps

Before a workflow merges changes to the manifest repo, it should validate every file. Run schema checks on the rendered Kubernetes manifests during the pull request step. This catches typos before the parent app tries to apply them.

You should also test how child apps order their startup steps. Use sync phases so database migrations finish before backend services start. When the runner updates a version file, the controller follows these phases to roll out changes safely.

Keep audit logs for both Git commits and controller API events. Match each cluster sync back to the exact workflow run and developer commit. Clear logs help teams spot broken rollouts and roll back to a known good commit fast.

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

Should the CI runner push directly to the main manifest branch?

For production clusters, have the runner open a pull request instead of pushing to main. This lets platform teams review changes and run automated schema checks before the parent app syncs.

How do we stop one broken child app from blocking others?

Configure each child app as an independent resource inside the parent manifest. If one child app fails its health check, the controller still syncs the remaining healthy apps.

What is the safest way for a workflow to authenticate to the GitOps API?

Use OpenID Connect federation instead of long-lived static passwords or shared API keys. The runner requests a short-lived token for each job and maps to a restricted role.

The query runs. The emails stay hidden.