To make it possible to switch to / from TOFU it would be nice to have the
trust-model setting available through gpgconf.
Description
Related Objects
Event Timeline
Talked to werner about it. The way something like trust-model should be
switchable would be best to handle with profiles.
There is at least one profile planned for EasyGPG. Something like "Silent" or
automated. Riseup and VSNFD will probably also want to create profiles.
I think apply-defaults could be extended for this with a defaults file for each
profile.
Then something like:
gpgconf --list-defaults
List all available default files.
Where the output format could be similar to list-components.
name:description:filename:
filename is the path to the config file.
Then --apply-defaults could be extended to take an optional filename as an
argument. (Like --list-config, --check-config)
With --dry-run it should only check if all the settings marked as no-change are
set correctly and indicate it through the return code.
For EasyGPG I think a config file could be:
- gpg-agent max-cache-ttl [change] 30758400 gpg-agent default-cache-ttl [change] 30758400 gpg trust-model [no-change] tofu+pgp gpg auto-key-retrieve [change] gpg auto-key-locate [change] local,wkd,dane,pka,cert,keyserver
Ok profiles are now there and look workable, but it looks like they are only
supporting configuration values that are currently accessible through gpgconf:
[gpg]
trust-model tofu+pgp
keyserver-options auto-key-retrieve
auto-key-locate local,wkd,pka,cert,dane
Leads to:
gpgconf: /opt/gnupg/etc/gnupg/automated.profile:7:0: error: unknown option
'trust-model' in section 'gpg'
gpgconf: /opt/gnupg/etc/gnupg/automated.profile:8:0: error: unknown option
'keyserver-options' in section 'gpg'
So we need more options promoted to gpgconf. Which I think is ok, we can just
mark them as Expert / Invisible and GUI's should respect that.
As of ebeccd73eb85f9027f0985d77dfe901266c6ddef the trust model is configurable
via gpgconf.
I'm going to close this task now. If we need more options to be configurable, it is easy to open another task for them.