coder / coder/code-server

[Feat]: Web-based GPG pin entry for signing git commits

Open
#5,271 7 comments 3 reactions 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
79.3k
Forks
6.8k
Avg merge
2d 6h
Merged PRs (30d)
41

Description

## What is your suggestion?
When signing git commits with GPG, where the GPG key exists on the server, display a prompt that allows for entry of the GPG pin.

## Why do you want this feature?
If you currently try to commit from the UI when using GPG signing, you get an error:
![image](https://user-images.githubusercontent.com/8848080/173771110-c5fd85df-f875-49d9-9b5d-8c967efdaf40.png)
![image](https://user-images.githubusercontent.com/8848080/173770079-9483009b-b003-4f39-a2bf-e3bb05da685f.png)

```
error: gpg failed to sign the data
fatal: failed to write commit object
```

...but if you use the terminal, it works fine:
```
git commit -m "My Commit Message"
```
![image](https://user-images.githubusercontent.com/8848080/173770228-b0f3fc5f-3463-4d6e-b5ec-6f4789068a9f.png)

This requires me to open the terminal every time I want to commit. I would prefer to use the nice UI.

## Are there any workarounds to get this functionality today?
Not that I know of. I could just be doing something entirely wrong.

## Are you interested in submitting a PR for this?
I wouldn't really know where to begin here, unfortunately, and lack the time at the moment to figure it out.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.