Documentation
¶
There is no documentation for this package.
Directories
¶
| Path | Synopsis |
|---|---|
|
internal
|
|
|
api
Package api exposes the HTTP/WebSocket surface: historical event queries, device/stat snapshots, and the live-tail WebSocket feed.
|
Package api exposes the HTTP/WebSocket surface: historical event queries, device/stat snapshots, and the live-tail WebSocket feed. |
|
audit
Package audit records who did what admin-privileged mutation in mikroview itself, when, and to what -- an accountability log for the humans operating mikroview, distinct from internal/flags (which is about behavior mikroview *observes on the network*, not actions taken *in* mikroview) and from internal/store (raw ingested firewall events).
|
Package audit records who did what admin-privileged mutation in mikroview itself, when, and to what -- an accountability log for the humans operating mikroview, distinct from internal/flags (which is about behavior mikroview *observes on the network*, not actions taken *in* mikroview) and from internal/store (raw ingested firewall events). |
|
auth
Package auth implements mikroview's local username/password authentication: user accounts (this file), Argon2id password hashing (password.go), in-memory sessions (session.go), and login-attempt rate limiting (ratelimit.go).
|
Package auth implements mikroview's local username/password authentication: user accounts (this file), Argon2id password hashing (password.go), in-memory sessions (session.go), and login-attempt rate limiting (ratelimit.go). |
|
backup
Package backup reads and writes mikroview's whole persisted state as a single gzipped JSON document (issue #97).
|
Package backup reads and writes mikroview's whole persisted state as a single gzipped JSON document (issue #97). |
|
blocklist
Package blocklist implements local IP/CIDR "known-bad" matching against a small, vetted menu of free, curated threat-intel feeds (issue #113 Part B) -- deliberately *not* an arbitrary user-supplied URL field.
|
Package blocklist implements local IP/CIDR "known-bad" matching against a small, vetted menu of free, curated threat-intel feeds (issue #113 Part B) -- deliberately *not* an arbitrary user-supplied URL field. |
|
config
Package config loads mikroview's configuration with precedence defaults < YAML file < environment variables < CLI flags.
|
Package config loads mikroview's configuration with precedence defaults < YAML file < environment variables < CLI flags. |
|
detect
Package detect watches the ingested event stream for a small set of behavioral patterns worth a human's attention -- a source scanning many ports, a source generating an unusual volume of traffic, repeated attempts against a critical service port from outside the LAN, and a sudden spike in overall traffic.
|
Package detect watches the ingested event stream for a small set of behavioral patterns worth a human's attention -- a source scanning many ports, a source generating an unusual volume of traffic, repeated attempts against a critical service port from outside the LAN, and a sudden spike in overall traffic. |
|
device
Package device resolves syslog source IPs to RouterOS device identity.
|
Package device resolves syslog source IPs to RouterOS device identity. |
|
entities
Package entities is the shared primitive behind two roadmap items (issue #107): a persisted, admin-manageable record per (entity type, key) with an optional friendly label and open-ended tags.
|
Package entities is the shared primitive behind two roadmap items (issue #107): a persisted, admin-manageable record per (entity type, key) with an optional friendly label and open-ended tags. |
|
evict
Package evict bounds maps whose keys come from untrusted input.
|
Package evict bounds maps whose keys come from untrusted input. |
|
flags
Package flags stores manually-clearable behavioral flags raised by internal/detect (port scans, per-source activity spikes, repeated critical-port attempts, global volume spikes).
|
Package flags stores manually-clearable behavioral flags raised by internal/detect (port scans, per-source activity spikes, repeated critical-port attempts, global volume spikes). |
|
geoip
Package geoip resolves public IPs to a country code using an optional, locally-mounted MaxMind GeoLite2-Country database.
|
Package geoip resolves public IPs to a country code using an optional, locally-mounted MaxMind GeoLite2-Country database. |
|
hub
Package hub fans newly inserted events out to connected WebSocket clients for the live-tail view.
|
Package hub fans newly inserted events out to connected WebSocket clients for the live-tail view. |
|
ingest
Package ingest is the payload schema and validation for issue #186's RouterOS push ingest (step 2): what a router-side script may POST to POST /api/ingest/routeros, and the strict decoding that stands between that attacker-shaped input and the rest of mikroview.
|
Package ingest is the payload schema and validation for issue #186's RouterOS push ingest (step 2): what a router-side script may POST to POST /api/ingest/routeros, and the strict decoding that stands between that attacker-shaped input and the rest of mikroview. |
|
logging
Package logging is mikroview's server-side log formatting: leveled, colorized (auto-disabled off a TTY or with NO_COLOR set), with a stable component column so a scrolling terminal or `docker logs` stays scannable.
|
Package logging is mikroview's server-side log formatting: leveled, colorized (auto-disabled off a TTY or with NO_COLOR set), with a stable component column so a scrolling terminal or `docker logs` stays scannable. |
|
matchlog
Package matchlog persists watchlist matches (#243) -- the discrete, rare, high-value events a control-port/watchlist entry raises, distinct from internal/store's high-volume, volatile event ring and from internal/flags' aggregate, capped-evidence judgements.
|
Package matchlog persists watchlist matches (#243) -- the discrete, rare, high-value events a control-port/watchlist entry raises, distinct from internal/store's high-volume, volatile event ring and from internal/flags' aggregate, capped-evidence judgements. |
|
naming
Package naming resolves friendly display names for firewall rule labels, host IPs, and (issue #109) ports from two layers: internal/ config's static RuleNames/HostNames maps (config-driven only, no auto-discovery or liveness tracking the way internal/device's Registry has, since a rule label or a host IP doesn't have a "connection" to observe the way a syslog source does), and, taking precedence when set, internal/entities' live, admin-manageable Store (issue #107) -- so an alias edited in the UI overrides the YAML-configured one for the same key without a restart, while config.yaml stays a fully supported fallback for anything not (yet) given an entity.
|
Package naming resolves friendly display names for firewall rule labels, host IPs, and (issue #109) ports from two layers: internal/ config's static RuleNames/HostNames maps (config-driven only, no auto-discovery or liveness tracking the way internal/device's Registry has, since a rule label or a host IP doesn't have a "connection" to observe the way a syslog source does), and, taking precedence when set, internal/entities' live, admin-manageable Store (issue #107) -- so an alias edited in the UI overrides the YAML-configured one for the same key without a restart, while config.yaml stays a fully supported fallback for anything not (yet) given an entity. |
|
netclass
Package netclass attributes an IP address to a network class -- Tor exit, commercial VPN, cloud/datacenter, privacy relay -- from a small vetted menu of feeds, refreshed on a timer and matched locally.
|
Package netclass attributes an IP address to a network class -- Tor exit, commercial VPN, cloud/datacenter, privacy relay -- from a small vetted menu of feeds, refreshed on a timer and matched locally. |
|
notify
Package notify delivers newly-raised behavioral flags (see internal/flags) somewhere outside the mikroview UI, batched rather than one message per flag so a real incident (many flags firing in quick succession) doesn't flood whatever channel is receiving them.
|
Package notify delivers newly-raised behavioral flags (see internal/flags) somewhere outside the mikroview UI, batched rather than one message per flag so a real incident (many flags firing in quick succession) doesn't flood whatever channel is receiving them. |
|
oidc
Package oidc is mikroview's OIDC/SSO relying-party layer: provider discovery, the Authorization Code + PKCE flow, and ID token verification.
|
Package oidc is mikroview's OIDC/SSO relying-party layer: provider discovery, the Authorization Code + PKCE flow, and ID token verification. |
|
persist
Package persist is the storage boundary the six persisted stores sit on: accounts/tokens (internal/auth), flags, entities, the MAC registry, rule usage, and detector settings.
|
Package persist is the storage boundary the six persisted stores sit on: accounts/tokens (internal/auth), flags, entities, the MAC registry, rule usage, and detector settings. |
|
reputation
Package reputation provides on-demand IP reputation/threat-intel lookups for public addresses, combining a free keyless source (Shodan InternetDB) with an optional source that needs an API key (AbuseIPDB).
|
Package reputation provides on-demand IP reputation/threat-intel lookups for public addresses, combining a free keyless source (Shodan InternetDB) with an optional source that needs an API key (AbuseIPDB). |
|
routeros
Package routeros decodes the body of a RouterOS firewall log message (the part after the syslog envelope has already been stripped) into structured fields.
|
Package routeros decodes the body of a RouterOS firewall log message (the part after the syslog envelope has already been stripped) into structured fields. |
|
routerstate
Package routerstate holds the most recent state each router pushed via POST /api/ingest/routeros (issue #186 step 4): its firewall rule table, NAT table, and the host-identity records (DNS static entries, DHCP leases, WireGuard peers) that give addresses the operator's own names.
|
Package routerstate holds the most recent state each router pushed via POST /api/ingest/routeros (issue #186 step 4): its firewall rule table, NAT table, and the host-identity records (DNS static entries, DHCP leases, WireGuard peers) that give addresses the operator's own names. |
|
rules
Package rules persists a long-lived, per-rule-label usage record -- when a firewall rule was first observed firing, when it last fired, and how many times -- independent of internal/store's ring buffer.
|
Package rules persists a long-lived, per-rule-label usage record -- when a firewall rule was first observed firing, when it last fired, and how many times -- independent of internal/store's ring buffer. |
|
servertls
Package servertls provides mikroview's TLS certificate, either loaded from an operator-supplied cert/key pair or, as the zero-config default, a self-generated local certificate authority + leaf certificate.
|
Package servertls provides mikroview's TLS certificate, either loaded from an operator-supplied cert/key pair or, as the zero-config default, a self-generated local certificate authority + leaf certificate. |
|
setup
Package setup records what mikroview has observed of a router's setup, so the guided wizard (issue #320) can tell an operator that a step worked instead of asking them to go and look.
|
Package setup records what mikroview has observed of a router's setup, so the guided wizard (issue #320) can tell an operator that a step worked instead of asking them to go and look. |
|
store
Package store holds the in-memory, time-windowed event buffer.
|
Package store holds the in-memory, time-windowed event buffer. |
|
suggest
Package suggest is #243 slice 5: watchlist entries suggested from data RouterOS has already pushed (internal/routerstate), rather than an operator having to already know what to watch.
|
Package suggest is #243 slice 5: watchlist entries suggested from data RouterOS has already pushed (internal/routerstate), rather than an operator having to already know what to watch. |
|
syslog
Package syslog parses the BSD/RFC3164-style syslog lines that RouterOS emits, and listens for them over UDP/TCP.
|
Package syslog parses the BSD/RFC3164-style syslog lines that RouterOS emits, and listens for them over UDP/TCP. |
|
tlssniff
Package tlssniff lets one port answer both a TLS client and someone who typed the address into a browser.
|
Package tlssniff lets one port answer both a TLS client and someone who typed the address into a browser. |
|
watchlist
Package watchlist is the operator-owned entry set #243 grew Control Ports into: a persisted, admin-manageable list of (source, destination, port set) tuples, replacing the single flat criticalPorts port list every operator previously shared regardless of what they actually wanted watched.
|
Package watchlist is the operator-owned entry set #243 grew Control Ports into: a persisted, admin-manageable list of (source, destination, port set) tuples, replacing the single flat criticalPorts port list every operator previously shared regardless of what they actually wanted watched. |
|
Package web embeds the built frontend into the mikroview binary so it ships as a single self-contained executable/image.
|
Package web embeds the built frontend into the mikroview binary so it ships as a single self-contained executable/image. |
Click to show internal directories.
Click to hide internal directories.