fn validate_yubihsm2_config_mappings(
value: &BTreeSet<YubiHsm2UserMapping>,
_context: &(),
) -> ResultExpand description
Validates a set of YubiHsm2UserMapping objects.
Ensures that value is not empty.
Further ensures that there are no
- duplicate system users
- duplicate SSH authorized keys (by comparing the actual SSH public keys)
- missing administrator backend users
- duplicate backend users
- duplicate signing key IDs
- duplicate wrapping key IDs
- duplicate domains
ยงErrors
Returns an error if
- there are no items in
value - there are duplicate system users
- there are duplicate SSH authorized keys (by comparing the actual SSH public keys)
- there are missing administrator backend users
- there are duplicate backend users
- there are duplicate signing key IDs
- there are duplicate wrapping key IDs
- there are duplicate domains
- the estimated size of an OpenPGP certificate would exceed the maximum size of an opaque data object