mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-09-19 17:50:12 +00:00
ci(gosec): mark jwt secret env var name as non-secret
Gosec G101 treats the environment variable name NZ_JWTSECRETKEY as a hardcoded secret value. Keep the env-first JWT secret behavior unchanged and annotate the constant so CI only suppresses this false positive. Co-authored-by: naiba/CloudCode <hi+cloudcode@nai.ba> Co-authored-by: cloudcode <cloudcode@users.noreply.github.com>
This commit is contained in:
co-authored by
naiba/CloudCode
cloudcode
parent
76a5e2b261
commit
35fc24e2b2
+1
-1
@@ -21,7 +21,7 @@ import (
|
|||||||
// signing key. When set, the dashboard never writes the key to disk and the
|
// signing key. When set, the dashboard never writes the key to disk and the
|
||||||
// version-driven rotation in RotateJWTSecretKeyIfNeeded is skipped so that
|
// version-driven rotation in RotateJWTSecretKeyIfNeeded is skipped so that
|
||||||
// rotation is fully controlled by the operator / KMS.
|
// rotation is fully controlled by the operator / KMS.
|
||||||
const JWTSecretEnvKey = "NZ_JWTSECRETKEY"
|
const JWTSecretEnvKey = "NZ_JWTSECRETKEY" // #nosec G101 -- environment variable name, not a hardcoded secret value.
|
||||||
|
|
||||||
const (
|
const (
|
||||||
ConfigUsePeerIP = "NZ::Use-Peer-IP"
|
ConfigUsePeerIP = "NZ::Use-Peer-IP"
|
||||||
|
|||||||
Reference in New Issue
Block a user