416 Commits
Author SHA1 Message Date
zeekayandHanzo Dev 1ab6e799c1 cd: the module is github.com/hanzoai/cd, where it is actually hosted
go.mod still declared `module github.com/hanzoai/deploy` after the repo was
renamed. A Go module path is not cosmetic — it is the resolvable location. So
`go get github.com/hanzoai/cd` could not work, and anything importing this
module had to spell a name that no longer exists at that address. The build log
of v3.6.0 is where it surfaced: the compiler was still emitting
github.com/hanzoai/deploy/cmd/cd/commands.

3541 import paths across 690 .go, 19 .proto, 4 .yaml, 3 .sh, 2 .mod, Procfile
and Makefile. Plus the 62 ghcr.io/hanzoai/deploy image references, moved to
ghcr.io/hanzoai/cd to match hanzo.yml's build target — a distinct string from
the module path, replaced separately so neither could clobber the other.

go mod tidy clean, CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build ./... clean.

Co-authored-by: Hanzo Dev <[email protected]>
2026-07-28 21:16:24 -07:00
zeekayandHanzo Dev b726a55cab cd: internalize the five argoproj/pkg utilities, drop the dependency
github.com/argoproj/pkg/v2 was one of two live argoproj dependencies. It is
11 files and 176K total, and we used five packages from it: grpc/http,
kubeclientmetrics, stats, sync, time.

Vendored into util/vendored/ and the dependency dropped from go.mod, so the
gRPC surface (2 references, in grpc-http/forwarders.go) is now ours to remove
on our own schedule rather than upstream's. Kubernetes client-go pulls gRPC
transitively regardless, so this is isolation — a realistic first step — not
a claim that gRPC is gone.

Internalized rather than forked to a shared repo because the only other
consumer, hanzo/gitops, has zero live deployments and zero dependents. A
second repo would be a second thing to version for one caller.

NOTICE carries the Apache-2.0 attribution. go build ./... exit 0.

Co-authored-by: Hanzo Dev <[email protected]>
2026-07-28 16:08:34 -07:00
zeekayandHanzo Dev bc6d960ad4 cd: the credential store interface is DB, not ArgoDB
The last Argo in the core type surface. It is also the seam that matters for
going KMS-native: repo- and cluster- credentials are read through ONE
interface with ONE constructor (NewDB), so a KMS-backed store is a second
implementation, not a rewrite of the 26 files that touch Secrets.

go build ./... exit 0.

Co-authored-by: Hanzo Dev <[email protected]>
2026-07-28 16:04:24 -07:00
zeekayandHanzo Dev 84ee9fa0ce cd: kill the argo naming — binaries, packages, identifiers
Every command is cd-*: cd, cd-server, cd-repo-server,
cd-application-controller, cd-applicationset-controller, cd-cmp-server,
cd-commit-server, cd-dex, cd-git-ask-pass, cd-k8s-auth, cd-notification.
util/argo is util/cd; util/notification/argocd is util/notification/cd.

Preserved deliberately: github.com/argoproj/argocd-example-apps is an
EXTERNAL repo used as an e2e fixture, and notifications-engine + pkg/v2 are
real dependencies. Renaming a URL we do not own would break the tests.

Two bugs I made and caught, both from a careless sed:
- s/argo/cd/g turned 'argocd' into 'cdcd' in two directory names
- renaming the package declaration left every call site saying argo.X

go build ./... exit 0.

Co-authored-by: Hanzo Dev <[email protected]>
2026-07-28 16:00:25 -07:00
zeekayandHanzo Dev dbecd2d18b fix: API group back to apps.hanzo.ai, the group the cluster actually serves
main declared Group = "cd.hanzo.ai" while every CRD, all four Applications and
every tracked object in hanzo-k8s are on apps.hanzo.ai. There are no
cd.hanzo.ai CRDs anywhere, so a build from main binds nothing: the controller
comes up healthy, watches a group with no resources, and silently stops
reconciling the fleet. The deployed image (sha-e1b9244, all three components)
is the only reason this has not fired.

The rename reached further than the group. common.go:215 moved the ownership
annotation to cd.hanzo.ai/tracking-id while live objects carry
apps.hanzo.ai/tracking-id, and the finalizers moved too
(resources-finalizer.cd.hanzo.ai), which would leave existing objects holding
finalizers no running controller removes. Renaming a CRD group plus the
ownership annotation plus the finalizers is a data migration over every managed
object, not a source edit — shipping it as an edit is the defect. Reverting
restores the property that was lost: main is deployable at any time.

Mitigating only by luck: prune is false on all three automated Applications, so
the failure mode is "GitOps stops" rather than "GitOps deletes". Not a design.

Verified: no occurrence was a hostname (checked for the argocd.hanzo.ai-style
substring trap; none), 29 files, zero residual, register.go now byte-identical
to the deployed baseline. go build ./... exits 0. TestGetGlobalProjects and
TestGetAppOfAppSummary fail identically on unmodified origin/main — pre-existing,
not from this change.

If cd.hanzo.ai is still wanted, it needs CRD install, object conversion,
annotation and finalizer rewrite across every tracked resource, and RBAC —
executed deliberately, not carried in a source constant.

Co-authored-by: Hanzo Dev <[email protected]>
2026-07-27 21:28:51 -07:00
zeekay 2ee31f825c rebrand: API group apps.hanzo.ai -> cd.hanzo.ai
apps.hanzo.ai collided head-on with the operator: its App CR already occupies
the resource name `apps.hanzo.ai` (plural `apps`, group `hanzo.ai`), so
`kubectl get apps.hanzo.ai` resolved to the operator's CR, not ours, and
`applications.apps.hanzo.ai` read as a stutter. cd.hanzo.ai gives the delivery
plane its own orthogonal group: applications/applicationsets/appprojects.cd.hanzo.ai
alongside the operator's apps.hanzo.ai. One name per concern.

Mechanically identical to e1b924475 (deploy.hanzo.ai -> apps.hanzo.ai): group
constant, every annotation/label/finalizer domain, the node.Group check, the
leader-election ID, the informer GVRs, RBAC apiGroups, and the 3 CRD manifests.
Also corrects the stale `+groupName=argoproj.io` marker in doc.go, which drove
nothing but misled every reader of this package, and the ArgoCD/argoproj naming
in the hanzo.yml cutover note.

Live cutover (CRD apply, CR re-home, image swap) stays separately greenlit —
hanzo.yml is deliberately build-only.
2026-07-25 15:11:48 -07:00
zeekayandHanzo Dev e1b924475c rebrand: API group deploy.hanzo.ai -> apps.hanzo.ai
The CRD kind is Application, so apps.hanzo.ai reads naturally
(applications/applicationsets/appprojects.apps.hanzo.ai). Flips the group
constant (pkg/apis/application/register.go), all annotation/label/finalizer
domains (tracking-id, installation-id, secret-type, refresh, hydrate,
resources-finalizer, etc.), the node.Group check, and the 3 CRD manifests.
Module path github.com/hanzoai/deploy and hanzocd-* object names unchanged.

Co-authored-by: Hanzo Dev <[email protected]>
2026-07-22 19:15:05 -07:00
zeekayandHanzo Dev 14d5f97186 rebrand: white-label served surfaces Argo CD -> Hanzo CD
Sweep residual upstream brand from Hanzo-served surfaces (UI, CLI, API docs,
notifications). Imports, identifiers, env vars, and k8s object/command names
are left intact.

- UI: HelpIcon tooltips, help-page + cluster-management doc links ->
  docs.hanzo.ai, login + sidebar logos -> hanzo-logo-white.svg (alt text +
  broken Argo.svg / logo.png refs), rendered "Argo CD" -> "Hanzo CD"
- CLI (cmd/, server/): Short/Long/Example/flag help + "ArgoCD API Server"
  startup banner -> Hanzo CD
- API: .proto service-doc comments + generated assets/swagger.json -> Hanzo CD
- notification controller comment

Preserved (imports / identifiers / contracts): module github.com/hanzoai/deploy,
ARGOCD_* env vars, argocd-* binary/command names, ArgoCD* Go identifiers,
argoproj.io/argocd label values, argo-* CSS classes, k8s object names.

Co-authored-by: Hanzo Dev <[email protected]>
2026-07-22 17:56:24 -07:00
15d87b3e72 refactor(cd): hard-fork - rename CRD API group argoproj.io -> deploy.hanzo.ai (#1)
* feat(api): hard-fork CRD API group argoproj.io -> deploy.hanzo.ai

Hanzo CD hard-fork, phase 1.1. Single source of truth is
pkg/apis/application/register.go's Group constant (Application/AppProject/
ApplicationSet all derive their FullName from it); every other Go call-site
that hardcoded the literal group string is updated to match: the 3 generated
informer GVRs, the app-of-apps nested-Application detector in types.go, the
resource-tree Application-kind cache populator, the 3 NotFound error
constructors in server/application, and the applicationset-controller's
leader-election Lease name/ID (kept in lockstep across Go source + RBAC
resourceNames, or leader election would get RBAC-denied on startup).

CRD YAMLs (application/appproject/applicationset) and every RBAC apiGroups
rule that actually governs our 3 CRDs are repointed to deploy.hanzo.ai, across
both manifests/base/* (namespaced Roles) and manifests/cluster-rbac/* (cluster
scope). Two adjacent things that share the "argoproj.io" string but are NOT
ours are deliberately left untouched: gitops-engine's health-check dispatch
for Argo Workflows' `Workflow` kind, and argocd-server-clusterrole's second
apiGroups block granting read on Argo Workflows' `workflows` resource — both
belong to a separate, unrelated Argoproj-family project we are not forking.

Also untouched, per explicit scope: annotation/label keys (argocd.argoproj.io/*)
and finalizers (*.argoproj.io) that track already-applied live resources, and
argocd-cm.yaml's resource.customizations.ignoreResourceUpdates keys (a narrow
app-of-apps diffing nicety, not build- or RBAC-relevant).

CGO_ENABLED=0 go build ./... verified green.

* ci: wire canonical hanzo.yml + cicd.yml (Hanzo CD image build)

Phase 1.3. Follows the same one-way pattern every hanzo/lux/zoo repo uses:
hanzo.yml declares the image (root Dockerfile -> ghcr.io/hanzoai/deploy) and a
fast go-build sanity test (the multi-stage Dockerfile build is the slow, real
gate); cicd.yml is the ~10-line trigger shim importing hanzoai/ci's reusable
build workflow on the arc pool, secrets from KMS only.

No `deploy:` block yet, matching the hanzoai/cms build-only-first-cutover
pattern: this repo's own live hanzo-cd namespace runs the whole Hanzo fleet's
GitOps, so the prod image/CRD swap is a deliberate separate action (see the
[HELD] universe PR), never an automatic rollout on merge. Every PR/push still
builds and pushes an immutable ghcr.io/hanzoai/deploy:sha-<7>-amd64 image.

* feat(ui): rebrand Argo CD -> Hanzo CD (title, favicon, logo, sidebar)

Phase 1.2. User-facing "Argo CD"/"ArgoCD" text replaced with "Hanzo CD"
across the login page, help modal, settings screens, version-info panel,
sync-options warning, fullscreen-logs title, app.tsx page titles, and
index.html's <title>/noscript text (dropped the now-wrong upstream CLI
doc link rather than invent a hanzo.ai URL that doesn't exist).

Logo/favicon assets replaced with the canonical Hanzo mark (never
hand-drawn, copied from ~/work/hanzo/logo/dist): the two real usages of
Argo's logo collapse onto one Hanzo glyph (mono + white variants) at the
same 5 call sites (login icon + footer, login.scss $logoPath/
$logoNegativePath, sidebar text-logo), preserving the existing CSS
invert() filters so both the light login panel and dark sidebar still
render correctly. Old argologo.svg/argo_o.svg/argo.png deleted (no
longer referenced). favicon-{16x16,32x32}.png added at
ui/src/assets/favicon/ (index.html's links to that path were previously
dead - the directory didn't exist in this checkout). package.json name
argo-cd-ui -> hanzo-cd-ui.

Left alone, deliberately: the two Kubernetes resource-kind icon sets
under ui/src/assets/images/resources/ (unrelated to branding), and
upstream doc/project links (argoproj.io, argo-cd.readthedocs.io) since
we have no equivalent hanzo.ai docs to point to yet - except the login
footer logo's outbound link, which now points to hanzo.ai instead of
argoproj.io (a Hanzo-branded mark linking to the upstream project it
was forked from read as an obvious leftover).

* feat(module): rename Go module github.com/argoproj/argo-cd/v3 -> github.com/hanzoai/deploy

Phase 2. No version suffix on the new path (org policy: never publish our
own Go modules above v1.x.x / with a v2+ suffix) — this fork starts a fresh
v0/v1 module identity rather than carrying the v3 the upstream fork point
had reached.

Mechanical, symmetric rewrite: 704 .go files (import statements only; two
disjoint substitutions applied specific-first so the nested gitops-engine
module path never double-matches), plus go.mod (module line, the
gitops-engine require+replace pair, version reset to v0.0.0-... since a
suffix-less path can't carry a v3 semver), gitops-engine/go.mod, Makefile
(ldflags PACKAGE + 2 TEST_MODULE filters), .golangci.yaml, .goreleaser.yaml,
.mockery.yaml (+ gitops-engine's), Procfile, the codegen/proto generation
scripts (hack/generate-proto.sh, update-codegen.sh, update-openapi.sh), and
20 .proto files' go_package options. Also one OpenTelemetry tracer name
string in gitops-engine/pkg/sync/sync_context.go (a cosmestic label, not an
import, but worth keeping consistent).

CGO_ENABLED=0 go build ./... verified green for both the root module and
the nested gitops-engine module; go vet clean on both; go mod tidy run
(network available) to reconcile go.sum, dependency set unchanged.

Left alone, deliberately: doc-only mentions (docs/snyk/*.html scan reports,
gitops-engine/README.md), a comment-only reference in
.github/workflows/release.yaml, and one Renovate bot config line — none are
build- or codegen-load-bearing. Also left alone: comments citing upstream
GitHub issue URLs (github.com/argoproj/argo-cd/issues/NNNNN) and a handful
of test fixtures using "https://github.com/argoproj/argo-cd.git" as a
representative example repo URL — both are accurate historical/test-data
references, not stale self-references.

---------

Co-authored-by: Hanzo Dev <[email protected]>
2026-07-19 11:27:06 -07:00
rumsteadandGitHub 32da51eb6b ci(gitops-engine): support tagged releases for gitops-engine (#27740)
Signed-off-by: rumstead <[email protected]>
2026-07-08 15:26:50 +00:00
Alexandre GaudreaultandGitHub 87e922afbe feat(impersonation): allow to disable strict enforcement (#27084) (#27573)
Signed-off-by: Alexandre Gaudreault <[email protected]>
2026-07-06 11:12:06 -04:00
Blake PetterssonandGitHub 8abc8a9699 chore: propagate contexts (#28353)
Signed-off-by: Blake Pettersson <[email protected]>
2026-06-22 14:44:08 -04:00
chansukeandGitHub e741a67ef3 feat(server): use typed Argo CD EventList for event-listing APIs (#25767) (#26322)
Signed-off-by: chansuke <[email protected]>
Signed-off-by: chansuke <[email protected]>
2026-05-28 09:29:21 +03:00
Alexandre GaudreaultandGitHub 5f79c9a8bf fix(ssa): do not run auth reconcile with SSA (#26175) (#27601)
Signed-off-by: Alexandre Gaudreault <[email protected]>
2026-05-14 10:13:09 -04:00
d5568b33aa fix(controller): requeue source hydration on periodic refresh timeout (#27009)
Signed-off-by: boostrack <[email protected]>
Signed-off-by: Alexandre Gaudreault <[email protected]>
Co-authored-by: Alexandre Gaudreault <[email protected]>
2026-05-08 15:56:53 -04:00
Oliver GondžaGitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
bfdb38be2a feat(source-integrity): Implement Source Integrity checking (#25371)
Signed-off-by: dependabot[bot] <[email protected]>
Signed-off-by: Oliver Gondža <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-05-07 12:11:33 -04:00
Alexandre GaudreaultandGitHub 39d8dcda39 fix(ssd): regression causing diff to error on new objects (#27679) (#27703)
Signed-off-by: Alexandre Gaudreault <[email protected]>
2026-05-07 14:55:12 +00:00
Alexandre GaudreaultandGitHub 85f7333423 refactor(cli): extract and consolidate diff functions (#27338)
Signed-off-by: Alexandre Gaudreault <[email protected]>
2026-05-01 11:45:37 -04:00
Alexander MatyushentsevandGitHub 83475ebd45 Merge commit from fork
Signed-off-by: Alexander Matyushentsev <[email protected]>
2026-04-30 10:09:51 -07:00
Taylor ThomasandGitHub be3156441c fix(server): Avoid error when attempting a second delete operation (#27495)
Signed-off-by: Taylor Thomas <[email protected]>
2026-04-22 09:56:56 +02:00
Aditya RajandGitHub 96509a3448 fix(cli): uses DrySource revision for app diff/manifests with sourceHydrator (#23817) (#24670)
Signed-off-by: Aditya Raj <[email protected]>
2026-04-21 12:51:39 -04:00
Vilius PuskunalisandGitHub cccb5f931a feat: add sync overrun option to sync windows (#25361) (#25510)
Signed-off-by: Vilius Puškunalis <[email protected]>
2026-04-20 06:55:13 +00:00
Soumya Ghosh DastidarandGitHub e31ff80b85 fix: avoid stale informer cache in RevisionMetadata handler (#27392)
Signed-off-by: Soumya Ghosh Dastidar <[email protected]>
2026-04-16 12:34:21 -07:00
Alexandre GaudreaultandGitHub 3751e4d441 fix(performance): add cache support for ResolveRevision to reduce Git operations (#27193)
Signed-off-by: Alexandre Gaudreault <[email protected]>
2026-04-16 15:42:58 +00:00
Alexander MatyushentsevandGitHub d39f83943d fix: cancel log stream goroutines on client disconnect (#27243)
Signed-off-by: Alexander Matyushentsev <[email protected]>
2026-04-09 12:53:34 +05:30
77a42bde65 feat: add toggle-auto-sync resource action for Application (#21564) (#26477)
Signed-off-by: vikasrao23 <[email protected]>
Co-authored-by: vikasrao23 <[email protected]>
2026-04-07 06:12:32 -04:00
Alexy ManthaandGitHub dd980721de feat: use impersonation for server operations (logs, delete, etc) #22996 (#26898)
Signed-off-by: Alexy Mantha <[email protected]>
2026-04-02 05:48:29 -04:00
Papapetrou PatroklosandGitHub c3bc2016d0 fix: create events with argocd namespace (#26667)
Signed-off-by: Patroklos Papapetrou <[email protected]>
2026-03-04 15:51:48 +02:00
ec34f71a6a feat: ApplicationSet watch API (#26409)
Signed-off-by: nitishfy <[email protected]>
Signed-off-by: Peter Jiang <[email protected]>
Co-authored-by: nitishfy <[email protected]>
2026-02-26 10:07:00 -05:00
Takuma ShibuyaandGitHub 98b589cf3c refactor: replace ptr.To with new(expr) (#26534)
Signed-off-by: sivchari <[email protected]>
2026-02-24 17:42:12 +01:00
Nitish KumarandGitHub 3a10e7bb82 fix: return error when cache is unavailable (#26053)
Signed-off-by: nitishfy <[email protected]>
2026-02-21 19:09:41 +05:30
Leonardo Luz AlmeidaandGitHub 3795f840c3 chore: fix gitops-engine mod name so it can be referenced by external repos (#26407)
Signed-off-by: Leonardo Luz Almeida <[email protected]>
2026-02-12 09:29:40 -05:00
Matthieu MORELandGitHub fe7521acb7 chore(server): Fix modernize linter (#26328)
Signed-off-by: Matthieu MOREL <[email protected]>
2026-02-09 14:37:34 +02:00
Michael CrenshawandGitHub b888dab9d2 fix(server): update resourceVersion on Terminate retry (#25650)
Signed-off-by: Michael Crenshaw <[email protected]>
2025-12-17 16:53:34 -05:00
83a66413fa feat: allow limiting clusterResourceWhitelist by resource name (#12208) (#24674)
Signed-off-by: Michael Crenshaw <[email protected]>
Co-authored-by: Alexandre Gaudreault <[email protected]>
2025-12-03 20:55:28 +00:00
507b440081 fix: return empty instead of error if cache unavailable (#25072)
Signed-off-by: Peter Jiang <[email protected]>
Signed-off-by: Peter Jiang <[email protected]>
Co-authored-by: Ishita Sequeira <[email protected]>
2025-11-04 17:56:19 +05:30
Atif AliandGitHub 249abf9d2b chore(ui): fix Incorrect links to applications managed by other argo instances (#23266)
Signed-off-by: Atif Ali <[email protected]>
2025-10-14 21:38:14 -04:00
Andreas SchrammandGitHub ce148819a4 feat: syncing to a different revision requires override privilege (#22858)
Signed-off-by: Andreas Schramm <[email protected]>
2025-10-07 11:01:25 -04:00
Rianov ViacheslavandGitHub e1f83982fe fix(server): ensure resource health status is inferred on application retrieval (#24832) (#24851)
Signed-off-by: Viacheslav Rianov <[email protected]>
2025-10-06 15:11:51 -04:00
argoproj-renovate[bot]GitHubargoproj-renovate[bot] <161757507+argoproj-renovate[bot]@users.noreply.github.com>Michael Crenshaw
ee7505a436 chore(deps): update module github.com/golangci/golangci-lint to v2.5.0 (#24673)
Signed-off-by: renovate[bot] <renovate[bot]@users.noreply.github.com>
Signed-off-by: Michael Crenshaw <[email protected]>
Co-authored-by: argoproj-renovate[bot] <161757507+argoproj-renovate[bot]@users.noreply.github.com>
Co-authored-by: Michael Crenshaw <[email protected]>
2025-09-22 04:05:06 +00:00
Josef KolářandGitHub 8cb6c34c13 fix(cli): respect refresh type when running with specified revision (#22463) (#22462)
Signed-off-by: Josef Kolář <[email protected]>
2025-09-15 17:24:30 +00:00
dd416d76c3 feat(controller): Permit using newer revision when retrying failed sync (#11494) (#23038)
Signed-off-by: Zadkiel AHARONIAN <[email protected]>
Signed-off-by: Oliver Gondža <[email protected]>
Signed-off-by: Alexandre Gaudreault <[email protected]>
Co-authored-by: Zadkiel AHARONIAN <[email protected]>
Co-authored-by: Alexandre Gaudreault <[email protected]>
2025-09-11 15:19:00 +00:00
Codey JenkinsandGitHub 0c23bc4ac9 fix: RunResourceAction: error getting Lua resource action: built-in script does not exist #24490 (#24491)
Signed-off-by: Codey Jenkins <[email protected]>
2025-09-09 20:58:22 +00:00
Alexandre GaudreaultandGitHub e67fc128ca fix(server): validate new project on update (#23970) (#23973)
Signed-off-by: Alexandre Gaudreault <[email protected]>
2025-08-17 23:29:22 -04:00
Peter JiangandGitHub 3bedf1b278 feat(cli): Support Server-Side Diff CLI (#23978)
Signed-off-by: Peter Jiang <[email protected]>
2025-08-12 13:02:21 -04:00
Alexandre GaudreaultandGitHub 71a3967e44 fix(api): app create --upsert should not error on invalid current destination (#23922)
Signed-off-by: Alexandre Gaudreault <[email protected]>
2025-07-31 10:32:54 -04:00
Alexandre GaudreaultandGitHub 5935ca36eb chore: remove ErrApplicationNotAllowedToUseProject from API (#23972)
Signed-off-by: Alexandre Gaudreault <[email protected]>
2025-07-29 10:29:22 -04:00
becdffcf56 fix(repo-server): support .argocd-source.yaml kustomize version (#23643) (#23644)
Signed-off-by: Michael Crenshaw <[email protected]>
Co-authored-by: rumstead <[email protected]>
2025-07-16 15:12:25 +00:00
Michael CrenshawandGitHub cda180e136 fix(server): make parameterized resource actions backwards-compatible (#23695)
Signed-off-by: Michael Crenshaw <[email protected]>
2025-07-09 10:41:28 -04:00
Alexandre GaudreaultandGitHub af5b199e6a chore(refactor): remove redundant rollback argument (#23627)
Signed-off-by: Alexandre Gaudreault <[email protected]>
2025-07-02 18:32:31 -04:00