Announcing Fleet Management for Kargo Enterprise Learn More →

Announcing Fleet Management for Kargo Enterprise Learn More →

Announcing Fleet Management for Kargo Enterprise Learn More →

GitOps Security: How to Harden Argo CD and Kargo, Layer by Layer

Soumya Ghosh Dastidar

GitOps Security: How to Harden Argo CD and Kargo, Layer by Layer
GitOps Security: How to Harden Argo CD and Kargo, Layer by Layer

Teams running Argo CD and Kargo on the Akuity Platform can harden their delivery platform with security features across six layers, from network isolation to AI agents. This post is a practical guide to those features: what each one protects against and how to turn it on.

AI has raised the stakes for software delivery. Attackers try a credential pushed to a public repository within minutes. A single control does not hold up against that. Defense in depth does: several independent layers, so one mistake or one leaked secret does not become a breach.

AI is also moving inside the delivery platform. Teams now connect AI agents that act on the platform directly, which makes those agents a new kind of identity to govern. That raises the bar for the teams that build delivery platforms. A platform has to evolve as fast as the threats do: govern the agents that connect to it, and put AI and automation to work on security itself, from reviewing changes before they ship to retiring long-lived credentials.

Akuity builds that work into the platform, so platform teams do not have to assemble it themselves. When you run Argo CD and Kargo on Akuity, you are trusting us with the systems that deploy to production.

At a glance

Akuity’s security features fall into these layers that reinforce each other. “Where to start” at the end covers the order to turn them on, beginning with OIDC service accounts, IP allowlists, and agent federation.

Layer

Security Controls

What it protects against

Network isolation

Instance and agent IP allowlists, AWS PrivateLink, organization-wide web terminal lock

Internet-facing endpoints that scanners can probe, and shell access to production pods

Identity and access

OIDC service accounts, agent federation, passkeys, MFA enforcement levels

Leaked long-lived keys and phished logins

Credential protection

IP allowlists for API keys, fixed API key prefix, local repo credentials

Leaked keys used outside trusted networks, leaks that go undetected, and repository credentials leaving the cluster

Supply chain

Signed OpenVEX attestations, runtime CVE scanning (Akuity Operate)

Vulnerabilities in Akuity’s images and in deployed workloads

Visibility

IPs, tokens, and diffs in the audit log; actor and source IP in server logs; self-service instance logs; centralized audit (Akuity Operate)

Investigations that stall on who acted and from where

AI agents

MCP server governance; Deployment Advisor, On-Call Agent, and Promotion Advisor (Akuity Operate)

Agents acting without limits or audit trails, credentials reaching a model’s context, and risky promotions

Network isolation: control who can reach Argo CD and Kargo

On Akuity, network isolation starts with the architecture. A standard Argo CD install connects into each cluster with credentials stored in the control plane. Akuity re-architected Argo CD around an agent-based model instead, and Kargo Enterprise, which extends open source Kargo, runs the same way. In both, an agent inside each cluster opens an outbound connection to the Akuity Platform, so clusters do not need to expose their Kubernetes API, and Akuity does not need to hold credentials for them. The controls below narrow what remains reachable.


In Akuity's agent-based model, the agent in your cluster opens an outbound connection to the platform, so the Kubernetes API never has to be exposed.

Figure 1: In Akuity’s agent-based model, the agent in your cluster opens an outbound connection to the platform, so the Kubernetes API never has to be exposed.

IP allowlists: decide who can reach your instances

The IP allowlist is the first control to set. Each Argo CD and Kargo instance has an IP allow list and, by default the UI and API accept connections from any address. Add your office, VPN, and CI ranges in the instance settings under External Access, and requests from anywhere else are turned away before they reach a login page. Turn on Apply Allow List to Cluster Agents and the same list covers the agents, so an agent credential is only usable from the networks your clusters run in.

It takes a few minutes and narrows who can reach an instance before login, MFA, or API key checks come into play. See the IP allowlist docs for Argo CD and Kargo.

AWS PrivateLink: keep traffic off the public internet

An allowlist decides who gets through, but the endpoint still sits on the public internet. For many teams, TLS plus an allowlist is enough. For others, especially in regulated industries, “reachable from the internet” is a finding no matter how well the endpoint is protected.

If your clusters run on AWS, AWS PrivateLink takes the endpoint off the internet. Traffic from your Argo CD and Kargo instances, and from the components Akuity’s agent-based model runs in your clusters, stays on the AWS network and arrives through an interface endpoint in your VPC. Each private instance gets its own PrivateLink hostname, and its ingress accepts only traffic through the PrivateLink gateway. You choose connectivity per instance and per cluster, so you can migrate one piece at a time. PrivateLink is AWS only today, and we are looking at similar options for Google Cloud and Azure. The PrivateLink docs have the details.

Web terminal lock: no pod exec anywhere in the organization

Open source Argo CD ships with a web terminal that opens a shell in a running pod from the UI. It is handy when you are debugging at 2 a.m. It is also the kind of interactive production access that keeps security teams up at night. If an account is compromised, an open terminal hands the attacker a shell in production.

Until now the terminal was a per-instance setting, so security depended on each instance admin leaving it off. Organization owners can now disable it once, under Organization Settings > General. That setting overrides each Argo CD instance in the organization, and Akuity rejects attempts to turn it back on for one instance, whether they come from the UI, the API, the CLI, or Terraform. See the web terminal docs.

Identity and access: short-lived credentials and phishing-resistant logins

Identity controls decide who and what can act on the platform. On Akuity, that means short-lived credentials in place of stored keys, and logins that resist phishing.

OIDC federation: no long-lived keys in CI

A long-lived API key pasted into a CI system is one of the easiest credentials to leak. It is also one of the first targets for automated tools, which scrape CI logs, build artifacts, and public forks for strings shaped like tokens. The best fix is to stop creating those keys.

Service accounts let a pipeline or Kubernetes workload sign in with the OIDC token its platform already issues, such as a GitHub Actions token or a Kubernetes service account token. Akuity verifies that token and returns a short-lived credential. No long-lived secret lives in the pipeline, so there is no static key to leak or rotate.


The pipeline trades the OIDC token its platform already issues for an Akuity credential that expires in an hour.

Figure 2: The pipeline trades the OIDC token its platform already issues for an Akuity credential that expires in an hour, so there is no stored key to leak.

You register the issuer once, then create a service account with claim matches that say which workloads may use it. This one accepts only jobs on the main branch of a single repository:

Claim

Pattern

Matches

sub

repo:acme/app:ref:refs/heads/main

Pushes to main of acme/app

A few details worth knowing:

  • Standard OIDC issuers. These include GitHub Actions, GitLab, Okta, Entra ID, and your own Kubernetes clusters.

  • Short-lived credentials. One hour by default, configurable from one minute to 24 hours.

  • Two scopes. An organization service account can hold the Member role or custom roles, but not Owner. A workspace service account is limited to one workspace, where it can hold any workspace role, including Admin.

  • The same tools as an API key. Service accounts work with the Akuity CLI, the Terraform provider, the API, and the MCP server. Terraform also manages issuers and service accounts as resources, so the setup can live in code alongside the rest of your infrastructure.

The service accounts docs have worked examples for GitHub Actions and Kubernetes.

Agent federation: no long-lived tokens in your clusters

The same idea now applies to the agents in Akuity’s agent-based model that connect your clusters to Akuity. An agent used to authenticate to the Argo CD or Kargo instance with a long-lived token that shipped in its install manifest. With agent federation, the agent instead presents a short-lived token that its own cluster issues just in time, and Akuity verifies it against that cluster’s signing keys. There is no long-lived platform token to copy out of a manifest or a Secret, and a token that does leak expires on its own.

It is opt-in per cluster, for both Argo CD and Kargo agents. Turn on Agent Federation in the cluster or Kargo agent settings. See the agent federation docs for Argo CD and Kargo.

Passkeys: logins that resist phishing

Passwords get phished and reused, and no complexity rule fixes that. AI-generated phishing makes the first problem worse, since a convincing copy of a login page now takes minutes to build. A passkey avoids both problems. Akuity stores only the public key, and the passkey works only on the genuine Akuity login page.

If you sign in with an email and password, you can now enroll a passkey and use it for later logins. A passkey already counts as strong authentication, so it skips the separate MFA prompt. It is safer and faster than what it replaces. If your organization uses SSO, your login stays the same: you keep signing in through your identity provider. See the Account Security Docs.

MFA enforcement levels: decide how strong is strong enough

Requiring MFA on the Akuity Platform used to be all or nothing, even though second factors differ in how much protection they offer. Members can now enroll in a one-time password app, a hardware security key, or device biometrics such as Touch ID and Windows Hello. Organization owners choose how much to require:

Level

Accepts

Low

One-time password app, security key, or device biometrics, plus email codes

Medium

One-time password app, security key, or device biometrics

High

Security key or device biometrics (the phishing-resistant options)

The High level matters most against AI-assisted phishing. Security keys and device biometrics check which site they sign in to, so a lookalike page gets nothing it can replay.

People manage their own factors from their account page, and owners can see what each member has enrolled. If you raise the level, Akuity asks members who fall short to enroll a stronger factor at their next login. If a member loses access to their factor, an organization owner can request an MFA reset from the MFA tab. The setting is under Organization Settings > MFA, and the MFA docs explain each level.

Credential protection: limit what a leaked key can do

Some automation will keep needing an API key or a repository password. When it does, a leaked credential should be hard to use and stay as close to home as possible.

