Files
headscale/hscontrol/api
Seena Fallah 92bc0b6226 api/v1: persist omitted key expiration as NULL, not zero time
CreateAPIKey and CreatePreAuthKey declared a zero-valued time.Time and
passed its address to the state layer, so a request that omitted the
expiration persisted 0001-01-01 instead of NULL. Both key types were
then rejected as already-expired on first use. Pass the request body's
*time.Time straight through (nil when omitted).

Signed-off-by: Seena Fallah <seenafallah@gmail.com>
2026-11-05 12:41:50 +01:00
..