Skip to content

Gitea does not sign a CRUD_ACTIONS commit when setting is CRUD_ACTIONS = pubkey and user has only SSH pubkey (instead of GPG) #34908

Closed
@rebeccan

Description

@rebeccan

Hi,

I have noticed the behaviour, that Gitea does not sign a CRUD_ACTIONS commit (in this case cherry pick from web UI).

The setting I used was CRUD_ACTIONS = pubkey. According to the docs: "Only sign if the user has a public key". The user I tested with has a public key uploaded, but it is of type SSH and none of type GPG.

Affected line of code:

keys, err := db.Find[asymkey_model.GPGKey](ctx, asymkey_model.FindGPGKeyOptions{

We use Gitea Version: 1.23.8

I assume that it was forgotten to check SSH pubkeys as well. Or is that behaviour intentional?

Steps to reproduce:

  1. Gitea setting CRUD_ACTIONS = pubkey
  2. Log into Gitea UI with user that has an SSH pubkey but no GPG pubkey
  3. Cherry pick a commit over the UI

Expected Result: The new commit is signed by Gitea.
Actual Result: The new commit is unsigned.

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/needs-feedbackFor bugs, we need more details. For features, the feature must be described in more detail

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions