Skip to content

Fix: name ALLOW_PRIVATE_IPS when a badge is blocked as private - #46

Merged
SandObserver merged 2 commits into
mainfrom
fix/blocked-private-ip-advice
Aug 12, 2026
Merged

SandObserver merged 2 commits into
mainfrom
fix/blocked-private-ip-advice

Conversation

@SandObserver

Copy link
Copy Markdown
Owner

Summary

  • Give KIND.BLOCKED contextual advice in badgeErrorAdvice when the reason is a private address, matching the treatment NETWORK and TIMEOUT already get.
  • Match only the two SSRF guard messages that ALLOW_PRIVATE_IPS=true would let through, keep the original reason in the text, and return the warn tone instead of the error tone.
  • Leave every other blocked reason (invalid URL, disallowed protocol, unresolvable host) shown verbatim.

Testing
All green, apart from the Docker build smoke test, which needs a local Docker daemon. Added 2 tests, one for both private-address reasons and one asserting the other blocked reasons are unchanged.

Checklist

  • Stays within the project constraints: one container, no runtime dependencies, no build step (see CONTRIBUTING.md).
  • Tests added or updated for new logic, and the full suite, lint, and typechecks pass.
  • Docs updated if behavior or configuration changed.
  • CHANGELOG.md updated under Unreleased if the change is user-visible.

@SandObserver SandObserver added the bug Something isn't working label Aug 12, 2026
Comment thread ui/test/admin-error.test.mjs Fixed
A badge pointed at a private address fell through to the generic branch,
which shows the SSRF reason and nothing else. Add the setting that
allows it, for the two private-address reasons only.
@SandObserver
SandObserver force-pushed the fix/blocked-private-ip-advice branch from 5b03ea0 to 7df4af6 Compare August 12, 2026 20:11
@SandObserver
SandObserver merged commit 8b1a956 into main Aug 12, 2026
4 checks passed
@SandObserver
SandObserver deleted the fix/blocked-private-ip-advice branch August 12, 2026 20:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants