docs: document adding GPG keys to both dev and release KEYS files (#441) ## Which issue does this PR close? N/A ## Rationale for this change The release docs say a release manager's GPG key only needs to be in the release `KEYS` file. The core DataFusion release docs require it in both the dev and release `KEYS` files. Release candidates are uploaded to the dev area, so voters check the signature against the dev file. ## What changes are included in this PR? Docs only, in `dev/release/README.md`: - The prerequisites now list both the dev and release `KEYS` files. - A new section shows how to append a key with `svn`, and notes that committers can edit the dev file while only PMC members can commit to the release file. ## Are these changes tested? No code changes. I checked the wording against the core DataFusion `dev/release/README.md`. ## Are there any user-facing changes? No.
diff --git a/dev/release/README.md b/dev/release/README.md index 969b6f0..298aac2 100644 --- a/dev/release/README.md +++ b/dev/release/README.md
@@ -97,16 +97,35 @@ You need: -- A GPG key for signing, with the public key added to the - [DataFusion KEYS file](https://dist.apache.org/repos/dist/release/datafusion/KEYS). If it is not - there yet, follow the instructions at the top of that file and commit it with svn (PMC members can - commit to the release area, so ask one if you cannot). +- A GPG key for signing, with the public key added to both DataFusion `KEYS` files: + - [dev KEYS](https://dist.apache.org/repos/dist/dev/datafusion/KEYS) + - [release KEYS](https://dist.apache.org/repos/dist/release/datafusion/KEYS) + + See [Add your GPG key to the KEYS files](#add-your-gpg-key-to-the-keys-files) below. - `svn`, with your Apache credentials. - Java, for the Apache RAT license check. - Python 3 with `PyGitHub` (`pip3 install PyGitHub`), for the changelog. - A [GitHub personal access token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token) for the changelog script. It only needs read access to public repositories. +### Add your GPG key to the KEYS files + +See https://infra.apache.org/release-signing.html#generate for generating a key. Committers can add +their key to the dev `KEYS` file with their ASF account. Only PMC members can commit to the release +`KEYS` file, so ask one if you cannot. + +Follow the instructions at the top of each `KEYS` file. For example, for the dev file: + +```shell +svn co --depth files https://dist.apache.org/repos/dist/dev/datafusion dev-datafusion +cd dev-datafusion +(echo; gpg --list-sigs "John Doe" && gpg --armor --export "John Doe") >> KEYS +svn diff KEYS +svn commit KEYS -m "Add key for John Doe" +``` + +Repeat with `https://dist.apache.org/repos/dist/release/datafusion` for the release file. + ## Prepare the Release PR Start from the latest `main` in the `apache` remote: