Clean up client identity configuration options #107
Labels
tech debt
Work on this should be planned according to tech debt policy
Technical Debt
This Issue is a technical debt. Mark issues with this label to have an overview of the code quality.
We currently have a fair bit of awkward code to handle tls certificates in the ldap source config:
famedly-sync/src/sources/ldap.rs
Lines 262 to 274 in 727c4d9
In retrospect, we should bundle these in a
client_identity
attribute which is ~Option<struct ClientIdentity(PathBuf, PathBuf)>
. That way we can assert at the type level that both are specified at the same time, and give a cleaner error message (directly from serde, so that the attribute and everything is listed) as a result.That'd require a breaking change, unfortunately.
Originally posted by @tlater-famedly in #106 (comment)
The text was updated successfully, but these errors were encountered: