Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
flatcar-install: Use --assert-signer rather than --trusted-key with gpg
Using a custom key was recently broken by a GnuPG update. The Flatcar key is not imported when a custom key is given, but we still reference the Flatcar key with --trusted-key regardless, causing gpg to attempt to download the key from a keyserver. This fails because we no longer ship the necessary dirmngr binary, which is now only built when GnuPG has GnuTLS support enabled. Enabling GnuTLS support works around the problem, but it is not the proper fix. --trusted-key causes gpg to trust the given key, even though there is no secret key present. This is unnecessary, as the key would be trusted anyway, albeit with a warning. --assert-signer makes more sense, as this ensures the file was signed specifically by the given key rather than some other key you happen to have in your keyring. --assert-signer only accepts the long key ID, not the key file. There is no way to discover the key ID of a key that has just been imported, but you can get it from the original key file in a stable manner. Closes: flatcar/Flatcar#1471 Signed-off-by: James Le Cuirot <[email protected]>
- Loading branch information