11%global debug_package %{nil }
22Summary: Node Managed Identity
33Name: nmi
4- Version: 1.8.7
5- Release: 15 %{?dist }
4+ Version: 1.8.11
5+ Release: 1 %{?dist }
66License: MIT
77Vendor: Microsoft Corporation
88Distribution: Mariner
@@ -12,7 +12,7 @@ URL: https://github.com/Azure/aad-pod-identity
1212Source0: %{name }-%{version }.tar.gz
1313# Below is a manually created tarball, no download link.
1414# We're using pre-populated Go modules from this tarball, since network is disabled during build time.
15- # How to re-build this file:
15+ # How to re-build this file (note the version number will be -v2, etc) :
1616# 1. wget https://github.com/Azure/aad-pod-identity/archive/refs/tags/v%%{version}.tar.gz -O aad-pod-identity-%%{version}.tar.gz
1717# 2. tar -xf aad-pod-identity-%%{version}.tar.gz
1818# 3. cd aad-pod-identity-%%{version}
@@ -23,7 +23,7 @@ Source0: %{name}-%{version}.tar.gz
2323# --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=atime,delete=ctime \
2424# -cf %%{name}-%%{version}-vendor.tar.gz vendor
2525#
26- Source1: %{name }-%{version }-vendor.tar.gz
26+ Source1: %{name }-%{version }-vendor-v2 .tar.gz
2727Patch0: modify-go-build-option.patch
2828BuildRequires: golang >= 1.15
2929
@@ -34,14 +34,12 @@ NMI is the resource that is used when your pods look to use their identity.
3434%autosetup -c -N -n %{name }-%{version }
3535pushd aad-pod-identity-%{version }
3636%patch0 -p1
37+ # create vendor folder from the vendor tarball and set vendor mode
38+ tar -xf %{SOURCE1 } --no-same-owner
3739popd
3840
3941%build
4042pushd aad-pod-identity-%{version }
41-
42- # create vendor folder from the vendor tarball and set vendor mode
43- tar -xf %{SOURCE1 } --no-same-owner
44-
4543make build-nmi
4644popd
4745
6361%{_bindir }/%{name }
6462
6563%changelog
64+ * Fri Feb 06 2024 Tobias Brick <tobiasb@microsoft.com> - 1.8.11-1
65+ - Upgrade to version 1.8.11 to CVE-2022-21698
66+
6667* Mon Oct 16 2023 CBL-Mariner Servicing Account <cblmargh@microsoft.com> - 1.8.7-15
6768- Bump release to rebuild with go 1.20.9
6869
111112- License Verified
112113
113114* Thu Jun 24 2021 Henry Li <lihl@microsoft.com> - 1.7.0-1
114- - Original version for CBL-Mariner
115+ - Original version for CBL-Mariner
0 commit comments