Skip to content

Commit signatures

Sign commits and tags with an SSH or GPG key, see the Verified badge on commits, pull requests, blame and tags, and learn what each state and reason means.

What the badge shows

A commit or tag signed with a key on a Sailfork account shows a badge in commit lists, on the commit page, in a pull request's commits, in blame and in the tag list. Select the badge to see who signed, which kind of key, the key's fingerprint and, for an unverified commit, why.

Sailfork checks a signature once, when the commit arrives, and keeps the result. Removing or replacing a key later does not change commits that were already verified.

Sign with an SSH key

Add the key as a signing key, then tell git to use it:

git config --global gpg.format ssh
git config --global user.signingkey ~/.ssh/id_ed25519.pub
git config --global commit.gpgsign true
git config --global tag.gpgsign true

In the web app, open Settings, SSH keys, choose Add key, paste the public key and set its use to Signing commits. The page asks you to prove the key is yours by signing a short message with ssh-keygen -Y sign. From the CLI that happens for you:

sailfork key add ~/.ssh/id_ed25519.pub --signing

A signing key does not sign in. To use one key for both, add it twice. See Git over HTTPS and SSH.

Sign with a GPG key

Tell git to use your key, then add the public half to your account:

git config --global user.signingkey <key id>
git config --global commit.gpgsign true
gpg --armor --export <key id> | sailfork key add --gpg -

sf key add --gpg - reads the armored public key from stdin. Only signing-capable keys and subkeys count, and the key must carry an address you have verified on your account.

States

StateMeaning
VerifiedThe signature is valid, the key is on a Sailfork account, and that account verified the committer address. Commits signed by Sailfork itself are verified too.
Partially verifiedThe signature is valid, but the commit's author is a different person who uses vigilant mode.
UnverifiedThe signature could not be trusted, or the author uses vigilant mode and the commit is unsigned. The popover gives the reason.
No badgeThe commit is unsigned and its author does not use vigilant mode.

Reasons for Unverified

ReasonWhat it means
Bad signatureThe signature does not match the commit.
Unknown keyThe key is not on any Sailfork account.
Unverified emailThe signer has not verified the committer's email.
No accountNo Sailfork account has this email.
Expired keyThe key has expired.
Removed keyThe key was removed before this commit was verified.
Unsupported formatThis signature format cannot be checked.
UnsignedThe author asks that unsigned commits be flagged.

Vigilant mode

With vigilant mode on, your own unsigned commits show as Unverified instead of showing no badge, and a commit someone else signed in your name shows as Partially verified. Turn it on once every device you commit from signs.

Merges made in the web

Sailfork signs the merge, squash, rebase, revert and file-edit commits it writes for you, with its own key, so they show as Verified.

GitHub mirrors

Commits signed by Sailfork show as Unverified on GitHub. GitHub refuses a key that is already on another account, so the one server key cannot be added to every person's GitHub account. If you mirror to GitHub and need Verified there, merge with fast-forward or rebase your own signed commits. See Use Sailfork alongside GitHub.

Loading Sailfork