Skip to content

Commit 4500649

Browse files
authored
Upgraded etcd to version 3.5.12. (CP: #8477) (#8530)
1 parent 9c0adcb commit 4500649

3 files changed

Lines changed: 12 additions & 40 deletions

File tree

SPECS/etcd/etcd.signatures.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"Signatures": {
33
"etcd.service": "4550a4967ba35670051cbfd9b4edf1fc57c0f1d7a07e51f88351ac44c76d8066",
4-
"etcd-3.5.9-vendor.tar.gz": "826bf8303a30cdd8b55d8c01e594915076cf40002731a5646c03473d5be2a63c",
5-
"etcd-3.5.9.tar.gz": "ab24d74b66ba1ed7d2bc391839d961e7215f0f3d674c3a9592dad6dc67a7b223"
4+
"etcd-3.5.12-vendor.tar.gz": "2427523101fa0c5ec75f8c65224cddac89de86ae2f5d6b07f14ae7ea1b195064",
5+
"etcd-3.5.12.tar.gz": "90b56a7f2f43a993d420954322e607a6e6a0ca5549f1f7c7dc3567d2f56678d9"
66
}
77
}

SPECS/etcd/etcd.spec

Lines changed: 8 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,19 @@
1-
%global _default_patch_fuzz 2
2-
31
Summary: A highly-available key value store for shared configuration
42
Name: etcd
5-
Version: 3.5.9
6-
Release: 2%{?dist}
3+
Version: 3.5.12
4+
Release: 1%{?dist}
75
License: ASL 2.0
86
Vendor: Microsoft Corporation
97
Distribution: Mariner
108
Group: System Environment/Security
119
URL: https://github.com/etcd-io/etcd/
1210
Source0: https://github.com/etcd-io/etcd/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
1311
Source1: etcd.service
14-
# Below is a manually created tarball, no download link.
1512
# We're using vendored Go modules from this tarball, since network is disabled during build time.
16-
#
17-
# How to re-build this file:
18-
# 1. either download etcd source tarball or git clone etcd repo from github and checkout relevant tag
19-
# 2. execute 'go mod vendor' in 'server', 'etcdctl' and 'etcdutl' folders
20-
# and create tarball containting 'vendor' folder for each
21-
# (naming rule for tarball is 'vendor-[component].tar.gz', e.g.: 'vendor-server.tar.gz')
22-
# 3. create 'vendor' tarballs for dump tools
23-
# a. cd 'tools/etcd-dump-db' folder, create 'go.mod' file ('go mod init go.etcd.io/etcd/tools/etcd-dump-db/v3')
24-
# b. populate 'go.mod' file ('go mod tidy')
25-
# c. add replace rules in 'go.mod' making sure that each etcd dependency is taken locally,
26-
# e.g. add the following (and remove them from require section):
27-
# replace (
28-
# go.etcd.io/etcd/api/v3 v3.5.1 => ../../api
29-
# go.etcd.io/etcd/server/v3 v3.5.1 => ../../server
30-
# )
31-
# d. create vendor folder ('go mod vendor')
32-
# e. create tarball containing 'vendor' folder and 'go.mod' and 'go.sum' files
33-
# (same naming rules than described above)
34-
# f. repeat above operations for 'etcd-dump-logs' folder
35-
# 4. create 'etcd-%{version}-vendor.tar.gz' tarball containing all tarballs created above
36-
#
37-
# NOTES:
38-
# - You require GNU tar version 1.28+.
39-
# - The additional options enable generation of a tarball with the same hash every time regardless of the environment.
40-
# See: https://reproducible-builds.org/docs/archives/
41-
# - You can use the following tar command to create the tarballs
42-
# tar --sort=name --mtime="2021-11-10 00:00Z" \
43-
# --owner=0 --group=0 --numeric-owner \
44-
# --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=atime,delete=ctime \
45-
# -cJf [tarball name] [folder to tar]
13+
# In order to regenerate this tarball, download the source tarball and run:
14+
# generate_source_tarball.sh --srcTarball <source_tarball> --pkgVersion %%{version} --outFolder .
4615
Source2: %{name}-%{version}-vendor.tar.gz
47-
BuildRequires: golang >= 1.16
16+
BuildRequires: golang >= 1.20.13
4817

4918
%description
5019
A highly-available key value store for shared configuration and service discovery.
@@ -145,6 +114,9 @@ install -vdm755 %{buildroot}%{_sharedstatedir}/etcd
145114
/%{_docdir}/%{name}-%{version}-tools/*
146115

147116
%changelog
117+
* Wed Mar 20 2024 Pawel Winogrodzki <pawelwi@microsoft.com> - 3.5.12-1
118+
- Upgrade to version 3.5.12 to patch CVE-2024-44487.
119+
148120
* Fri Feb 02 2024 CBL-Mariner Servicing Account <cblmargh@microsoft.com> - 3.5.9-2
149121
- Bump release to rebuild with go 1.21.6
150122

cgmanifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3338,8 +3338,8 @@
33383338
"type": "other",
33393339
"other": {
33403340
"name": "etcd",
3341-
"version": "3.5.9",
3342-
"downloadUrl": "https://github.com/etcd-io/etcd/archive/v3.5.9.tar.gz"
3341+
"version": "3.5.12",
3342+
"downloadUrl": "https://github.com/etcd-io/etcd/archive/v3.5.12.tar.gz"
33433343
}
33443344
}
33453345
},

0 commit comments

Comments
 (0)