Skip to content

[NETBEANS-3972] Draft implementation of GIT GPG signing - #2103

Draft
Caffe1neAdd1ct wants to merge 1 commit into
apache:release113from
Caffe1neAdd1ct:release113
Draft

Caffe1neAdd1ct wants to merge 1 commit into
apache:release113from
Caffe1neAdd1ct:release113

Conversation

@Caffe1neAdd1ct

Copy link
Copy Markdown

Initial draft of GIT GPG commit signing, I'm not happy with this implementation and need some guidance on how to improve this implementation.

  1. Alteration of the commit() command construct signature breaks a lot of tests and doesn't feel like the right way to pass through the GPG passphrase to jgit/bouncycastle.
  2. GPG Passphrase popup doesn't obfuscate the input and isn't a great UX being separate and before the commit window for file selection/author/committer etc
  3. Override checkbox on the commit window to enable/disable signing like author/committer would also be useful.

I've built this on the 11.3 stable release of netbeans but will follow guidance on how to raise a new pull request as needed. To build/run at the moment all tests in Git and Git Client Library need disabling for now due to the commit command construct change.

I'm happy to continue attempting to implement this, but Java isn't my primary language (so please go easy).

Calling for suggestions and guidance on implementation.

@ebarboni

Copy link
Copy Markdown
Contributor

@Caffe1neAdd1ct, please have discussion on dev list to find some help. I have no idea how to help here.

@mbien

mbien commented Jul 18, 2022

Copy link
Copy Markdown
Member

needs to be rebased on master since it is pointing at an EOL branch.

@mbien mbien added the stale No recent activity - likely to be closed. label Jul 18, 2022
@hotis

This comment was marked as off-topic.

@neilcsmith-net

This comment was marked as off-topic.

@timothystone

timothystone commented May 30, 2023 •

Copy link
Copy Markdown

needs to be rebased on master since it is pointing at an EOL branch.

Is this the only thing holding this PR back @mbien ?

@mbien mbien added git [ci] enable versioning job ci:dev-build [ci] produce a dev-build zip artifact (7 days expiration, see link on workflow summary page) labels May 30, 2023
@mbien

mbien commented May 30, 2023

Copy link
Copy Markdown
Member

Is this the only thing holding this PR back

@timothystone probably not but this would be a start. PR mentioned failing tests etc, but our CI host changed in the meantime so they are no longer visible.

@luis-guideti

Copy link
Copy Markdown

is anyone working on this? I could take over

@matthiasblaesing

Copy link
Copy Markdown
Contributor

@FurmigaHumana at least there are no other discussion on going about this. I think the hard part is to define what you want to accomplish and how that might fit into extensions in the future. For example I would expect the support to hook into an OpenPGP agent, just as the SSH support hooks into the SSH agent, maybe not initially, but at least with an perspective. I would try to avoid adding new API if possible. It might be required to indicate "I want to sign" info, but at least the passphrase could be provided using a custom implemenation of GitClientCallback and modifying the CommitCommand to install a credentials provider, just as is done in the TransportCommand.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:dev-build [ci] produce a dev-build zip artifact (7 days expiration, see link on workflow summary page) git [ci] enable versioning job stale No recent activity - likely to be closed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants