699 Commits
Author SHA1 Message Date
Sebastiaan van Stijn dce0b5a6d3 migrate to github.com/moby/sys/userns
Commit 8437c567d8 migrated the use of the
userns package to the github.com/moby/sys/user module.

After further discussion with maintainers, it was decided to move the
userns package to a separate module, as it has no direct relation with
"user" operations (other than having "user" in its name).

This patch migrates our code to use the new module.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit 9776047243)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2024-08-08 13:10:40 +02:00
Sebastiaan van Stijn 65f7d07409 pkg/userns: deprecate and migrate to github.com/moby/sys/user/userns
The userns package in libcontainer was integrated into the moby/sys/user
module at commit [3778ae603c706494fd1e2c2faf83b406e38d687d][1].

This patch deprecates the containerd fork of that package, and adds it as
an alias for the moby/sys/user/userns package.

[1]: https://github.com/opencontainers/runc/commit/3778ae603c706494fd1e2c2faf83b406e38d687d

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit 8437c567d8)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2024-08-08 13:06:41 +02:00
Sebastiaan van Stijn f21675c273 vendor: github.com/moby/sys/user v0.2.0
full diff: https://github.com/moby/sys/compare/user/v0.1.0...user/v0.2.0

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit 40a315b95c)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2024-08-08 12:58:14 +02:00
Bryant Biggs 3a02c523d0 deps: Update otelgrpc
Signed-off-by: Bryant Biggs <bryantbiggs@gmail.com>
(cherry picked from commit 78421616e0)
Signed-off-by: Austin Vazquez <macedonv@amazon.com>
2024-07-02 16:08:54 +00:00
Yuanyuan Lei 415dd74a81 updating hcsshim to 0.11.7
Signed-off-by: Yuanyuan Lei <yuanlei@microsoft.com>

go mod tidy for intergration/client

Signed-off-by: Yuanyuan Lei <yuanlei@microsoft.com>

go mod tidy for intergration/client

Signed-off-by: Yuanyuan Lei <yuanlei@microsoft.com>
2024-06-28 10:44:39 -07:00
Derek McGowan 0eb786de66 Update api version to v1.7.19
Signed-off-by: Derek McGowan <derek@mcg.dev>
2024-06-26 08:03:11 -07:00
Sebastiaan van Stijn 37926b10d0 vendor: github.com/containerd/ttrpc v1.2.5
full diff: https://github.com/containerd/ttrpc/compare/v1.2.4...v1.2.5

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit b323e9eec6)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2024-06-20 17:03:15 +02:00
Derek McGowan 3be919f3c0 Add support for 1.8 interfaces
Signed-off-by: Derek McGowan <derek@mcg.dev>
2024-06-13 06:22:21 -07:00
Derek McGowan a3a7431bc3 Add api go submodule
Allows the api version to be imported and upgraded separately from the
main module.

Signed-off-by: Derek McGowan <derek@mcg.dev>
2024-06-13 06:22:21 -07:00
Sebastiaan van Stijn 869b786772 vendor: github.com/containerd/platforms v0.2.1
- Remove hcsshim import from repo
    - un-exports GetOsVersion
- Update windows matcher to not compare empty os version

