From ca9f8c6caf042e4084c7250b05f36b67d6113efa Mon Sep 17 00:00:00 2001 From: BG Date: Thu, 3 Dec 2026 13:40:58 +0100 Subject: [PATCH] Remove nginx maxim.key GPG key (404) and add sai.key nginx.org no longer serves https://nginx.org/keys/maxim.key, which makes dependency builds fail while downloading the signing keys. The current list on https://nginx.org/en/pgp_keys.html is arut, pluknet, sai, sb, thresh and nginx_signing. --- internal/gpg/gpg_test.go | 4 ++-- internal/recipe/nginx.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/gpg/gpg_test.go b/internal/gpg/gpg_test.go index abfaa943..de723e88 100644 --- a/internal/gpg/gpg_test.go +++ b/internal/gpg/gpg_test.go @@ -14,7 +14,7 @@ func TestVerifySignature(t *testing.T) { f := runner.NewFakeRunner() keyURLs := []string{ - "http://nginx.org/keys/maxim.key", + "https://nginx.org/keys/pluknet.key", "http://nginx.org/keys/arut.key", } @@ -33,7 +33,7 @@ func TestVerifySignature(t *testing.T) { // Key 0: download + import assert.Equal(t, "wget", f.Calls[0].Name) - assert.Contains(t, f.Calls[0].Args[len(f.Calls[0].Args)-1], "maxim.key") + assert.Contains(t, f.Calls[0].Args[len(f.Calls[0].Args)-1], "pluknet.key") assert.Equal(t, "gpg", f.Calls[1].Name) assert.Equal(t, "--import", f.Calls[1].Args[0]) diff --git a/internal/recipe/nginx.go b/internal/recipe/nginx.go index 2f4b59db..98f3990e 100644 --- a/internal/recipe/nginx.go +++ b/internal/recipe/nginx.go @@ -15,13 +15,13 @@ import ( "github.com/cloudfoundry/binary-builder/internal/stack" ) -// nginxGPGKeys are the 6 nginx signing keys used for tarball verification. +// nginxGPGKeys are the nginx signing keys (https://nginx.org/en/pgp_keys.html) used for tarball verification. var nginxGPGKeys = []string{ - "http://nginx.org/keys/maxim.key", "http://nginx.org/keys/arut.key", "https://nginx.org/keys/pluknet.key", "http://nginx.org/keys/sb.key", "http://nginx.org/keys/thresh.key", + "https://nginx.org/keys/sai.key", "https://nginx.org/keys/nginx_signing.key", }