Skip to content

objectsigner: Add auto ObjectSigner plugin#5

Merged
pjbgf merged 2 commits intomainfrom
auto
Mar 30, 2026
Merged

objectsigner: Add auto ObjectSigner plugin#5
pjbgf merged 2 commits intomainfrom
auto

Conversation

@pjbgf
Copy link
Copy Markdown
Member

@pjbgf pjbgf commented Mar 30, 2026

Introduces an auto-detection signer that inspects git signing configuration (gpg.format and user.signingKey) and delegates to the appropriate GPG or SSH signer.

Fixes #3.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new objectsigner/auto plugin module that constructs an object Signer based on git signing configuration inputs (gpg.format, user.signingKey), delegating to the existing gpg and ssh signer plugins.

Changes:

  • Introduces FromConfig + resolution logic for SSH (private key path, key:: literal via agent, .pub path via agent) and OpenPGP (armored keyring file) signing.
  • Adds extensive tests covering SSH agent/path selection, encrypted/unsupported keys, and ~ path expansion behavior.
  • Adds a standalone Go module (go.mod/go.sum) for the new plugin, with local replaces to sibling plugins.

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 5 comments.

File Description
plugin/objectsigner/auto/auto.go Implements signer selection + key loading for SSH/OpenPGP based on config inputs.
plugin/objectsigner/auto/auto_test.go Adds comprehensive tests for resolution rules and error cases.
plugin/objectsigner/auto/go.mod Declares the new auto plugin module and dependencies (with local replaces).
plugin/objectsigner/auto/go.sum Adds dependency checksums for the new module.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@pjbgf pjbgf force-pushed the auto branch 2 times, most recently from e9a8466 to e91c16f Compare March 30, 2026 10:55
@pjbgf pjbgf requested a review from Copilot March 30, 2026 11:00
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 5 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

pjbgf added 2 commits March 30, 2026 13:06
Introduces an auto-detection signer that inspects git signing
configuration (gpg.format and user.signingKey) and delegates to the
appropriate GPG or SSH signer.

Signed-off-by: Paulo Gomes <paulo@entire.io>
Assisted-by: Assisted-by: Claude Opus 4.6 <noreply@anthropic.com>
Entire-Checkpoint: ae319769e07d
Signed-off-by: Paulo Gomes <paulo@entire.io>
@pjbgf pjbgf merged commit 33df492 into main Mar 30, 2026
6 checks passed
@pjbgf pjbgf deleted the auto branch March 30, 2026 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

objectsigner/auto: New package to return a signer based on materialised Git config

2 participants