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§
- Radius
Client - A NAS definition obtained from a Kubernetes Secret reference.
- Radius
Config - Validated runtime configuration; contains a bearer token and NAS secrets.
- Radius
Group
Enums§
- Radius
Config Error - 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/32and (for a /24)10.0.0.7/24and10.0.0.0/24compare equal.Nonefor anything that is not an IP or an IP/prefix with a non-zero, in-range prefix length.