Repository navigation
Description
Problem
Checked at devops-cli main 3f8f7a9.
- dan-petty/danielpetty.com#29 adds Kustomize manifests in
k8s/event-stream/of the private repository dan-petty/danielpetty.com. They name the real host, so they need no deploy-time host patch. No Application syncs them. feat(argocd): accept the site repository as an outside source #6643 lets the devops-cli checks accept that source. - Argo CD Image Updater keeps only Application
devopson new digests (k8s/argocd/image-updater-values.yaml:16-30). It writesspec.source.kustomize.imageson the Application and nothing into git (:4-7). The app-of-appsclusterignores that field only for the Applications that it lists (ignoreDifferencesink8s/argocd/bootstrap/cluster.yaml), and such an Application setsServerSideApply=true(k8s/argocd/apps/devops.yaml:10). SERVICE_PATTERNS SC5: Image Updater pins each project image by digest. It reads GHCR with no credential, because the packages are public (image-updater-values.yaml:8-9). k8s/catalog.tomlhas no entry for the site (rule SRE1). No alert covers a stale harvest: the page then shows old items, and only a log line tells.- The wildcard Access application of
*.<domain>admits only the owner (k8s/README.md:930-934). A visitor ofdanielpetty-com.<domain>gets the Access login. The precedent for a public route is the Bypass application ofhooks.<domain>/webhooks/github(docs/CLUSTER.md:39).devops cloudflare access syncmakes only allow and IP-bypass policies (src/devops_cli/cloudflare/client.py:244-251), so the owner makes the Bypass application in the dashboard. - TLS ends at the Cloudflare edge, and each request reaches the Traefik
webentrypoint as plain HTTP, so Traefik cannot redirecthttp://tohttps://. With a Bypass application, a plainhttp://request goes to the app unless the zone setting Always Use HTTPS is on. No devops-cli document names this setting. HSTS has an effect only after the firsthttps://visit, and the site sets no preload. - The deploy notifier writes a GitHub deployment with environment
{{.app.metadata.name}}(k8s/argocd/values.yaml, templateapp-deployed) and acts as the GitHub Appdevops-cli-argocd(k8s/README.md:1258). k8s/README.md:1160says "Until feat(k8s): Point Argo CD to Gitea for git and PR dev images #1082, no workload pulls from it", but feat(k8s): Point Argo CD to Gitea for git and PR dev images #1082 is closed.
Proposed remedy
Use Argo CD and Argo CD Image Updater as the cluster runs them.
k8s/argocd/apps/danielpetty-com.yaml, the pattern ofk8s/argocd/apps/mattermost.yaml: projectdanielpetty-com(feat(k8s): add the danielpetty-com namespace, project and Secret row #6642);repoURL: https://github.com/dan-petty/danielpetty.com;targetRevision: main;path: k8s/event-stream; destination namespacedanielpetty-com; finalizerresources-finalizer.argocd.argoproj.io; automated prune and selfHeal; retry limit 5;SkipDryRunOnMissingResource=true; annotationsnotifications.argoproj.io/subscribe.on-deployed.githubandargocd.argoproj.io/sync-options: ServerSideApply=true. No entry inCONST_K8S_ARGOCD_HOMELAB_APPLICATIONS_BY_STACK: the manifests need no host patch.k8s/argocd/bootstrap/cluster.yaml: anignoreDifferencesentry on/spec/source/kustomizeof Applicationdanielpetty-com.k8s/argocd/image-updater-values.yaml: an ImageUpdater for Applicationdanielpetty-com, imageghcr.io/dan-petty/danielpetty.com/event-stream:main,updateStrategy: digest. A pod of the Application runs the image, soforceUpdateis not needed.k8s/catalog.toml: a[[service]]danielpetty-com,applications = ["danielpetty-com"],tier = 3,data_class = "owned"(the notes exist only there).k8s/monitoring/prometheus-values.yaml,alerting_rules.yml:EventStreamHarvestStale, severitywarning(no page). It fires when a source has no good harvest for 1 hour (event_stream_harvest_last_success_timestamp_seconds, feat(event-stream): export harvest metrics on a private port danielpetty.com#28). Add the promtool unit testtests/fixtures/prometheus_rules/danielpetty_com_tests.yaml, whichtests/prometheus/test_k8s_monitoring_alerting.pyruns, and a runbook row in the Alerting table ofk8s/README.md.TargetDownalready covers a lost scrape.k8s/README.mdanddocs/CLUSTER.md: name the Application, its outside source and its Image Updater target. In the Cloudflare section, give the Bypass application and the Always Use HTTPS check of the person steps, with the host written asdanielpetty-com.<domain>. Give the rollback path: a revert in the site repository (dan-petty/danielpetty.com#29 runbook), notargocd app rollback. Atk8s/README.md:1160, remove the stale feat(k8s): Point Argo CD to Gitea for git and PR dev images #1082 sentence and say that the site image is a public GHCR package.
Premise check: as in #6642 (#5134 plan step 12).
Acceptance criteria
-
uv run devops ci --check --only k8s,kube-linter,domainpasses. On this pull request, the Image Pins workflow and the kube-linter step of the CI workflow pass in GitHub Actions. - The promtool unit test of
EventStreamHarvestStalepasses. - After the merge:
kubectl -n argocd get application danielpetty-com -o jsonpath='{.status.sync.status} {.status.health.status}'printsSynced Healthy. -
kubectl -n argocd get application danielpetty-com -o jsonpath='{.spec.source.kustomize.images}'shows the event-stream image with an@sha256:digest. -
devops gh api repos/dan-petty/danielpetty.com/deployments --jq '.[0].environment'printsdanielpetty-com. -
kubectl -n danielpetty-com get podsshows 1 Ready pod with 0 restarts after 30 minutes, and the PV of claimevent-stream-datahas the reclaim policyRetain. - Within 10 minutes of the first start, Prometheus has
event_stream_harvest_last_success_timestamp_secondsforgithuband for each feed host, andincrease(event_stream_harvest_failures_total[10m])is 0.curl -fsS https://danielpetty-com.<domain>/api/activitiesreturns at least one item. - Prometheus has
up == 1for the event-stream target, and its rules API listsEventStreamHarvestStale. - After person step 3:
devops cloudflare access statuslists an application fordanielpetty-com.<domain>, anddevops cloudflare access policies <app-id> --jsonshows one policy with decisionbypassthat includes everyone. - From the workstation:
curl -sI https://danielpetty-com.<domain>/returns 200 with aStrict-Transport-Securityheader, andcurl -fsS 'https://danielpetty-com.<domain>/.well-known/webfinger?resource=acct:dan@danielpetty-com.<domain>'returns the actor link. -
curl -s -o /dev/null -w '%{http_code}' -X POST https://danielpetty-com.<domain>/api/notes(no key) prints401. - After person step 5:
curl -sI http://danielpetty-com.<domain>/returns 301 with aLocationthat starts withhttps://. -
curl -sN --max-time 300 https://danielpetty-com.<domain>/api/stream/eventsstays open for 300 s and gets a comment line at least every 20 s.
Person steps
Before the merge:
- Do feat(k8s): add the danielpetty-com namespace, project and Secret row #6642 person steps 2, 3 and 4: push the Secret, add the site repository to the installation of
devops-cli-argocd, and create the repository Secret. - Make the event-stream package public (ci(image): publish the event-stream image to GHCR danielpetty.com#25).
After the merge and a Healthy sync:
3. In Cloudflare Zero Trust, add a self-hosted Access application for host danielpetty-com.<domain> with one Bypass policy that includes Everyone, as for the GitHub webhook path.
4. Check that Bot Fight Mode is off for the zone. WAF custom rules and Page Rules cannot skip it, and it can challenge the requests of remote servers that read the actor and WebFinger (https://developers.cloudflare.com/bots/get-started/bot-fight-mode/).
5. Check that Always Use HTTPS is on for the zone, or add a single redirect rule for the host.
6. From a network outside the IP bypass (for example a phone on mobile data), open https://danielpetty-com.<domain>/. The page loads with no Access login. Write the result on this issue.
Dependencies
- feat(k8s): add the danielpetty-com namespace, project and Secret row #6642: the namespace, the project, the Secret and the repository credential.
- feat(argocd): accept the site repository as an outside source #6643: the checks accept the outside source.
- dan-petty/danielpetty.com#29:
k8s/event-stream/on themainbranch of the site repository. Without it, the Application shows a comparison error. - During the homelab switch (feat(argocd): read the environment from the homelab repo #5134), plan step 10 copies the new files into dan-petty/homelab.
Alternatives check of 2026-11-21: in-use.
The repository already uses this tool.
Tool: argoproj/argo-cd (https://github.com/argoproj/argo-cd), Apache-2.0, last activity 2026-11-20, maintained.
Reason: Searches found Argo CD, which the project already runs, and its Image Updater: together they sync the Kustomize manifests from the site repository and pin the image by digest, but they do not supply the catalog entry, alert rule or Cloudflare steps.
Covers:
- Application syncs Kustomize manifests from a private Git repository
- Automated prune and selfHeal with a retry limit
- Image Updater pins the event-stream image by digest
- ignoreDifferences stops self-heal reverting kustomize.images
Lacks:
- No catalog entry with service tier and data class
- No stale-harvest alert rule or promtool unit test
- No Cloudflare Access bypass, Always Use HTTPS or docs
- Application and ImageUpdater entries are still written by hand
Activity
dan-petty commentedon Nov 21, 2026
Both items deploy danielpetty-com on the cluster, but #6642 creates the namespace, AppProject, and Secret while this candidate creates the Argo CD Application, Image Updater config, catalog entry, and stale-harvest alert.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. The services ApplicationSet (dan-petty/infra#11, dan-petty/homelab#80) makes Application
danielpetty-comfrom the services entry of the site (dan-petty/homelab#85): automated sync, the ignore of/spec/source/kustomize/images, and the Image Updater annotations (image list, digest strategy, argocd write-back) that the template writes from the image list of the entry. One ImageUpdater objectservice-reposwith labelSelectors anduseAnnotations: trueselects it. Deploy statuses come from the AppProject annotation of the tenant chart (dan-petty/infra#10). The Cloudflare Access Bypass, the Always Use HTTPS check, the rollback runbook and the live checks move to dan-petty/danielpetty.com#29. The alertEventStreamHarvestStalemoves to the site repository as a labelled ConfigMap, which homelab loads through the generic path of dan-petty/homelab#83. No row goes into k8s/catalog.toml, because no code reads that file.