IP allowlists for API keys: keep leaked keys out of reach

Each API key can now carry a list of IP addresses and CIDR ranges, IPv4 or IPv6, that it may be used from. Akuity rejects requests from other addresses, whether they come through the CLI, the API, or Terraform. If a key shows up in a CI log or on a compromised laptop, it is of little use outside your network. That matters more as automated tools shrink the time between a leak and the first attempt to use it.

You can change the list at any time without rotating the key. It is in the API key dialog for both organization and workspace keys, and Terraform users set ip_allowlist on the akp_api_key resource. Service accounts support the same restriction. See the API keys docs.

API key prefix: catch leaked keys early

Even with allowlists, you want to know when a key has leaked, and the sooner the better. Secret scanners such as TruffleHog find credentials by their shape. Until now, Akuity API keys had no recognizable shape, so those tools missed them.

New API keys now start with an akp_ prefix and end with a checksum. The prefix makes a key easy to match, and the checksum lets a scanner tell a real key from a random string that looks like one, so you get fewer false alarms. Existing keys keep working as they are. To get the new format, regenerate the key. See the API keys docs.

Repository credentials that stay in your cluster

Argo CD needs credentials to read your Git repositories and registries, and some teams would rather keep those inside their own environment. Akuity’s agent-based model runs a component inside each connected cluster. Turn on Use Local Repo Credentials for a cluster, and that component reads the credentials from Kubernetes Secrets in its own namespace. The Akuity Platform does not need to store them.

Enable it in the cluster settings or with use_local_repo_creds on the akp_cluster Terraform resource.

Supply chain: verify what we ship and what you run

Supply chain controls let you verify both what Akuity ships and what runs in your clusters. Attackers probe the software supply chain as well as credentials, and a vulnerable dependency running inside a cluster gives them a foothold. Akuity’s agent-based model places components inside your clusters, alongside our Argo CD build and Kargo, so you should be able to check what we ship.

Signed OpenVEX attestations for Akuity images

We continuously scan our published images and release the results as signed OpenVEX attestations attached to each image digest. Feed the attestation to a scanner such as Grype, and it drops the CVEs Akuity has assessed as not affecting the image. Your scan results then focus on the findings that need attention instead of a wall of noise. The image verification docs have the commands.

Runtime CVE scanning: find vulnerable images in your clusters

OpenVEX covers what Akuity ships. Runtime CVE scanning in Akuity Operate covers what you run: it checks the publicly pullable container images running in the clusters connected to an Argo CD instance for known vulnerabilities. The scanner skips images from private registries that need credentials to pull, so pair it with your registry’s own scanning for full coverage.

Together, OpenVEX and runtime scanning cover both halves of a security review: the software that runs the delivery platform, and the images running in your clusters. It is off by default, so turn it on for each Argo CD instance under Settings > Insights > CVE Scan. The CVE scanning docs cover setup and where to find results.

Visibility: audit who did what in Argo CD and Kargo

When something goes wrong, the first two questions are who did it and where they came from. You should be able to answer both in minutes.

Client IPs, tokens, and diffs in the audit log

Audit log entries for actions taken through the Akuity Platform now show the client IP address next to the actor. You can filter by IP to see each action from one address, and the CSV export includes it. Entries for actions that change a resource also show the applied patch, so you see what changed, not only that a setting changed. For calls made straight to the Argo CD and Kargo APIs, the source IP is in the server logs, which you can read live from the instance’s Logs tab (both covered below).


The audit log shows who made each change and the IP it came from.

Figure 3: The audit log shows who made each change and the IP it came from. Opening an entry shows the patch that was applied.

API tokens are easier to follow too. Creating or deleting a Kargo API token or an Argo CD project token is now its own audit event, with the token and its role, and the audit log attributes each action taken with a token to that token. The audit log docs cover the filters.

Actor and source IP in Argo CD and Kargo server logs

Availability: On for each instance hosted on the Akuity Platform; self-hosted starting v0.34.0.

The audit log records changes. For the rest (who read what, which requests were refused, who tried to log in) you need the server logs.

Argo CD and Kargo now log each API request with the user or token behind it and the source IP address, on the same line. That includes reads and refused requests, not only successful changes, and in Argo CD it extends to web terminal sessions. Both also log login attempts, successful and failed.


The Argo CD API server logs each request with its source IP, including refused requests.

Figure 4: The Argo CD API server logs each request with its source IP, including requests that were refused. You can read these logs from the instance’s Logs tab.

If someone misuses a credential, you can see what it touched and where the requests came from, which is what you need to contain an incident quickly. Speed matters more when the other side is automated, since a scripted attack moves from one step to the next without waiting for a person.

Self-service instance logs

You can also read these logs yourself. A new Logs tab on the Argo CD and Kargo instance pages streams live logs from your instance’s control plane components, such as the API server, repo server, application controller, and Kargo controllers, with filtering, follow, and download. The CLI has the same capability:

akuity argocd instance logs <instance> --component=argocd-server --follow
akuity kargo instance logs <instance> --component=kargo-api --follow

Reading logs is its own permission, granted by default to organization owners and workspace admins, so someone who can only view an instance cannot read what its server logged. For historical logs, reach out to our team and we will pull them for you. See the instance logs docs.

Centralized audit with Akuity Operate

The audit log and server logs show what happened on each instance. Akuity Operate’s centralized audit brings those records into one place, and its observability dashboards put them next to deployment health, so an investigation can move from a suspicious change to its effect on production without switching tools.

AI agents: govern agents with the same controls as people

If agents are going to act on your delivery platform, they should follow the same rules as the people they work for. That applies to the agents your team connects through the MCP server and to the agents built into Akuity Operate.

Agents you connect through the Akuity MCP server

The Akuity MCP server:

  • Authenticates agents. It uses OAuth, including your organization’s SSO.

  • Limits what they can do. A guardrail level controls which tools they may call, with rate limits on write operations.

  • Leaves a trail. The audit log tags each change made through MCP, so you can filter for it.

  • Keeps secrets out of the model. The apply tools refuse credential inputs such as repository passwords and cluster tokens, so those values stay out of an agent’s context.


Changes made through the MCP server are tagged via MCP in the audit log.

Figure 5: Changes made through the MCP server are tagged “via MCP” in the audit log, and you can filter to see only those.

We covered this in Introducing the Akuity Agentic Control Plane and MCP Server and the getting started guide. The governance controls docs go deeper.

Akuity Operate’s agents: review risky changes and respond to degraded apps

Akuity Operate includes three Akuity-native agents:

  • Deployment Advisor answers questions and runs scheduled tasks against the Argo CD apps, Kargo projects, and namespaces you select.

  • On-Call Agent opens an incident when resources degrade and follows your runbooks to diagnose the problem and propose a fix.

  • Promotion Advisor, included with Kargo Enterprise, reviews the changes in a Kargo promotion and reports risk before it ships.

Promotion Advisor adds a review step before a risky change reaches production. On-Call Agent shortens the gap between a degraded resource and a response.

Each agent works only on the resources you select, and your tool policies decide which actions it can take on its own, which need a person to approve, and which it cannot take at all. The audit log records the agent’s changes and who approved them.

See the AI agents docs.


Before you promote, the AI Promotion Advisor tab summarizes the changes in the freight, rates the risk, and recommends what to check.

Figure 6: Before you promote, the AI Promotion Advisor tab summarizes the changes in the freight, rates the risk, and recommends what to check.

Where to start: Hardening Argo CD and Kargo, step by step

A security baseline sets the minimum your delivery platform should meet. These moves get you there, starting with the ones that cut the most risk:

  • Remove the credential most likely to leak: replace CI API keys with OIDC service accounts.

  • Limit where a leaked credential works: put IP allowlists on your instances, your agents, and the keys you still need.

  • Take long-lived tokens out of your clusters: turn on agent federation.

  • Harden logins against phishing: raise your MFA level and ask your team to set up passkeys.

  • Catch leaked keys early: rotate older API keys to the new akp_ format so secret scanners can detect them.

  • Remove shell access to production: disable the web terminal for the organization if your team does not use it.

  • See vulnerabilities in what you run: turn on runtime CVE scanning in Akuity Operate.

  • Know who did what, and from where: spend ten minutes in your audit log, filtering by IP and token.

  • Take traffic off the public internet: if your organization requires private connectivity, add AWS PrivateLink on the Enterprise plan.

Get expert help securing your delivery platform

The Akuity docs have setup guides for each feature. Our Security and Compliance page and Trust Center have our SOC 2 Type II report, ISO 27001 certification, and PCI DSS and HIPAA details.

Want a live walkthrough? Join Soumya Ghosh Dastidar, Founding Engineer at Akuity, and Ken Cochrane, Head of Engineering at Akuity on Tuesday, December 8th, for Harden Your GitOps Platform from End to End, a look at how these features work together and which to put in place first. Save your seat.

Already running Akuity? Email your customer success team at customer-success@akuity.io to schedule a security planning session. We will review your current setup, define a plan that fits your requirements, and help you put it in place.

New to Akuity? Book a demo with a solutions engineer to see these controls in action and talk through your security requirements.

Ready to simplify delivery with Akuity?

Deploy, promote, and operate applications reliably, powered by OSS you trust and Intelligence you control.

Ready to simplify delivery with Akuity?

Deploy, promote, and operate applications reliably, powered by OSS you trust and Intelligence you control.

Ready to simplify delivery with Akuity?

Deploy, promote, and operate applications reliably, powered by OSS you trust and Intelligence you control.