[__opendkim*] FreeBSD support and minor fixes #18
No reviewers
Labels
No labels
bug
confirmed
critical
discussion
documentation
enhancement
feedback-required
good-first-issue
ready
reviewed
suggestion
support
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: ungleich-public/cdist-contrib#18
Loading…
Reference in a new issue
No description provided.
Delete branch "opendkim-freebsd"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
While adding FreeBSD support to the type I noticed various issues:
__opendkim_genkey, but that was being done with the default cdist permissions
(0400) which could result in issues when reloading the service after privilege
drop.
This is addressed by checking that it exists/creating it in __opendkim (just
once, not once per __opendkim_genkey call) with laxer permissions (0444).
installed. This is insufficient as OpenDKIM will refuse to start with the
generated config if either SigningTable or KeyTable do not exist yet.
always ended in a slash. This was not documented and error-prone; we are now
a bit laxer and add the trailing slash if it is missing.
This was not critical for it to function, but it was inconsistent.
cause issues with keys generated by __opendkim_genkey.
This issue has not been addressed yet, but I recommend deprecating the
--userid parameter.
cc @sparrowhawk
1fc8a7e547
toecd10de2d3
Ugh, apparently I'm very tired and effed up my git foo, so this was pushed.
In prder to avoid force-pushing and all the dance, I promise pretty please to respond quickly to feedback and integrate it back to the branch.
Sorry about the mishap >,< leaving this open so we can do proper review even if after the fact in this case.
Huh, I was wondering why there was a PR with the same content as a git commit I'd read with interest x)
I'm happy as it is, so it's fine that you merged it. As a personal preference, I tend to be paranoid with shell variables and mark everything that shouldn't be empty with an
${:?}
expansion, but that's just me. We're all good :)Pull request closed