Repository navigation
fix(external): accept the guard's ssrf-guard policy verdict - #517
Merged
Merged
Conversation
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]>
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.
What
_guard_destinationwhitelists the guard'spolicyargument values. It knewallowlistanddenylist; this addsssrf-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=deniedwith nopolicyfield: the refusal is recorded but not why. Any other value is still dropped, so a client cannot stamp arbitrary text into the canonical arguments. Theguard-egress-denieddetection 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