Skip to content

chore/security updates - #2

Merged
wentzeld merged 3 commits into
mainfrom
chore/security-updates
Oct 25, 2026
Merged

wentzeld merged 3 commits into
mainfrom
chore/security-updates

Conversation

@wentzeld

Copy link
Copy Markdown
Owner
  • fix: apply npm audit fixes and restrict trustProxy to loopback
  • fix: security dependency updates and trustProxy hardening
  • fix(infra): move StartLimit settings to the [Unit] section

  loopback

  Update Fastify to 5.12.7 and transitive deps (undici, dompurify,
  js-yaml,
  etc.) via npm audit fix. Fastify 5.12+ disables numeric hop-count
  trustProxy, so trust only loopback (the local Caddy proxy) instead. This
  also stops clients from spoofing X-Forwarded-For to evade rate
  limiting.
  updates and trustProxy hardening

  Apply npm audit fixes (Fastify 5.12.7,
  undici, dompurify, js-yaml, etc.)
  and upgrade zod 3 -> 4, drizzle-orm 0.38 ->
  0.45 and @fastify/static
  9 -> 10. All runtime vulnerabilities are
  resolved; remaining advisories
  are dev-only (vitest, drizzle-kit).

  Fastify 5.12+ disables numeric hop-count
  trustProxy, so trust only
  loopback (the local Caddy proxy). This also
  stops clients spoofing
  X-Forwarded-For to evade rate limiting.

  zod 4 requires an explicit key schema for
  z.record().
  settings to the [Unit] section

  StartLimitIntervalSec and StartLimitBurst are
  only valid in [Unit];
  in [Service] systemd ignores them with a
  warning, so the restart
  limit was never applied.
@wentzeld
wentzeld merged commit 65adefc into main Oct 25, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant