Repository navigation
docs(adr): propose ADR-0127, relay neo's log through morpheus - #1659
Merged
Merged
Conversation
RouterOS sends syslog over UDP only and cannot present a client certificate, so it cannot reach the pinned TLS intake directly. Relay it through morpheus's syslog-ng on the switch LAN instead, with one pass to the gateway and none into Winterfell. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
🟡 Changes recommended
App-only alert selectors allow forged logs labelled host="neo" to trigger security alerts or suppress FirewallLogsStopped, requiring host-scoped rules and cross-host isolation tests before enabling the relay.
3 open issues
What changed in this PR
Proposes ADR-0127 to send neo’s logs through morpheus to the existing TLS-protected Alloy intake, addressing the switch’s volatile log storage. This is documentation only; nothing is deployed and no firewall rules change.
Changes:
- Defines the proposed UDP-to-TLS relay and sender labelling.
- Documents security assumptions, rollout order, recovery needs, and alerting considerations.
- Updates the README’s ADR count from 125 to 126.
| File | Description |
|---|---|
| README.md | Updates both documented ADR counts. |
| docs/adr/0127-relay-neos-log-through-morpheus.md | Adds the proposed relay decision, rationale, and implementation requirements. |
Review effort: Balanced
Gerrrt
enabled auto-merge (squash)
November 23, 2026 15:06
…ore gap Review of #1659 found the firewall's Loki rules select by app alone, so a line on the neo path tagged filterlog could raise or silence them. ADR-0127 now fixes app for host="neo" in Alloy and scopes those rules to host="morpheus", as prerequisites of pointing neo at the relay. The quoted antispoof rule body is replaced by prose, and the restore consequence now says restore-the-firewall.md has no syslog-ng step and must gain one. Refs #1659 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
4 of 6 tasks
Gerrrt
added a commit
that referenced
this pull request
Nov 23, 2026
…elay rewrite first Every line on the syslog path carries source="network", so Loki renamed the regexp's `source` capture to source_extracted and the rule compared "network": every login to neo, expected or not, would have paged. The capture is now login_from, and the fixtures carry source: network as production lines do; the old rule fails all three login cases against them. ship-firewall-logs.md §10 now makes morpheus's r_host_morpheus rewrite a checked first step, before Alloy trusts the hostname neo. Refs #1659 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Gerrrt
added a commit
that referenced
this pull request
Nov 23, 2026
* feat(logs): relay neo's log through morpheus, and keep it out of the firewall's alerts (ADR-0127) syslog.alloy stores a line as host="neo" only when it arrives on morpheus's pinned connection with hostname neo, and gives it a fixed app="routeros" so no tag on that path reads as filterlog, Suricata or Kea. The firewall's Loki selectors also require host="morpheus". Two rules read the new stream: SwitchLoginFromUnexpectedSource and SwitchLogsStopped, the second against a five-minute heartbeat because Home Assistant's logins came once in four hours. ship-firewall-logs.md §3 now describes the syslog-ng config that runs, whose generated source cannot take flags(no-hostname), and §10 is the neo procedure. restore-the-firewall.md checks both streams come back. ADR-0127 is accepted, and README's ADR count is corrected to 127. Refs #1659 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(logs): capture neo's login address as login_from, and order the relay rewrite first Every line on the syslog path carries source="network", so Loki renamed the regexp's `source` capture to source_extracted and the rule compared "network": every login to neo, expected or not, would have paged. The capture is now login_from, and the fixtures carry source: network as production lines do; the old rule fails all three login cases against them. ship-firewall-logs.md §10 now makes morpheus's r_host_morpheus rewrite a checked first step, before Alloy trusts the hostname neo. Refs #1659 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
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 changed
This adds ADR-0127, Proposed, about getting
neo's log off the switch. Nothing is deployed and no rule changes.README.md's ADR count goes from 125 to 126.The decision:
neosends syslog over UDP tomorpheusat10.7.7.1:5514, on the switch LAN.morpheusstamps those lines asneo's and relays them over the TLS connection it already holds to Alloy.10.0.99.1and hostnameneogivehost="neo".igc0, from10.7.7.2to the gateway's own address. Nothing is added into or out of Winterfell.Why
The neo audit of 2026-11-13 found the log kept in RAM only. It holds 1,000 lines, Home Assistant's API logins keep filling it, and a reboot empties it. Two facts rule out the obvious answers:
morpheus's pinned leaf (Syslog from morpheus travels over UDP, so a forged 10.0.99.1 still passes the sender allowlist #1049).So
neocan't talk to the existing intake directly. A direct UDP listener would bring back the forgeable path #1049 removed. The ADR sets out why the UDP hop on the switch LAN is different: pfSense's antispoof rule, read from the live ruleset on 2026-11-23, drops a10.7.7.0/24source arriving on any other interface. It also explains why trusting a hostname that syslog-ng writes itself is safe.Refs #1049
Blast radius
None until the ADR is accepted and applied. Applying it will touch:
neo's logging;morpheus;morpheus;syslog.alloy;The pass, the syslog-ng source and the Alloy rule all go in the applying PR, with the runbook section.
secrets/*.sops.yamlVerification
scripts/check_docs.py: passed (docs OK)../scripts/lint.sh: no failures.make validatewas not run, because the change is docs only. CI runs it.neo. The applying PR should confirm them on the switch before relying on them.PR 1503 has an open ADR numbered 0126, so this one is 0127, and whichever merges second rebases the README count.
make validatepassesdocs/, service README, ordocs/roadmap.md)🤖 Generated with Claude Code