Commit Graph

3780 Commits

Author SHA1 Message Date
openshift-merge-bot[bot] 9622097f35
Merge pull request #6051 from openshift-cherrypick-robot/cherry-pick-6028-to-release-1.24
[release-1.24] tests/conformance/testdata/Dockerfile.add:...
2025-03-11 02:32:04 +00:00
Nalin Dahyabhai 1c9a91246a tests/conformance/testdata/Dockerfile.add:...
update some URLs

The origin repository renamed its "master" branch to "main", so we need
to update our references to items in that branch.

[NO NEW TESTS NEEDED]

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2025-03-10 19:09:35 +00:00
openshift-merge-bot[bot] a0cddb708b
Merge pull request #5593 from cevich/fix_pause_fqin
[release-1.24] Cherry-pick PR #4210
2024-06-18 13:31:09 +00:00
Chris Evich 424d24b1d5
[release-1.24] Cherry-pick PR #4210
Signed-off-by: Chris Evich <cevich@redhat.com>
2024-06-17 13:28:51 -04:00
openshift-merge-bot[bot] f022e58871
Merge pull request #5451 from TomSweeneyRedHat/dev/tsweeney/cve-1.24
[release-1.24] CVE-2024-1753, Bump to Buildah v1.24.7
2024-04-03 11:58:48 +00:00
tomsweeneyredhat 7fede6a2ff [release-1.24] Bump Buildah to v1.24.7
As the title says

[NO NEW TESTS NEEDED]

Signed-off-by: tomsweeneyredhat <tsweeney@redhat.com>
2024-04-02 18:10:11 -04:00
Nalin Dahyabhai 8ede58d33f [release-1.24] conformance tests: don't break on trailing zeroes
... in layer blobs

When analyzing a layer blob's contents, don't break if the blob has more
zeroes padding it out even after the tar reader thinks it's hit the end
of the archive.

Add more detail to the diagnostic error we print when there's a digest
or length mismatch, too, in case it's triggered by something other than
zero padding.

Don't ignore errors which might be encountered when we try to use skopeo
to copy an image to a directory.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
Signed-off-by: tomsweeneyredhat <tsweeney@redhat.com>
2024-04-02 18:10:11 -04:00
tomsweeneyredhat 734fd1353e [release-1.24] CVE-2024-1753 container escape fix
Addresses CVE-2024-1753 which allowed a user to write files to the
`/` directory of the host machine if selinux was not enabled.

Signed-off-by: tomsweeneyredhat <tsweeney@redhat.com>
2024-04-02 18:09:01 -04:00
openshift-merge-bot[bot] c80d4973ba
Merge pull request #5353 from lsm5/release-1.24-ci-disable-cross
[release-1.24] Cirrus: disable cross_build task
2024-02-22 12:41:52 +00:00
Lokesh Mandvekar 5c53868090
[release-1.24] Cirrus: disable cross_build task
cross build task depends on `brew install`ing a go version that's
no longer supported upstream.

We will also be switching to TMT tests using centos stream, so cirrus
cross build task which will use the latest available version of golang
on centos stream. So disabling this task in cirrus shouldn't be too big
a deal.

It's only being commented out so we don't forget about it when we switch
to TMT.

Ref: https://cirrus-ci.com/build/6451305468657664

[NO NEW TESTS NEEDED]

Signed-off-by: Lokesh Mandvekar <lsm5@redhat.com>
2024-02-22 15:43:22 +05:30
openshift-merge-bot[bot] a71867806e
Merge pull request #5245 from lsm5/release-1.24-crypto-bump
[release-1.24] bump golang.org/x/crypto to v0.17.0
2024-01-23 15:25:44 +00:00
Chris Evich 331aeadd5d
Hack: Replace golang with 1.17 for security update
Normally updates to release-branches are ill-advised for multiple
reasons.  However, in the case of necessary security updates all
downstream releases have already updated to golang 1.17.  Do the
same for CI to maintain parity with downstream user experience.

Also: Stop testing on F34.  This release-branch is needed only to
validate backports.  It simply needs to remain close to RHEL/CentOS, so
there's no sense in maintaining more Fedora releases than minimally
necessary.

Signed-off-by: Chris Evich <cevich@redhat.com>
2024-01-22 10:19:41 -05:00
Lokesh Mandvekar 1be2b626c9
bump golang.org/x/crypto to v0.17.0
Manual bump because of failed automated cherrypick of #5232.

Go bumped to 1.17 otherwise it fails to build.

Fixes: GHSA-45x7-px36-x8w8 CVE-2023-48795

Signed-off-by: Lokesh Mandvekar <lsm5@redhat.com>
2024-01-18 11:30:08 -05:00
openshift-merge-bot[bot] 1ca249a68f
Merge pull request #5260 from cevich/conformance-bit-masking-1.24
[release-1.24] conformance test: ignore file type bits when comparing layers
2024-01-10 19:28:00 +00:00
Nalin Dahyabhai 9d1f2bbe13
conformance test: ignore file type bits when comparing layers
When comparing layer payloads during conformance tests, mask off any
file type bits that the tar headers in the layers might have included.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
Signed-off-by: Chris Evich <cevich@redhat.com>
2024-01-10 12:43:42 -05:00
openshift-merge-bot[bot] 5b5fcf80f3
Merge pull request #5134 from openshift-cherrypick-robot/cherry-pick-5133-to-release-1.24
[release-1.24] Mask /sys/devices/virtual/powercap by default
2023-11-06 22:43:52 +00:00
Matt Heon 2d1de68ef3 Mask /sys/devices/virtual/powercap by default
This mimics #5111 but without the vendor update, which is very
large on this branch.

[NO NEW TESTS NEEDED] This cannot be tested in CI as cloud
providers already don't provide these interfaces in their VMs.

Signed-off-by: Matt Heon <mheon@redhat.com>
2023-11-02 17:47:10 +00:00
OpenShift Merge Robot b2c1fe2490
Merge pull request #4850 from cevich/release-1.24_backport-fix_ci_using_docker_hub
[release-1.24] Explicitly ref. quay images for CI
2023-06-07 15:43:36 -04:00
Chris Evich 273abed129
[release-1.24] Explicitly ref. quay images for CI
Commit d5b77bf72c updated the conformance test references from a
deprecated repository.  However, by pointing at the docker-hub it
inadvertantly introduce a significant possibility for flakes.  This is
because anonymous docker hub access is rate-limited by IP.  We cannot
predict the IP used for CI VMs & Containers, any of which could be at or
close to the limit.  Fix this by pointing conformance tests explicitly at
`quay.io/libpod/centos` which is excluesively for use by CI, with
static images.

Signed-off-by: Chris Evich <cevich@redhat.com>
2023-06-06 14:26:21 -04:00
OpenShift Merge Robot 2146a1c84c
Merge pull request #4827 from edsantiago/excise-centos-registry-1.24
[release-1.24] remove registry.centos.org
2023-06-05 16:11:28 -04:00
Aditya R d5b77bf72c [release-1.24] remove registry.centos.org
registry.centos.org is now decommissioned

Ref: https://lists.centos.org/pipermail/centos-devel/2023-May/142956.html

Cherry-pick of #4825, which is in turn a cherry-pick of #4819.
One minor conflict

Signed-off-by: Aditya R <arajan@redhat.com>
Signed-off-by: Ed Santiago <santiago@redhat.com>
2023-05-30 08:12:39 -06:00
OpenShift Merge Robot 60e6bc0f73
Merge pull request #4500 from lsm5/release-1.24-osx
[release-1.24] [CI:BUILD] Cirrus: Migrate OSX task to M1
2023-01-06 14:19:45 -05:00
Ashley Cui cf1a14daf5
[CI:BUILD] Cirrus: Migrate OSX task to M1
Migrate our OSX build to a M1 instance, since Cirrus is sunsetting Intel-based macOS instances.

Signed-off-by: Ashley Cui <acui@redhat.com>
(cherry picked from commit 498b45770f)
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2023-01-06 21:16:28 +05:30
OpenShift Merge Robot 1320eb734d
Merge pull request #4384 from edsantiago/safeimage_1.24
[1.24] Define and use a safe, reliable test image
2022-10-27 13:36:14 -04:00
Ed Santiago 33e25e8da2 Define and use a safe, reliable test image
The ubi8 image changed some architecture string yesterday and
broke all our CI on all branches, including podman because
it too runs bud.bats tests.

Solution: use a safe, reliable, trustworthy test image (the
one built and used for podman). Because that image does not
have the same labels, confirm pull using .Architecture
instead.

We should stop using ubi8 and registry.redhat (#4318). They
are unreliable. This PR doesn't fix that; it's just an
emergency patch for one specific CI break. We can use
this as a basis for future removals of ubi8.

Signed-off-by: Ed Santiago <santiago@redhat.com>
2022-10-27 05:46:56 -06:00
Daniel J Walsh 4198a78cf5
Merge pull request #4288 from flouthoc/release-1.24
[release-1.24] add: fail on bad `HTTP` response instead of writing to container for `URL` sources
2022-09-23 11:36:15 -04:00
Aditya R 00a369d099
define.downloadToDirectory: fail early if bad HTTP response
Fail early if downloadToDirectory receives bad HTTP response from the
source URL.

Signed-off-by: Aditya R <arajan@redhat.com>
2022-09-23 13:03:35 +05:30
Aditya R 4d0df86f4b
add: fail on bad http response instead of writing to container
Adding sources from URL using `ADD` instruction adds reponse to build
container even if it receives bad HTTP response, following behaviour is
not in parity with `docker` or `buildkit`.

Following commit ensures that `ADD` where source is external URL fails
on build step if we get bad HTTP response.

Example: Following containerfile should fail while building

```Dockerfile
FROM registry.fedoraproject.org/fedora:36
ADD https://mirror.init7.net/fedora/fedora/linux/releases/36/Server/x86_64/iso/Fedora-Server-netinst-x86_64-36-1.5.foo /
```

**Fixes: BZ#2102140**

Signed-off-by: Aditya R <arajan@redhat.com>
2022-09-23 13:00:16 +05:30
OpenShift Merge Robot efed577b7f
Merge pull request #4281 from nalind/v1.24.6
[release-1.24] tag v1.24.6
2022-09-21 08:02:28 +02:00
Nalin Dahyabhai c933610bfb tag v1.24.6
[NO NEW TESTS NEEDED]

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2022-09-20 13:04:32 -04:00
OpenShift Merge Robot 0ee422c0e2
Merge pull request #4265 from nalind/additional-groups-1.24
[release-1.24] run: add container gid to additional groups
2022-09-19 22:51:27 +02:00
Aditya R cf2b5ff695 run: add container gid to additional groups
When container is created with specific uid and gid also add container
gid to supplementary/additional group.

Signed-off-by: Aditya R <arajan@redhat.com>
Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2022-09-19 14:43:38 -04:00
OpenShift Merge Robot 8cc4586087
Merge pull request #4193 from cevich/fix_cross_golang
Cirrus: Lock cross-build task onto golang 1.18
2022-08-23 09:45:38 -04:00
Chris Evich ec88ff18fb
Cirrus: Lock cross-build task onto golang 1.18
Recently (as of this commit) the OSX CI environment was updated.  This
is causing the cross_build task to break.  Fix this by locking onto the
golang version it was passing with on release.

Signed-off-by: Chris Evich <cevich@redhat.com>
2022-08-22 16:51:55 -04:00
OpenShift Merge Robot 83c5f2610f
Merge pull request #4140 from cevich/1.24_latest_imgts
[release-1.24] Cirrus: Use the latest imgts container
2022-07-27 11:45:01 +02:00
Chris Evich 547436a7c2
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 14:03:54 -04:00
openshift-ci[bot] e99286b1d0
Merge pull request #4112 from nalind/v1.24.5
[release-1.24] bump version to v1.24.5
2022-07-15 04:25:56 +00:00
Nalin Dahyabhai 1100403aad Bump to v1.24.5
- Update the version number to v1.24.5 for tagging a new release.
- Drop commas from changelog dates because `rpmspec -q` doesn't like them.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2022-07-14 15:36:44 -04:00
openshift-ci[bot] 63813efc1b
Merge pull request #4106 from rhatdan/release-1.24
Bump github.com/containers/storage from v1.38.3 to v1.38.5
2022-07-12 23:33:05 +00:00
Nalin Dahyabhai 43f0fc1677
Bump github.com/containers/storage from v1.38.3 to v1.38.5
Update github.com/containers/storage from v1.38.3 to v1.38.5.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2022-07-12 14:37:37 -04:00
OpenShift Merge Robot c1bdaba574
Merge pull request #3980 from lsm5/release-1.24-4-bump
[release-1.24] [CI:DOCS] Bump to v1.24.4
2022-05-11 11:05:33 -04:00
Lokesh Mandvekar 12939a33d1
[CI:DOCS] Bump to v1.24.4
[NO NEW TESTS NEEDED]

Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2022-05-11 10:22:50 -04:00
OpenShift Merge Robot d29224ccb1
Merge pull request #3975 from lsm5/release-1.24-ocicrypt-image-bump
bump c/image to v5.19.3 and c/ocicrypt to v1.1.4
2022-05-10 16:12:05 -04:00
Lokesh Mandvekar 2f94c10774
bump c/image to v5.19.3 and c/ocicrypt to v1.1.4
c/ocicrypt v1.1.4 gets rid of sha1 default.

[NO NEW TESTS NEEDED]

Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2022-05-09 15:10:12 -04:00
OpenShift Merge Robot 9c456a36fc
Merge pull request #3910 from lsm5/release-1.24-cve-2022-27191-backport
[release-1.24 backport] Bump golang.org/x/crypto to 7b82a4e
2022-04-12 17:21:45 -04:00
Lokesh Mandvekar f10a02945d
Bump golang.org/x/crypto to 7b82a4e
Resolves: GHSA-8c26-wmh5-6g9v - CVE-2022-27191

Buildah doesn't seem to be directly affected as the logic in question
is not called.

golang.org/x/crypto@1baeb1ce contains the actual CVE fix. Using the
latest upstream commit to also include support for SHA-2.

Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
(cherry picked from commit 84580a69bc)
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2022-04-12 10:55:03 -04:00
OpenShift Merge Robot 8a645e9a26
Merge pull request #3886 from TomSweeneyRedHat/v1.24.3
[release-1.24] Bump to v1.24.3
2022-03-31 15:12:37 -04:00
tomsweeneyredhat 8c85afc925 [release-1.24]Bump to v1.24.3
Bump to v1.24.3 inside of the release-1.24 branch.

[NO NEW TESTS NEEDED]

Signed-off-by: tomsweeneyredhat <tsweeney@redhat.com>
2022-03-31 09:38:40 -04:00
OpenShift Merge Robot 7b559a3e7c
Merge pull request #3851 from nalind/CVE-2022-21698-1.24
[release-1.24] CVE-2022-21698: bump github.com/prometheus/client_golang to v1.11.1
2022-03-25 10:43:33 +01:00
Daniel J Walsh 0131c2ec9a
Merge pull request #3852 from nalind/CVE-2022-27651-1.24
[release-1.24] CVE-2022-27651: do not set the inheritable capabilities
2022-03-25 05:12:29 -04:00