Skip to content

Pin and sign Docker base images by digest - #8502

Merged
makr-code merged 3 commits into
developfrom
copilot/ops-11-pin-container-base-images
Dec 1, 2026
Merged

makr-code merged 3 commits into
developfrom
copilot/ops-11-pin-container-base-images

Conversation

@makr-code

@makr-code makr-code commented Dec 1, 2026 •

Copy link
Copy Markdown
Owner

Author: "ThemisDB Team"
Created: "2026-10-09"
Last Updated: "2026-11-19"
Status: "active"
AI_Used: true
AI_Models: "unknown"
AI_Contributor: "GitHub Copilot"
Human_Review: false
Human_Author: "ThemisDB Team"

Exact model backend not verifiable from final document text alone.

Pull Request

For EPIC-branch workflow PRs, use .github/PULL_REQUEST_TEMPLATE/epic-branch-flow.md.
This applies to both feature/* -> epic/* and epic/* -> develop integration PRs.

Target Version (Required)

Target Version: [Unreleased]

Infrastructure and release-supply-chain hardening.


Description

OPS-11 left Ubuntu 24.04 base images unpinned and without automated digest updates or a container-signing gate. Both root and release Dockerfiles now use the verified Ubuntu manifest digest; release tags require keyless Cosign signing and verification of the staged multi-architecture digest.

  • Digest updates: Weekly Dependabot Docker checks target / and /docker, opening PRs against develop.
  • Release signing: Each registry’s staged manifest is signed and verified before official release tags are created. Promoted tags must retain the signed digest.
  • Traceability: Docker operations documentation is updated; the audit roadmap remains [~] pending live GHCR/Docker Hub publication evidence.
FROM ubuntu:24.04@sha256:562111b88caa79c71391c0c4d3c2114a7d5c35915c20561fd893cb1e07929e6b AS base

Type of Change

Security fix; infrastructure and release workflow hardening.

Breaking Change Checklist

Not a breaking change.

  • Plan the MAJOR version bump in VERSION and CMakeLists.txt.
  • Add a migration guide in docs/migration/.
  • Prepare the GitHub Discussions announcement (≥ 2 weeks before release).
  • Update the CHANGELOG ### Removed / ### Changed section.

Testing

  • Unit tests added/updated
  • Integration tests added/updated against live registries
  • Manual testing performed
  • Benchmarks run (if performance-sensitive change)

Passed:

  • cd tests && python3 -m unittest test_docker_base_image_security test_docker_runtime_package_regressions test_release_docker_attestation -q — 36 tests.
  • python tests/test_doc_metadata_gate.py — 13 tests.
  • docker buildx build --check --file Dockerfile .
  • docker buildx build --check --file docker/Dockerfile.unified .
  • pwsh -NoProfile -File ./scripts/test-github-actions-local.ps1 -Mode lint -Workflow .github/workflows/release-docker-image.yml -LogDir /tmp/ops11-actionlint
  • pwsh -NoProfile -File ./scripts/test-github-actions-local.ps1 -Mode lint -Workflow .github/workflows/gate-pr-core.yml -LogDir /tmp/ops11-actionlint
  • skopeo inspect --raw docker://docker.io/library/ubuntu@sha256:562111b88caa79c71391c0c4d3c2114a7d5c35915c20561fd893cb1e07929e6b | sha256sum — digest matched.

python tests/test_docker_platform_validation.py -v reported 31/35 passing. Four unrelated failures remain: the root Dockerfile release-context assertion and three temporary-checkout fixture failures. Live registry signing and publication have not been run.

Security Tiering Impact (for Runtime Changes)

  • Impacted tier(s): T1 Security & Platform Services — release supply chain; no runtime behavior change.

📚 Research & Knowledge (wenn applicable)

Based on scientific papers or best practices? No.

Relevante Quellen:

  • Paper: N/A
  • Best Practice: N/A
  • Architecture Decision: N/A

AI-Generated Code (KI-generierter Code)

  • Symbol-Referenzen mit GetSymbolReferences_CppTools geprüft (siehe .github/instructions/cpp-language-service-tools.instructions.md)
  • Keine rohen Pointer und kein new/delete ohne explizites Review eingeführt
  • RAII und Exception-Safety für neue/angepasste Pfade geprüft
  • Keine unnötig komplexen KI-Abstraktionen eingeführt
  • Performance-Metriken geprüft, falls Hotpath betroffen

AI Review Workflow (Required for AI-assisted PRs)

  • Findings-first review performed with .github/prompts/pr-diff-findings-review.prompt.md
  • Security hardening review performed for security-sensitive/runtime changes with .github/prompts/security-hardening-review.prompt.md (or N/A documented)
  • API impact review performed for API/contract changes with .github/prompts/api-change-impact-review.prompt.md (or N/A documented)
  • All Critical/High findings are resolved or explicitly accepted with rationale in PR description
  • Residual risks and follow-up actions documented in PR description
  • Severity policy applied according to .github/copilot/REVIEW_SEVERITY_POLICY.md

High-Finding Exception Record (only if High is accepted)

  • High-finding exception claimed in this PR

  • Finding reference:

  • Maintainer approver:

  • Mitigation in current release:

  • Target fix milestone:

  • Tracking issue:

  • Validation evidence:

Release Readiness Gate (Required for release-scoped changes)

  • Review release readiness with .github/prompts/release-readiness-check.prompt.md for branch transition scope.
  • Validate branch governance against BRANCHING_STRATEGY.md and RELEASE_STRATEGY.md.
  • Validate versioning/changelog impact against VERSIONING.md and CHANGELOG.md.

Checklist

  • Code follows project style guidelines (clang-format / clang-tidy)
  • Self-review completed
  • Documentation updated (if needed)
  • Update CHANGELOG.md under [Unreleased]
  • No new warnings introduced
  • Security-sensitive paths reviewed by security maintainer (if applicable)

Scanner and IntelliSense Gates

  • IntelliSense/Compiler: no new errors in changed files
  • clang-tidy/cppcheck: no new high-risk findings in changed files
  • Gap Scanner: no new critical findings in categories security, input_validation, query_correctness, distributed_consistency, concurrency, memory
  • Gap Scanner: no new high findings in the same categories (or explicitly approved)
  • Gap Scanner delta report attached (baseline vs current), not only absolute totals
  • New unknown scanner findings triaged (fixed, re-categorized, or justified)

CodeQL found no Actions alerts; Python analysis was skipped because the database was too large.

Copilot AI balanced review requested due to automatic review settings December 1, 2026 13:28

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review any files in this pull request. Check if the Files changed in this pull request are included in default exclusions.

Copilot AI linked an issue Dec 1, 2026 that may be closed by this pull request
8 tasks
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
@makr-code makr-code changed the title [WIP] Pin container base images by digest Pin and sign Docker base images by digest Dec 1, 2026
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
@makr-code
makr-code marked this pull request as ready for review December 1, 2026 14:23
@makr-code
makr-code merged commit 3fafdc3 into develop Dec 1, 2026
12 checks passed
@github-actions github-actions Bot added the status/resolved Finding resolved and verified by automation label Dec 1, 2026
@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Target: pr

Doc Metadata Gate


source_workflow: Gate: PR Doc Metadata
source_run: 46666878190
source_sha: a08a64e

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

Labels

status/resolved Finding resolved and verified by automation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[OPS-11] Pin container base images by digest

3 participants