Files
nezha_domains/model
naibaandcloudcode 6811f730e9 feat(config): make jwt_secret_key env-first and never persist when injected
NZ_JWTSECRETKEY takes priority over config.yaml, env-injected keys are
not persisted and skip the version-driven rotation. When the secret is
auto-generated as a last-resort fallback, write it via a single-field
YAML patch so we never round-trip the in-memory key back to disk.

The JWTSecretKey field is marked json:"-" yaml:"-" so Save() can no
longer leak it. Update ReadEnvFile test to lock in env-over-yaml
precedence.

Co-authored-by: cloudcode <cloudcode@users.noreply.github.com>
2026-05-26 03:50:26 +00:00
..
2024-12-19 23:21:15 +08:00
2024-12-28 23:50:59 +08:00
2026-05-25 10:17:34 +00:00
2024-11-16 20:57:03 +08:00
2025-04-26 18:28:21 +08:00
2024-10-25 09:09:08 +08:00
2024-12-04 20:00:18 +08:00
2025-01-21 22:23:15 +08:00
2025-01-21 22:23:15 +08:00
2024-11-16 20:57:03 +08:00
2024-10-20 00:32:55 +08:00
2025-03-19 22:21:21 +08:00
2024-11-16 20:57:03 +08:00
2024-10-21 23:00:51 +08:00
2026-05-25 10:17:34 +00:00
2026-02-15 13:13:33 +08:00
2026-02-15 13:13:33 +08:00
2026-05-25 10:17:34 +00:00
2026-02-15 13:13:33 +08:00
2024-10-22 22:01:01 +08:00
2024-11-16 20:57:03 +08:00
2026-05-25 10:17:34 +00:00