25847 Commits

Author SHA1 Message Date
Paul Holzinger
c24b8f6f56 Merge commit from fork
kube play: don't follow volume symlinks onto the host
2025-09-04 18:36:26 +02:00
openshift-merge-bot[bot]
c3bf7058aa Merge pull request #26986 from mheon/tmpfiles_remove
Add R! to systemd-tmpfiles script for all /tmp dirs
2025-09-04 15:55:47 +00:00
Paul Holzinger
43fbde4e66 kube play: don't follow volume symlinks onto the host
For ConfigMap and Secret kube play volumes podman populates the data
from the yaml. However the volume content is not controlled by us and we
can be tricked following a symlink to a file on the host instead.

Fixes: CVE-2025-9566

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-09-04 16:18:35 +02:00
Matt Heon
4b66e5a27b Add R! to systemd-tmpfiles script for all /tmp dirs
We already used `x` in tmpfiles, to ensure systemd did not remove
our directories or clean their contents (we really need them to
be left unmodified). However, systemd-tmpfiles lets us use more
than one directive per line, which means we can safely add an R!
(recursive remove on reboot) to these lines to ensure that, if
/tmp is not a tmpfs, systemd-tmpfiles will still remove our
temporary files, ensuring reboots are still accurately detected.

Signed-off-by: Matt Heon <mheon@redhat.com>
2025-09-04 09:51:37 -04:00
openshift-merge-bot[bot]
2499de2f27 Merge pull request #26982 from containers/renovate/actions-stale-10.x
[skip-ci] Update actions/stale action to v10
2025-09-04 09:24:20 +00:00
openshift-merge-bot[bot]
836b897178 Merge pull request #26980 from containers/renovate/actions-setup-go-6.x
[skip-ci] Update actions/setup-go action to v6
2025-09-04 09:21:31 +00:00
renovate[bot]
889a5fd0ac [skip-ci] Update actions/stale action to v10
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-04 09:11:18 +00:00
openshift-merge-bot[bot]
a589f51209 Merge pull request #26971 from mheon/fix_26968
Fix a locking bug in that could cause a double-unlock
2025-09-04 09:10:30 +00:00
renovate[bot]
f22506b74f [skip-ci] Update actions/setup-go action to v6
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-04 05:39:43 +00:00
openshift-merge-bot[bot]
6cc74679e2 Merge pull request #26976 from Luap99/buildah-test-fix
test/buildah-bud: enable one skipped test
2025-09-03 20:54:40 +00:00
Paul Holzinger
faceb67782 test/buildah-bud: enable one skipped test
For podman build --squash is different from the buildah bud --squash
option, in podman it must use --squash-all.

Fixes: #26906

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-09-03 20:25:12 +02:00
openshift-merge-bot[bot]
be3f06ed96 Merge pull request #26974 from Luap99/vendor
vendor: update go.podman.io/{common,image,storage}
2025-09-03 16:45:22 +00:00
Paul Holzinger
dbfddb82cb vendor: update go.podman.io/{common,image,storage}
Update to the latest tags to make sure they all work correctly.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-09-03 17:46:02 +02:00
Matthew Heon
2c6dadd724 Fix a locking bug in that could cause a double-unlock
The `cleanupExecBundle` function was only meant to be called on a
locked container, as it does some state mutation operations. It
also has a timed wait (if the directory is busy and can't be
removed yet, give it a few milliseconds) in which it deliberately
yields the lock to not block the container for that time.

The `healthCheckExec()` function calls `cleanupExecBundle` out of
a `defer` block. This is after the `defer c.lock.Unlock()` so it
fires afterwards when the function returns, so we're normally
fine - the container is still locked when our defer runs. The
problem is that `healthCheckExec()` also unlocks the container
during the expensive exec operation, and can actually fail and
return while not holding the lock - meaning our `defer` can fire
on an unlocked container, leading to a potential double unlock
in `cleanupExecBundle`.

We could, potentially, re-lock the container after the exec
occurs, but we're actually waiting for a `select` to trigger to
end the function, so that's not a good solution. Instead, just
re-lock (if necessary) in the defer, before invoking
`cleanupExecBundle()`. The `defer c.lock.Unlock()` will fire
right after and unlock after us.

Fixes #26968

Signed-off-by: Matthew Heon <matthew.heon@pm.me>
2025-09-03 10:19:37 -04:00
openshift-merge-bot[bot]
5e5f0a1dd2 Merge pull request #26963 from Luap99/fix-local-cross
Revert "Remove bin/podman.cross Make target"
2025-09-03 11:07:53 +00:00
Paul Holzinger
5c810ea1c8 Makefile: add SOURCES dep to bin/podman.cross.% target
Without this the corss binaries will never get rebuild until the user
manually deletes them which is not very useful.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-09-03 12:11:23 +02:00
Paul Holzinger
b62f887fbd Makefile: add proper docs for bin/podman.cross.%
To avoid any confusion where people think this target is unused.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-09-03 12:11:23 +02:00
Paul Holzinger
3633cd53e8 Revert "Remove bin/podman.cross Make target"
This reverts commit c45b27ffb0.

This commit was just wrong, local-cross depends on this target as it
calls a target like "bin/podman.cross.linux.amd64". Without this it is
just broken as there is no matching target.

$ make bin/podman.cross.linux.amd64
make: *** No rule to make target 'bin/podman.cross.linux.amd64'.  Stop.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-09-03 12:11:23 +02:00
openshift-merge-bot[bot]
6d0b28a5c4 Merge pull request #26943 from containers/renovate/github.com-shirou-gopsutil-v4-4.x
fix(deps): update module github.com/shirou/gopsutil/v4 to v4.25.8
2025-09-02 14:54:04 +00:00
openshift-merge-bot[bot]
ca19491f91 Merge pull request #26947 from Luap99/system-test-fixes
test/system: some small fixes
2025-09-02 14:21:23 +00:00
openshift-merge-bot[bot]
9d7a24e654 Merge pull request #26945 from Luap99/vol-opts
do not pass volume options as bind mounts options to runtime
2025-09-02 14:18:15 +00:00
Paul Holzinger
247a80db45 test/system: remove distro-integration bats tag
The distro-integration tag was added for fedora openQA to only run a
subset of tests. However since it was added only a few new tests have
been labelled like that and in general a normal contributor or even
maintianer has no idea when to add this tag.

We also have been seeing several regressions getting into fedora that
these tests would have caught. As such I worked with Adam to enable all
tests for fedora openQA so we actually have proper coverage. This has
been working for a few weeks so I think we can dop these tags so
upstream does not need to bother with them at all.

https://pagure.io/fedora-qa/os-autoinst-distri-fedora/issue/373

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-09-02 12:10:08 +02:00
Paul Holzinger
ee45782079 test/system: fix podman load - from URL
The test pulled a new $IMAGE already because it runs the http server
container. So this doesn't striclty ensure the load works correctly.

Make sure to actually test the load of a different image, so we use
$PODMAN_NONLOCAL_IMAGE_FQN for that like another load test already
does.

I noticed this as the image pull on the webserver start flaked in
a openQA run. Using _prefetch should help to reduce the network pulls
here as it caches the image locally once it is pulled for the first
time.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-09-02 12:10:08 +02:00
openshift-merge-bot[bot]
fcdb6b59d9 Merge pull request #26956 from containers/renovate/github.com-spf13-cobra-1.x
fix(deps): update module github.com/spf13/cobra to v1.10.1
2025-09-02 09:56:08 +00:00
Paul Holzinger
20fb712872 test/system: do not connect to github server
This is an unnecessary network connection that flakes from time to time.
Spawn our own local server instead and use that. That also allows to
check that the actual file content has been copied.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-09-02 11:51:08 +02:00
renovate[bot]
9b8e785e3c fix(deps): update module github.com/spf13/cobra to v1.10.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-01 20:28:02 +00:00
openshift-merge-bot[bot]
706f72b9c2 Merge pull request #26946 from containers/renovate/github.com-checkpoint-restore-checkpointctl-1.x
fix(deps): update module github.com/checkpoint-restore/checkpointctl to v1.4.0
2025-09-01 17:07:59 +00:00
openshift-merge-bot[bot]
428c854be6 Merge pull request #26932 from ogajduse/feature/quadlet-httpproxy-26925
quadlet: add HttpProxy option for Container sections
2025-09-01 16:04:15 +00:00
openshift-merge-bot[bot]
39072f7ce2 Merge pull request #26858 from jankaluza/monorepo
Switch common, storage and image to monorepo.
2025-09-01 13:07:53 +00:00
Ondřej Gajdušek
c65fd9a2c2 quadlet: add HttpProxy option for Container sections
Add support for HttpProxy key in quadlet Container sections to control
proxy environment variable inheritance during image pulls and builds.

- HttpProxy=true enables proxy inheritance (default podman behavior)
- HttpProxy=false disables proxy inheritance
- When omitted, uses podman's default behavior

This addresses the need for declarative proxy configuration in IPv6-only
networks and other scenarios where proxy settings need to be controlled
at the container level without manual workarounds.

Fixes #26925

Signed-off-by: Ondřej Gajdušek <ogajduse@redhat.com>
2025-09-01 13:45:06 +02:00
openshift-merge-bot[bot]
0786dac553 Merge pull request #26944 from containers/renovate/go-github.com-ulikunitz-xz-vulnerability
chore(deps): update module github.com/ulikunitz/xz to v0.5.15 [security]
2025-09-01 11:09:30 +00:00
renovate[bot]
26aafb21d2 fix(deps): update module github.com/checkpoint-restore/checkpointctl to v1.4.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-01 10:51:34 +00:00
Paul Holzinger
46d757501a do not pass [no]copy as bind mounts options to runtime
Starting with runc 1.3.0 it errors when we pass unknown mount options to
the runtime, the copy/nocopy options are specific to podman when we
mount the volume and are not valid mount options for the runtime.

Fixes: #26938

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-09-01 12:48:43 +02:00
Paul Holzinger
4e2a04dedc do not pass volume-opt as bind mounts options to runtime
Starting with runc 1.3.0 it errors when we pass unknown mount options to
the runtime, the volume-opt options are specifc to the volume we create
and should not be passed to the mount in the oci spec.

Fixes: #26938

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-09-01 12:48:43 +02:00
Jan Kaluza
a98154a978 Switch common, storage and image to monorepo.
Signed-off-by: Jan Kaluza <jkaluza@redhat.com>
2025-09-01 12:33:04 +02:00
openshift-merge-bot[bot]
92758e2eec Merge pull request #26942 from containers/renovate/github.com-spf13-pflag-1.x
fix(deps): update module github.com/spf13/pflag to v1.0.9
2025-09-01 10:13:27 +00:00
renovate[bot]
c8681b6028 chore(deps): update module github.com/ulikunitz/xz to v0.5.15 [security]
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-01 09:06:13 +00:00
renovate[bot]
0f477eaaa6 fix(deps): update module github.com/spf13/pflag to v1.0.9
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-01 08:27:37 +00:00
renovate[bot]
573fd0d7eb fix(deps): update module github.com/shirou/gopsutil/v4 to v4.25.8
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-01 08:04:18 +00:00
openshift-merge-bot[bot]
dedeb24e9f Merge pull request #26931 from jelly/mention-zst
Mention zstandard tarball import support
2025-08-29 17:39:28 +00:00
openshift-merge-bot[bot]
7f50da7ebe Merge pull request #26885 from containers/renovate/go-github.com-go-viper-mapstructure-v2-vulnerability
chore(deps): update module github.com/go-viper/mapstructure/v2 to v2.4.0 [security]
2025-08-29 16:46:23 +00:00
Jelle van der Waa
b9812e3d9e Mention zstandard tarball import support
The `podman-import` man page already mentions support for zstd
compressed tarball support but the cli output didn't.

Signed-off-by: Jelle van der Waa <jvanderwaa@redhat.com>
2025-08-29 17:51:04 +02:00
openshift-merge-bot[bot]
dc1ccba6cb Merge pull request #26813 from fiesh/improve-documentation
Improve dns documentation
2025-08-29 15:08:19 +00:00
openshift-merge-bot[bot]
07bb6706e6 Merge pull request #26923 from containers/renovate/github.com-onsi-ginkgo-v2-2.x
fix(deps): update module github.com/onsi/ginkgo/v2 to v2.25.2
2025-08-29 10:14:03 +00:00
renovate[bot]
80348a50d0 chore(deps): update module github.com/go-viper/mapstructure/v2 to v2.4.0 [security]
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-29 09:40:26 +00:00
openshift-merge-bot[bot]
74f5ed71b9 Merge pull request #26713 from Luap99/deps-script
contrib: add script and docs to analyze dependency usage
2025-08-28 19:32:29 +00:00
openshift-merge-bot[bot]
ecd5dfe635 Merge pull request #26915 from containers/renovate/github.com-stretchr-testify-1.x
fix(deps): update module github.com/stretchr/testify to v1.11.1
2025-08-28 18:58:49 +00:00
renovate[bot]
3d4f8153be fix(deps): update module github.com/onsi/ginkgo/v2 to v2.25.2
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-28 18:34:59 +00:00
openshift-merge-bot[bot]
43305b6cc4 Merge pull request #26921 from ricardobranco777/bye_netcat
tests: Get rid of netcat on the host and use Bash's /dev/tcp
2025-08-28 18:33:30 +00:00
Ricardo Branco
3effff42eb tests: Get rid of netcat on the host and use Bash's /dev/tcp
The only remaining uses of nc now are in containers.

Signed-off-by: Ricardo Branco <rbranco@suse.de>
2025-08-28 17:43:47 +02:00