Commit Graph

26351 Commits

Author SHA1 Message Date
Brent Baude
2c2f1328b7 Cite go module change
The go module for podman is changing and we want a deprecation notice in
the 5.8 branch.

Signed-off-by: Brent Baude <bbaude@redhat.com>
2026-04-29 12:55:14 -05:00
Paul Holzinger
88c5aaeec6 Merge pull request #28510 from podmanbot/bump-5.8.3-dev
Bump Podman to v5.8.3-dev
2026-04-15 12:01:24 +02:00
Paul Holzinger
28d04eeb8e Merge pull request #28512 from l0rd/install-wix-version-5-cp
[v5.8] Install WiX v5.0.2 to build the Windows installer
2026-04-14 19:33:21 +02:00
Mario Loriedo
78da75528f Install WiX v5.0.2 to build the Windows installer
To avoid failures such as

https://github.com/containers/podman/actions/runs/24401569105/job/71274410909#step:10:78

use version v5.0.2 of WiX as we do in CI images:

fe80516848/win_images/win_packaging.ps1 (L27)

Related to issue https://github.com/containers/podman/issues/27042

Signed-off-by: Mario Loriedo <mario.loriedo@gmail.com>
(cherry picked from commit 53fc1d902e)
2026-04-14 18:51:33 +02:00
mheon
7a47175665 Bump Podman to v5.8.3-dev
Signed-off-by: mheon <7735048+mheon@users.noreply.github.com>
2026-04-14 13:26:25 +00:00
Brent Baude
84e3443b6e Merge pull request #28501 from mheon/bump_582
Bump to v5.8.2
2026-04-14 08:24:29 -05:00
Matt Heon
5b263b5f5b Bump to v5.8.2
Signed-off-by: Matt Heon <mheon@redhat.com>
v5.8.2
2026-04-13 18:06:58 -04:00
Matt Heon
884cd28228 Release notes for v5.8.2
Signed-off-by: Matt Heon <mheon@redhat.com>
2026-04-13 18:06:38 -04:00
Paul Holzinger
eeb4c6bf51 Merge commit from fork
[v5.8] hyperV: fix powershell path escape
2026-04-13 19:20:23 +02:00
Paul Holzinger
6cffe93d88 hyperV: fix powershell path escape
To avoid special chars from being interpreted.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
(cherry picked from commit 571c842bd3)
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2026-04-13 19:06:26 +02:00
Paul Holzinger
825eed6357 Merge pull request #28475 from Luap99/v5.8-backports
[v5.8] some bugfix backports
2026-04-10 16:46:14 +02:00
Paul Holzinger
f13de01b6d cirrus: bump linux machine aarch64 test timeout
Bump the timeout to 60 minutes. We already bumped to 40 minutes a while
ago in commit 623cb5f but it seems this is not enough.

The x86_64 test needs only 25 minutes so I am confused why aarch64 got
so much slower, they used to be around the same time.
Of course our tests should not take that long so we really need to
figure out what is actually causing this slow down.

Looking at logs a test that boots and stops a VM takes 30s on x86_64
while it takes 50s on aarch64.
However at the same time the aarch64 test on the macs with libkrun and
applehv are quite fast (15-17m) so it seems unlikely to me that it is
something inside the aarch64 machine image that causes but rather
related to the host side.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
(cherry picked from commit 938d677ad9)
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2026-04-09 15:08:07 +02:00
Mario Loriedo
d1cf366b0f Remove iptables references in upgrade tests
Signed-off-by: Mario Loriedo <mario.loriedo@gmail.com>
(cherry picked from commit aa5361ac53)
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2026-04-09 15:01:57 +02:00
Paul Holzinger
add385e31c bindings: artifact extract reject invalid names
The server already does validate this so this is not strictly needed and
the client must trust the server no matter what.

But adding an extra check here does not hurt and may help prevent future
bugs.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
(cherry picked from commit 12bec19426)
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2026-04-09 14:23:52 +02:00
Paul Holzinger
a49ad4be81 use chrootarchive over plain archive package
Just as additional hardening.

Note chrootarchive does not work on macos/windows, in that case it still
falls back to the regular pkg/archive.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
(cherry picked from commit 25aee24cbd)
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2026-04-09 14:23:52 +02:00
Paul Holzinger
92cd24903f fix symlink handling in checkpoint restore
Under normal circumstances this is not a problem as the archive file
created podman container checkpoint will no create symlinks.
However if a user passes a custom archive they could contain symlinks
that point outside our root. To resolve them within the root use
securejoin.

Note this is not a security problem because the full archive must be
trusted by a user to begin with as it contain the full container config.

Fixes: #27977

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
(cherry picked from commit abb5120624)
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2026-04-09 14:23:52 +02:00
Paul Holzinger
0fa3043415 add missing O_CLOEXEC to open calls
The go std os package to will always make sure to use O_CLOEXEC, however
in cases where we directly call unix.Open() we need to pass that flag
explicitly.

I looked at this as there was a report of a leaked fd on the pasta list,
though I am not sure this will address it.

But anyway doing this should be rather safe and avoid leaks into other
processes.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
(cherry picked from commit d20933df02)
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2026-04-09 14:23:52 +02:00
Jan Rodák
9c262736e4 Fix Quadlet Lookup() stripping unmatched quotes
Fixes: https://github.com/containers/podman/issues/28409

Signed-off-by: Jan Rodák <hony.com@seznam.cz>
(cherry picked from commit cf6404f387)
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2026-04-09 14:23:52 +02:00
Joe Doss
75820ddac5 Add e2e test for shell driver DriverOpts cross-contamination fix
Verify that creating a secret with driver=shell and no --driver-opts
does not inherit the file driver's default path option. Before the fix,
this produced "invalid shell driver option"; after, it correctly fails
with "missing config value" for unconfigured shell commands.

Signed-off-by: Joe Doss <joe@solidadmin.com>
(cherry picked from commit 8b905613b5)
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2026-04-09 14:23:51 +02:00
Joe Doss
e9fe245626 Fix shell driver DriverOpts cross-contamination in secret creation
When creating a secret with driver=shell via the API, the file driver's
default DriverOpts (including path) were applied because DriverOpts was
empty. The shell driver rejects path as an unknown option, making it
impossible to create shell-driver secrets via the REST API or
podman-remote.

Only apply default DriverOpts from config when the requested driver
matches the configured default driver.

Signed-off-by: Joe Doss <joe@solidadmin.com>
(cherry picked from commit 667f55c2ce)
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2026-04-09 14:23:51 +02:00
crawfordxx
7250b06e25 libpod: fix data race on deferredErr in attachExecHTTP
ExecContainerHTTP returns attachChan to its caller before attachExecHTTP
finishes. The caller's deferred close(holdConnOpen) can therefore fire
while attachExecHTTP is still running (including its own deferred
cleanups), which races with the goroutine inside attachExecHTTP that
reads deferredErr after <-holdConnOpen unblocks.

Fix this by introducing an errCh channel: deferred functions write
deferredErr into it, and the goroutine reads from it after
<-holdConnOpen unblocks, ensuring the read happens-after all writes to
the named return value.

Fixes: #28277
Signed-off-by: crawfordxx <crawfordxx@users.noreply.github.com>
(cherry picked from commit 497185c14b)
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2026-04-09 14:23:51 +02:00
Jan Rodák
51b5c59310 Consolidate build secret tests and assert no podman-build-secret leak
Signed-off-by: Jan Rodák <hony.com@seznam.cz>
(cherry picked from commit 765ffb9a2e)
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2026-04-09 14:23:51 +02:00
Jan Rodák
15a2a7d605 Remote build: nTar secrets with relative paths and ignore bypass
When `podman-remote` tars the context, extra `podman-build-secret*` paths were
either dropped by `.dockerignore` (#25314) or archived as absolute paths so
`COPY . .` pulled host-shaped trees into the image (#28334).

Use relative names under the primary context for extra sources and do not apply
`.dockerignore` to those forced entries.

Fixes: https://github.com/containers/podman/issues/25314
Fixes: https://github.com/containers/podman/issues/28334

Signed-off-by: Jan Rodák <hony.com@seznam.cz>
(cherry picked from commit e18bb9ea8b)
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2026-04-09 14:23:51 +02:00
crawfordxx
e5fe3fdf69 api: fix missing return after error in SystemCheck handler
In the SystemCheck HTTP handler, when parsing the
unreferenced_layer_max_age query parameter fails, the error response is
sent but execution continues to `unreferencedLayerMaximumAge = &duration`
where `duration` is the zero value. This causes the system check to run
with a zero duration instead of returning the 400 error to the client.

Add the missing `return` after the error response.

Fixes #28350

Signed-off-by: crawfordxx <crawfordxx@users.noreply.github.com>
(cherry picked from commit 29d80a26af)
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2026-04-09 14:23:51 +02:00
Ricardo Branco
c91cd99291 test: relax rootless runc pid namespace assertion
runc may or may not issue a warning here.

https://github.com/opencontainers/runc/issues/4732

Signed-off-by: Ricardo Branco <rbranco@suse.de>
(cherry picked from commit b77531879b)
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2026-04-09 14:23:50 +02:00
Paul Holzinger
26047f43b5 New images 2026-03-19
From https://github.com/containers/automation_images/pull/438

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
(cherry picked from commit f2bc5b86de)
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2026-04-09 14:23:50 +02:00
Paul Holzinger
d49a9208bd cirrus: ensure NOTIFY_SOCKET is properly unset for all tests
Podman uses this env toi do various things, we don't want the external
env to affect our tests here.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
(cherry picked from commit 7e3caaed84)
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2026-04-09 14:22:29 +02:00
Tim Zhou
1a9ae9dcba update fedoral base image to 43 and related tests
Signed-off-by: Tim Zhou <tizhou@redhat.com>
(cherry picked from commit 5d79adbd6a)
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2026-04-09 14:21:13 +02:00
Tim Zhou
759df25a88 new image sfx for debian 14
Signed-off-by: Tim Zhou <tizhou@redhat.com>
(cherry picked from commit 98c398b666)
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2026-04-09 14:20:47 +02:00
Paul Holzinger
d79d0cb534 Merge pull request #28471 from TomSweeneyRedHat/dev/tsweeney/buildah-1.43.1-podman-5.8
[v5.8] Bump Buildah to 1.43.1, c/common v0.67.1, c/image v5.39.2
2026-04-09 14:01:40 +02:00
Doug Rabson
28a39dd1ba libpod: Don't dereference ctrSpec.Linux if it is nil
This prevents a nil pointer crash when running network=host containers
on a FreeBSD host using podman-remote.

Fixes: #28289
Signed-off-by: Doug Rabson <dfr@rabson.org>
(cherry picked from commit 9a10cefd18)
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2026-04-09 13:41:53 +02:00
umut-polat
7f37fbd6af quadlet: allow empty Entrypoint to clear image default
Setting Entrypoint= (empty value) in a quadlet .container file should
produce --entrypoint "" in the generated podman command, which clears
the image's default entrypoint. Previously this was silently ignored
because lookupAndAddString skips empty values.

Move the Entrypoint key out of the generic stringKeys map and handle
it separately so that an empty value is passed through.

Closes #28213

Signed-off-by: umut-polat <52835619+umut-polat@users.noreply.github.com>
(cherry picked from commit 926f562bd5)
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2026-04-09 13:41:52 +02:00
Tom Sweeney
24fd9eb605 [v5.8] Bump Buildah to 1.43.1, c/common v0.67.1, c/image v5.39.2
As the title says.  Bump:

Buildah to v1.43.1
c/common to v0.67.1
c/image to v5.39.2

Signed-off-by: Tom Sweeney <tsweeney@redhat.com>
2026-04-08 15:38:44 -04:00
Paul Holzinger
1a39a54dc4 Merge pull request #28457 from lsm5/v5.8-go-jose-update
[v5.8] bump go-jose/go-jose to v4.1.4
2026-04-08 20:35:50 +02:00
Lokesh Mandvekar
42ac589e4d bump go-jose/go-jose to v4.1.4
Ref: https://github.com/containers/podman/pull/28443

Fixes: CVE-2026-34986

Signed-off-by: Lokesh Mandvekar <lsm5@redhat.com>
2026-04-07 15:45:28 -04:00
Matt Heon
b97310e2a9 Merge pull request #28328 from TomSweeneyRedHat/dev/tsweeney/0day-rhel-129405-v5.8
[v5.8] Fix `unless-stopped` containers not restarting after ...
2026-03-24 09:57:32 -04:00
Jan Rodák
fcc6ae217c [v5.8] Fix unless-stopped containers not restarting after ...
`podman-restart.service` stop them

When `podman-restart.service` stops containers, it marks them as "stopped by
user" which breaks the `unless-stopped` restart policy. Add hidden
`--not-stopped-by-user` flag to prevent this, allowing `unless-stopped`
containers to restart on next boot.

Fixes: https://github.com/containers/podman/issues/28152
Fixes: https://issues.redhat.com/browse/RUN-4357

Cherry pick fixes: https://redhat.atlassian.net/browse/RHEL-157746, https://redhat.atlassian.net/browse/RHEL-157747

Signed-off-by: Jan Rodák <hony.com@seznam.cz>
(cherry picked from commit 7326b862e3)
Signed-off-by: Tom Sweeney <tsweeney@redhat.com>
2026-03-19 19:40:30 -04:00
Paul Holzinger
21071ebb13 Merge pull request #28254 from podmanbot/bump-5.8.2-dev
Bump Podman to v5.8.2-dev
2026-03-16 13:11:20 +01:00
mheon
6a9ea849a0 Bump Podman to v5.8.2-dev
Signed-off-by: mheon <7735048+mheon@users.noreply.github.com>
2026-03-11 19:53:44 +00:00
Paul Holzinger
9d66b48e1c Merge pull request #28250 from mheon/bump_581
Bump to v5.8.1
2026-03-11 19:46:12 +01:00
Matt Heon
c6077f6457 Bump to v5.8.1
Signed-off-by: Matt Heon <mheon@redhat.com>
v5.8.1
2026-03-11 09:31:04 -04:00
Matt Heon
dfe5dae2d6 Release notes for v5.8.1
Signed-off-by: Matt Heon <mheon@redhat.com>
2026-03-11 09:30:51 -04:00
Matt Heon
3bd2b272b2 Merge pull request #28237 from Luap99/5.8-migrate-docs
[v5.8] Updating migration doc and warning with more details
2026-03-10 15:49:13 -04:00
Paul Holzinger
cf0019e3ed docs: make the --migrate-db more clear
Recommend the reboot option instead if users cannot shut down all podman
commands. Also update the wording that users MUST shut down commands for
correct migration.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2026-03-10 13:54:57 +01:00
Paul Holzinger
5dcc24d01d update boltdb migrating warning
Mention the reboot which should be safer and that in order for the
command the user has to ensure they are no parallel commands.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2026-03-10 13:54:57 +01:00
Jan Rodák
241a5b9e66 Merge pull request #28227 from Luap99/5.8-migrate
[v5.8] fix automatic migration bug
2026-03-10 09:28:27 +01:00
Paul Holzinger
13deb46d81 libpod: prefer sqlite in getDBState()
If the sqlite file exists make sure we always use that db and no longer
botldb. There are known race conditions in the db migration logic that
might make it so that both database files exists at once.

In order to ensure we use the correctly migrated one we must prefer
sqlite here.

see https://github.com/containers/podman/issues/28216

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2026-03-09 20:55:53 +01:00
Paul Holzinger
0c473eb570 libpod: fix parallel migration issue
Once we have the alive lock and do not refresh check again if another
process migrated the state after we opened the db initially.

This is required to ensure parallel commands notice the migration and
correctly only use sqlite.

see https://github.com/containers/podman/issues/28219

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2026-03-09 20:55:53 +01:00
Paul Holzinger
9b810aed3a libpod: return full path in sqliteStatePath()
It makes more sense for the callers.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2026-03-09 17:59:15 +01:00
Matt Heon
06ffb9b397 Merge pull request #28205 from timcoding1988/backport-aws-oidc-v5.8
BackPort for (aws migrate to oidc)
2026-03-05 13:17:01 -05:00