Skip to content

security(ci): suppress automatic public BuildKit history artifacts - #125

Merged
mark-e-deyoung merged 10 commits into
mainfrom
security/disable-docker-build-record-artifacts-20261023
Nov 5, 2026
Merged

mark-e-deyoung merged 10 commits into
mainfrom
security/disable-docker-build-record-artifacts-20261023

Conversation

@mark-e-deyoung

Copy link
Copy Markdown
Collaborator

Purpose — block an unreviewed automatic public artifact channel

An exact WineBot CI run uploaded a Docker BuildKit history/record artifact (ID 12458133483, SHA-256 88ff68051620142ebbe24131cc51ddaf533edd9e56ab14c7d981b12ca6501c16) automatically, independently of the deliberately gated failure-diagnostic upload. The record is a compressed BuildKit history including detailed build output and execution metadata. Such automatic public upload has not passed the agent-dispatch-private#515 disclosure boundary; this is a potential mechanism requiring containment, not an assertion that a sovereign machine or credential was present.

Docker's documented DOCKER_BUILD_RECORD_UPLOAD=false disables only the automatic build-record artifact without disabling build execution, normal Actions job logs, or deliberately governed artifacts. See Docker documentation.

Bounded change

  • Set workflow-level DOCKER_BUILD_RECORD_UPLOAD: 'false' in all four public WineBot workflow files that invoke docker/build-push-action: base-image.yml (2 steps), nightly-soak.yml (1), release.yml (3), reusable-build-smoke-gate.yml (1).
  • Add a small pytest guard scanning all workflows for a build action and requiring the same top-level, non-overridden opt-out; future new build workflows otherwise fail the policy test.
  • No Dockerfile, image manifest, signing, release publishing, contracts, credential, source topology, or existing security hold changes.
  • Remain explicit about limits: ordinary Actions logs, action summaries, explicit trust-pack/conformance uploads and historical already-retained build records are NOT sanitized or deleted by this change. Separate coverage required before any portfolio/public-surface clearance.

Evidence / gates

  • Observed main: d0fe951cc7a0a9e2ce1f3dba52e44db02ad15611.
  • Exact candidate head: 879a3c08b9044f6a559799672cbc8a217ae6eef5.
  • Static GitHub compare: 5 files, 5 commits ahead, 0 behind.
  • Verified all seven build-action occurrences across the four workflow files carry the opt-out; no second override in those files.
  • Exact published artifact is retained for a private evidence/containment review; the PR does not reproduce unreviewed BuildKit data.
  • Normal repo CI is already red on main due to the stale WinInspect v0.4.0 Dockerfile download; independent draft fix(build): restore WinInspect portable asset pin for REL image #124 repairs that dependency and passes build/smoke but still encounters previously known legacy-v1 conformance failures. Do not attribute those pre-existing failures to this security-only patch.

Next gate

Have the existing #515 disclosure authority independently review this containment, then integrate without bypassing branch controls. Verify a future actual build-run artifact list no longer contains a .dockerbuild upload. No test success is claimed until a run has executed; do not delete historical artifacts or globally claim public safety.

DRAFT — admission/merge/clearance remain independent.

Copy link
Copy Markdown
Collaborator Author

2026-10-23 exact-head policy-check result + independent runtime verification lane

At #125 head d690e77a039a1f7dbf0bc3aaa220fdd4b40005b9, public CI 39913156952 completed with:

  • Containerized Linting: PASS, including Ruff, mypy, and the new dependency-free, fail-closed test_ci_dockerbuild_artifact_policy.py gate invoked by scripts/ci/lint.sh.
  • Containerized Unit Tests: FAIL during the known main-pinned WinInspect v0.4.0 acquisition/build stage (before the unit assertions).
  • Conformance/Integration: SKIPPED due to the first job failure. Do not describe the overall workflow as green.

The new test's initial Ruff import-layout and synthetic-workflow header-boundary defects were corrected on this same branch; the exact head above, not the earlier failing intermediate SHAs, is the verified policy candidate.

To independently falsify the runtime artifact omission rather than stop at a static environment guard, RDTE-only #126 combines this exact head with the already qualified #124 Dockerfile on an isolated branch cae00f90741c768a6cc59395f81e735c9960e2b7. It has public Actions run 39913490315 in progress. #126 is NEVER a merge candidate; retain #124 and #125 as separate controlled changes. An actual no-.dockerbuild conclusion requires a completed run and enumerated uploaded artifacts.

The independent security approval gate agent-dispatch-private#515 remains open; no historical artifact deletion, release/publisher change, branch cleanup, or full public-surface clearance implied.

Copy link
Copy Markdown
Collaborator Author

2026-11-02 publication evidence update: scheduled main Nightly Soak 41414890718 auto-uploaded a Docker BuildKit .dockerbuild history artifact (GitHub ID 13127535496, 53,816 bytes) after a separate WinInspect checksum build failure; Nov 1 41289111142 also uploaded artifact ID 13076412553. This is a confirmed unreviewed artifact channel, NOT a confirmed confidential-content leak; payloads were not opened or reproduced. The existing DOCKER_BUILD_RECORD_UPLOAD=false guard in this draft, composed with corrected WinInspect asset pin from #124 on a separate isolated branch, passed actual public WinInspect builder-winspy download/hash 41469335424, zero attached artifacts. Bounded full REL build 41470050979 is still pending at this observation. Please preserve source/CI/publication review and historical artifact disposition as separate explicit gates; no merge/release requested here.

Copy link
Copy Markdown
Collaborator Author

2026-11-05 current-main integration recovery / precise hold

Reviewed this draft's 6-file BuildKit automatic record suppression against current public main. Produced independent clean branch security/main-buildkit-record-gate-20261105 from then-current main, immutable head a959a0f57544c342fdbc038d5ac3e1238f72d25d, exactly 7 changed paths: all four workflows using the seven Docker build-action steps set workflow-level DOCKER_BUILD_RECORD_UPLOAD: 'false', original negative-control policy test adapted, standard lint integration, additional 5-minute public-only PR regression workflow with no artifact upload. Initial Git compare ahead=7/behind=0; no direct runtime/Image packaging or release changes.

Precise blocker: GitHub connected operation to create the PR from that clean branch was REFUSED by safety checks. I did not retry an alternate submission method, force-update existing PR branches, merge or directly write main. Branch remains unmerged and unqualified, since the isolated CI workflow requires an actual PR trigger. Since separate source-reviewed #137 and #148 were squash-merged to main@3ad71f422cc7c884344daad86429fa3b826f0232, this staged branch now requires renewed current-main ancestry reconciliation. Preserve exact source and refusal. Security authority #515 remains HOLD; no safe-public-surface or no-artifact claim made. Historical original #125 remains OPEN, not superseded yet; avoid paper PR churn until a permitted submission/verification path exists.

Copy link
Copy Markdown
Collaborator Author

Source-exact security containment admission — protective changes only

Current PR head 548cd2401a9f0f6210ba06146dc52693591526bc reconciles this historical branch with accepted main@3ad71f422cc7c884344daad86429fa3b826f0232 by non-force fast-forward, retaining prior source history and previous visual-profile/provenance integrations. GitHub compare is ahead 10 / behind 0, with EXACTLY seven intended paths: four build-action workflows, source guard, lint preflight and five-minute standalone public guard workflow. This does not alter Dockerfile, image contents, runtime, release publishing, credentials, contracts or any existing explicit artifact upload.

Exact-head qualification: BuildKit guard 42021119135 SUCCESS including negative controls, zero uploaded artifacts. Trust-pack regression 42021119020 SUCCESS, zero artifacts. Broad CI 42021119066 lint PASSED; unit image build FAILED on the independently existing WinInspect v0.4.0 ZIP checksum, with conformance and smoke skipped. Independent earlier bounded public REL run 41470050979 verified published v0.4.4 asset + BuildKit guard together: both full real-build jobs SUCCESS, artifact enumeration zero. These are narrow proof receipts, NOT a portfolio-publication clearance, corrected general CI, or qualification of explicit conformance/trust-pack artifacts.

Containment admission only: suppress unintended automatic .dockerbuild uploads on default main. Maintain active separate public-result/minimized-artifact review PR #127, retained historical artifact review, standard job-log review, secure release admission, and exact binary conformance. No deletion of existing artifacts, release, image push or private-source projection. A squash merge is appropriate for this narrowly qualified source-only defensive control and must remain separate from package-pin #124.

@mark-e-deyoung
mark-e-deyoung marked this pull request as ready for review November 5, 2026 11:46
@mark-e-deyoung
mark-e-deyoung merged commit 43a0be7 into main Nov 5, 2026
4 of 5 checks passed
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