full diff: https://github.com/containerd/platforms/compare/v0.2.0...v0.2.1

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit 87dd4309db)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2024-06-13 00:58:28 +02:00
Sebastiaan van Stijn 6ff3e09d20 migrate platforms package to github.com/containerd/platforms
This updates the platforms package to be an alias for the new platforms module.
This helps transitioning consumers to the new module, and makes sure that
containerd v2 and v1 use the same definitions.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2024-06-13 00:58:28 +02:00
Akihiro Suda 327a3ac61d go.mod: github.com/klauspost/compress v1.16.7
https://github.com/imdario/mergo/compare/v0.3.13...v1.0.0

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
(cherry picked from commit 1f2216cc78)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2024-06-12 22:57:30 +02:00
Sebastiaan van Stijn d0d1264a65 vendor: github.com/klauspost/compress v1.16.5
partial backport of 56d80f81a2

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2024-06-12 22:57:27 +02:00
dependabot[bot] 97abbe9cba build(deps): bump github.com/distribution/reference from 0.5.0 to 0.6.0
Bumps [github.com/distribution/reference](https://github.com/distribution/reference) from 0.5.0 to 0.6.0.
- [Release notes](https://github.com/distribution/reference/releases)
- [Commits](https://github.com/distribution/reference/compare/v0.5.0...v0.6.0)

---
updated-dependencies:
- dependency-name: github.com/distribution/reference
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
(cherry picked from commit 362fcf2d27)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2024-06-08 18:33:30 +02:00
Sebastiaan van Stijn b38c0f2ef8 replace reference/docker for github.com/distribution/reference v0.5.0
The reference/docker package was a fork of github.com/distribution/distribution,
which could not easily be used as a direct dependency, as it brought many other
dependencies with it.

The "reference' package has now moved to a separate repository, which means
we can replace the local fork, and use the upstream implementation again.

The new module was extracted from the distribution repository at commit:
https://github.com/distribution/distribution/commit/b9b19409cf458dcb9e1253ff44ba75bd0620faa6

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit 4923470902)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2024-06-08 18:26:31 +02:00
Sebastiaan van Stijn 47ff8cfce0 migrate errdefs package to github.com/containerd/errdefs module
This updates the errdefs package to be an alias for the new errdefs module.
This helps transitioning consumers to the new module, and makes sure that
containerd v2 and v1 use the same definitions.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2024-05-26 13:19:16 +02:00
Derek McGowan a3c0f2f61e Merge pull request #10232 from kiashok/update-shim-0.11.4
[release/1.7] Update hcsshim tag to v0.11.5
2024-05-15 13:38:14 -07:00
Kirtana Ashok 5a03a3aeee Update hcsshim tag to v0.11.5
Signed-off-by: Kirtana Ashok <kiashok@microsoft.com>
2024-05-15 10:54:10 -07:00
Kirtana Ashok 9a1eda40f8 update ttrpc tag to 1.2.4
Signed-off-by: Kirtana Ashok <kiashok@microsoft.com>
2024-05-14 13:51:22 -07:00
Austin Vazquez a5d13689b9 vendor: github.com/containerd/imgcrypt@v1.1.8
This change vendors containerd/imgcrypt@v1.1.8 which updates its
dependency on square/go-jose/v2 (deprecated) to go-jose/go-jose/v3
(recommended) to resolve warnings for https://pkg.go.dev/vuln/GO-2024-2631.

With 638b474c81, containerd/imgcrypt was
temporarily removed in main, so there would not be a commit to
cherry-pick for this change.

full diff:
https://github.com/containerd/imgcrypt/compare/v1.1.7...v1.1.8

Signed-off-by: Austin Vazquez <macedonv@amazon.com>
2024-05-13 15:13:22 +00:00
Derek McGowan 24dd403abb Update image-spec to v1.1.0
Signed-off-by: Derek McGowan <derek@mcg.dev>
2024-05-06 17:16:20 -07:00
Akihiro Suda 189b69e247 go.mod: github.com/opencontainers/image-spec v1.1.0-rc3
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
(cherry picked from commit 4347fc8bc2)
Signed-off-by: Derek McGowan <derek@mcg.dev>
2024-05-06 17:12:52 -07:00
Derek McGowan 388fb336b0 Update grpc to v1.59.0
Signed-off-by: Derek McGowan <derek@mcg.dev>
2024-05-06 17:10:50 -07:00
Samuel Karp 395a319015 mod: bump github.com/containerd/nri@v0.6.1
Fixes https://github.com/containerd/containerd/issues/10085

Signed-off-by: Samuel Karp <samuelkarp@google.com>
(cherry picked from commit a153b2cd32)
Signed-off-by: Samuel Karp <samuelkarp@google.com>
2024-04-18 16:18:15 -07:00
Sebastiaan van Stijn e6d91d843f vendor: github.com/golang/protobuf v1.5.4
commit 10c7f03b3b updated google.golang.org/protobuf
to v1.33.0, which addresses CVE-2024-24786, however a follow-up post on the
Golang security list issued a warning that the v1.33.0 update introduced a
breaking change, causing compatibility with github.com/golang/protobuf to be
broken;

> A small correction: This vulnerability applies when the UnmarshalOptions.DiscardUnknown
> option is set (as well as when unmarshaling into any message which contains a
> google.protobuf.Any). There is no UnmarshalUnknown option.
>
> In addition, version 1.33.0 of google.golang.org/protobuf inadvertently
> introduced an incompatibility with the older github.com/golang/protobuf
> module. (https://github.com/golang/protobuf/issues/1596) Users of the older
> module should update to github.com/golang/protobuf@v1.5.4.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit 45e425ccce)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2024-03-20 10:25:31 +01:00
Krisztian Litkey d3e9975563 go.{mod,sum}: update NRI dependency, re-vendor.
Pull in latest NRI fixing a potential fd double close error.

Signed-off-by: Krisztian Litkey <krisztian.litkey@intel.com>
2024-02-07 19:25:42 +02:00
Evan Lezar 14628d4aaa Update container-device-interface to v0.6.2
This includes migrating from the github.com/container-orchestrated-devices
repo to tags.cncf.io.

Signed-off-by: Evan Lezar <elezar@nvidia.com>
2024-01-24 14:51:15 +01:00
Sebastiaan van Stijn 9251072f78 remove github.com/opencontainers/runc dependency
This migrates uses of github.com/opencontainers/runc/libcontainer/user
to the new github.com/moby/sys/user module, which was extracted from
runc at commit [opencontainers/runc@a3a0ec48c4].

This is the initial release of the module, which is a straight copy, but
some changes may be made in the next release (such as fixing camel-casing
in some fields and functions (Uid -> UID).

[opencontainers/runc@a3a0ec48c4]: https://github.com/opencontainers/runc/commit/a3a0ec48c464fe6458d2ba067f6707c027e5384e

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit 4b1bb1293e)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2024-01-05 14:21:49 +01:00
Sebastiaan van Stijn 4e67213d4f vendor: github.com/cncf-tags/container-device-interface v0.6.1
Removes uses of the github.com/opencontainers/runc/libcontainer/devices
package.

full diff: https://github.com/cncf-tags/container-device-interface/compare/v0.6.0...v0.6.1

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit 05093d7c07)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2024-01-05 14:18:57 +01:00
Akihiro Suda e0ee0be0df go.mod: github.com/opencontainers/runtime-spec v1.1.0
https://github.com/opencontainers/runtime-spec/compare/v1.1.0-rc.2...v1.1.0

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
(cherry picked from commit 235a4452df)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2024-01-05 14:17:19 +01:00
Akihiro Suda 02be2236a2 go.mod: github.com/.../container-device-interface v0.6.0
https://github.com/container-orchestrated-devices/container-device-interface/compare/v0.5.4...v0.6.0

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
(cherry picked from commit 0498acefb9)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2024-01-05 14:15:34 +01:00
Akihiro Suda 91f953bb47 go.mod: github.com/opencontainers/runtime-spec v1.1.0-rc.2
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
(cherry picked from commit 5e054ee631)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2024-01-05 14:15:29 +01:00
Akihiro Suda 428714e320 go.mod: dario.cat/mergo v1.0.0
https://github.com/imdario/mergo/compare/v0.3.13...v1.0.0

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
(cherry picked from commit 3c6ab04203)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2023-12-21 18:47:24 +01:00
Milas Bowman 807ddd658b fix(tracing): use latest version of semconv
All components need to use a consistent `semconv` version or OTel
will emit errors about "cannot merge resource due to conflicting Schema URL".

Switch to the appropriate semconv version, which requires dropping
usage of `httpconv`. Instead, the upstream HTTP client hooks are
used directly. (The lower-level functions are no longer exported by
OTel.)

Signed-off-by: Milas Bowman <milas.bowman@docker.com>
(cherry picked from commit ad3b806a4f)
Signed-off-by: Derek McGowan <derek@mcg.dev>
2023-12-06 11:46:12 -08:00
Kazuyoshi Kato d106a7cdbe Merge pull request #9301 from milas/otel-1.19-1.7
[release/1.7] vendor: upgrade OpenTelemetry to v1.19.0 / v0.45.0
2023-11-10 15:22:04 -08:00
Kirtana Ashok 73f15bdb63 Update hcsshim tag to v0.11.4
Signed-off-by: Kirtana Ashok <kiashok@microsoft.com>
2023-11-02 17:13:36 -07:00
Milas Bowman bd9428ff71 vendor: upgrade OpenTelemetry to v1.19.0 / v0.45.0
Upgrade to the latest OpenTelemetry libraries; this will unblock
a lot of downstream projects in the ecosystem to upgrade, as some
of the parts here were pre-1.0/unstable.

See also:
 * containerd/containerd#9256

Signed-off-by: Milas Bowman <milas.bowman@docker.com>
2023-10-26 15:28:23 -04:00
Sebastiaan van Stijn 5756f6064b [release/1.7] vendor: github.com/Microsoft/hcsshim v0.11.1
Fix closing stdin: fix an issue introduced in [v0.10.0-rc.3], which resulted
in the close request not being forwarded if stdin was nil.
The fix moves the nil check to after the modify request, to let the process
handle it.

full diff: https://github.com/Microsoft/hcsshim/compare/v0.11.0...v0.11.1

[v0.10.0-rc.3]: https://github.com/microsoft/hcsshim/commit/3e090b05a82c0e226e26c0d1e2ae89d336d7ff69

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2023-09-21 09:21:33 +02:00
Sebastiaan van Stijn cb201519f8 alias log package to github.com/containerd/log v0.1.0
This "soft" deprecates the package, but keeps the local uses of the package,
which can make backporting this to release-branches easier (we can
still move all uses in those branches as well though).

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit d69ae811d6)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit f1591cc9b9)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2023-09-19 08:54:55 +02:00
Sebastiaan van Stijn a5024e6dd9 vendor: github.com/stretchr/testify v1.8.4
full diff: https://github.com/stretchr/testify/compare/v1.8.2...v1.8.4

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2023-09-19 08:52:09 +02:00
Sebastiaan van Stijn 7bd976af3f vendor: github.com/sirupsen/logrus v1.9.3
full diff: https://github.com/sirupsen/logrus/compare/v1.9.0...v1.9.3

