oliver-zehentleitner / maity

ci and deploy: runner recovery removes the GitHub registrations; checkout credentials; pin updates; install hardening

Sign in to report

tsk-8n524t7jd126 Open

Hardening of the build and deploy side.

  1. deploy/runner/README.md: the recovery after a compromised job says only to reinstall the machine. It must also remove every registration of that machine on GitHub and register it again, before or with the reinstall, since the registration keys are readable on the machine.
  2. Several workflow checkouts lack persist-credentials: false (ci.yml web, hub-wheel, hub-lock, hub-image, helm, join-windows; audit.yml; ktw-lint.yml). Add it where the job does not push.
  3. No automated updates for the SHA and digest pins: add a dependabot (or equivalent) config.
  4. --only-binary is missing in deploy/Dockerfile and make install; docker-compose lacks the chart's hardening and sets MAITY_ALLOW_PLAIN_HTTP=1 (say clearly that it is for local use only, or drop it).

No infrastructure details beyond what is already public in the repo. Ops reviews the deploy part.