Artem Lytkin
c8660364d9
fix(asymkey): do not verify OpenPGP signatures with an SSH instance key, require git 2.18 ( #39073 )
...
With SIGNING_FORMAT = ssh the OpenPGP verification path builds its
GPGSettings from the instance signing key but leaves the format empty,
so it runs `gpg -a --export` on an SSH public key path. Depending on the
local gpg setup that either exports nothing, so an OpenPGP signed commit
reports gpg.error.generate_hash instead of a missing key, or it fails
outright and logs an export error for every such commit.
Both guards are needed. The first covers SIGNING_KEY set to a path with
SIGNING_FORMAT=ssh; the second covers the shipped default
SIGNING_KEY=default, where the format comes from git's own gpg.format
and never gets reconciled with the hardcoded "openpgp". Drop either one
and a working config goes back to broken.
Also raise minimum git version to 2.18 which was already required before this change.
Fixes: https://github.com/go-gitea/gitea/issues/37452
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
Co-authored-by: silverwind <me@silverwind.io >
2026-08-25 12:02:31 +00:00
..
2026-07-28 17:04:22 +00:00
2026-08-22 08:59:37 +00:00
2026-07-28 17:04:22 +00:00
2026-07-23 17:42:55 +00:00
2026-07-28 17:04:22 +00:00
2026-07-28 17:04:22 +00:00
2026-07-19 07:32:00 +00:00
2026-05-26 15:49:31 -07:00
2026-08-11 16:33:15 +00:00
2026-08-11 16:33:15 +00:00
2026-07-28 17:04:22 +00:00
2026-07-28 17:04:22 +00:00
2026-07-20 16:07:38 +00:00
2026-07-17 18:44:31 +08:00
2026-07-28 17:04:22 +00:00
2026-08-07 02:44:55 +00:00
2026-08-07 02:44:55 +00:00
2026-07-28 17:04:22 +00:00
2026-07-28 17:04:22 +00:00
2026-07-21 12:18:00 +00:00
2026-07-28 17:04:22 +00:00
2026-07-23 01:22:26 +00:00
2026-07-23 01:22:26 +00:00
2026-07-23 01:22:26 +00:00
2025-05-09 16:17:08 +00:00
2026-07-20 16:07:38 +00:00
2026-07-20 16:07:38 +00:00
2026-05-07 16:19:45 +02:00
2026-08-05 00:17:07 +08:00
2026-07-20 16:07:38 +00:00
2026-07-20 16:07:38 +00:00
2026-08-09 10:25:06 +00:00
2026-08-05 00:17:07 +08:00
2026-07-28 19:12:53 +08:00
2026-08-05 00:17:07 +08:00
2026-08-05 00:17:07 +08:00
2026-08-24 19:06:30 +00:00
2026-08-24 19:06:30 +00:00
2026-07-15 17:30:01 +00:00
2026-07-28 17:04:22 +00:00
2025-07-30 07:08:59 +00:00
2026-05-26 15:49:31 -07:00
2026-07-17 18:44:31 +08:00
2026-07-28 17:04:22 +00:00
2026-08-24 18:26:10 +00:00
2026-07-20 16:07:38 +00:00
2026-07-20 16:07:38 +00:00
2026-07-20 16:07:38 +00:00
2026-06-22 18:29:06 +00:00
2026-08-25 12:02:31 +00:00
2026-07-20 16:07:38 +00:00
2025-06-18 01:48:09 +00:00
2026-07-20 18:03:28 +00:00
2026-05-26 15:49:31 -07:00
2026-08-07 14:11:03 +00:00
2026-07-23 01:22:26 +00:00
2026-07-20 16:07:38 +00:00
2026-07-20 16:07:38 +00:00
2026-08-25 12:02:31 +00:00
2026-07-28 17:04:22 +00:00
2026-08-25 12:02:31 +00:00
2026-08-25 12:02:31 +00:00
2026-07-28 17:04:22 +00:00
2026-07-20 16:07:38 +00:00
2026-07-23 14:31:29 +00:00
2026-08-21 07:52:23 +00:00
2026-08-21 07:52:23 +00:00
2026-08-25 12:02:31 +00:00
2026-08-05 00:17:07 +08:00
2026-08-05 00:17:07 +08:00
2026-08-05 00:17:07 +08:00
2026-07-23 17:42:55 +00:00
2026-07-20 18:03:28 +00:00
2026-07-23 01:22:26 +00:00
2026-07-20 16:07:38 +00:00
2026-07-20 16:07:38 +00:00
2026-07-20 16:07:38 +00:00
2026-08-05 00:17:07 +08:00
2026-08-05 00:17:07 +08:00
2026-08-12 16:12:57 +00:00
2026-08-12 16:12:57 +00:00
2026-06-11 18:08:55 +00:00
2026-04-14 12:03:26 +00:00
2026-05-13 09:00:41 +02:00
2026-05-26 15:49:31 -07:00
2026-07-23 01:22:26 +00:00
2026-07-20 10:04:23 +00:00
2026-06-24 05:38:02 +00:00
2026-07-20 16:07:38 +00:00
2026-07-20 16:07:38 +00:00
2026-07-20 03:17:25 +00:00
2026-07-23 01:22:26 +00:00
2026-07-28 17:04:22 +00:00
2026-07-20 16:07:38 +00:00
2026-07-28 17:04:22 +00:00
2025-12-25 19:26:23 -08:00
2026-07-17 18:44:31 +08:00
2026-07-28 17:04:22 +00:00
2026-07-28 17:04:22 +00:00
2026-07-20 16:07:38 +00:00
2026-07-20 16:07:38 +00:00
2026-07-28 17:04:22 +00:00
2026-07-28 17:04:22 +00:00
2026-07-20 16:07:38 +00:00
2026-07-23 01:22:26 +00:00
2026-08-25 12:02:31 +00:00
2026-07-28 17:04:22 +00:00
2026-07-23 17:42:55 +00:00
2026-07-20 16:07:38 +00:00
2026-07-20 16:07:38 +00:00
2026-07-20 18:03:28 +00:00
2026-07-20 16:07:38 +00:00
2026-07-28 17:04:22 +00:00
2026-07-20 16:07:38 +00:00
2026-07-28 17:04:22 +00:00
2026-07-20 16:07:38 +00:00
2026-07-17 18:44:31 +08:00
2026-07-28 17:04:22 +00:00
2026-08-22 08:59:37 +00:00
2026-08-22 08:59:37 +00:00
2026-07-28 17:04:22 +00:00
2026-07-20 16:07:38 +00:00
2026-07-28 17:04:22 +00:00
2026-07-20 16:07:38 +00:00
2026-08-05 00:17:07 +08:00
2026-05-26 15:49:31 -07:00
2026-05-26 15:49:31 -07:00
2026-07-23 01:22:26 +00:00
2026-07-21 12:18:00 +00:00
2026-07-23 01:22:26 +00:00
2026-05-07 16:19:45 +02:00
2026-08-22 08:59:37 +00:00
2026-07-15 17:30:01 +00:00
2026-07-15 17:30:01 +00:00
2026-07-15 17:30:01 +00:00
2026-07-28 17:04:22 +00:00
2026-05-13 09:00:41 +02:00
2026-07-15 17:30:01 +00:00
2026-04-14 12:03:26 +00:00
2026-07-28 17:04:22 +00:00
2026-04-14 12:03:26 +00:00
2026-07-17 18:44:31 +08:00
2026-07-15 17:30:01 +00:00
2026-07-28 17:04:22 +00:00
2026-07-28 17:04:22 +00:00
2026-07-20 16:07:38 +00:00
2025-07-30 07:08:59 +00:00
2026-08-25 12:02:31 +00:00