Skip to content

SEC-02: The bot authenticates to the Gitea stand-in with basic auth over plain HTTP inside the cluster #59

Open

Description

@ephico2real2

Part of #18

What is wrong: git.apiUrl is http://cmapi-git-gitea.cmapi.svc:3000; the bot's username and password travel in clear within the cluster network. Opus (C8) and Codex (X1.8) both record it, no fix applied in PR #40.

Where: deploy/environments/crc.yaml:51, key apiUrl. The line exists at ecc5cb3.

How to prove it: Read git.apiUrl in deploy/environments/crc.yaml. It must not start with http://. After Wave 3, no file under deploy/ must name the Gitea stand-in. A new test in cmapi/tests/service/ shows it, not written yet.

Measured or inferred: Measured by reading the file. This sweep read line 51: apiUrl: http://cmapi-git-gitea.cmapi.svc:3000/api/v1. Nobody captured the traffic.

Severity: Medium. The control is weak inside the cluster network. Nothing of cmapi runs on CRC today (build-tracker.md).

What must hold after the fix: No bot credential crosses the cluster network in clear. The owner's direction of 2026-11-05 removes Gitea from the deployment path (#85).

Research: Not done yet. The options when filed: service-CA TLS on the Gitea Service (OpenShift) with the CA in the trust bundle, or a NetworkPolicy that confines the port to the api and worker pods, or both.

Solution: Not written. #85 says that the removal of the Gitea chart and adapter closes this issue.

Class: TDT. The Gitea stand-in is an earlier shortcut, and the fix removes it.

Activity

  1. added
    Backlog
    bug
    class:TDT
    sev:medium
    status:open
    on Nov 13, 2026
  2. changed the title [-]Open: the bot authenticates to the Gitea stand-in with basic auth over plain HTTP inside the cluster[/-] [+]SEC-02: The bot authenticates to the Gitea stand-in with basic auth over plain HTTP inside the cluster[/+] on Nov 13, 2026
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

    Backlogbugclass:TDTsev:mediumstatus:open

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions