Skip to content

fix(external): accept the guard's ssrf-guard policy verdict - #517

Merged
blitzcrieg1 merged 2 commits into
masterfrom
fix/guard-ssrf-policy-value
Nov 28, 2026
Merged

blitzcrieg1 merged 2 commits into
masterfrom
fix/guard-ssrf-policy-value

Conversation

@blitzcrieg1

Copy link
Copy Markdown
Owner

What

_guard_destination whitelists the guard's policy argument values. It knew allowlist and denylist; this adds ssrf-guard, the verdict agentmetry-guard's new post-DNS egress guardrail denies with (companion: blitzcrieg1/agentmetry-guard#2).

Why

Without it, a guardrail refusal reaches the canonical trail as outcome=denied with no policy field: the refusal is recorded but not why. Any other value is still dropped, so a client cannot stamp arbitrary text into the canonical arguments. The guard-egress-denied detection fires on outcome alone and is unaffected either way.

Evidence

  • pytest tests/test_doctor_json_and_remediation.py: 26 passed (2 new: guardrail denial keeps its reason; unknown policy values stay dropped)
  • ruff check agentmetry tests: clean

blitzcrieg1 and others added 2 commits November 27, 2026 23:16
agentmetry-guard's post-DNS egress guardrail denies with policy=ssrf-guard.
The canonical ingest whitelist only knew allowlist and denylist, so the
refusal reached the trail with no reason attached. Accept the one new value;
anything else is still dropped so a client cannot stamp arbitrary text into
the canonical arguments. The guard-egress-denied detection fires on outcome
alone and is unaffected.

Companion to blitzcrieg1/agentmetry-guard#2.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <[email protected]>
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <[email protected]>
@blitzcrieg1
blitzcrieg1 merged commit 4ece56f into master Nov 28, 2026
10 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