Skip to content

CXX-3002 fix keyring and trust for verifying GPG signatures #1390

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

Merged
merged 1 commit into from
Apr 22, 2025
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
4 changes: 3 additions & 1 deletion etc/garasign_dist_file.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,7 @@ plugin_commands=(
GNUPGHOME="$(mktemp -d)"
export GNUPGHOME
curl -sS https://pgp.mongodb.com/cpp-driver.pub | gpg -q --no-default-keyring --import -
gpgv "${dist_file_signed:?}" "${dist_file:?}"
gpg -q --import-ownertrust <<<"DC7F679B8A34DD606C1E54CAC4FC994D21532195:6:" # Set trust to "ultimate".
gpg -q --update-trustdb
gpg -q --verify "${dist_file_signed:?}" "${dist_file:?}"
)
7 changes: 5 additions & 2 deletions etc/garasign_release_tag.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,9 @@ git_tag_command=(
"\"${release_tag:?}\""
)
plugin_commands=""
plugin_commands+="gpg --list-key DC7F679B8A34DD606C1E54CAC4FC994D21532195"
plugin_commands+="&& ${git_tag_command[*]:?}"
plugin_commands+="gpg -q --update-trustdb"
plugin_commands+=" && gpg --list-key DC7F679B8A34DD606C1E54CAC4FC994D21532195"
plugin_commands+=" && ${git_tag_command[*]:?}"
"${launcher:?}" run \
--env-file="${garasign_creds:?}" \
-e "PLUGIN_COMMANDS=${plugin_commands:?}" \
Expand All @@ -63,5 +64,7 @@ plugin_commands+="&& ${git_tag_command[*]:?}"
GNUPGHOME="$(mktemp -d)"
export GNUPGHOME
curl -sS https://pgp.mongodb.com/cpp-driver.pub | gpg -q --no-default-keyring --import -
gpg -q --import-ownertrust <<<"DC7F679B8A34DD606C1E54CAC4FC994D21532195:6:" # Set trust to "ultimate".
gpg -q --update-trustdb
git verify-tag "${release_tag:?}"
)