[__opendkim_key] Overall improvements in key management #22

Open
evilham wants to merge 2 commits from opendkim-improvements into master

2 Commits

Author SHA1 Message Date
evilham 7ca0bcf8d9
[__opendkim_genkey] Improve error text for unsupported OS
It was not listing FreeBSD, which is currently supported.
2023-04-21 15:01:13 +02:00
evilham d566dccebe
[__opendkim_key] Overall improvements in key management
While developing this, I noticed that the type was handling inconsistently the
expectation that a cdist object with the same __object_id gets *modified*.
Instead more and more lines were added to, e.g. SigningTable and KeyTable.

In order to solve this, some backwards compatibility breaking is necessary.

This is probably not too terrible since:

- the `--selector` parameter was mandatory, therefore the fallback for the key
location is triggered.
- OpenDKIM uses the first match in `SigningTable` and `KeyTable`
- __line and __block respectively append if they do not match

Closes #19 and #20.
2023-04-21 15:01:13 +02:00