Skip to content

Fix MODAT host validation with anycast and classification tags - #923

Merged
adulau merged 1 commit into
mainfrom
fix/modat-host-notes
Oct 13, 2026
Merged

adulau merged 1 commit into
mainfrom
fix/modat-host-notes

Conversation

@adulau

@adulau adulau commented Oct 13, 2026

Copy link
Copy Markdown
Member

MODAT host responses include is_anycast and classification tags. The module emitted a separate ip-port.text attribute for each, but the standard template allows only one. A host with is_anycast=false and tags=["Cloud"] therefore failed with Unable to process MODAT host data (InvalidMISPObject) and produced nothing to import.

Combine anycast and classification notes into one text attribute, preserving all notes and the original JSON evidence. Also report the object name and failing template relation when object validation fails; diagnostics contain only template constraints, not attribute values or exception contents.

Follow-up to the merged #922. Add regression cases for anycast plus tags and multiple tags without anycast, expand the pinned-schema test with complete host metadata, and check that validation diagnostics identify repeated/missing relations without leaking data.

Validation: 90 offline tests passed. The three new host-note cases reproduced the reported warning before the fix. Black, isort, flake8 and git diff --check passed. No object-template changes are required.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 13, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-13T10:18:22.001201Z 6563366 PR opened
🔒 Security Review ✅ Completed 2026-10-13T10:19:57.569625Z 6563366 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@adulau
adulau merged commit 4d5ebbb into main Oct 13, 2026
6 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