You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tooling.apache.org by sb...@apache.org on 2026/06/18 19:38:21 UTC

(tooling-trusted-releases) branch sbp updated: Document which email address to use on a signing key

This is an automated email from the ASF dual-hosted git repository.

sbp pushed a commit to branch sbp
in repository https://gitbox.apache.org/repos/asf/tooling-trusted-releases.git


The following commit(s) were added to refs/heads/sbp by this push:
     new 6234dde6 Document which email address to use on a signing key
6234dde6 is described below

commit 6234dde633ee4e920b4af85c4e47ceb7d98dc295
Author: Sean B. Palmer <se...@miscoranda.com>
AuthorDate: Thu Jun 18 20:37:46 2026 +0100

    Document which email address to use on a signing key
---
 atr/docs/signing-artifacts.md |  8 ++++++--
 atr/get/keys.py               | 18 ++++++++++++++++++
 atr/static/sh/gpgsign.sh      |  4 ++--
 3 files changed, 26 insertions(+), 4 deletions(-)

diff --git a/atr/docs/signing-artifacts.md b/atr/docs/signing-artifacts.md
index 52a9d543..27ab4d1d 100644
--- a/atr/docs/signing-artifacts.md
+++ b/atr/docs/signing-artifacts.md
@@ -27,12 +27,14 @@ Install GnuPG 2.1 or higher in your package manager. The `gpg` and `gpgconf` com
 
 [Download the `gpgsign.sh` shell script](https://release-test.apache.org/static/sh/gpgsign.sh) that we make available as part of ATR. The rest of this guide will assume that it is available on your path as `gpgsign`, but you can call it using `sh gpgsign.sh` etc.
 
-### Step 2: Generate an OpenGPG keypair
+### Step 2: Generate an OpenPGP keypair
 
 Choose where to write your OpenPGP keys. This can be anywhere, but you will need to keep your private key secure. This guide will put them in the home directory.
 
+The email address in your key matters. ATR links a key to an ASF account through the email address in the key, so use your `@apache.org` address, or another address that you have linked to your account at [id.apache.org](https://id.apache.org/). If ATR cannot map the address to an ASF UID, the individual key upload page will not accept the key. The example below uses `example@apache.org`; substitute your own name and address.
+
 ```shell
-gpgsign issue "Alice Bao" alice@example.org ~/.public.asc ~/.private.asc
+gpgsign issue "Alice Example" example@apache.org ~/.public.asc ~/.private.asc
 ```
 
 ### Step 3: Sign your files with your private key
@@ -52,6 +54,8 @@ This will create `.tar.gz.asc` files, which is standard. Supply an extra argumen
 
 Go to [add your OpenPGP key](https://release-test.apache.org/keys/add) on ATR and upload your _public_ key. Do not upload your private key. You must not reveal your private key to anyone, or store it on untrusted equipment.
 
+The email address in your key is publically associated with releases you sign through your public key and your committee's public `KEYS` file. Treat this as a lasting public record. You can remove the key from ATR later, but that does not retract the signatures on releases that you have already published.
+
 ## Optional steps
 
 That's all that you need to do, but you can also take the following step.
diff --git a/atr/get/keys.py b/atr/get/keys.py
index 7c3a5cb0..17fdbc47 100644
--- a/atr/get/keys.py
+++ b/atr/get/keys.py
@@ -60,6 +60,24 @@ async def add(_session: web.Committer, _keys_add: Literal["keys/add"]) -> str:
             "releases. Associate a key with a committee when you sign releases for it.",
         ],
     ]
+    page.div(".alert.alert-info")[
+        htm.p(".fw-semibold.mb-2")["Which email address should your key use?"],
+        htm.p[
+            "Your key's user ID must contain an email address that ATR can link to an ASF account. ",
+            "The simplest choice is your own ",
+            htm.code["@apache.org"],
+            " address. Otherwise, use an address that you have linked to your account at ",
+            htm.a(href="https://id.apache.org/")["id.apache.org"],
+            ". Always use your own address, not someone else's.",
+        ],
+        htm.p(".mb-0")[
+            "If ATR cannot map the address to an ASF UID, this form will not accept the key. ",
+            "Fix the key's user ID or link the address at ",
+            htm.a(href="https://id.apache.org/")["id.apache.org"],
+            " before uploading it. The address is publically associated with releases that you sign through your "
+            "public key and committee KEYS files, so choose carefully.",
+        ],
+    ]
     await form.render_block(
         page,
         model_cls=shared.keys.AddOpenPGPKeyForm,
diff --git a/atr/static/sh/gpgsign.sh b/atr/static/sh/gpgsign.sh
index 82846722..755e00dd 100755
--- a/atr/static/sh/gpgsign.sh
+++ b/atr/static/sh/gpgsign.sh
@@ -134,7 +134,7 @@ case "${1:-}" in
     if [ $# -ne 5 ]
     then
       echo "Usage: $0 issue NAME EMAIL PUBLIC-KEY-FILE PRIVATE-KEY-FILE" >&2
-      echo "Example: $0 issue 'Alice Bao' alice.bao@example.org pub.asc prv.asc" >&2
+      echo "Example: $0 issue 'Alice Example' example@apache.org pub.asc prv.asc" >&2
       exit 2
     fi
     _issue "$2" "$3" "$4" "$5"
@@ -159,7 +159,7 @@ case "${1:-}" in
     ;;
   *)
     echo "Usage: $0 ( issue | sign | verify ) ARGS..." >&2
-    echo "Example: $0 issue 'Alice Bao' alice.bao@example.org pub.asc prv.asc" >&2
+    echo "Example: $0 issue 'Alice Example' example@apache.org pub.asc prv.asc" >&2
     echo "Example: $0 sign prv.asc file.txt" >&2
     echo "Example: $0 verify pub.asc file.txt" >&2
     exit 2


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@tooling.apache.org
For additional commands, e-mail: commits-help@tooling.apache.org