fix(signing): show the SSH signer name in commit notices #186
No reviewers
Labels
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
codefloe/forgejo-codefloe!186
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/signing-display-name"
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?
SSH signing notices currently expose the server's public-key file path in the merge panel and web editor.
Display the configured
SIGNING_NAMEinstead, so CodeFloe showsThis commit will be signed with key "CodeFloe".Fall back to the application name when the SSH signing name is blank.
Keep GPG key IDs and the actual key passed to Git unchanged.
Changed files:
README.md: document the signing-notice behavior in the existing Commit signing row.services/asymkey/sign.go: add a shared display-name helper for SSH signing notices.services/context/repo.go: use the display name in the web editor.routers/web/repo/issue.go: use the display name in the pull-request merge panel.services/asymkey/sign_test.go: cover named and unnamed SSH keys, missing keys, GPG IDs, and preservation of the key path passed to Git.Validation:
go test -tags 'sqlite sqlite_unlock_notify' ./services/asymkey ./services/context ./routers/web/repopasses.Go formatting and
git diff --checkpass.The commit hooks also pass backend lint and Swagger generation/validation.
782e984d280c48e65318