Repository navigation
Description
Part of #28
Related: #85
Why
Wave 1 in build-tracker.md, and the interim route in docs/reviews/2026-11-05-deployment-design.md.
What is missing. deploy/manifests/ has only environments/kind. CRC has namespace cmapi with the bind Secret, and no cmapi workload, realm or Route. Nothing has proven kubelet and SCC admission, Routes, RHBK realm import, LDAP federation login, Prometheus scraping or network policies on OVN-Kubernetes.
The state on 2026-11-06, from the comments: PR #98 merged the code at 9e1860e, and CI run 42231442774 was green on its head. Nothing ran on CRC, and realm cmapi returns 404.
Scope
Interim: oc apply by hand, image in CRC internal registry by digest. Argo CD adopts these objects in Wave 5. No real namespace request, which needs GitHub and Argo CD.
deploy/manifests/environments/crc/with config, trust from the cluster, Routes and monitoring, plus the realm import and the reader baseline.- Namespace
cmapi-imports, which does not exist on CRC. CMAPI_OIDC_JWKS_URLandCMAPI_KEYCLOAK_ADMIN_URLpointing at the Keycloak Service.deploy/secrets.shchecksGET <issuer>, so it cannot mint values behind a kept realm (ruling 7 of PR Deploy cmapi from plain YAML: manifests, render and secrets scripts, the existing-PostgreSQL guide #89).
The owner's decision of #110 changed the scope (the comment of 2026-11-06). The run also adds ten app-cmapi-rbac-<role> groups and 13 cmapi.<role> test users, and deletes the ten old cmapi-* groups.
Guards, each with output saved
- No kind cluster runs during any CRC step.
- Stop if node memory request headroom is under 2 GiB.
- Record
keycloak-0start time and restart count before and after the realm import. If it restarts, stop and report: it is shared. - Only additions: namespaces
cmapiandcmapi-imports, realmcmapi, its import and Secret inkeycloak. Nothing ofinkcast,corpor group-sync is touched. - The other realms stay unaffected and undeleted, and a restart must not bleed long (the owner, 2026-11-06, in the first comment).
- A
pg_dumpof the shared Keycloak database comes immediately before the realm import (the owner's approval, 2026-11-06, in the second comment).
Acceptance criteria
The proof runs on CRC, through the Routes in Chrome, with screenshots in the PR.
- Pods admitted under
restricted-v2, and started under the NetworkPolicy, shown bydeploy/crc-proof.shon CRC -
/readyz200, and/api/v1/versionnaming the built commit, shown bydeploy/crc-proof.shon CRC - The Route answers through the NetworkPolicy. The router uses
HostNetworkon one node, so this is inferred until measured, shown bydeploy/crc-proof.shon CRC -
/docssigned in through Keycloak, andGET /api/v1/me, shown by a screenshot through the Route, not taken yet - A login through LDAP federation as test user
cmapi.requester, shown bydeploy/crc-proof.shon CRC, which signs in each test user - The mockup, captioned as static with no API behind it, shown by a screenshot through the Route, not taken yet
-
pg_stat_sslon CRC, and Prometheus scraping/metrics, shown bydeploy/crc-proof.shon CRC (pg_stat_sslat line 125, the scrape of both targets at line 131) -
oc adm top nodebefore and after, shown by the filestop-before.txtandtop-after.txtof the run (docs/13, steps 2 and 24), not taken yet
Tasks
- The CRC manifests, the guards, the backup, the rollback and the runbook
docs/13(PR Wave 1: deploy cmapi on CRC with plain YAML #98). - Merge PR LDAP groups app-cmapi-rbac-<role>, cmapi.<role> test users, CA-only keychain #112 (LDAP groups app-cmapi-rbac-<role> and cmapi.<role> test users, before the first import #110, SEC-05: docs/13 keychain loop would trust the *.apps-crc.testing site certificate as a root #109 and the defects BUG-13: apply-test-identities: an LDAP measurement that cannot be computed can pass as unchanged #115 to BUG-24: A stored request row with no groupPath reads under the new default #126).
- Land SEC-04: Connections to CNPG do not verify the server #91 before the run (
OB1-PROMPT.md, "Decided for you"). - Run
docs/13on CRC from a clean checkout of the merged commit. The owner gave the go-ahead on 2026-11-06. - The owner trusts the two CAs (
LOCAL-DEV-TRUST.md) and signs in once in Chrome.
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. The task adds the first deployment on CRC.
Source
The issue said when filed: Part of #85 and #28. It also said that LDAP is read-only through cmapi-ldap-bind. The comment of 2026-11-06 replaces that line, by the owner's decision in #110.
Defects found under Wave 1: #99 to #108, closed by PR #98, and #109. On PR #112: #115 to #126 (the comments of 2026-11-06).
Activity
ephico2real2 commentedon Nov 6, 2026
The owner's requirement, 2026-11-06: the other realms must not be affected, inkcast and corp must not be deleted, and a restart must not bleed long. So:
keycloaknames cmapi's objects exactly, with no--all, label selector or--prune. A test proves the import's realm iscmapi.keycloak-0's UID, start and restart count.Measured read-only on 2026-11-06:
GET /realms/<name>, TLS verifiedkeycloak-0--override=falseinkcast-prod's import startedenterprise-ca(LDAP Enterprise Root CA), Route passthrough, so the ingress CA is the wrong trust source for itCorrection: my earlier evidence dated
inkcast-prod's import to 10-28, which is when its Job was created. It ran on 11-04.ephico2real2 commentedon Nov 6, 2026
The owner approved a backup of the shared Keycloak database on 2026-11-06. It is the step immediately before the realm import on the first CRC run, and has not been taken yet.
Read-only
pg_dumpfrompostgres-0, streamed to this Mac outside git, in a private directory with owner-only modes. The dump is checked as usable before the import starts, and the run stops if it fails. It holds every realm's secrets and users, so it is deleted once the run is verified. Restoring it would roll every realm back to that moment, so that is the owner's decision alone, never automatic.ephico2real2 commentedon Nov 6, 2026
Status, 2026-11-06. Code merged in PR #98 at
9e1860e; CI run 42231442774 green on its head. Not run on CRC: realmcmapireturns 404. This stays open until the CRC run and its screenshots.Scope changed by the owner's decision (#110): this issue says LDAP is read-only, but the run now also adds ten
app-cmapi-rbac-<role>groups and 13cmapi.<role>test users, and deletes the ten oldcmapi-*groups. Proof 5's login uses test usercmapi.requester. The other guards stand.Needed before the run: PR #112 merged (#113), and the owner's go-ahead.
ephico2real2 commentedon Nov 6, 2026
Defects found under Wave 1 since the last status: #115, #116, #117, all on PR #112. Earlier: #99 to #108, closed by PR #98, and #109.
ephico2real2 commentedon Nov 6, 2026
More defects found under Wave 1, on PR #112: #118, #119, #120, #121, #122, #123, #124, #125, #126.
ephico2real2 commentedon Nov 13, 2026
Work tag: In-Progress. PR #98 says
Part of #94. Its merge commit9e1860eholds the code of Wave 1. PR #95 (c58884f) and PR #111 (f43b822) hold the design and the trust guide. Draft PR #112 saysPart of #94. Nothing ran on CRC. Read fromghandgitat 2026-11-13T09:18Z.ephico2real2 commentedon Nov 15, 2026
BUG-64 #268 found in the CRC run of #157: docs/13 step 13 (the Keycloak backup) stopped on 2026-11-15T01:50Z; nothing reached Keycloak.
ephico2real2 commentedon Nov 17, 2026
Found under this wave: #373 (step 23 stopped: cmapi.requester user_temporarily_disabled after overlapping sign-ins, OB1 run 19 on 7ba5d78). Also #372 (release-crc.sh).
ephico2real2 commentedon Nov 17, 2026
Found under this wave: #376 (front door Permissions-Policy web-share console warning, OB1 run 19).
ephico2real2 commentedon Nov 17, 2026
OB1 run 20 (CRC, main abad314): the /docs Try it out screenshot that docs/13 asks for shows the bearer token in Swagger UI's Curl box. Filed as #381.
ephico2real2 commentedon Nov 18, 2026
OB1 run 24 (main 721cb64): steps 0-22 passed on CRC; step 23 stopped at the proof's pods check on a cmapi-db-1 restart from 15:44Z, before the run (#425). Resuming is the owner's call.