fix: increase API token entropy from 128 to 256 bits

Change token random bytes from 16 to 32, producing tokens with
upaas_ prefix + 64 hex characters instead of 32.
Šī revīzija ir iekļauta:
clawbot
2026-02-19 20:16:32 -08:00
vecāks 4045b5b749
revīzija de9be7b6db
+1 -1
Parādīt failu
@@ -15,7 +15,7 @@ import (
) )
// tokenRandomBytes is the number of random bytes for token generation. // tokenRandomBytes is the number of random bytes for token generation.
const tokenRandomBytes = 16 const tokenRandomBytes = 32
// tokenPrefix is prepended to generated API tokens. // tokenPrefix is prepended to generated API tokens.
const tokenPrefix = "upaas_" const tokenPrefix = "upaas_"