---
title: ArgoCD
description: Monitoring of ArgoCD applications and sync history in Pipedash, with an API token, single sign-on or a kubeconfig, Git organization filters, sync triggers, live resource state, a degraded status and run logs.
---

The ArgoCD plugin (`argocd`) treats each ArgoCD application as a pipeline. It shows sync and health state, lists deployment history as runs, starts syncs and stops running operations. It also reads sync results, application events and pod logs inside Pipedash.

## Requirements

The Credentials step of the Add provider dialog opens with "How to connect". Pick a method first. The dialog then shows only the fields of that method.

| Method | How Pipedash connects |
|---|---|
| "API token" | Calls the ArgoCD API server with an ArgoCD authentication token or a Kubernetes service account token, as a bearer token. |
| "Single sign-on" | Calls the ArgoCD API server with the ID token that its identity provider issues after a browser sign-in, as a bearer token. See [Single sign-on](#single-sign-on). |
| "Kubernetes" | Reads and patches the ArgoCD `Application` resources in the cluster with a kubeconfig. No ArgoCD server address or token is needed. ArgoCD project rules and sync windows still apply. See [Kubernetes mode](#kubernetes-mode). |

ArgoCD has no optional scopes. With "API token" or "Single sign-on", the token or the signed-in account needs permission to read applications, because validation lists them.

## Configuration

<Screenshot src="provider-argocd" variant="dialog" alt="ArgoCD Credentials step with Connection and Authentication sections" caption="Connection holds the server URL and TLS setting. Authentication switches between a token and single sign-on." />

| Key | Type | Required | Default | Description |
|---|---|---|---|---|
| `auth_mode` | Config file only | No | None | The method from "How to connect": `token`, `sign_in` or `kubeconfig`. The dialog writes it. Without it, Pipedash calls the API server with `token`. |
| `server_url` | Text | Yes, for "API token" and "Single sign-on" | None | ArgoCD API server URL, for example `https://argocd.example.com`. Must start with `http://` or `https://`. |
| `token` | Password | Yes, for "API token" | None | ArgoCD authentication token or Kubernetes service account token. The dialog labels it "Authentication Token". In Kubernetes mode, the same key holds the "Kubeconfig content" field. |
| `insecure` | Boolean | No | `false` | Skips TLS certificate verification, for self-signed certificates. Only `true` turns it on. Not used in Kubernetes mode. |
| `kubeconfig` | Text | No | `$KUBECONFIG` if set, else `~/.kube/config` | Kubernetes mode. The "Kubeconfig" field. Path to one or more kubeconfig files on the machine that runs Pipedash. `:` separates paths on Unix and `;` on Windows. Ignored when "Kubeconfig content" is set. |
| `context` | Select | No | None | Kubernetes mode. The "Kubernetes context" field. The context that points at the cluster where ArgoCD runs. Empty uses `current-context`. |
| `namespaces` | Text | No | `argocd` | Kubernetes mode. The "Application namespaces" field. Comma-separated namespaces that hold ArgoCD applications. Empty reads every namespace, which needs `list` at cluster scope. |
| `organizations` | Config file only | No | None | Comma-separated Git organizations that filter applications. Omit the key to show all. |
| `status_page_url` | Text | No | None | `https` address of a Statuspage site for this instance. Pipedash reads `/api/v2/summary.json` from it. |

The wizard has no `organizations` configuration field. Select applications and use the organization filter in Select pipelines instead. In the TOML file, `organizations` filters by the Git organizations of source repositories. Omit the key to show all applications. An empty string matches no organization and hides every application. The config table also takes `selected_items`, a comma-separated list of application names.

A provider saved before "How to connect" existed has no `auth_mode`. The edit dialog picks "Single sign-on" when the provider has a stored sign-in, and "API token" otherwise.

A `status_page_url` that is not an `https` URL without credentials, query or fragment fails the provider setup. Plain `http` works only for `127.0.0.1` and `[::1]`. See [provider health](/docs/features/provider-health).

## Single sign-on

With "Single sign-on" selected, the token field is hidden and the dialog shows a "Single sign-on" field with the button "Sign in with SSO". The button stays disabled until the other fields are valid. Saving without a sign-in shows "Sign in to continue". Saving before the sign-in finishes shows "Finish signing in to continue".

<Screenshot src="provider-argocd-sso" variant="dialog" alt="Add provider dialog with the Authentication selector set to Single sign-on and the line Signed in as priya.nair@acme.dev with a Sign in again button" caption="With Single sign-on selected, the token field is gone. A finished sign-in shows the account and a Sign in again button." />

Pipedash reads `/api/v1/settings` of the ArgoCD server without credentials and picks the sign-in provider from it:

| Server setting | What Pipedash uses |
|---|---|
| `oidcConfig` with an issuer | That issuer. The client ID is `cliClientID`, or `clientID` when no CLI client ID is set. The scopes are the configured ones, or `openid`, `profile`, `email` and `groups` when none are set. The provider label is the `name` of the config, or "SSO" when it is empty. |
| `dexConfig` with at least one connector | The Dex of the server at `<url>/api/dex`. `<url>` is the `url` setting of the server, or the configured server URL when that is empty. The client ID is `argo-cd-cli` and the scopes are `openid`, `profile`, `email`, `groups` and `federated:id`. When the server sets `dexAuthConnectorID`, Pipedash sends it as `connector_id`. The label is the connector name when there is one connector, and "SSO" when there are several. |
| Neither | The sign-in fails with "This Argo CD server has no SSO configured. Use an authentication token instead." |

How the sign-in runs:

1. Pipedash reads `<issuer>/.well-known/openid-configuration` and opens the authorization page of the issuer with an authorization code request and PKCE (S256). It adds the scope `offline_access` when the issuer lists it or lists no scopes. The redirect address is `http://localhost:8085/auth/callback`, the address the ArgoCD CLI uses.
2. The dialog shows "Waiting for you to sign in with" and the label of the provider. "Open the sign-in page again" and "Cancel" are next to it.
3. The desktop app opens the system browser and listens on port 8085 of `127.0.0.1`. When the browser returns, the page says "You can close this tab and go back to Pipedash." and the app comes to the front. On iOS and Android, the sign-in page opens in the system sign-in sheet.
4. If Pipedash cannot listen on port 8085, the dialog asks for the address of the page after sign-in. The web app always asks. The browser shows a page that cannot load. Copy its address, paste it in the field "Address of the page after sign-in" and select "Continue". The link "Browser didn't return to Pipedash?" opens the same field when the app listens.
5. The dialog then shows "Signed in as" followed by the account, with the button "Sign in again". The account is the first of the claims `email`, `preferred_username`, `name` and `sub` that the ID token has.

An attempt that is not finished after 10 minutes fails with "The sign-in was cancelled or timed out. Start it again." A finished sign-in waits 30 minutes for the user to save the provider. After that, it ends with the same message. A pasted address of another attempt fails with "This sign-in page belongs to another attempt. Start the sign-in again from Pipedash." An address of another page fails with "Paste the full address of the page your browser opened after you signed in."

**Stored data:** When the provider is saved, Pipedash stores the ID token with the other credentials of the provider. It stores the refresh token, the expiry time, the token endpoint, the client ID and the account name with it.

**Expiry and refresh:** Pipedash reads the expiry from the `exp` claim of the ID token, or from `expires_in` when the claim is missing. When the server gave a refresh token, Pipedash refreshes the ID token 60 seconds before it expires and stores the new one. If the identity provider rejects the refresh with `invalid_grant`, `invalid_client` or `unauthorized_client`, the sign-in has expired and Pipedash asks for a new one with "Your sign-in expired. Sign in again." Without a refresh token, Pipedash cannot renew the ID token. When a provider with a sign-in fails to authenticate, its recovery actions include the button "Sign in again", which opens the provider in the edit dialog. The edit dialog opens in "Single sign-on" mode and shows the account.

Pipedash also treats these Dex refresh responses as an expired sign-in. Both use HTTP `400` and `error = "invalid_request"`:

- `Refresh token is invalid or has already been claimed by another client.`
- `Refresh token expired.`

These responses show "Your sign-in expired. Sign in again."

**TOML file:** The file has no setting for single sign-on. The `token` of a provider in the file is always sent as a bearer token. The providers export never includes tokens or sign-ins, so it writes a variable such as `${PIPEDASH_TOKEN_ARGOCD_PROD:-}` for a provider that signed in. Add the provider in the app to use single sign-on.

## Base URL

ArgoCD has no default host, so `server_url` is required for "API token" and "Single sign-on". Pipedash appends `/api/v1` and ignores a trailing slash. `insecure = true` suits a server with a self-signed certificate.

## Kubernetes mode

With "Kubernetes", Pipedash reads the ArgoCD `Application` resources from the cluster with the kubeconfig, the same way as the [FluxCD](/docs/providers/fluxcd) and [Tekton](/docs/providers/tekton) plugins. The `kubeconfig` path points to a file on the machine that runs Pipedash. In the web app, that machine is the server and not the browser host. The context list fills from the kubeconfig.

The Kubernetes user in the kubeconfig needs these rights:

| Kubernetes right | Used for | Required |
|---|---|---|
| `get` and `list` on `applications` in `argoproj.io` | Status, history and validation | Yes |
| `patch` on `applications` | Sync and Cancel | No |
| `list` on `pods`, `replicasets` and `jobs` | Pod health and the "Pods" entry of the run log | No |
| `get` on `pods/log` and `list` on `events` | Pod logs and application events | No |

Without the pod rights, Pipedash keeps the state that ArgoCD reports and the run log lists no pods. An empty "Application namespaces" value reads every namespace, which needs `list` at cluster scope. An application outside the listed namespaces fails with `<namespace>/<name> is outside the configured namespaces (<namespaces>)` before any request is sent.

Listing, status, history, Sync, Cancel, the sync result and the application events work for every application. Sync and Cancel patch the `Application` the way the ArgoCD server does, with `resourceVersion` so a concurrent change fails instead of being overwritten. A sync carries the `syncOptions` and `retry` of the application. Pod logs and pod health work for applications whose destination is the cluster of the kubeconfig, `https://kubernetes.default.svc` or the cluster name `in-cluster`. Applications deployed to other clusters get the sync result and events only, and list no pods.

A pod that cannot start, for example with `ImagePullBackOff`, marks the application Degraded and names the pod, the same as with the API. ArgoCD v3 does not store the health of each resource in the `Application` by default, so Pipedash lists the pods, replica sets and jobs of each application that is not Healthy. A throttled pod check fails the pipeline list, the run history and the run log. Any other failed check fails the run history unless ArgoCD already reports the application unhealthy.

This mode has no links to the ArgoCD UI. On iOS and Android, only pasted "Kubeconfig content" works, and a kubeconfig user that authenticates through an exec credential plugin fails with an error. A token or a client certificate in the kubeconfig works.

## Pipeline discovery

Pipedash lists all applications from the server, keeps those whose source repository belongs to a listed Git organization, then keeps those named in `selected_items`. Without a filter, all applications stay. The Git organization is the segment before the repository name in the source URL, for both HTTPS and SSH URLs, so `git@github.com:acme/app.git` gives `acme`. A port in the URL changes nothing. `http://gitea:3000/acme/web.git` and `ssh://git@git.example.com:2222/acme/web` both give the Git organization `acme` and repository name `acme/web`. Search matches application name and repository URL.

An application with `spec.sources` uses its first source for the repository, branch and path. A destination that names a cluster with `name` instead of `server` shows that name as the cluster. An application that ArgoCD has not reconciled yet has an empty health status. It stays in the list as `pending`, and the other applications stay visible.

## Run history

Run history comes from the application's deployment history, newest first. Pipedash adds the current operation as the first run when the application has one. A deployment history entry that belongs to the current operation is not listed a second time.

## Trigger parameters

Triggering a pipeline starts a sync of the application. None of the options is required.

| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| `revision` | String | No | None | Git revision (branch, tag or commit SHA) to sync to. Empty uses the target revision. |
| `prune` | Boolean | No | `false` | Deletes resources that are no longer defined in Git. |
| `dry_run` | Boolean | No | `false` | Previews the sync without applying changes. |
| `force` | Boolean | No | `false` | Forces the sync even if resources are already synced. Hooks still run. |
| `apply_only` | Boolean | No | `false` | Skips pre-sync and post-sync hooks. Together with `force`, it forces the apply without hooks. |

## Cancel

Cancel stops the running operation of the application. The run number is ignored, because an application has one operation at a time.

## Run logs

The Logs tab of the run details shows three kinds of entries. The [Run logs](/docs/features/run-logs) page covers the viewer.

| Entry | What it shows |
|---|---|
| "Sync result" | The sync of the selected run. |
| "Application events" | The Kubernetes events that ArgoCD reports for the application. |
| "Pods" | One entry per pod of the application, listed under the stage "Pods". |

Pipedash reads the application and its resource tree to build the list. A run that is no longer in the application fails with a not found error that names the run number.

**Sync result:** For the current operation, the log starts with "Sync operation" and the start time. It lists who started it ("Started by" a user, or "Started by the automated sync policy"), the revision, the options `prune` and `dry run`, the retry count ("Retried N times") and the operation message. A failed operation shows its message as an error. A line gives the phase and the time taken, for example "Failed after 42s". The results of the resources follow, in one section per sync phase such as "PreSync phase, 1 resource". Each line has the result status, the resource and the hook type, with the message. Pipedash marks `SyncFailed` results and failed hooks as errors and `PruneSkipped` results as warnings. A section opens on its own when one of its lines is not plain. With no results, the log says "Argo CD recorded no resource results for this operation." or, for an operation that is still going, "No resource results yet."

For an older run, the log shows the deployment history record: who started it, the revision, the source and the time taken. It adds the line "Argo CD keeps per-resource results only for the most recent operation of an app."

**Application events:** Events come in time order. Each line has the type, the reason and the message, with "(xN)" for a repeated event. `Warning` events are marked as warnings. Without events, the log says "No events. Kubernetes keeps events for one hour by default."

**Pods:** The entries are the pods of the application at the time of the read, sorted by namespace and name. They do not depend on the run that is selected. A pod entry starts with its phase, the node, the reason, one line per container and the events of the pod. Init containers come first. The log of each container follows in its own section. A container that restarted also has a section "previous attempt", read from the previous container instance. Pipedash reads the last 1000 lines of each container. A container without output shows "No log output." A completed init container starts closed. Log lines without a valid time from ArgoCD, such as a message that a container waits to start, show as warnings.

The status of a pod entry follows its health: `Healthy` is `success`, `Degraded` and `Missing` are `failed`, `Progressing` is `running`, `Suspended` is `cancelled` and any other value is `pending`. The stage "Pods" takes the first of `failed`, `running` and `pending` that a pod has, and `success` otherwise.

**Live updates:** The sync result of a finished run is complete. While the operation runs, the sync result, the application events and the pod logs are snapshots. The viewer shows "Live" with the time since the last update. Pipedash reads these entries again about every 10 seconds while the log is open. It does not follow a pod log with a stream. Application events and pod logs stay snapshots for every run, so the "Live" marker stays on them.

**Limits and errors:**

- A pod log read stops with `Log download stalled for 60 seconds` when no data arrives for 60 seconds. The whole request ends after 15 minutes.
- A pod log read fails when ArgoCD sends more than 8 MiB of pod logs without a line break.
- A token or account that cannot read pod logs gets the permission error of ArgoCD for that pod.
- An error that ArgoCD puts into the log stream ends the read and shows the message of ArgoCD.

## TOML example

```toml
[providers.argocd-prod]
name = "ArgoCD Prod"
type = "argocd"
token = "${ARGOCD_TOKEN}"
refresh_interval = 30

[providers.argocd-prod.config]
server_url = "https://argocd.example.com"
insecure = "false"
organizations = "acme,platform"
selected_items = "payments,checkout"
```

In Kubernetes mode, the provider needs no `server_url` and no token:

```toml
[providers.argocd-cluster]
name = "ArgoCD Cluster"
type = "argocd"
refresh_interval = 30

[providers.argocd-cluster.config]
auth_mode = "kubeconfig"
kubeconfig = "~/.kube/config"
context = "prod-cluster"
namespaces = "argocd"
selected_items = "payments,checkout"
```

## Status mapping

<Screenshot src="provider-argocd-state" alt="Pipelines page filtered to the ArgoCD Prod provider, with applications labelled Degraded, Progressing, Out of sync and Synced" caption="The status of an application shows its label, such as Degraded, Progressing or Out of sync." />

The application list uses the operation phase first, then the health status, then the sync status. Each state has a label. The status badge of the application list and of the history page shows the label. The tooltip of the badge and the history page show the message.

| Pipedash status | Label | ArgoCD state |
|---|---|---|
| `running` | Syncing | Operation phase `Running` |
| `running` | Terminating | Operation phase `Terminating` |
| `failed` | Sync failed | Operation phase `Failed` or `Error` |
| `degraded` | Degraded | Health `Degraded` |
| `failed` | Missing | Health `Missing` |
| `cancelled` | Suspended | Health `Suspended` |
| `running` | Progressing | Health `Progressing` |
| `success` | Synced | Health `Healthy` and sync status `Synced` |
| `pending` | Out of sync | Health `Healthy` and sync status `OutOfSync` |
| `pending` | The sync status, or Unknown when it is empty | Empty health with any sync status, or health `Healthy` with another sync status |
| `pending` | The health status | Any other health value, such as `Unknown` |
| `skipped` | None | Not produced by this plugin |

Any other operation phase, such as `Succeeded`, leaves the decision to the health and sync status. The message is the operation message for the three operation rows and the health message of the application for the others.

**Live resource state:** For an application without a running or failed operation and with health `Progressing`, `Degraded` or `Unknown`, Pipedash also reads the resource tree of the application. It reads up to 8 trees at a time. An application with health `Healthy` costs no tree request. When the tree has a resource with health `Degraded`, the status becomes `degraded` with the label "Degraded". The message names the first degraded resource, a pod before any other kind, as `Pod web/web-7f9c-abc: back-off 40s restarting failed container=app`. `(+N more)` follows when other resources are degraded too. A resource without a namespace shows as `ClusterRole web`. The detail is the health message of the resource. Without one, Pipedash joins the pod details "Status Reason", `<ready> containers ready` and `<n> restarts` (only when not zero). When the tree request fails, the state from the application list stays.

A change to `degraded` raises a failure alert like a change to `failed` does. The title is `<name> is degraded · <repository>` and the body has the provider name and the message.

Runs follow a separate rule. The current operation maps `Running` and `Terminating` to `running`, `Succeeded` to `success`, `Failed` and `Error` to `failed`, and any other phase to `pending`. Entries from the deployment history map to `success`. The newest run follows the live state when it succeeded: it shows `degraded` while the application is Degraded or Missing, or one of its pods cannot start. Older runs keep their own result, and a failed run stays `failed`. In the run log, "Sync result" stays green when the sync itself succeeded. The run and the "Pods" stage carry the unhealthy state.
