Expand description
Backend handling for [NetHsm
].
Based on a [NetHsm
], AdminCredentials
and a HermeticParallelConfig
this module offers
the ability to populate a [NetHsm
] backend with the help of the NetHsmBackend
struct.
Using NetHsmBackend::sync
all users and keys configured in HermeticParallelConfig
are created and adapted to changes upon re-run.
With the help of NetHsmBackend::state
the current State
of a [NetHsm
] backend can
be created and compared with e.g. the State
representation of a HermeticParallelConfig
.
ยงNote
This module only works with data for the same iteration (i.e. the iteration of the
AdminCredentials
and those of the [NetHsm
] backend must match).
Structsยง
- KeySetup
Comparison ๐ - Comparable components of a key setup between a [
NetHsm
] backend and a Signstar config. - NetHsm
Backend - A NetHSM backend that provides full control over its data.
Functionsยง
- add_
namespace_ ๐admins - Sets up all N-Administrators and their respective namespaces.
- add_
namespaced_ ๐keys - Sets up all namespaced keys and tags them.
- add_
namespaced_ ๐non_ administrative_ users - Sets up all namespaced non-administrative users.
- add_
namespaced_ ๐openpgp_ certificates - Adds OpenPGP certificates for namespaced keys that are used for OpenPGP signing.
- add_
non_ ๐administrative_ users - Sets up all system-wide, non-administrative users based on provided credentials.
- add_
system_ ๐wide_ admins - Creates all R-Administrators on a [
NetHsm
]. - add_
system_ ๐wide_ keys - Sets up all system-wide keys.
- add_
system_ ๐wide_ openpgp_ certificates - Adds OpenPGP certificates for system-wide keys that are used for OpenPGP signing.
- compare_
key_ ๐setups - Compares the key setups of a key from a Signstar config and that of a NetHSM backend.
- get_
first_ ๐available_ namespace_ admin - Retrieves the first available user in the [
Administrator
][UserRole::Administrator
] (N-Administrator) role in a namespace. - get_
key_ ๐certificate_ state - Retrieve the state of a key certificate.
- get_
key_ ๐states - Retrieves the state for all keys on a [
NetHsm
] backend. - get_
user_ ๐states - Retrieves the state for all users on a [
NetHsm
] backend.