Repository navigation
rustpanosmcp: add get_panos_feed_status read for mecfeedmcp EDLs (#253) - #269
Merged
Merged
Conversation
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.
Adds
get_panos_feed_status, a read-only typed tool reporting mecfeedmcp feed subscriptions (PAN-OS External Dynamic Lists) per device. Part of mechubsec/mecfeedmcp#6.What it reports
For each EDL in the inventory vsys whose URL path is
/feeds/panos-edl/{address,prefix,domain}(type must agree: ip ↔ address/prefix, domain ↔ domain):url, with credentials, query and fragment strippedvalid,auth_validandnext_update, fromrequest system external-list statstotal_valid,total_ignoredandtotal_invalid, fromrequest system external-list showcontent_etag:sha256-<hex>over the sorted valid members joined with\n, plus a trailing\n. That is mecfeed-serve's ETag formula, so it matches serve's ETag when the firewall holds the whole document. It isnullwhen the member count disagrees withtotal-valid.last_event: the latestEDL(<name>)system-log line, redacted.EDL file was not updated at remote endmeans serve answered 304.No subscription gives
feeds: []. That covers a missingexternal-listnode (No such node).Trust boundary
edl_opis the only parameterised<request>path. The verb (stats/show) and type (ip/domain) are enums, sorefreshcannot be represented. The EDL name must be 1–63 characters of[A-Za-z0-9 ._-]. That excludes every XML and log-filter metacharacter, and the same check guards the log query.Docs
docs/OPERATIONS.mdgets a new section, Subscribing to a mecfeedmcp feed. The EDL entry goes through the existing change-set flow without<auth>, and the Basic password is set once on the firewall out of band. Change sets keep the element verbatim in state and inget_panos_change_setoutput. README lists the new tool.Verification
cargo fmt --check,cargo clippy --workspace --all-targets -D warningsandcargo test --workspaceare clean. The tests are unit tests plus mock-server end-to-end tests intyped_reads.rs, and the tool is added toaudit_completeness.rs.Known limits
sharedand Panorama-pushed EDLs are not.EDL(<name>)message prefix this PAN-OS version emits.Closes #253
🤖 Generated with Claude Code