Skip to content

Wave 1: deploy cmapi on CRC with oc apply, image in the internal registry by digest #94

Open
3 of 4 issues completed

Description

@ephico2real2

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.

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-0 start time and restart count before and after the realm import. If it restarts, stop and report: it is shared.
  • Only additions: namespaces cmapi and cmapi-imports, realm cmapi, its import and Secret in keycloak. Nothing of inkcast, corp or 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_dump of 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 by deploy/crc-proof.sh on CRC
  • /readyz 200, and /api/v1/version naming the built commit, shown by deploy/crc-proof.sh on CRC
  • The Route answers through the NetworkPolicy. The router uses HostNetwork on one node, so this is inferred until measured, shown by deploy/crc-proof.sh on CRC
  • /docs signed in through Keycloak, and GET /api/v1/me, shown by a screenshot through the Route, not taken yet
  • A login through LDAP federation as test user cmapi.requester, shown by deploy/crc-proof.sh on 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_ssl on CRC, and Prometheus scraping /metrics, shown by deploy/crc-proof.sh on CRC (pg_stat_ssl at line 125, the scrape of both targets at line 131)
  • oc adm top node before and after, shown by the files top-before.txt and top-after.txt of the run (docs/13, steps 2 and 24), not taken yet

Tasks

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).

Sub-issues

Sub-issues

3 of 4 Issues completed
Loading 4 sub-issues

Activity

  1. ephico2real2 commented on Nov 6, 2026

    @ephico2real2
    OwnerAuthor

    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:

    • Each delete or apply in keycloak names cmapi's objects exactly, with no --all, label selector or --prune. A test proves the import's realm is cmapi.
    • A snapshot before and after, compared automatically: each realm's status and public key hash, the other imports' UIDs and Done condition, keycloak-0's UID, start and restart count.
    • Every realm polled through the import. If Keycloak restarts, cmapi stops and takes no action on Keycloak.

    Measured read-only on 2026-11-06:

    What Result
    GET /realms/<name>, TLS verified corp, inkcast-prod, inkcast-staging, tutorial, master: 200. cmapi: 404
    The one measured restart Stopped 20:17:02, Ready 20:19:44 on 2026-11-05: 2 min 42 s, for every realm, since Keycloak has one instance
    Imports that completed without restarting keycloak-0 corp, inkcast-staging, inkcast-prod. Each ran --override=false
    Memory an import Job requests 1700Mi. Headroom is 4018Mi, so it must not be scheduled alongside cmapi's 576Mi
    Time before inkcast-prod's import started About 6.5 days after its Job was created, so an import can fire unattended. Cause not known
    Keycloak's certificate From enterprise-ca (LDAP Enterprise Root CA), Route passthrough, so the ingress CA is the wrong trust source for it

    Correction: my earlier evidence dated inkcast-prod's import to 10-28, which is when its Job was created. It ran on 11-04.

  2. ephico2real2 commented on Nov 6, 2026

    @ephico2real2
    OwnerAuthor

    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_dump from postgres-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.

  3. ephico2real2 commented on Nov 6, 2026

    @ephico2real2
    OwnerAuthor

    Status, 2026-11-06. Code merged in PR #98 at 9e1860e; CI run 42231442774 green on its head. Not run on CRC: realm cmapi returns 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 13 cmapi.<role> test users, and deletes the ten old cmapi-* groups. Proof 5's login uses test user cmapi.requester. The other guards stand.

    Needed before the run: PR #112 merged (#113), and the owner's go-ahead.

  4. ephico2real2 commented on Nov 6, 2026

    @ephico2real2
    OwnerAuthor

    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.

  5. ephico2real2 commented on Nov 6, 2026

    @ephico2real2
    OwnerAuthor

    More defects found under Wave 1, on PR #112: #118, #119, #120, #121, #122, #123, #124, #125, #126.

  6. added
    In-Progress
    class:INV
    status:partly-fixed
    task
    on Nov 13, 2026
  7. ephico2real2 commented on Nov 13, 2026

    @ephico2real2
    OwnerAuthor

    Work tag: In-Progress. PR #98 says Part of #94. Its merge commit 9e1860e holds the code of Wave 1. PR #95 (c58884f) and PR #111 (f43b822) hold the design and the trust guide. Draft PR #112 says Part of #94. Nothing ran on CRC. Read from gh and git at 2026-11-13T09:18Z.

  8. ephico2real2 commented on Nov 15, 2026

    @ephico2real2
    OwnerAuthor

    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.

  9. ephico2real2 commented on Nov 17, 2026

    @ephico2real2
    OwnerAuthor

    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).

  10. ephico2real2 commented on Nov 17, 2026

    @ephico2real2
    OwnerAuthor

    Found under this wave: #376 (front door Permissions-Policy web-share console warning, OB1 run 19).

  11. ephico2real2 commented on Nov 17, 2026

    @ephico2real2
    OwnerAuthor

    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.

  12. ephico2real2 commented on Nov 18, 2026

    @ephico2real2
    OwnerAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    In-Progressclass:INVstatus:partly-fixedtask

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions