feat(asymkey): credit instance signatures to the signing account #183
No reviewers
Labels
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
codefloe/forgejo-codefloe!183
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/instance-signer-account"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Commits signed with the instance SSH key show "Signed by: CodeFloe" with a placeholder avatar and no link, because upstream builds a placeholder signer from
SIGNING_NAMEandSIGNING_EMAIL(models/asymkey/ssh_key_object_verification.go).This change will:
SIGNING_EMAIL, so "Signed by" links to it and shows its avatar[email protected]) to that organization through the existingGetUserByEmailno-reply lookupSIGNING_EMAILas the signer email, so the account's own (possibly private) email never reaches the file APIThe fork diff to the upstream file is one line; the logic lives in
ssh_key_object_verification_codefloe.go.Paired with an IaC change that sets
SIGNING_EMAILto thecodefloeorg's no-reply address.Tests
TestInstanceSignatureAttributioncovers the organization address (signer, reason, email andtrustedstatus), an address without an account (placeholder kept) and a signature from another key (no attribution); it fails without the call sitego test ./models/asymkey/andmake lint-gopass24f51bd4936dd1dfe56b