Repository navigation
chore/security updates - #2
Merged
Merged
Conversation
wentzeld
commented
Oct 25, 2026
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.