Page MenuHome GnuPG

Groups are loaded from a file
Closed, ResolvedPublic

Description

The file should use a standard format. I'm considering using vCard. This would allow configuration of the groups with any address book application that supports vCard.

Update: I've decided not to use vCard. vCard does not really seem to have proper group support and/or the KDE libraries/Akonadi have proprietary group support.

Instead I'm using an ini-style config file via KConfig. Apart from being a simple format that does not require new dependencies in libkleo, this has the advantage that KConfig's ability to lock down configuration options can be used to create immutable groups.

Event Timeline

ikloecker moved this task from Restricted Project Column to Restricted Project Column on the Restricted Project board.Jan 18 2021, 11:05 AM

The groups are read from kleopatragroupsrc (located in the default location(s) for configuration files, e.g. next to kleopatrarc). The format is

[Group-<group id>]
Name=<group name>
Keys=<fingerprint>,<fingerprint>,...

where group id is a unique identifier for the group (can be identical to group name), group name is the (display) name of the group (which should also be unique for practical reasons), fingerprint is the fingerprint of a key in the group. Everything has to be UTF-8-encoded.

All keys must be in the local key ring. Fingerprints of keys which are not in the local key ring are ignored.

ikloecker moved this task from Restricted Project Column to Restricted Project Column on the Restricted Project board.