To be consistent with filepath.Glob, FilepathGlob("") returns nil.
Added MatchUnvalidated, PathMatchUnvalidated
These functions provide a small performance improvement in cases where you don't care about whether or not the pattern is valid (maybe because you already ran ValidatePattern).
Commits
1e20c6d fixes #95 FilepathGlob("") should return nil
da152ef add docs for MatchUnvalidated, PathMatchUnvalidated
This release splits the errdefs package into the github.com/containerd/errdefs package which only contains error definitions as well as basic functions to check for those definitions and the github.com/containerd/errdefs/pkg package which containers functionality for using the errdefs, such as error serialization and adding more data to errors.
This release primarily includes a fix that blocked using
filepath-securejoin in Kubernetes.
Previously, some testing mocks we had resulted in us doing import "testing"
in non-_test.go code, which made some downstreams like Kubernetes unhappy.
This has been fixed. (#32)
Thanks to all of the contributors who made this release possible:
This release primarily includes fixes for spurious errors we hit when
checking that directories created by MkdirAll "look right". Upon further
consideration, these checks were fundamentally buggy and didn't offer
any practical protection anyway.
The mode and owner verification logic in MkdirAll has been removed. This
was originally intended to protect against some theoretical attacks but upon
further consideration these protections don't actually buy us anything and
they were causing spurious errors with more complicated filesystem setups.
The "is the created directory empty" logic in MkdirAll has also been
removed. This was not causing us issues yet, but some pseudofilesystems (such
as cgroup) create non-empty directories and so this logic would've been
wrong for such cases.
Thanks to all of the contributors who made this release possible:
This release includes a few fixes for MkdirAll when dealing with S_ISUID
and S_ISGID, to solve a regression runc hit when switching to MkdirAll.
Passing the S_ISUID or S_ISGID modes to MkdirAllInRoot will now return
an explicit error saying that those bits are ignored by mkdirat(2). In
the past a different error was returned, but since the silent ignoring
behaviour is codified in the man pages a more explicit error seems
apt. While silently ignoring these bits would be the most compatible
option, it could lead to users thinking their code sets these bits
when it doesn't. Programs that need to deal with compatibility can
mask the bits themselves. (#23, #25)
Previously, some testing mocks we had resulted in us doing import "testing"
in non-_test.go code, which made some downstreams like Kubernetes unhappy.
This has been fixed. (#32)
[0.3.3] - 2024-09-30
Fixed
The mode and owner verification logic in MkdirAll has been removed. This
was originally intended to protect against some theoretical attacks but upon
further consideration these protections don't actually buy us anything and
they were causing spurious errors with more complicated filesystem setups.
The "is the created directory empty" logic in MkdirAll has also been
removed. This was not causing us issues yet, but some pseudofilesystems (such
as cgroup) create non-empty directories and so this logic would've been
wrong for such cases.
[0.3.2] - 2024-09-13
Changed
Passing the S_ISUID or S_ISGID modes to MkdirAllInRoot will now return
an explicit error saying that those bits are ignored by mkdirat(2). In the
past a different error was returned, but since the silent ignoring behaviour
is codified in the man pages a more explicit error seems apt. While silently
ignoring these bits would be the most compatible option, it could lead to
users thinking their code sets these bits when it doesn't. Programs that need
to deal with compatibility can mask the bits themselves. (#23, #25)
Fixed
If a directory has S_ISGID set, then all child directories will have
S_ISGID set when created and a different gid will be used for any inode
created under the directory. Previously, the "expected owner and mode"
validation in securejoin.MkdirAll did not correctly handle this. We now
correctly handle this case. (#24, #25)
Bumps the go-modules group with 21 updates in the / directory:
1.34.1
1.34.2
0.18.7
0.18.8
2.14.2
2.15.0
1.0.0
1.0.1
3.2.1
3.3.0
3.2.3
3.3.0
0.12.5
0.12.7
1.1.0
1.1.1
4.6.1
4.7.1
1.3.9
1.5.0
0.1.0
0.3.0
0.3.1
0.3.2
0.3.1
0.3.4
27.1.1+incompatible
27.3.1+incompatible
1.4.5
1.4.6
1.17.9
1.17.11
2.18.0
2.19.1
0.8.0
0.9.0
0.11.5
0.11.6
0.53.0
0.56.0
0.20.0
0.21.0
Updates
github.com/onsi/gomega
from 1.34.1 to 1.34.2Release notes
Sourced from github.com/onsi/gomega's releases.
Changelog
Sourced from github.com/onsi/gomega's changelog.
Commits
7cabed6
v1.34.2c59c6dc
bump ginkgo as well8158b99
bump to go 1.22 - remove x/exp dependencyUpdates
github.com/paketo-buildpacks/occam
from 0.18.7 to 0.18.8Release notes
Sourced from github.com/paketo-buildpacks/occam's releases.
Commits
1193f3c
Bump docker to version 26.1.5 to fix CVE-2024-411105cd4ede
Updates go mod version to 1.23.02e5b930
Updates go mod version to 1.22.6815b014
Bump github.com/paketo-buildpacks/packit/v2 from 2.14.1 to 2.14.274a79fb
Bump github.com/paketo-buildpacks/packit/v2 from 2.14.0 to 2.14.190134a5
Bump github.com/google/go-containerregistry from 0.20.1 to 0.20.2653a6fb
Bump github.com/onsi/gomega from 1.34.0 to 1.34.1ed0e429
Bump github.com/onsi/gomega from 1.33.1 to 1.34.0f467245
Updates go mod version to 1.22.5c97acf2
Bump github.com/google/go-containerregistry from 0.20.0 to 0.20.1Updates
github.com/paketo-buildpacks/packit/v2
from 2.14.2 to 2.15.0Release notes
Sourced from github.com/paketo-buildpacks/packit/v2's releases.
Commits
1ab5b00
SyftCLIScanner: support SBOM generation with syft CLI884a7b7
Update to fix linterc3a3e6a
Updating github-configUpdates
dario.cat/mergo
from 1.0.0 to 1.0.1Release notes
Sourced from dario.cat/mergo's releases.
Commits
59ea6a9
Merge pull request #251 from joshkaplinsky/joshkaplinsky/without-dereference-...96f24af
Merge pull request #253 from vsemichev/master2f1a615
fixes issue #187. adds test to verify the fix.4da170b
fixes issue #187. attempt #3a13a117
fixes issue #187. attempt #26b830ff
fixes issue #187f33862a
WithoutDereference should respect structscde9f0e
Merge pull request #246 from darccio/darccio/v1-frozenf1e2fe5
chore: frozen v17f7b4af
Update FUNDING.ymlUpdates
github.com/Masterminds/semver/v3
from 3.2.1 to 3.3.0Release notes
Sourced from github.com/Masterminds/semver/v3's releases.
Changelog
Sourced from github.com/Masterminds/semver/v3's changelog.
Commits
e6e3d4d
Merge pull request #249 from mattfarina/update-changelog-3.3.0e80c4ea
Updating changelog for 3.3.080427ad
Merge pull request #248 from mattfarina/bump-min-versionb610837
bumping min version in go.mod based on what's testeda4cccd8
Merge pull request #246 from mattfarina/bump-go-1.237c178cf
Updating the testing version of Go used29f94c1
Merge pull request #241 from grosser/grosser/validate2cf1b16
Merge pull request #245 from mattfarina/remove-vertb55476a
Removing reference to vertd07450b
simplify StrictNewVersionUpdates
github.com/Masterminds/sprig/v3
from 3.2.3 to 3.3.0Release notes
Sourced from github.com/Masterminds/sprig/v3's releases.
Changelog
Sourced from github.com/Masterminds/sprig/v3's changelog.
Commits
e708470
Merge pull request #408 from mattfarina/update-changelog-3.38fc4354
Updating the changelog for the 3.3.0 releasecb81a32
Merge pull request #407 from mattfarina/remove-dup-math-functions2637693
Removing duplicate documentation06b9a87
Merge pull request #290 from zzhu41/patch-1e663ec6
Merge pull request #369 from chey/patch-1bb2f73f
Merge pull request #375 from carlpett/patch-1f07659e
Merge pull request #400 from itzik-elayev/master98b35c1
Add closing bracket7a88928
Merge pull request #406 from mattfarina/update-mergoUpdates
github.com/Microsoft/hcsshim
from 0.12.5 to 0.12.7Release notes
Sourced from github.com/Microsoft/hcsshim's releases.
Commits
86b5333
Bump golangci/golangci-lint-action from 4 to 65ae96f3
Update runc to v1.1.148f3fccd
Update pkg versionsf922f2a
Omnibus dependency updates (#2051)7d25ce2
Update module versions85a5a57
drop usage of deprecated package/methodsd4b1cc0
Bump opa/containerd to latest versions6a5ebd3
Upgrade deps to resolve CVEs (#2225)4f46058
Omnibus dependency update (#2166)Updates
github.com/andybalholm/brotli
from 1.1.0 to 1.1.1Commits
57434b5
Encoder: check for empty block97e8583
matchfinder.M4: some refinements to scoringUpdates
github.com/bmatcuk/doublestar/v4
from 4.6.1 to 4.7.1Release notes
Sourced from github.com/bmatcuk/doublestar/v4's releases.
Commits
1e20c6d
fixes #95 FilepathGlob("") should return nilda152ef
add docs for MatchUnvalidated, PathMatchUnvalidated2832f67
closes #92 adds MatchUnvalidated424062b
added sponsor: MASVUpdates
github.com/cloudflare/circl
from 1.3.9 to 1.5.0Release notes
Sourced from github.com/cloudflare/circl's releases.
Commits
1310edf
Release v1.5.00246d59
Add test for ML-DSA signature verification.e2bbd01
Add ML-DSA (FIPS204) (#480)2ba992f
Reverting arm64 jobs since qemu can't run go1.23 binaries yet.ab15f82
Updates golangci-lint to v1.61.0 and fixes code.064a9ba
Bump to go1.22 inner files and ci jobs.7040592
Adding semgrepignore to also analyse test files.51a9a33
Update semgrep.ymlcfbc696
Create semgrep.yml2d6cd98
kem: add X25519MLKEM768 TLS hybrid KEMUpdates
github.com/containerd/errdefs
from 0.1.0 to 0.3.0Release notes
Sourced from github.com/containerd/errdefs's releases.
Commits
9fd32fc
Merge pull request #19 from dmcgowan/pkg-package3dabb2b
Merge pull request #20 from austinvazquez/upgrade-ci303a6ea
Update to Go 1.22.8 in CIe70104e
Upgrade to golangci-lint@v1.61.0ffe5586
Upgrade to golangci/golangci-lint-action@v6908b04b
Upgrade to actions/checkout@v4608b83c
Upgrade to actions/setup-go@v58e82ae4
Upgrade macOS runner image to macOS 1346a6522
Add errdefs/pkg package02b65bc
Merge pull request #18 from dmcgowan/add-missing-interfacesUpdates
github.com/cpuguy83/dockercfg
from 0.3.1 to 0.3.2Release notes
Sourced from github.com/cpuguy83/dockercfg's releases.
Commits
a07c3d1
Merge pull request #3 from stevenh/chore/improve-errors91bd66a
chore: improve errorsUpdates
github.com/cyphar/filepath-securejoin
from 0.3.1 to 0.3.4Release notes
Sourced from github.com/cyphar/filepath-securejoin's releases.
... (truncated)
Changelog
Sourced from github.com/cyphar/filepath-securejoin's changelog.
Commits
fd16ade
VERSION: release v0.3.400e0710
godoc: update package documentation0cd6be1
README: fix reference to open_tree kernel requirements205046f
README: add pkg.go.dev badgeecb1b8e
tests: procfs: clean up mock test hook3ec6eed
CHANGELOG: mention #32 fix86e6182
merge #32 into cyphar/filepath-securejoin:main6864912
Isolate the testing import in test code4348fee
openat: remove unused functiond0c7d67
merge #31 into cyphar/filepath-securejoin:mainUpdates
github.com/docker/cli
from 27.1.1+incompatible to 27.3.1+incompatibleCommits
ce12230
Merge pull request #5462 from thaJeztah/27.x_backport_bump_compose263ba95
Merge pull request #5461 from laurazard/27.x-backport-update-VERSIONbe9b9f3
UpdateVERSION
file tov27.3.1-dev
a4149b0
Dockerfile: update compose to v2.29.74aac415
Merge pull request #5458 from thaJeztah/27.x_bump_engine38546958
vendor: github.com/docker/docker v27.3.0f052003
Merge pull request #5457 from laurazard/backport-dropped-defer460f1be
telemetry: fix early meterprovider shutdowne85edf8
Merge pull request #5452 from laurazard/27.3.0-match-moby-versionca62759
vendor: github.com/docker/docker v27.3.0-rc2Updates
github.com/gabriel-vasile/mimetype
from 1.4.5 to 1.4.6Release notes
Sourced from github.com/gabriel-vasile/mimetype's releases.
Commits
2998a94
Remove GPL test file (#583)8a780a5
Bump actions/checkout from 4.1.7 to 4.2.1 in the github-actions group (#592)458b62d
action for benchmarking detectors (#590)fd16da2
retract v1.4.4; closes #575. (#591)3cf98ef
Bump golang.org/x/net in the gomod group across 1 directory (#585)9349e46
Bump the github-actions group across 1 directory with 2 updates (#586)7798415
add benchmark action that leaves comment on PR (#588)c6c5e4f
Make mso detection work similar to what file/file doesc78cb11
add application/xml as alias; close #227 (#581)c4abedc
feat: Add parquet file detection (#578)Updates
github.com/klauspost/compress
from 1.17.9 to 1.17.11Release notes
Sourced from github.com/klau... _Description has been truncated_