Browse Source

Fetch metadata by hash for DEB repos. (#18536)

This enables atomic updates to the repository metadata on the server
side, which should mitigate some of the issues we’ve seen with bad
hashes for packages.
Austin S. Hemmelgarn 5 months ago
parent
commit
2246fb180b

+ 1 - 1
packaging/repoconfig/CMakeLists.txt

@@ -10,7 +10,7 @@ list(APPEND DEB_DISTROS debian ubuntu)
 set(DEB_GPG_KEY_SOURCE "https://repo.netdata.cloud/netdatabot.gpg.key")
 
 set(PACKAGE_VERSION 3)
-set(PACKAGE_RELEASE 4)
+set(PACKAGE_RELEASE 5)
 
 set(CPACK_THREADS 0)
 set(CPACK_STRIP_FILES NO)

+ 6 - 0
packaging/repoconfig/deb.changelog

@@ -1,3 +1,9 @@
+@PKG_NAME@ (3-5) unstable; urgency=medium
+
+  * Swithc DEB packages to fetch repo metadata by hash.
+
+ -- Austin Hemmelgarn <austin@netdata.cloud>  Thu, 12 Sep 2024 07:27:00 -0400
+
 @PKG_NAME@ (3-4) unstable; urgency=medium
 
   * Convert sources to DEB822 format

+ 2 - 2
packaging/repoconfig/netdata.sources.in

@@ -3,7 +3,7 @@ Types: deb
 URIs: http://repo.netdata.cloud/repos/@VARIANT@/@DIST_NAME@/
 Suites: @SUITE@/
 Signed-By: /usr/share/keyrings/netdata-archive-keyring.gpg
-By-Hash: No
+By-Hash: Yes
 Enabled: Yes
 
 X-Repolib-Name: Netdata repository configuration repository
@@ -11,5 +11,5 @@ Types: deb
 URIs: http://repo.netdata.cloud/repos/repoconfig/@DIST_NAME@/
 Suites: @SUITE@/
 Signed-By: /usr/share/keyrings/netdata-archive-keyring.gpg
-By-Hash: No
+By-Hash: Yes
 Enabled: Yes

+ 3 - 1
packaging/repoconfig/rpm.changelog

@@ -1,4 +1,6 @@
-* Mon Aug 19 2024 Austin Hemmelgarn <austin@netdata.cloud
+* Thu Sep 17 2024 Austin Hemmelgarn <austin@netdata.cloud> 3-5
+- Fix changelog formatting.
+* Mon Aug 19 2024 Austin Hemmelgarn <austin@netdata.cloud> 3-4
 - Version bump to stay in sync with DEB packages.
 * Fri Aug 9 2024 Austin Hemmelgarn <austin@netdata.cloud> 3-3
 - Use system certificate config for Yum/DNF repos.