Skip to main content

Module config

Module config 

Source
Expand description

Validated config rendering for the upstream Kanidm RADIUS service. Validated configuration for the upstream Kanidm RADIUS container.

The upstream bootstrap converts radius_clients to FreeRADIUS clients.conf using unquoted values. Never pass untrusted Kubernetes Secret values through to that bootstrap without checking its syntax first.

This module deliberately does not log or derive Debug for credential-bearing objects. The caller must put the resulting TOML in a Kubernetes Secret, not a ConfigMap, status field, event, or pod annotation.

Structs§

RadiusClient
A NAS definition obtained from a Kubernetes Secret reference.
RadiusConfig
Validated runtime configuration; contains a bearer token and NAS secrets.
RadiusGroup

Enums§

RadiusConfigError
No user-supplied content is included in validation errors: clients may hold secrets and should never be accidentally logged by a reconciler.

Constants§

CONFIG_PATH
Location where the upstream container expects configuration.
KANIDM_CA_PATH
RADIUS_CA_PATH
SERVER_CERT_PATH
SERVER_KEY_PATH

Functions§

normalize_nas_address
Canonical network of a NAS address: a bare IP is a host route, and host bits of a CIDR are masked, so 10.0.0.1, 10.0.0.1/32 and (for a /24) 10.0.0.7/24 and 10.0.0.0/24 compare equal. None for anything that is not an IP or an IP/prefix with a non-zero, in-range prefix length.