> For the complete documentation index, see [llms.txt](https://developer.harness.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.harness.io/continuous-delivery/use-gitops/security/audit-trail.md).

# Audit Trail for GitOps

Harness captures key GitOps events in the [Audit Trail](/harness-platform/3.0/harness-platform-resources/governance/audit-trail.md) to help you track changes, enforce governance, and meet compliance requirements.

This page lists all GitOps-specific audit events currently supported in Harness.

### Supported GitOps Audit Events <a href="#supported-gitops-audit-events" id="supported-gitops-audit-events"></a>

GitOps audit events are recorded for changes made via the Harness API as well as background changes triggered by the GitOps reconciler (for example, when resources are deleted directly from the cluster instead of through the Harness UI).

#### Applications <a href="#applications" id="applications"></a>

* Create Application
* Update Application
* Delete Application
* Sync start

For applications created and managed via **ApplicationSets**, only **Delete** and **Sync start** events are supported in the audit trail.

#### ApplicationSets <a href="#applicationsets" id="applicationsets"></a>

* Create ApplicationSet
* Update ApplicationSet
* Delete ApplicationSet

#### GitOps Agents <a href="#gitops-agents" id="gitops-agents"></a>

* Create GitOps Agent
* Update GitOps Agent
* Delete GitOps Agent

#### Git Repositories <a href="#git-repositories" id="git-repositories"></a>

* Create Git Repository
* Update Git Repository
* Delete Git Repository

#### Repository Credential Templates <a href="#repository-credential-templates" id="repository-credential-templates"></a>

* Create Credential Template
* Update Credential Template
* Delete Credential Template

#### GitOps Clusters <a href="#gitops-clusters" id="gitops-clusters"></a>

* Create GitOps Cluster
* Update GitOps Cluster
* Delete GitOps Cluster

#### Repository Certificates <a href="#repository-certificates" id="repository-certificates"></a>

* Create Certificate
* Update Certificate
* Delete Certificate

#### GnuPG Keys <a href="#gnupg-keys" id="gnupg-keys"></a>

* Create GnuPG Key
* Update GnuPG Key
* Delete GnuPG Key

### System Reconciler Events <a href="#system-reconciler-events" id="system-reconciler-events"></a>

Delete events triggered by the **GitOps reconciler** are also tracked.

For example, if a GitOps-managed resource (such as an Application or Repository) is deleted directly from the cluster (for instance, via Argo CD), Harness detects the change, reconciles the state, and records the corresponding delete event in the audit trail.

### Viewing YAML Differences <a href="#viewing-yaml-differences" id="viewing-yaml-differences"></a>

For each GitOps audit event, you can view the YAML difference to understand what changed.

To view the diff:

1. Click on the event summary panel to open the event details.
2. Click on **View YAML Difference** in the event details panel.

<figure><img src="/files/v5J4jAmtjHboddGzNpS8" alt=""><figcaption><p>Click to view full size image</p></figcaption></figure>
