Skip to content

docs: spec for inbound notice ingestion - #106

Open
jsenecal wants to merge 4 commits into
mainfrom
docs/inbound-ingest-spec
Open

jsenecal wants to merge 4 commits into
mainfrom
docs/inbound-ingest-spec

Conversation

@jsenecal

@jsenecal jsenecal commented Dec 2, 2026

Copy link
Copy Markdown
Owner

Design spec for parsing provider notices inside the plugin: docs/superpowers/specs/2026-11-28-inbound-notice-ingestion-design.md. Docs only.

  • Two ingest routes:
    • POST /api/plugins/notices/inbound-notices/fastsmtp/ takes FastSMTP's webhook payload, any 0.x release.
    • .../rfc822/ takes a raw message.
    • Both take an optional ?provider= hint, which falls back to sender matching.
  • InboundNotice model:
    • Every message is kept with its outcome (parsed, no_provider, unparseable, no_maintenance, failed).
    • It is processed in a NetBox background job running inside event_tracking, so the changelog and event rules work.
    • A message is recorded once (Message-ID, else a content hash).
    • It can be processed again.
    • Its payload is kept out of the changelog and cleared after a configurable retention (default 90 days).
  • ProviderParser model: sender domains and parser per provider, as NetBox data, replacing the Lambda's PROVIDER_MAP.
  • Recording rules move from the SES Lambda. An older notice never undoes a newer one, using the iCal SEQUENCE and DTSTAMP.
  • Optional dependency: circuit-maintenance-parser moves to an optional netbox-notices[parser] extra.
  • Body size: the plugin enforces inbound_max_bytes itself, because DRF's JSON parser bypasses Django's upload limit.
  • The SES Lambda becomes a forwarder to the raw-message route once fix(integrations): make the SES inbound function work with NetBox 4 #104 has merged.

A builder check of the spec against this repo, NetBox 4.7 and FastSMTP is folded in.

@github-actions github-actions Bot added the docs Documentation change label Dec 2, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant