Repository navigation
Closed as not planned
Labels
effort/mediumEffort Mediumpriority/p2-mediumPriority P2: standard workscope/argocdArgo CD sync, projects and the devops applicationsource/agentFiled by an agenttype/featureType feature: a new functionvalue/highValue High: the delivery of the item matters much
Description
Problem
Checked at devops-cli main 3f8f7a9.
- feat(argocd): deploy the danielpetty-com event-stream from its repository #6644 and feat(argocd): deploy the danielpetty-com Pixelfed manifests #6647 add Applications whose Git source is the private repository dan-petty/danielpetty.com. The devops-cli checks cannot handle such a source:
check_mainline_git_sources_safety_ruleasserts that each Git source ishttps://github.com/dan-petty/devops-cli(tests/gate/k8s_checks/argocd_apps.py:232-252). Its purpose is GitHub and never Gitea (feat(k8s): Point Argo CD to Gitea for git and PR dev images #1082).discover_path_applicationsjoins eachspec.source.pathto the devops-cli checkout, whatever therepoURLis (src/devops_cli/k8s/argocd_gate.py:68-89). For an outside repository, it reads a wrong or missing folder.SourceTreesfetches each other repository with no credential: "a private one resolves only where the git configuration of the host gives a credential" (src/devops_cli/k8s/app_sources.py:1-9).write_path_renders(src/devops_cli/k8s/app_render.py:51-75, used bydevops k8s lint, the kube-linter row ofdevops ci,src/devops_cli/commands/k8s/security_audit.py:136-146),collect_image_pins(src/devops_cli/k8s/image_pins.py:290-300, the Image Pins workflow) andcheck_argocd_gate(argocd_gate.py:235-245) use it.- The Image Pins workflow runs on
k8s/**withpersist-credentials: falseandcontents: read. In GitHub Actions the fetch of the private site repository fails, so these checks fail on each pull request after feat(argocd): deploy the danielpetty-com event-stream from its repository #6644. - If the fetch worked,
devops k8s lintwould apply the devops-cli.kube-linter.yamlto the site manifests, the Pixelfed pods that start as root included.
- The site repository checks its own manifests with kubeconform, kube-linter and Trivy (dan-petty/danielpetty.com#29, job
validate-k8s).
Proposed remedy
The Argo CD AppProject sourceRepos stays the access control. The devops-cli checks only need to know which sources they do not fetch. No open tool replaces these in-house checks, so the change stays in them.
- One constant (for example
CONST_K8S_ARGOCD_OUTSIDE_SOURCES) mapshttps://github.com/dan-petty/danielpetty.comto the one AppProject that may use it,danielpetty-com. check_mainline_git_sources_safety_rule: a Git source is devops-cli, or an outside source of the constant in an Application of its project. Keep the Gitea checks.SourceTrees: a source of an outside repository of the constant gets no folder and no fetch.write_path_renders,collect_image_pins,check_argocd_gateanddiscover_path_applicationsskip that source and print one line for each skip. Each other repository works as today.- A gate check: each outside source of the constant is in
sourceReposof its AppProject ink8s/argocd/apps/projects.yaml, and in no other project. k8s/README.md, Argo CD section: the outside source, its project, and that its repository checks its own manifests.- Write the tests first, with fixture Applications.
Premise check: as in #6642 (#5134 plan step 12).
Acceptance criteria
- New tests fail on
mainand pass on the branch:- the site repository passes in an Application of project
danielpetty-com, and fails in projecthomelab; - a third repository fails, and a Gitea URL fails;
- a dry run of the render records no fetch command for the site repository, and prints one skip line;
collect_image_pinsandcheck_argocd_gateskip the site source and keep the result for each devops-cli source;- the gate check fails when the site repository is in
sourceReposof projecthomelab.
- the site repository passes in an Application of project
-
uv run devops ci --check --only k8s,kube-linter,domainpasses.
Dependencies
- feat(k8s): add the danielpetty-com namespace, project and Secret row #6642: AppProject
danielpetty-com.
Alternatives check of 2026-11-21: none.
Tool: none found.
Reason: Searches found only general linters and policy engines (kube-linter, Kyverno, OPA, argocd-diff-preview); none validates AppProject sourceRepos membership or lets the in-house gate skip an outside repository.
Lacks:
- No allowlist of outside Git sources per AppProject
- No skip of external source fetch in render and image-pin checks
- No gate check that an outside source sits only in its project
- Policy engines need a hand-written rule for sourceRepos
Metadata
Metadata
Assignees
Labels
effort/mediumEffort Mediumpriority/p2-mediumPriority P2: standard workscope/argocdArgo CD sync, projects and the devops applicationsource/agentFiled by an agenttype/featureType feature: a new functionvalue/highValue High: the delivery of the item matters much
Activity
dan-petty commentedon Nov 21, 2026
Both add the danielpetty-com site to the Argo CD setup; #6642 adds the namespace, project and Secret, while this item modifies devops-cli checks to accept the site as an outside source.devops-cli-service commentedon Nov 21, 2026
The result in the alternatives block of the issue body changed. Before this check: no check. A person decides what the new result means for the item.
Searches (10)
Tools considered:
Searches run:
Sources:
dan-petty commentedon Nov 21, 2026
Closed as not planned. Service Applications come from the services ApplicationSet in the environment repository (dan-petty/infra#11, dan-petty/homelab#80), not from Application files in devops-cli. No checked-in Application file names a service repository, so the devops-cli source checks need no exception, and after #5134 step 17 devops-cli holds no Application of the environment. The AppProject of each service (dan-petty/infra#10) keeps
sourceReposas the access control. Each service repository checks its own manifests with the reusable workflow of dan-petty/infra#4 (dan-petty/danielpetty.com#29, jobvalidate-k8s). #5296 must accept dan-petty/infra as a git source (comment there).