Repository navigation
Description
Part of #28
Related: #13, #14, #63 and #64
Why
The owner's direction, 2026-11-05: the project is on GitHub, so its Git host and pipeline are GitHub. Gitea should not be in the deployment path.
What is wrong. deploy/helm/cmapi-git, core/git/gitea.py and deploy/environments/crc.yaml use a Gitea stand-in. docs/01 line 140 names GitHub REST as the default GitProvider, and Gitea is not in the design. As a result the GitHub adapter has never been exercised (#61), the worker posts its own required checks (#60), and the bot uses basic auth over plain HTTP (#59).
Target
cluster-configs-nonprodis a GitHub repository. The worker opens PRs there, and that repository's own Actions run the kubeconform and Kyverno checks that branch protection requires.- Actions in
cmapibuild images and push them to GHCR by digest, with provenance attestation. - Argo CD on the cluster pulls: the namespaces from
cluster-configs, and cmapi's own deployment from its manifests. Nothing reaches into the Mac, so no self-hosted runner. GitHub's guidance: self-hosted runners "should almost never be used for public repositories" (https://docs.github.com/en/actions/reference/security/secure-use), andcmapiis public. - A kind end-to-end job in Actions in the shape of
cilium-implementation-poc'sdemo55-ci.yamlandlab-*.yaml, withdemo57-ci.yaml's conventions: one step per check,if: !cancelled(), actions pinned by commit,persist-credentials: false, leastpermissions, and a guard that every test is named by the workflow.
To settle in the two designs, with measurements
- How a new digest reaches Argo CD. Argo CD does not watch registries. Candidates: Actions records the digest in Git, or Argo CD Image Updater. Weigh the design's rule that every change has a diff, branch protection on the target branch, and the footprint on a node at 79% of memory requests.
- How the worker authenticates to GitHub.
docs/01line 785 says "GitHub App or deploy key"; a deploy key cannot post statuses or open PRs.core/git/base.pytakes one static token today, and a GitHub App needs installation-token exchange. - Whether pods on CRC reach github.com, api.github.com and ghcr.io. The earlier probe of raw.githubusercontent.com printed nothing, so this is unverified.
The handover records the later decisions. Actions pushes the image, tests that digest and commits it to branch deployed/crc. Argo CD follows that branch. The owner creates the GitHub App and makes each GHCR package public.
What kind cannot prove
user.openshift.io Users and Groups, Routes and SCCs exist only on OpenShift. core/clients/kube.py whoami() already falls back to SelfSubjectReview, and the design has cmapi read Users, Identities, Groups and GroupSyncs. CRC stays the gate for those, and CI must say what it did not prove. Hosted runners have no nested virtualisation (demo55-ci.yaml, citing actions/runner-images#7541), so CRC itself cannot run there.
Acceptance criteria
- A request through the portal or API on CRC opens a real PR on GitHub, Actions' checks turn green, the bot merges, and Argo CD creates the namespace, shown by a new proof script in
deploy/, not written yet - A merge to
mainofcmapireaches CRC with no command on the Mac, at the digest CI built, verified against/versionand its attestation, shown by a new CI job in.github/workflows/, not written yet - Gitea's chart and adapter are removed, shown by a new test in
cmapi/tests/service/, not written yet
Tasks
- Plain YAML manifests,
render.sh,secrets.shand themanifestsCI job (Deploy cmapi from plain YAML manifests, a secrets script and an existing-PostgreSQL guide #88, PR Deploy cmapi from plain YAML: manifests, render and secrets scripts, the existing-PostgreSQL guide #89). - Wave 1: the interim deployment on CRC (Wave 1: deploy cmapi on CRC with oc apply, image in the internal registry by digest #94).
- Wave 3: the GitHub adapter, the App authentication and the config repository checks (BUG-11: pr_status reads only commit statuses, so Actions check runs never satisfy the worker #87, SEC-03: The worker holds the bot credential and posts its own required checks, so CI is not independent of it #60, BUG-09: The GitHub adapter has never been exercised #61, SEC-02: The bot authenticates to the Gitea stand-in with basic auth over plain HTTP inside the cluster #59, BUG-12: A private-CA-only cmapi-trust will fail GitHub TLS in Wave 3 #97).
- Wave 4: the end-to-end CI on kind, and the release to GHCR with attestation.
- Wave 5: Argo CD on CRC (Argo CD on CRC for the argocd delivery: the install, the Application per cluster, the AppProject and the repository credential (#63 design step) #64, Argo CD's controller needs a narrowed ClusterRole: the containment policy alone does not hold it (#63 design step) #65), then remove
apply(Remove the apply delivery mode once Argo CD delivery is proven on CRC #84). - Remove Gitea's chart and adapter. That closes SEC-02: The bot authenticates to the Gitea stand-in with basic auth over plain HTTP inside the cluster #59 and SEC-03: The worker holds the bot credential and posts its own required checks, so CI is not independent of it #60, and BUG-09: The GitHub adapter has never been exercised #61 when exercised.
Definition of done
- Mockup approved, or the work has no screen and no API shape
- Draft pull request open
- Build: tests fail before the change and pass after it
- Review ruled
- Merged with its proof
- Released on the default branch
Class
INV and TDT. Actions, GHCR, the attestation and the end-to-end CI job are new. The task also removes the Gitea stand-in, an earlier shortcut.
Source
How to prove it is done. A request through the portal or API on CRC opens a real PR on GitHub, Actions' checks turn green, the bot merges, and Argo CD creates the namespace. A merge to main of cmapi reaches CRC with no command on the Mac, at the digest CI built, verified against /version and its attestation. Then remove Gitea's chart and adapter, closing #59 and #60, and #61 when exercised.
Activity
Third review pass on PR #40: the cross-check's findings under the coo…
ephico2real2 commentedon Nov 13, 2026
Work tag: In-Progress. PR #89 says
Part of #85. Its merge commit9fd230aholds a part: the plain YAML deployment (#88). The GitHub adapter, the release to GHCR and Argo CD are not done. Read fromghandgitat 2026-11-13T09:18Z.