Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2709: Fix an expired Nginx signing key #2710

Merged
merged 3 commits into from
Jun 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@
*.gif binary
*.jpg binary
*.jpeg binary
*.gpg binary
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ permalink: /docs/en-US/changelog/

* The host file inside the VM was only adding sites with `127.0.0.1` addresses, now it adds the IPVv6 `::1` too ( #2689 )
* Removed old MacOS PR workflows, no runners available ( #2698 )
* Replace an outdated Nginx signing key ( #2710 )

## 3.12 ( 2023 August 3rd )

Expand Down
Binary file not shown.
28 changes: 0 additions & 28 deletions provision/core/nginx/apt-keys/nginx_signing.key

This file was deleted.

11 changes: 8 additions & 3 deletions provision/core/nginx/provision.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,20 @@ function nginx_register_apt_sources() {
fi
}
vvv_add_hook register_apt_sources nginx_register_apt_sources

function nginx_register_apt_keys() {
# Before running `apt-get update`, we should add the public keys for
# the packages that we are installing from non standard sources via
# our appended apt source.list
if vvv_apt_keys_has '573B FD6B 3D8F BC64 1079 A6AB ABF5 BD82 7BD9 BF62'; then
# Retrieve the Nginx signing key from nginx.org
vvv_info " * Replacing expired Nginx signing key..."
apt-key add /srv/provision/core/nginx/apt-keys/nginx-archive-keyring.gpg
fi

if ! vvv_apt_keys_has 'nginx'; then
# Retrieve the Nginx signing key from nginx.org
vvv_info " * Applying Nginx signing key..."
apt-key add /srv/provision/core/nginx/apt-keys/nginx_signing.key
vvv_info " * Adding Nginx signing key..."
apt-key add /srv/provision/core/nginx/apt-keys/nginx-archive-keyring.gpg
fi
}
vvv_add_hook register_apt_keys nginx_register_apt_keys
Expand Down
Loading