v1.9.3

- Fix a potential denial of service vulnerability in logrus.Writer()
  that could be triggered by logging text longer than 64kb without newlines
- Fix panic in Writer

v1.9.2

Reverts "Fix a potential denial of service vulnerability in logrus.Writer()",
which introduced a regression.

v1.9.1

- Fix data race in hooks.test package
- Add instructions to use different log levels for local and syslog
- Fix a potential denial of service vulnerability in logrus.Writer()
  that could be triggered by logging text longer than 64kb without newlines
- Use text when shows the logrus output

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2023-09-19 08:52:09 +02:00
Samuel Karp 4cd208c1f2 vendor: update github.com/containerd/nri@v0.4.0
Signed-off-by: Samuel Karp <samuelkarp@google.com>
(cherry picked from commit 6f9de91efc)
Signed-off-by: Samuel Karp <samuelkarp@google.com>
2023-09-14 14:27:40 -07:00
Kirtana Ashok ddffc7c9a1 Update hcsshim tag to v0.11.0
Signed-off-by: Kirtana Ashok <kiashok@microsoft.com>
2023-09-06 13:13:16 -07:00
Akihiro Suda 503ab21bfc go.mod: github.com/containerd/continuity v0.4.2
https://github.com/containerd/continuity/compare/1e0d26eb2381...v0.4.2

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
(cherry picked from commit 490905be6f)
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2023-08-25 16:41:52 +09:00
James Sturtevant 1c2dd5198e Remove temporary replace
Signed-off-by: James Sturtevant <jstur@microsoft.com>
(cherry picked from commit 8399a4ee71)
Signed-off-by: James Sturtevant <jstur@microsoft.com>
2023-08-22 20:06:26 +00:00
Wei Fu 2bf6bd1431 vendor: update github.com/containerd/continuity
Pin it with 1e0d26eb2381594984ee80989c9c229dbd930d9f

Signed-off-by: Wei Fu <fuweid89@gmail.com>
(cherry picked from commit 59b0b39af0)
Signed-off-by: Danny Canter <danny@dcantah.dev>
2023-08-18 05:41:32 -07:00
Sebastiaan van Stijn d5639a5a86 vendor: github.com/containerd/zfs v1.1.0
- update github.com/mistifyio/go-zfs dependency to github.com/mistifyio/go-zfs/v3,
  which contains various bugfixes, and adds go module support (which required a major
  version update): https://github.com/mistifyio/go-zfs/compare/f784269be439...v3.0.1
- remove github.com/pkg/errors dependency
- various minor cleanups/fixes

Full diff: https://github.com/containerd/zfs/compare/v1.0.0...v1.1.0

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit 05fef52b68)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2023-07-06 16:56:28 +02:00
Danny Canter a08ae718c4 [release/1.7] go.mod: Update cgroups to 3.0.2
This brings in a ton of great improvements, most notably for the containerd
daemon is performance improvements for cgroups1 and 2 for gathering stats,
as well as some fixes for enabling controllers and deleting v1 cgroups.

Signed-off-by: Danny Canter <danny@dcantah.dev>
2023-06-30 12:45:42 -07:00
Gabriel Adrian Samfira 313c226b8b Update continuity to a tagged version
Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2023-06-01 04:19:39 +03:00
Gabriel Adrian Samfira 5b3ee413f4 Update continuity
Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2023-05-31 02:10:50 +03:00