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 = trueRe-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§
- Admin
Config [admin]section — administrative API configuration.- Admin
Gssapi Config - GSSAPI/SPNEGO configuration for admin authentication.
- CaConfig
[[ca]]section — per-CA key material and issuance policy.- CmpConfig
[cmp]section — CMP v3 certificate management endpoint.- CmpMac
Secret - A shared secret entry for CMP MAC-based protection.
- CmsEst
Config [cms_est]section — CMS message-level security for EST.- Coap
Config [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).
- CsrTemplate
Rdn - A single RDN component in the CSR template subject.
- DbConfig
[database]section — connection pool configuration.- EstConfig
[est]section — global EST protocol settings.- EstLabel
Config [[est.label]]— per-label enrollment profile.- HaConfig
- HsmConfig
[hsm]section — PKCS#11 HSM configuration.- Lockout
Config [auth_lockout]— FIA_AFL.1 authentication failure handling.- Ocsp
Stapling Config - OCSP stapling configuration for the TLS listener.
- OtpConfig
[otp]section — OTP enrollment authentication configuration.- OtpLdap
Config - LDAP backend configuration for OTP storage (RHELBU-3536 R7).
- Server
Config [server]section — network listener and general server tuning.- Star
Config [star]section — Short-Term Automatic Renewal certificates.- TlsConfig
[tls]section — TLS configuration for the EST listener.
Enums§
- Admin
Auth Method - Admin authentication method.
- Client
Auth Mode - Client certificate authentication mode.
- EstAuth
Method - Authentication method for EST enrollment requests.
- HsmProvider
- HSM provider identifier.
- OtpStorage
Backend - OTP storage backend.