aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2023-04-21 16:30:51 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2023-04-21 16:34:27 -0700
commit7bcad9f035ec65f515c053941b5b8fb8717fda8c (patch)
tree4b5d4ae23d742d959f470c3ae8356ff35f621070 /_plugins
parentdownlods/signatures: formatting tweaks (diff)
downloadwww-7bcad9f035ec65f515c053941b5b8fb8717fda8c.tar.gz
www-7bcad9f035ec65f515c053941b5b8fb8717fda8c.tar.bz2
www-7bcad9f035ec65f515c053941b5b8fb8717fda8c.zip
wkd: shrink keys
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
Diffstat (limited to '_plugins')
-rw-r--r--_plugins/wkd.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/_plugins/wkd.rb b/_plugins/wkd.rb
index fff1e37..7ac9f7a 100644
--- a/_plugins/wkd.rb
+++ b/_plugins/wkd.rb
@@ -20,6 +20,15 @@ module Gentoo
'--preserve-permissions',
'--quiet',
'--with-colon',
+ # Some dev keys exceed the 256K buffer of MAX_WKD_RESULT_LENGTH
+ # https://github.com/gpg/gnupg/blob/master/g10/call-dirmngr.c#L44-L47
+ # This causes an error:
+ # gpg: error retrieving '...@gentoo.org' via WKD: Provided object is too large
+ #
+ # To mitigate it:
+ # export-clean: removes non-usable userIDs, signatures.
+ # no-export-attributes turns off Photo UIDs, which can easily get large.
+ '--export-options', 'export-clean,no-export-attributes',
].freeze
def generate_each_nick(site, keyring, nick, fps, email_domain)