merge queue: embarking main (544a3fc) and #180 together#182
Closed
mergify[bot] wants to merge 8 commits into
Closed
merge queue: embarking main (544a3fc) and #180 together#182mergify[bot] wants to merge 8 commits into
mergify[bot] wants to merge 8 commits into
Conversation
The previously pinned deps are years old and pull in long-EOL containerd/oras releases, blocking any further upgrades and leaving known CVEs in the build. Refresh the module graph to currently supported versions, drop the deislabs/oras fork in favor of upstream oras.land/oras-go, and bump the builder/runtime base images to match. Code that touched removed APIs (go-diskfs Disk.File, oras.Pull) is ported to the supported equivalents. Signed-off-by: Jacob Weinstock <jakobweinstock@gmail.com>
The rootio partition helpers only closed the disk handle on the success path, so any error from GetPartitionTable, Backend.Sys, Sync or the partition writes leaked the underlying file descriptor against a block device the caller intends to keep operating on. Move the close into a defer so every return path releases it. The rootio and grub2disk builder stages still installed git, gcc, musl-dev and friends from when those builds used cgo; since they now build with CGO_ENABLED=0 those packages are dead weight in the image and slow the build for no benefit. A dependabot config is added so the Go module, GitHub Actions and Docker base image bumps that this branch had to do by hand happen automatically going forward. Signed-off-by: Jacob Weinstock <jakobweinstock@gmail.com>
Signed-off-by: Jacob Weinstock <jakobweinstock@gmail.com>
alpine:3.13 has been EOL for years and ships unfixed CVEs. Signed-off-by: Jacob Weinstock <jakobweinstock@gmail.com>
writefile relied on a deferred unmount that never ran because the error paths all called os.Exit, risking a mount leak into the host namespace. A nolint comment had been added to silence the warning with a justification that was simply wrong. The v2 golangci-lint migration dropped the explicit runtime timeout; the upstream default of 1m is not enough for this repo under GitHub Actions and the lint job started flaking. One builder stage still pulled compiler toolchain packages even though the build no longer uses cgo, wasting build time and diverging from its sibling stage. Signed-off-by: Jacob Weinstock <jakobweinstock@gmail.com>
oci2disk unconditionally disabled TLS verification against the registry, which is unsafe against anything other than a local insecure registry. Make it opt-in via SKIP_VERIFY so the default is a verified TLS connection. writefile created the /mountAction mountpoint with os.ModeDir as the mode, which is the directory type bit — not permission bits — so the resulting directory had no usable permissions. Use 0o755, and MkdirAll so a pre-existing mountpoint isn't an error. Signed-off-by: Jacob Weinstock <jakobweinstock@gmail.com>
Signed-off-by: Jacob Weinstock <jakobweinstock@gmail.com>
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🎉 This pull request has been checked successfully and will be merged soon. 🎉
Branch main (544a3fc) and #180 are embarked together for merge.
This pull request has been created by Mergify to speculatively check the mergeability of #180.
You don't need to do anything. Mergify will close this pull request automatically when it is complete.
Required conditions of queue rule
defaultfor merge:#changes-requested-reviews-by=0base=maincheck-success=Build (amd64, archive2disk)check-success=Build (amd64, cexec)check-success=Build (amd64, grub2disk)check-success=Build (amd64, image2disk)check-success=Build (amd64, kexec)check-success=Build (amd64, oci2disk)check-success=Build (amd64, qemuimg2disk)check-success=Build (amd64, rootio)check-success=Build (amd64, slurp)check-success=Build (amd64, syslinux)check-success=Build (amd64, writefile)check-success=DCOlabel!=do-not-mergeauthor=jacobweinstock#approved-reviews-by>=1check-success = Build (amd64, writefile)check-neutral = Build (amd64, writefile)check-skipped = Build (amd64, writefile)check-success = Build (amd64, archive2disk)check-neutral = Build (amd64, archive2disk)check-skipped = Build (amd64, archive2disk)check-success = Build (amd64, cexec)check-neutral = Build (amd64, cexec)check-skipped = Build (amd64, cexec)check-success = Build (amd64, grub2disk)check-neutral = Build (amd64, grub2disk)check-skipped = Build (amd64, grub2disk)check-success = Build (amd64, image2disk)check-neutral = Build (amd64, image2disk)check-skipped = Build (amd64, image2disk)check-success = Build (amd64, kexec)check-neutral = Build (amd64, kexec)check-skipped = Build (amd64, kexec)check-success = Build (amd64, oci2disk)check-neutral = Build (amd64, oci2disk)check-skipped = Build (amd64, oci2disk)check-success = Build (amd64, qemuimg2disk)check-neutral = Build (amd64, qemuimg2disk)check-skipped = Build (amd64, qemuimg2disk)check-success = Build (amd64, rootio)check-neutral = Build (amd64, rootio)check-skipped = Build (amd64, rootio)check-success = Build (amd64, slurp)check-neutral = Build (amd64, slurp)check-skipped = Build (amd64, slurp)check-success = Build (amd64, syslinux)check-neutral = Build (amd64, syslinux)check-skipped = Build (amd64, syslinux)check-success = DCOcheck-neutral = DCOcheck-skipped = DCORequired conditions to stay in the queue:
label=ready-to-merge#changes-requested-reviews-by=0base=maincheck-success=Build (amd64, archive2disk)check-success=Build (amd64, cexec)check-success=Build (amd64, grub2disk)check-success=Build (amd64, image2disk)check-success=Build (amd64, kexec)check-success=Build (amd64, oci2disk)check-success=Build (amd64, qemuimg2disk)check-success=Build (amd64, rootio)check-success=Build (amd64, slurp)check-success=Build (amd64, syslinux)check-success=Build (amd64, writefile)check-success=DCOlabel!=do-not-mergeauthor=jacobweinstock#approved-reviews-by>=1check-success = Build (amd64, writefile)check-neutral = Build (amd64, writefile)check-skipped = Build (amd64, writefile)check-success = Build (amd64, archive2disk)check-neutral = Build (amd64, archive2disk)check-skipped = Build (amd64, archive2disk)check-success = Build (amd64, cexec)check-neutral = Build (amd64, cexec)check-skipped = Build (amd64, cexec)check-success = Build (amd64, grub2disk)check-neutral = Build (amd64, grub2disk)check-skipped = Build (amd64, grub2disk)check-success = Build (amd64, image2disk)check-neutral = Build (amd64, image2disk)check-skipped = Build (amd64, image2disk)check-success = Build (amd64, kexec)check-neutral = Build (amd64, kexec)check-skipped = Build (amd64, kexec)check-success = Build (amd64, oci2disk)check-neutral = Build (amd64, oci2disk)check-skipped = Build (amd64, oci2disk)check-success = Build (amd64, qemuimg2disk)check-neutral = Build (amd64, qemuimg2disk)check-skipped = Build (amd64, qemuimg2disk)check-success = Build (amd64, rootio)check-neutral = Build (amd64, rootio)check-skipped = Build (amd64, rootio)check-success = Build (amd64, slurp)check-neutral = Build (amd64, slurp)check-skipped = Build (amd64, slurp)check-success = Build (amd64, syslinux)check-neutral = Build (amd64, syslinux)check-skipped = Build (amd64, syslinux)check-success = DCOcheck-neutral = DCOcheck-skipped = DCO