Skip to main content

Module config

Module config 

Source
Expand description

Configuration loading and validation.

The Kipuka EST server is configured via a single TOML file. The top-level Config struct owns all sub-configurations and provides Config::from_file for loading with semantic validation.

§Example configuration

[server]
listen_addr = "0.0.0.0:8443"

[tls]
enabled = true
cert_file = "/etc/kipuka/server.crt"
key_file  = "/etc/kipuka/server.key"
ca_file   = "/etc/kipuka/est-ca.pem"

[database]
url = "sqlite:///var/lib/kipuka/kipuka.db"

[[ca]]
id = "default"
is_default = true
key_file  = "/etc/kipuka/ca.key"
cert_file = "/etc/kipuka/ca.crt"

[est]
simpleenroll = true
simplereenroll = true

[audit]
enabled = true

Re-exports§

pub use self::secret::ResolvedSecrets;
pub use self::secret::SecretRef;
pub use self::secret::SecretResolver;
pub use crate::ocsp::OcspConfig;
pub use self::audit::*;

Modules§

audit
Audit configuration.
secret
Unified secret management — no plaintext credentials in deployed config.

Structs§

AdminConfig
[admin] section — administrative API configuration.
AdminGssapiConfig
GSSAPI/SPNEGO configuration for admin authentication.
CaConfig
[[ca]] section — per-CA key material and issuance policy.
CmpConfig
[cmp] section — CMP v3 certificate management endpoint.
CmpMacSecret
A shared secret entry for CMP MAC-based protection.
CmsEstConfig
[cms_est] section — CMS message-level security for EST.
CoapConfig
[coap] section — CoAP transport for constrained devices.
Config
Root configuration for the Kipuka EST server.
CsrTemplate
CSR template mode configuration (draft-ietf-lamps-rfc7030-csrattrs / RFC 9908).
CsrTemplateRdn
A single RDN component in the CSR template subject.
DbConfig
[database] section — connection pool configuration.
EstConfig
[est] section — global EST protocol settings.
EstLabelConfig
[[est.label]] — per-label enrollment profile.
HaConfig
HsmConfig
[hsm] section — PKCS#11 HSM configuration.
LockoutConfig
[auth_lockout] — FIA_AFL.1 authentication failure handling.
OcspStaplingConfig
OCSP stapling configuration for the TLS listener.
OtpConfig
[otp] section — OTP enrollment authentication configuration.
OtpLdapConfig
LDAP backend configuration for OTP storage (RHELBU-3536 R7).
ServerConfig
[server] section — network listener and general server tuning.
StarConfig
[star] section — Short-Term Automatic Renewal certificates.
TlsConfig
[tls] section — TLS configuration for the EST listener.

Enums§

AdminAuthMethod
Admin authentication method.
ClientAuthMode
Client certificate authentication mode.
EstAuthMethod
Authentication method for EST enrollment requests.
HsmProvider
HSM provider identifier.
OtpStorageBackend
OTP storage backend.