11989 Commits

Author SHA1 Message Date
3bcefb8f75 Merge pull request #25629 from cevich/CVE-2025-22869_v323-rhel
[v3.2.3-rhel] Update crypto module to fix CVE-2025-22869
2025-03-21 14:08:49 +00:00
cfe4626081 Update crypto module to fix CVE-2025-22869
This commit re-vendors the module from a temporary source, using a
patched version to address CVE-2025-22869.  This version is specific
to the podman build requirement of golang 1.13.  Should that requirement
change to a later version, re-vendoring the crypto module back to the
authoritative upstream source is recommended.  However, the likelihood
of this happening prior to EOL is believed to be very low.

Resolves: RHEL-81303

Signed-off-by: Chris Evich <cevich@redhat.com>
2025-03-21 09:24:06 -04:00
21a09aeeb5 Merge pull request #25628 from cevich/cleanup_ci_v323-rhel
[v3.2.3-rhel] Update EOL date + Simplify CI
2025-03-19 17:50:39 +00:00
8a8c31a624 Simplify CI
While this RHEL release branch has a very short lifespan remaining,
there's still a good chance additional backports may be needed.  To help
reduce the likelihood of flakes and reduce CI to the absolute bare-minimum
needed.

Signed-off-by: Chris Evich <cevich@redhat.com>
2025-03-19 13:27:03 -04:00
39548521af Update branch EOL date
The date previously set in the CI scripts was wrong.  Fix it to allow CI
to continue operating.

Signed-off-by: Chris Evich <cevich@redhat.com>
2025-03-19 13:26:15 -04:00
c1dc03da53 Merge pull request #18233 from cevich/v3.2.3-rhel_ci_duct_tape
[v3.2.3-rhel] Fix attempt to use incompatible go tools
2023-04-20 03:30:23 -04:00
63e76e3ae6 Cirrus: Add CI self-destruct condition on EOL date
Signed-off-by: Chris Evich <cevich@redhat.com>
2023-04-18 14:35:08 -04:00
0ce9e4ab8c [v3.2.3-rhel] Fix attempt to use incompatible go tools
Change breaks on this branch which depends on an older toolchain:

https://cs.opensource.google/go/x/tools/+/master:internal/gocommand/invoke.go;bpv=1;bpt=0;drc=866a2000920cc5ae9d6650c27c4b14f4654938e7;dlc=5214f412aecffbca887fc0c26f8d59e3a2342d44

Signed-off-by: Chris Evich <cevich@redhat.com>
2023-04-18 11:35:10 -04:00
9388445116 Merge pull request #15883 from edsantiago/fix_build_323rhel
[v3.2.3-rhel] fix build
2022-09-21 19:06:17 +02:00
3d4b10dc7f [v3.2.3-rhel] fix build
install.tools target broke a few weeks ago because it was fetching
something @latest.

We can't use 'go install' nor 'got get ...@version' on this branch,
so just delete the .gitvalidation steps entirely.

Signed-off-by: Ed Santiago <santiago@redhat.com>
2022-09-21 07:53:16 -06:00
3577002344 Merge pull request #15552 from edsantiago/disable_swagger_323
[v3.2.3-rhel] CI: disable swagger step
2022-08-31 08:37:38 -04:00
c2da9180fc CI: disable swagger step
On this branch, /usr/local/bin/swagger is fetched on each run
(vs, on current 2022-08 main, installed at VM-setup time).
Something changed, and the new binary is very strict about
bugs in our swagger comments, of which there seem to be many.

Possible solution: fix our code. Doesn't seem worth the bother
for an old branch like this one.

Possible solution: re-fetch an old version of swagger tool.
Ditto.

This solution: just skip the swagger test. It seems unlikely
that anyone will make significant API changes on this branch.

Signed-off-by: Ed Santiago <santiago@redhat.com>
2022-08-30 10:08:47 -06:00
546cde54ed Merge pull request #15151 from vrothberg/3.2.3-fix-ci
[v3.2.3-rhel] fix e2e sign tests
2022-08-02 09:47:50 +02:00
7309f6a017 fix e2e sign tests
The key used in the tests has expired.  Remove the expiration date to
turn CI happy and green.

Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
2022-08-02 08:59:18 +02:00
3fa7324ad4 Merge pull request #15083 from cevich/v3.2.3-rhel_latest_imgts
[v3.2.3-rhel] [CI:DOCS] Cirrus: Use the latest imgts container
2022-07-26 21:45:51 +02:00
40bd8d4ee7 [CI:DOCS] Cirrus: Use the latest imgts container
Contains important updates re: preserving release-branch CI VM images.
Ref: https://github.com/containers/automation_images/pull/157

Signed-off-by: Chris Evich <cevich@redhat.com>
2022-07-26 15:24:47 -04:00
61a96c31a3 Merge pull request #14645 from cevich/v3.2.3-rhel_reduce_testing
[v3.2.3-rhel] Cirrus: Prune testing tasks for long-term reliability
2022-06-17 19:39:26 +00:00
a15657c4f6 Cirrus: Prune testing tasks for long-term reliability
As release branches age, it becomes less valuable to execute
comprehensive CI testing.  Further given occasional flakes, it becomes
more burdensome to maintain.  Trim back some non-essential testing tasks
for improved long-term reliability and reduced maintenance.

Signed-off-by: Chris Evich <cevich@redhat.com>
2022-06-17 11:39:58 -04:00
1bbab8286c Merge pull request #14509 from cevich/v3.2.3-rhel_fix_build_each
[v3.2.3-rhel] Cirrus: Avoid build-each-commit check
2022-06-08 17:03:11 -04:00
4011c02fcc Cirrus: Avoid build-each-commit check
This check is breaking on PRs and branches, for example:

```
Rebasing (5/24)
error: could not apply e6ed1d4bf... cirrus: update image
Resolve all conflicts manually, mark them as resolved with
"git add/rm <conflicted_files>", then run "git rebase --continue".
You can instead skip this commit: run "git rebase --skip".
To abort and get back to the state before "git rebase", run "git rebase
--abort".
Could not apply e6ed1d4bf... cirrus: update image
Auto-merging .cirrus.yml
CONFLICT (content): Merge conflict in .cirrus.yml
make: *** [Makefile:269: build-all-new-commits] Error 1
```

Stop running this check rather than debugging/fixing it because this is
a release branch that will not likely ever see a PR containing more than
one commit.

Signed-off-by: Chris Evich <cevich@redhat.com>
2022-06-07 12:34:09 -04:00
7cbd25f875 Merge pull request #14372 from cevich/disable_static_v3.2.3-rhel
[v3.2.3-rhel] Disable static v3.2.3 rhel
2022-05-26 06:35:16 -04:00
42fea69999 Cirrus: Disable static build test
This test frequently fails and is of little use on a release-branch and
for any backports that may occur in the future.  Simply remove it.

Signed-off-by: Chris Evich <cevich@redhat.com>
2022-05-25 16:06:22 -04:00
265d8c783f CI: fix golangci-lint installation
avoid this warn:
```
golangci/golangci-lint info installed ./bin/golangci-lint
golangci/golangci-lint err this script is deprecated, please do not use it anymore. check https://github.com/goreleaser/godownloader/issues/207
```

Signed-off-by: Pascal Bourdier <pascal.bourdier@gmail.com>
Signed-off-by: Chris Evich <cevich@redhat.com>
2022-05-25 16:06:22 -04:00
a2f7e61545 Merge pull request #13879 from umohnani8/v3.2.3-rhel
[v3.2.3-rhel] backport libpod: refine check for empty pod cgroup
2022-04-21 11:00:46 -04:00
bc6a13717b libpod: refine check for empty pod cgroup
rootless containers do not use cgroups on cgroupv1 or if using
cgroupfs, so improve the check to account for such configuration.

Closes: https://github.com/containers/podman/issues/10800
Closes: https://bugzilla.redhat.com/show_bug.cgi?id=2028243

[NO NEW TESTS NEEDED] it requires rebooting and the rundir on a non
tmpfs file system.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Signed-off-by: Urvashi Mohnani <umohnani@redhat.com>
2022-04-21 10:16:06 -04:00
e493ef9053 Merge pull request #13915 from vrothberg/3.2-backports
[v3.2.3-rhel] fix CVE-2022-1227
2022-04-21 07:27:16 -04:00
b659678d63 cirrus: disable apiv2 task
Business as usual.  It's flaky and we agreed to only run the system
tests.

Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
2022-04-21 11:19:34 +02:00
eab775932f cirrus: disable bud task
Same game as for the other tasks.  It's flaking and we decided to rely
on the system tests.

Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
2022-04-21 10:31:00 +02:00
00d876d18c cirrus: disable integration tasks
They are too flaky on this stable branch.  The system tests are
sufficient to pass gating.

Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
2022-04-21 09:34:04 +02:00
a67584af65 CI fix: cirrus: rootless: load iptables
Since rootless cannot otherwise.

Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
2022-04-21 09:26:10 +02:00
0319af371d cirrus: disable compose test
Compose is not officially supported in the v3.2.3-rhel branch,
so disable it to turn CI green.

Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
2022-04-21 09:26:10 +02:00
e6ed1d4bff cirrus: update image
Update the image to c6737534580424704 to revive CI on the
rhel branch.

Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
2022-04-21 09:26:10 +02:00
3a902deed9 fix CVE-2022-1227
Vendor in the backports for psgo from the dedicated v1.5.2-podman-3.2.3
branch.

Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
2022-04-21 09:26:10 +02:00
47dc7d7f3e Merge pull request #11039 from kolyshkin/3.2.3-rhel-default-errno-ret
[3.2.3-rhel] seccomp: propagate defaultErrnoRet
2021-07-29 06:59:12 -04:00
472c0aebd6 seccomp: propagate defaultErrnoRet
This fixes the issue of not propagating defaultErrnoRet from
system's seccomp.json to container's config.json, which can
result in redundant seccomp rules and inability to start a container
when using some runtimes (notably runc up to and including 1.0.1).

The fix is to vendor in containers/common with the fixed pkg/seccomp
which no longer ignores defaultErrnoRet.

Brought to you by:

	go get github.com/containers/common@v0.38.18
	make vendor

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2021-07-25 03:58:13 -07:00
78f0bd766e Merge pull request #11006 from mheon/test_failure
[v3.2.3-rhel] Remove a test that is nonfunctional on RHEL8
2021-07-21 13:27:33 -04:00
b2d3af73ba Ensure journald events tests only run where supported
We don't support the journald events backend on RHEL8, for
example. So we can't unconditionally run these tests.

Partial fix for RHBZ1955166

Signed-off-by: Matthew Heon <mheon@redhat.com>
2021-07-21 11:21:06 -04:00
1e6fd46e91 Bump to v3.2.3
Signed-off-by: Ashley Cui <acui@redhat.com>
v3.2.3
2021-07-16 14:40:40 -04:00
bfb50c0c85 Merge pull request #10966 from mheon/release_notes_323
[CI:DOCS] Release notes for v3.2.3
2021-07-16 14:11:45 -04:00
1d7ddf5118 Update release notes for v3.2.3
Signed-off-by: Matthew Heon <mheon@redhat.com>
2021-07-16 13:55:13 -04:00
32c52d5234 Merge pull request #10964 from vrothberg/3.2-backports
[v3.2] vendor containers/common@v0.38.16
2021-07-16 13:15:44 -04:00
e4c45e7595 vendor containers/common@v0.38.16
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2021-07-16 17:29:41 +02:00
1b6da0eacb Merge pull request #10957 from vrothberg/3.2-backports
[3.2] vendor containers/buildah@v1.21.3
2021-07-16 07:32:42 -04:00
cb70162249 vendor containers/buildah@v1.21.3
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2021-07-16 11:26:37 +02:00
2eea7fefb4 Merge pull request #10945 from Luap99/rootless-cni-v3.2
[v3.2] Backport rootless cni fixes
2021-07-15 15:20:08 -04:00
1a8b2a037f Fix race conditions in rootless cni setup
There was an race condition when calling `GetRootlessCNINetNs()`. It
created the rootless cni directory before it got locked. Therefore
another process could have called cleanup and removed this directory
before it was used resulting in errors. The lockfile got moved into the
XDG_RUNTIME_DIR directory to prevent a panic when the parent dir was
removed by cleanup.

Fixes #10930
Fixes #10922

To make this even more robust `GetRootlessCNINetNs()` will now return
locked. This guarantees that we can run `Do()` after `GetRootlessCNINetNs()`
before another process could have called `Cleanup()` in between.

[NO TESTS NEEDED] CI is flaking, hopefully this will fix it.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2021-07-15 18:21:01 +02:00
e54a513b96 CNI-in-slirp4netns: fix bind-mount for /run/systemd/resolve/stub-resolv.conf
Fix issue 10929 : `[Regression in 3.2.0] CNI-in-slirp4netns DNS gets broken when running a rootful container after running a rootless container`

When /etc/resolv.conf on the host is a symlink to /run/systemd/resolve/stub-resolv.conf,
we have to mount an empty filesystem on /run/systemd/resolve in the child namespace,
so as to isolate the directory from the host mount namespace.

Otherwise our bind-mount for /run/systemd/resolve/stub-resolv.conf is unmounted
when systemd-resolved unlinks and recreates /run/systemd/resolve/stub-resolv.conf on the host.

[NO TESTS NEEDED]

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2021-07-15 18:18:38 +02:00
1469af265a Make rootless-cni setup more robust
The rootless cni namespace needs a valid /etc/resolv.conf file. On some
distros is a symlink to somewhere under /run. Because the kernel will
follow the symlink before mounting, it is not possible to mount a file
at exactly /etc/resolv.conf. We have to ensure that the link target will
be available in the rootless cni mount ns.

Fixes #10855

Also fixed a bug in the /var/lib/cni directory lookup logic. It used
`filepath.Base` instead of `filepath.Dir` and thus looping infinitely.

Fixes #10857

[NO TESTS NEEDED]

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2021-07-15 18:13:16 +02:00
4136f8bdc9 Merge pull request #10915 from ashley-cui/backport
[3.2] Backport: Support uid,gid,mode options for secrets
2021-07-13 10:50:45 -04:00
6f9d9636a2 Support uid,gid,mode options for secrets
Support UID, GID, Mode options for mount type secrets. Also, change
default secret permissions to 444 so all users can read secret.

Signed-off-by: Ashley Cui <acui@redhat.com>
2021-07-12 17:00:50 -04:00