Skip to content

harden production container supply chain - #42

Merged
nikitacometa merged 1 commit into
mainfrom
hardening/alpine-runtime
Jul 18, 2026
Merged

harden production container supply chain#42
nikitacometa merged 1 commit into
mainfrom
hardening/alpine-runtime

Conversation

@nikitacometa

Copy link
Copy Markdown
Contributor

What changed

  • replace the digest-pinned Debian runtime with digest-pinned Python 3.12 Alpine;
  • convert the container entrypoint to portable POSIX sh;
  • add a digest-pinned Trivy image gate to CI;
  • document the hardened runtime and update the container milestone.

Why

A fresh vulnerability database reported unfixed high/critical findings in the
previous Debian base. The selected Alpine base has no high/critical OS or Python
package findings and reduces the production image from about 210 MB to 115 MB.

Verification

  • make quality — 168 tests, 80.65% focused coverage, Ruff and strict mypy;
  • cold multi-stage Docker build from the pinned digest;
  • non-root runtime/import/status smoke and pip check;
  • Trivy 0.72.0 — 0 high/critical vulnerabilities and 0 secrets;
  • focused multi-agent Docker/CI review — no blockers.

No API contract, database schema, or frontend behavior changes.

@nikitacometa
nikitacometa merged commit 2c1cdad into main Jul 18, 2026
4 checks passed
@nikitacometa
nikitacometa deleted the hardening/alpine-runtime branch July 18, 2026 03:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant