Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
6b85d88
add patch for azure-iot-sdk-c CVE-2024-21646 (#7283)
rmhsawyer Jan 17, 2024
52ea900
Making GitHub Actions' permissions explicit. (#7282)
PawelWMS Jan 17, 2024
790a54f
fix python urllib3 test (#7294)
mandeepsplaha Jan 17, 2024
babfccf
Kata-CC: Upgrade to 0.6.3 (#7196)
dallasd1 Jan 17, 2024
acd143e
Image Customizer: Use safeloopback.Loopback instead of ImageConnectio…
amritakohli Jan 17, 2024
573152f
add container images source files to 2.0 (#7223)
mandeepsplaha Jan 17, 2024
98d0c1f
Image Customizer: Fix special directories and partition customization…
cwize1 Jan 18, 2024
a678fe8
Patch erlang for CVE-2023-48795 (#7299)
harshitgupta1337 Jan 18, 2024
119bf40
Added cross-compilation `binutils` and `kernel-headers`. (#6945)
PawelWMS Jan 18, 2024
770c563
Image Customizer: Make either one of split partitions format and outp…
amritakohli Jan 18, 2024
7e65dd1
OS Modifier (EMU): Add sshkeys to user config (#7305)
elainezhao1 Jan 18, 2024
1255e34
Imager: Ensure ext4 formatting is consistent across build hosts (#7303)
cwize1 Jan 18, 2024
4002115
Patch libssh2 for CVE-2023-48795 (#7292)
harshitgupta1337 Jan 18, 2024
5a8926c
apply patch for CVE-2023-48795 (#7329)
tobiasb-ms Jan 18, 2024
400cedf
Fixed `cloud-init` tests. (#7330)
PawelWMS Jan 19, 2024
e5cc638
Fix CVE-2023-50711 in cloud-hypervisor (#7269)
sindhu-karri Jan 19, 2024
d311a29
Fix mariadb install post script (#7320)
AZaugg Jan 19, 2024
904fdec
Introduce Rust virtiofsd package (#7215)
sprt Jan 19, 2024
4cc8642
Enable CONFIG_X86_IOPL_IOPERM (#7181)
rlmenge Jan 19, 2024
c9f493b
[AUTO-CHERRYPICK] Add epoch to libdwarf spec to fix versioning order …
CBL-Mariner-Bot Jan 20, 2024
9740bd1
Image Customizer: remove adduser-config.yaml file as it contains pass…
elainezhao1 Jan 22, 2024
cc1b3c5
add memcached container files (#7307)
mandeepsplaha Jan 22, 2024
ad95d11
skopeo: upgrade version 1.13.3 -> 1.14.1 to address GHSA-jq35-85cj-fj…
mfrw Jan 23, 2024
36b91de
Prepare January 2024 Update 3 (#7392)
CBL-Mariner-Bot Jan 23, 2024
e1cbb1d
Remove /etc/host.conf from filesystem (#7389)
hbeberman Jan 23, 2024
b8442f8
Address CVE-2023-6932, CVE-2023-6817 and CVE-2023-6931 (#7417)
rlmenge Jan 23, 2024
a89979e
[AUTOPATCHER-kernel] Kernel CVE - branch main - CVE-2023-46862 CVE-20…
CBL-Mariner-Bot Jan 23, 2024
680c185
kernel-hci: Add missing commit subject to patch 27 (#7165)
vinceaperri Jan 24, 2024
bdd30f7
helm: update version 3.13.2 -> 3.14.0 to address CVE-2023-44487 (#7419)
CBL-Mariner-Bot Jan 24, 2024
f909391
python-jinja2: add patch for CVE-2024-22195 (#7426)
tobiasb-ms Jan 24, 2024
7b3cfb8
OS modifier: fix a bug if condition to not skip processing sshkeys wh…
elainezhao1 Jan 24, 2024
c694541
Kata-CC: Enforce a restrictive pod security policy (#7030)
manuelh-dev Jan 24, 2024
c929f08
Add mysql user with package install (#7220)
AZaugg Jan 25, 2024
6e7be29
Added a cross-compilation subpackage for aarch64 into `gcc`. (#6996)
PawelWMS Jan 25, 2024
29b4675
[AUTO-CHERRYPICK] Adding support for multiple cache inputs - branch m…
CBL-Mariner-Bot Jan 25, 2024
9b6fe86
kernel-hci: Backport Nvidia net/mlx5 patches to support 100G BOM (#7166)
vinceaperri Jan 25, 2024
3b103c8
[AUTO-CHERRYPICK] Specialcased 5XX errors during package downloads. -…
CBL-Mariner-Bot Jan 25, 2024
0d4d499
[AUTOPATCHER-kernel] Kernel upgrade to version 5.15.147.1 - branch ma…
CBL-Mariner-Bot Jan 25, 2024
5e92abc
Fix runtime dependency for python3-virtualenv (#7477)
corvus-callidus Jan 25, 2024
a33397c
[AUTOPATCHER-kernel] Kernel CVE - branch main - CVE-2024-0639 CVE-202…
CBL-Mariner-Bot Jan 26, 2024
e955313
Set ownership of virtiofsd package to Kata team (#7474)
sprt Jan 26, 2024
547a5fa
Added initial doc about reading error logs. (#7475)
PawelWMS Jan 26, 2024
971e0e8
[AUTOUPGRADE-CORE] Upgrade ca-certificates Msft cert change (#7499)
CBL-Mariner-Bot Jan 27, 2024
4d35b64
fix: upgrade cloud-init to v23.4.1 and add patch to retain exit code …
christopherco Jan 27, 2024
482b00e
Add shadow-utils as a hard dependency for mysql package (#7496)
AZaugg Jan 29, 2024
143b748
Move hiera from Extended to Core (#7109)
sindhu-karri Jan 29, 2024
46a4d29
Update dracut to allow supressing user confirmation prompt when the l…
gmileka Jan 29, 2024
790ebdc
[AUTO-CHERRYPICK] patch CVE-2022-21698 in application-gateway-kuberne…
CBL-Mariner-Bot Jan 31, 2024
0349723
kata-containers-cc: remove kernel-uvm-cvm references (#7455)
arc9693 Jan 31, 2024
6f46ecb
align cloud hypervisor spec with fasttrack branch (#7515)
sindhu-karri Jan 31, 2024
016d121
[AUTO-CHERRYPICK] patch CVE-2022-21698 in keda - branch main (#7571)
CBL-Mariner-Bot Jan 31, 2024
4edde9f
[AUTOPATCHER-kernel] Kernel CVE - branch main - CVE-2024-0607 CVE-202…
CBL-Mariner-Bot Jan 31, 2024
964f2fa
[AUTOPATCHER-kernel] Kernel upgrade to version 5.15.148.1 - branch ma…
CBL-Mariner-Bot Jan 31, 2024
391f7f5
[AUTO-CHERRYPICK] fix cve-2022-21698 in kube-vip-cloud-provider - bra…
CBL-Mariner-Bot Jan 31, 2024
acd481a
Use main kernel for baremetal base image (#7583)
romoh Jan 31, 2024
b5f9206
Shift user/group creation earlier in image build for rootfs image typ…
ellie-di Jan 31, 2024
66555b6
Update kernel-mos to 5.15.148.1 (#7574)
gjswalling Jan 31, 2024
880718f
Add dracut sub-package overlayfs. (#7432) (#7587)
liulanze Feb 1, 2024
ceb3c7e
Bump golang.org/x/crypto from 0.15.0 to 0.17.0 in /toolkit/tools (#7045)
dependabot[bot] Feb 1, 2024
e3b5d51
[AUTO-CHERRYPICK] Patch moby-runc to address CVE-2024-21626 - branch …
CBL-Mariner-Bot Feb 1, 2024
f5bae07
[AUTO-CHERRYPICK] fix cve-2022-21698 in moby-buildx - branch main (#7…
CBL-Mariner-Bot Feb 1, 2024
e9fea0b
[AUTO-CHERRYPICK] fix cve-2022-21698 in local-path-provisioner - bran…
CBL-Mariner-Bot Feb 1, 2024
fc0b1c0
Prepare February 2024 Release (#7599)
CBL-Mariner-Bot Feb 2, 2024
79fe0a7
[AUTO-CHERRYPICK] Fix coredns CVE-2023-44487 by patching vendor tar -…
CBL-Mariner-Bot Feb 2, 2024
fdf858b
Merge branch 'main' into joslobo/update-for-feb-release
jslobodzian Feb 2, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
/SPECS/moby-runc/* @microsoft/cbl-mariner-container-runtime
/SPECS/kata-containers/* @microsoft/cbl-mariner-kata-containers
/SPECS/kata-containers-cc/* @microsoft/cbl-mariner-kata-containers
/SPECS/virtiofsd/* @microsoft/cbl-mariner-kata-containers

/SPECS/cloud-hypervisor/* @microsoft/cbl-mariner-virtualization
/SPECS/hvloader/* @microsoft/cbl-mariner-kata-containers
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/check-clean-stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ on:
pull_request:
branches: [main, dev, 1.0*, 2.0*, fasttrack/*]

permissions: read-all

jobs:
spec-clean-stage-check:
name: Spec %clean stage check
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/check-entangled-specs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ on:
pull_request:
branches: [main, dev, 1.0*, 2.0*, fasttrack/*]

permissions: read-all

jobs:
check:
name: Spec Entanglement Mismatch Check
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/check-kernel-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ on:
paths:
- 'SPECS/kernel*/config*'

permissions: read-all

jobs:
check:
name: Kernel configs check
Expand All @@ -25,7 +27,7 @@ jobs:
# Checkout the branch of our repo that triggered this action
- name: Workflow trigger checkout
uses: actions/checkout@v4

- name: Get base commit for PRs
if: ${{ github.event_name == 'pull_request' }}
run: |
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/check-license-map.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ on:
pull_request:
branches: [main, dev, 1.0*, 2.0*, fasttrack/*]

permissions: read-all

jobs:
check:
name: Spec License Map Check
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/check-livepatches.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ on:
pull_request:
branches: [2.0, fasttrack/*]

permissions: read-all

jobs:
spec-check:
name: Livepatches check
Expand Down Expand Up @@ -51,7 +53,7 @@ jobs:
#################### CHECK FAILURE ####################
Livepatch specs need to be updated!
Run the following command to perform the update:

toolkit/scripts/livepatching/update_livepatches.sh

#################### CHECK FAILURE ####################
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/check-manifests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ on:
pull_request:
branches: [main, dev, 1.0*, 2.0*, fasttrack/*]

permissions: read-all

jobs:
build:
name: Check Manifests
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/check-package-cgmanifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ on:
pull_request:
branches: [main, dev, 1.0*, 2.0*, fasttrack/*]

permissions: read-all

jobs:

build:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/check-spec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ on:
pull_request:
branches: [main, dev, 1.0*, 2.0*, fasttrack/*]

permissions: read-all

jobs:
spec-check:
name: Spec files check
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/check-static-glibc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ on:
pull_request:
branches: [main, dev, 1.0*, 2.0*, fasttrack/*]

permissions: read-all

jobs:
spec-check:
name: Static glibc version check
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/go-test-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ on:
pull_request:
branches: [main, dev, 1.0*, 2.0*, fasttrack/*]

permissions: read-all

env:
EXPECTED_GO_VERSION: "1.20"

Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/lint-specs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ on:
- '**.spec'
branches: [main, dev, 1.0*, 2.0*, fasttrack/*]

permissions: read-all

jobs:
spec-lint:
name: Spec Linting
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/quickstart_1.0.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ on:
schedule:
- cron: "0 15 * * *"

permissions: read-all

jobs:
get_input-srpms:
runs-on: ubuntu-latest
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/quickstart_2.0.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ on:
schedule:
- cron: "0 15 * * *"

permissions: read-all

jobs:
get_input-srpms:
runs-on: ubuntu-latest
Expand Down
19 changes: 19 additions & 0 deletions .pipelines/containerSourceData/Dockerfile-Initial
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
ARG RPMS_TO_INSTALL \
\
RUN --mount=type=bind,source=./Stage/,target=/dockerStage/ \\\
RPMS_PATH="/dockerStage/RPMS"; \\\
LOCAL_REPO_PATH="/localrepo"; \\\
mkdir -p $LOCAL_REPO_PATH; \\\
tdnf install -y createrepo; \\\
cp -r ${RPMS_PATH} ${LOCAL_REPO_PATH}; \\\
cat /dockerStage/marinerLocalRepo.repo >> /etc/yum.repos.d/local.repo; \\\
createrepo --database ${LOCAL_REPO_PATH} --workers 10; tdnf makecache \&\& tdnf makecache; \\\
tdnf autoremove -y createrepo; \\\
for rpm in "${RPMS_TO_INSTALL[@]}"; do \\\
echo "RPM: $rpm"; \\\
tdnf install -y $rpm; \\\
done; \\\
tdnf clean all; \\\
rm -f /etc/yum.repos.d/local.repo; \\\
rm -rf /var/cache/tdnf; \\\
rm -rf ${LOCAL_REPO_PATH};
14 changes: 14 additions & 0 deletions .pipelines/containerSourceData/azurecli/Dockerfile-AzureCLI
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

ARG BASE_IMAGE

FROM $BASE_IMAGE

@INCLUDE_MAIN_RUN_INSTRUCTION@

# basic smoke test
RUN az version

# set default command for the container
CMD ["bash"]
1 change: 1 addition & 0 deletions .pipelines/containerSourceData/azurecli/azurecli.pkg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
azure-cli
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

ARG BASE_IMAGE

FROM $BASE_IMAGE AS BASE

ARG MARINER_VERSION=2.0
ARG USERNAME=nonroot
ARG USER_UID=65532
ARG USER_GID=$USER_UID
ARG SET_USER=$USERNAME

RUN mkdir -p /staging/etc \
&& tdnf install -y --releasever=$MARINER_VERSION shadow-utils \
&& groupadd --gid $USER_GID $USERNAME \
&& useradd --gid $USER_GID -g $USERNAME $USERNAME -u $USER_UID \
&& tdnf clean all \
# Copy user/group info to staging
&& cp /etc/passwd /staging/etc/passwd \
&& cp /etc/group /staging/etc/group

FROM $BASE_IMAGE AS FINAL

ARG USER_UID=65532
ARG SET_USER=$USER_UID

COPY --from=BASE /staging/ /

USER $SET_USER

CMD [ "bash" ]
12 changes: 12 additions & 0 deletions .pipelines/containerSourceData/base/Dockerfile-Base-Template
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

ARG BASE_IMAGE

FROM $BASE_IMAGE

ARG EULA=@EULA_FILE@

COPY $EULA .

CMD [ "bash" ]
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

ARG BASE_IMAGE

FROM $BASE_IMAGE AS BASE

ARG MARINER_VERSION=2.0

# Install busybox, glibc, and their dependencies into a staging location.
# Staging directory is copied into the final scratch image.
RUN mkdir /staging \
&& tdnf install -y --releasever=$MARINER_VERSION --installroot /staging \
busybox glibc \
&& tdnf clean all \
&& pushd /staging \
&& rm -rf boot media mnt opt run \
&& rm -rf usr/lib/sysimage \
&& rm -rf var/cache \
&& rm -rf var/lib/rpm; \
ln -vL /staging/usr/sbin/busybox /staging/bin/; \
chroot /staging /bin/busybox --install -s /bin

# Smoke Tests
# Test and make sure it works
RUN chroot /staging /usr/bin/env sh -xec 'true'

# Ensure correct timezone (UTC)
RUN [ "$(chroot /staging date +%Z)" = 'UTC' ]

# Test and make sure DNS works too
RUN cp -L /etc/resolv.conf /staging/etc/; \
chroot /staging /bin/sh -xec 'nslookup microsoft.com'; \
rm /staging/etc/resolv.conf

FROM scratch

# Copy dependencies into the scratch image.
COPY --from=BASE /staging/ .

CMD [ "sh" ]
23 changes: 23 additions & 0 deletions .pipelines/containerSourceData/cdi/Dockerfile-cdi-apiserver
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

ARG BASE_IMAGE

FROM $BASE_IMAGE

ARG BINARY_NAME
ARG USER

@INCLUDE_MAIN_RUN_INSTRUCTION@

# workaround till binaries rename is merged
RUN [ -f /usr/bin/virt-cdi-apiserver ] && mv -f /usr/bin/virt-cdi-apiserver /usr/bin/cdi-apiserver

#simple smoke test
RUN ls /usr/bin/cdi-apiserver

# If the user specified for this image is not root (0), create a new user in the root (0) group
RUN if [[ $USER != 0 ]]; then adduser -u $USER --gid 0 --create-home -s /bin/bash $BINARY_NAME ; fi
USER $USER

ENTRYPOINT [ "/usr/bin/cdi-apiserver", "-alsologtostderr" ]
20 changes: 20 additions & 0 deletions .pipelines/containerSourceData/cdi/Dockerfile-cdi-cloner
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

ARG BASE_IMAGE

FROM $BASE_IMAGE

ARG BINARY_NAME
ARG USER

@INCLUDE_MAIN_RUN_INSTRUCTION@

#simple smoke test
RUN ls /usr/bin/cdi-cloner

# If the user specified for this image is not root (0), create a new user in the root (0) group
RUN if [[ $USER != 0 ]]; then adduser -u $USER --gid 0 --create-home -s /bin/bash $BINARY_NAME ; fi
USER $USER

ENTRYPOINT [ "/usr/bin/cloner_startup.sh" ]
23 changes: 23 additions & 0 deletions .pipelines/containerSourceData/cdi/Dockerfile-cdi-controller
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

ARG BASE_IMAGE

FROM $BASE_IMAGE

ARG BINARY_NAME
ARG USER

@INCLUDE_MAIN_RUN_INSTRUCTION@

# workaround till binaries rename is merged
RUN [ -f /usr/bin/virt-cdi-controller ] && mv -f /usr/bin/virt-cdi-controller /usr/bin/cdi-controller

#simple smoke test
RUN ls /usr/bin/cdi-controller

# If the user specified for this image is not root (0), create a new user in the root (0) group
RUN if [[ $USER != 0 ]]; then adduser -u $USER --gid 0 --create-home -s /bin/bash $BINARY_NAME ; fi
USER $USER

ENTRYPOINT [ "/usr/bin/cdi-controller", "-alsologtostderr" ]
29 changes: 29 additions & 0 deletions .pipelines/containerSourceData/cdi/Dockerfile-cdi-importer
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

ARG BASE_IMAGE

FROM $BASE_IMAGE

ARG BINARY_NAME
ARG USER

@INCLUDE_MAIN_RUN_INSTRUCTION@

# Workaround till proper binaries are built as part of the cdi rpm & renames are removed
# https://github.com/microsoft/CBL-Mariner/pull/5708/files#
COPY cdi-containerimage-server /usr/bin/cdi-containerimage-server
COPY cdi-image-size-detection /usr/bin/cdi-image-size-detection
COPY cdi-source-update-poller /usr/bin/cdi-source-update-poller

# workaround till binaries rename is merged
RUN [ -f /usr/bin/virt-cdi-importer ] && mv -f /usr/bin/virt-cdi-importer /usr/bin/cdi-importer

#simple smoke test
RUN ls /usr/bin/cdi-importer

# If the user specified for this image is not root (0), create a new user in the root (0) group
RUN if [[ $USER != 0 ]]; then adduser -u $USER --gid 0 --create-home -s /bin/bash $BINARY_NAME ; fi
USER $USER

ENTRYPOINT [ "/usr/bin/cdi-importer", "-alsologtostderr" ]
27 changes: 27 additions & 0 deletions .pipelines/containerSourceData/cdi/Dockerfile-cdi-operator
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

ARG BASE_IMAGE

FROM $BASE_IMAGE

ARG BINARY_NAME
ARG USER

@INCLUDE_MAIN_RUN_INSTRUCTION@

# Workaround till proper binaries are built as part of the cdi rpm & renames are removed
# https://github.com/microsoft/CBL-Mariner/pull/5708/files#
COPY csv-generator /usr/bin/csv-generator

# workaround till binaries rename is merged
RUN [ -f /usr/bin/virt-cdi-operator ] && mv -f /usr/bin/virt-cdi-operator /usr/bin/cdi-operator

#simple smoke test
RUN ls /usr/bin/cdi-operator

# If the user specified for this image is not root (0), create a new user in the root (0) group
RUN if [[ $USER != 0 ]]; then adduser -u $USER --gid 0 --create-home -s /bin/bash $BINARY_NAME ; fi
USER $USER

ENTRYPOINT [ "/usr/bin/cdi-operator" ]
Loading