Skip to content

Fix misc#78

Merged
hsinatfootprintai merged 2 commits intomainfrom
fix--misc
Apr 3, 2026
Merged

Fix misc#78
hsinatfootprintai merged 2 commits intomainfrom
fix--misc

Conversation

@hsinatfootprintai
Copy link
Copy Markdown
Contributor

No description provided.

hsinhoyeh and others added 2 commits April 4, 2026 02:53
- Sort sshpiper config routes deterministically to prevent unnecessary
  restarts that kill active SSH sessions (map iteration was randomized)
- Limit Grafana database connection pool (max_open=5, max_idle=2) to
  prevent PostgreSQL shutdown storms from aggressive reconnection
- Increase security container memory to 3GB / 4 CPUs to prevent ClamAV
  OOM kills and speed up scans with --multiscan
- Add DNS override on incusbr0 so containers resolve the base domain to
  Caddy internally, avoiding hairpin NAT failures

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Reduce peer forward timeout from 30s to 5s for GET requests so a
  single unresponsive peer doesn't block the security tab UI
- Deduplicate scan job queue — skip enqueuing if container already has
  a pending/running job, preventing queue bloat from repeated scan-all
- Detect empty rootfs mount before ClamAV scan to avoid false "clean 0s"
  results on ZFS storage backends where the mount may be inaccessible

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@hsinatfootprintai hsinatfootprintai merged commit 791907b into main Apr 3, 2026
3 checks passed
@hsinatfootprintai hsinatfootprintai deleted the fix--misc branch April 3, 2026 18:55
// Add DNS override so containers resolve *.baseDomain to Caddy
// internally instead of going through the external IP (hairpin NAT).
dnsOverride := fmt.Sprintf("address=/%s/%s", config.BaseDomain, caddyIP)
if out, err := exec.Command("incus", "network", "set", "incusbr0", "raw.dnsmasq", dnsOverride).CombinedOutput(); err != nil {
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.

3 participants