Signing keys
What these keys do
Nerudo approval key — The Nerudo command-line program uses this key for approval. Repository policy controls its approval rights.
GPG key — GPG is a program for digital signatures. Use Signing keys settings to add proof that you control a GPG key to your account.
Git commit signing — Git can add your digital signature to a commit on your computer. Account settings do not start that operation.
The GPG check does not give sign-in rights or repository approval rights. Nerudo does not check Git commit signatures at this time.
Use the Nerudo approval key
This key uses raw Ed25519 data. The private key stays in the local Nerudo key file.
The key file is ~/.nerudo/key. The CLI does not read the old file ~/.landseq/key. If your key is in the old file, copy it to ~/.nerudo/key.
A seal is a Nerudo approval signature for one commit. A trunk ID identifies the repository for the CLI.
A configured Nerudo CLI connection is necessary. Developer access credentials do not authorize approvals.
-
Enter this command to show the public key:
bashnerudo pubkey -
Open Signing keys settings.
-
Compare the output with the public key under Nerudo approval key.
-
If the keys differ, stop.
-
Ask a repository maintainer to make sure that
nerudo.tomlcontains your public key under[[approvers]]. -
Replace
TRUNK_IDandCHANGE_IDwith the repository and change identifiers in the command below. -
Enter this command to examine a change:
bashnerudo seal --trunk TRUNK_ID --change CHANGE_ID -
Read the commit and approval reasons that the CLI shows.
-
At the confirmation prompt, enter
yonly if you accept that commit.
The CLI sends an approval signature for that commit. Other approvals can still be necessary.
GPG enrollment does not enable approvals. Do not replace your Nerudo private key to complete the GPG check.
Prepare a GPG key
Public key — Data that other users can use to verify a digital signature.
Private key — Secret data that GPG uses to make a digital signature. A passphrase is a password for this key.
Fingerprint — The full identifier of a public key.
-
Install GPG on your computer.
-
Enter this command to find keys on your computer:
bashgpg --list-secret-keys --keyid-format long --with-fingerprint -
If no GPG key is available, enter this command:
bashgpg --full-generate-keyUse Ed25519 or RSA with 3072–8192 bits. GPG keeps the private key on your computer.
-
Replace
YOUR_FINGERPRINTwith your full fingerprint in the next command. -
Enter this command to make a public-key file:
bashgpg --armor --export YOUR_FINGERPRINT > nerudo-public-key.asc
Add proof of GPG ownership
Use the form in Signing keys settings for these steps.
Challenge — A file from Nerudo for one ownership check. The challenge expires after five minutes.
Detached signature — A separate file that contains a digital signature for the challenge.
Armored file — A text form of a public key or digital signature.
- Confirm your sign-in with a connected sign-in method.
- Enter a name in Key name.
- Paste the contents of
nerudo-public-key.ascinto Public GPG key. - Select Prepare ownership challenge. Nerudo downloads
nerudo-signing-key.txt. - Open a terminal in the directory with the downloaded challenge.
- Enter the GPG command that Nerudo shows below the form. GPG makes
nerudo-signing-key.txt.asc. - Paste the contents of
nerudo-signing-key.txt.ascinto GPG signature. - Select Verify ownership before the five-minute limit.
After Nerudo accepts the proof, the key shows Ownership verified. Nerudo keeps the public key and the verification date.
A new sign-in ends the challenge. An expired challenge requires a new ownership check.
Optional: sign Git commits on your computer
Git commit signing works without GPG enrollment in Nerudo. The Git commands below change only the selected local repository.
-
Open a terminal in your local Git repository.
-
Replace
YOUR_FINGERPRINTwith your full fingerprint in the commands below. -
Enter this command to select OpenPGP signatures:
bashgit config --local gpg.format openpgp -
Enter this command to select your key:
bashgit config --local user.signingkey YOUR_FINGERPRINT -
Enter this command to sign new commits:
bashgit config --local commit.gpgsign true
Git uses GPG for new commit signatures. Repository policy still controls approval rights in Nerudo.
Protect your private key
Keep your private key and passphrase on your computer. Upload only the public key and the detached signature.
Do not change the downloaded challenge. The GPG command must include --no-textmode to sign the same bytes.
The ownership check applies to the public key that you submit. Nerudo does not get subsequent revocations from keyservers.
Mark revoked changes the Nerudo record only. It does not revoke the key in GPG.