Skip to content

Releases

v0.28.0

Choose a tag to compare

@github-actions github-actions released this 16 Nov 21:51
bc78d1b

Upgrade notes

  • Follow the ordered 0.27.0 → 0.28.0 procedure for the database-wide maintenance window. Prepare detector scripts and private token-file paths before stopping the old controllers; mint tokens only after migration 022 creates api_tokens. prefixdctl tokens create does not migrate the database. Include shutdown, migration and the first confirmed lease extension in the downtime budget, and prepare the event index concurrently when needed.

  • Alertmanager notifications identify a firing. Both firing and resolved alerts require a nonblank fingerprint and valid RFC3339 startsAt; their shared event ID combines both. Drain or let expire existing Alertmanager mitigations before upgrading, because new episode IDs do not pair with historical fingerprint-only bans. Standard Alertmanager webhooks already supply both fields. Historical unban replays with an active target but no saved withdrawal intent now return 409 for operator review. See the upgrade guide.

  • Interrupted detector bans. Migration 026 preserves the original admission POP: new incomplete or failed bans with no admitted intent can resume using the same event ID on that POP. Another POP refuses the replay; use separate event IDs for separate intended POP admissions. Historical ambiguous attempts return an explicit unknown outcome conflict; inspect their event, mitigation and audit before authorizing a new admission with a new ID. Install jq on FastNetMon hosts before reinstalling the script: it requires successful curl completion and valid JSON with a recorded admitted outcome and mitigation UUIDs before treating a retried 409 as local intent, and logs INTENT_RECORDED. See interrupted detector bans.

  • Portless detector police rules match the whole protocol. UDP/TCP events without destination ports no longer borrow the service's allowed_ports. New rules police all traffic of that protocol to the victim, legitimate traffic included. Review rates, or set require_top_ports: true and supply detector ports. Portless UDP/TCP detector discard is refused; prefix TCP police still requires ports. Existing rules keep their saved matches until expiry or withdrawal. See detector port selection.

  • If earlier versions ran with debug logging, treat retained login logs as credentials and reset affected operator passwords; those logs can contain password hashes. See earlier debug logs.

  • Reload the bundled Prometheus rules to enable PrefixdLeasedMitigationsAtRisk, which uses new leased-intent and renewal metrics from the upgraded controller. Keep 15-second scrape and evaluation intervals; see leased outage alert.

  • Compose needs POSTGRES_PASSWORD. docker-compose.yml no longer falls back to the published prefixd_secret; every Compose command refuses to run until the variable is set. Before upgrading an existing Compose stack, put the password its database was created with into .env, mode 0600: POSTGRES_PASSWORD=prefixd_secret if you never set one. A different value locks the controller out of PostgreSQL, and with leased FlowSpec its rules lapse within one lease while it cannot start. scripts/compose-bootstrap.sh env generates a password for a fresh checkout only, and refuses when a PostgreSQL volume exists. If .env already sets the variable, there is nothing to do. An exported POSTGRES_PASSWORD overrides .env; keep it unset. See Compose database password.

  • The FastNetMon script needs PREFIXD_API. It no longer defaults to http://localhost:8080; without the variable it logs an error and posts nothing. Set it in /etc/default/prefixd to the controller's ingress before installing the new script.

  • The shared bearer token is removed. http.auth.mode: bearer and http.auth.bearer_token_env are refused at startup, on reload and by prefixd --check, each naming its removal release, and the controller no longer reads PREFIXD_API_TOKEN; it logs a warning naming the variable when it is still set and starts normally. Before upgrading, inventory every client of the shared token, stage http.auth.mode: credentials, remove bearer_token_env and the variable from the staged configuration and environment, and run the new binary's prefixd --check. After the upgrade, mint one token per detector and automation with prefixdctl tokens create and install it; detectors get 401 until then. An ingest token cannot read, so a custom detector script that looks up and withdraws mitigations must unban by event instead, naming the victim, as the bundled FastNetMon script does. See source-bound ingest tokens.

  • Ingest is bound to the credential's source. Every ingest route (/v1/events, the batch route, every /v1/signals/* adapter and the corroborator) accepts an ingest token only for the source it is bound to, and an Admin for any source. Operator sessions and operator tokens get 403 there. A mismatched source gets 403 naming the claimed and bound sources and writes nothing; one mismatched item refuses a whole batch. FastNetMon hostgroup alerts on /v1/signals/fastnetmon need a token bound to fastnetmon-hostgroup. Mint one ingest token per detector source.

  • A detector unban names its victim. It withdraws the live mitigations for that victim on the controller's POP that the bound source created, and answers no_active_mitigation when there are none; event_id no longer selects them, and the statuses not_found and ignored_no_event_id are gone. An unban with a vector other than unknown withdraws only that vector's mitigations, with UDP floods and amplification as one family; FastNetMon unbans send unknown. The unban is stored with its POP and targets and all immutable withdrawal intents atomically before any delete; it answers 503, touching nothing, if that transaction fails. A resend of an unban event ID on the same POP reuses those targets, and one naming another victim gets 409. With correlation, only the source whose event met the threshold withdraws the mitigation by unban. The first failed delete of any kind stops the unban with 503 and the rest of its intents pending, and a storage failure on the unban path is 503, not 500. A mode: corroborating source's unban is now refused on the batch route and every adapter too, as on /v1/events, and stores nothing. An unban with nothing to withdraw records the new event outcome no_active_mitigation; event filters that counted such unbans as withdrawn must add it; Alertmanager and webhook adapters report withdrawn or no_active_mitigation per unban and answer 503 when one failed, and withdrawn_noop is gone.

  • Detector audit actors name the credential. Detector-created mitigations, their refusals and detector unban withdrawals record token:<name> for an ingest token and webhook:<adapter> for an HMAC adapter, with the source in details.source; an Admin who posts an event is recorded as that Admin. Audit filters that matched a source name in actor_id must match details.source.

  • Webhook adapter refusals. At startup, on reload and through PUT /v1/config/correlation: auth.type: none is refused unless http.auth.mode is none; an HMAC adapter named in blackhole.detector_sources or guardrails.detector_prefix_sources must map fields.source_id; an HMAC adapter that maps fields.action must map fields.source_id, so a replayed signed unban reuses its original targets; and an HMAC auth.secret_env must name a variable in the PREFIXD_WEBHOOK_ namespace whose value is at least 32 bytes. Rename existing secret variables, for example RADWARE_WEBHOOK_SECRET to PREFIXD_WEBHOOK_RADWARE_SECRET. Adapter names must match ^[a-z0-9][a-z0-9-]{0,63}$, and a disabled adapter skips these refusals until enabled. An adapter named in either allowlist answers 400 to a payload in which any ban has no event ID, and an HMAC adapter refuses an unban with no event ID as that item's error. prefixd --check reads adapter secrets from its environment, so run it with the controller's. blackhole.detector_sources and guardrails.detector_prefix_sources entries must match ^[a-z0-9][a-z0-9_-]{0,63}$.

  • This release adds migration 024, a nullable detector_source column on withdrawal_requests that keeps a detector unban's source for its completion audit and metric. It rewrites no row and adds no rollback constraint of its own.

  • This release adds migration 025, nullable unban_pop and unban_target_ids columns on events that hold a detector unban's replay record. It rewrites no row and adds no rollback constraint of its own.

  • Reinstall the FastNetMon script on every FastNetMon host. It posts ban and unban events with an ingest token bound to fastnetmon, read from PREFIXD_TOKEN_FILE or PREFIXD_TOKEN and passed to curl on stdin. It no longer reads PREFIXD_OPERATOR, UNBAN_QUERY_* or WITHDRAW_*; BAN_POST_ATTEMPTS and BAN_POST_DELAY_SECONDS are renamed EVENT_POST_ATTEMPTS and EVENT_POST_DELAY_SECONDS. It refuses to run without a token unless PREFIXD_AUTH_MODE=none, and refuses a zero connect or total timeout. See [FastNetMon](https://github.com/lance0/prefixd/blob/v...

Read more

v0.27.0

Choose a tag to compare

@lance0 lance0 released this 15 Nov 18:02
e91db1d

prefixd 0.27.0 is a safety and correctness release. Withdrawals require a reason; startup refuses ${...} placeholders, unknown playbook keys and alert destinations that are not https on a public host; and rate limits apply per request class and client, so a detector flood cannot block withdrawals. The shipped rustbgpd configuration now leases FlowSpec rules, so rustbgpd withdraws them when prefixd stays down longer than one lease. Detector events can create guarded prefix mitigations behind an opt-in, each stored event records its outcome, and the dashboard adds a per-mitigation audit timeline, a data-freshness indicator and read-only scrubber views. It requires rustbgpd v0.83.0 and applies migration 020.

Upgrade notes

  • Follow v0.26.0 → 0.27.0 for the order: check the configuration first, upgrade rustbgpd while the 0.26.0 controller runs, wait for it to restore the speaker's rules, then replace the controller and dashboard.
  • The shipped configs/prefixd.yaml, which the rustbgpd Compose profile bind-mounts from the checkout, now sets bgp.rustbgpd.leased_flowspec: true. After git pull, new enforced FlowSpec rules are added under the controller's rustbgpd injection lease. A controller outage longer than one lease (blackhole.lease_seconds, 60 by default) now removes active mitigations from rustbgpd, by design, while the database still holds them; the restarted controller re-adds the ones still active. A controller replacement must finish before the old controller's lease runs out, which can be as little as two thirds of a lease after it stops, since renewal runs about every lease_seconds / 3. To keep rules announced through a controller outage, set leased_flowspec: false before the first leased rule is added. Afterwards, startup refuses false while any leased rule is active or awaiting withdrawal. A refused controller renews nothing, so rustbgpd withdraws those rules within one lease while the database still holds them. To opt out later, withdraw or let expire every leased FlowSpec mitigation, confirm no withdrawal is pending, then set false. Rules added before the change stay unleased until they are withdrawn or expire, and startup accepts the mix. With the setting on, startup also refuses when the lease probe or the speaker's FlowSpec read fails, and when rustbgpd holds rules under this controller's owner that the database cannot explain. The code default, the GoBGP profile and configurations that omit the key stay unleased. See leased FlowSpec.
  • Withdrawals now require a reason. POST /v1/mitigations/{id}/withdraw and POST /v1/mitigations/withdraw return 400 for an empty or whitespace-only reason. POST /v1/diversions/{id}/withdraw requires a JSON body with a nonblank reason and no longer records operator withdrawal by <user>: a blank reason returns 400, {} returns 422, a bare POST with no Content-Type: application/json returns 415, and an empty JSON body 400. An older prefixdctl diversions withdraw ID without --reason sends {} and gets 422. Update scripts and clients that withdraw without a reason; see withdrawal reasons are required. prefixdctl mitigations withdraw and prefixdctl diversions withdraw refuse a blank --reason, and diversions withdraw now requires one. The dashboard withdrawal dialogs require a reason and count its UTF-8 bytes against the 1,024-byte limit. Detector unbans and the bundled FastNetMon script are unaffected.
  • http.rate_limit.events_per_second and burst now size one bucket per request class and per client instead of one bucket for the whole listener. Total admitted load can reach the number of classes times the number of clients times the old cap. If you set a low cap to protect PostgreSQL or the speaker, re-evaluate it; see per-class rate limits.
  • A scrubber profile with a VPN scope must use only that scope's address family. 0.26.0 started with a scoped profile that also listed destinations or a target of the other family; startup now refuses it and names the profile and field. Split each such profile into one profile per family, for example scope: TRANSIT and scope: TRANSIT6, and remove the other family's target and destinations from each. Startup also refuses a redirect_route_target equal to one of the scope's route_targets; choose the scrubbing VRF's own route target. Changing a profile requires draining its outstanding diversions with the 0.26.0 controller first; see scoped scrubber profiles.
  • Before upgrading, rename correlation_override: to correlation: in playbooks.yaml. ADR 022 and the 0.18.0 entry below documented the wrong key, which earlier releases ignored. Delete match.source, match.protocol, default_playbook and any other key not in the configuration reference. Otherwise startup fails and reload is refused, naming the key. See unknown playbook keys.
  • Before upgrading, search the uncommented values of prefixd.yaml and alerting.yaml for ${; v0.26.0's shipped prefixd.yaml has some only in commented examples. prefixd never expanded these placeholders, which earlier examples showed, and now refuses them at startup and reload, naming the key. Replace an alert secret with its *_env key, and delete storage.connection_string: "${DATABASE_URL}" while keeping DATABASE_URL set. See configuration placeholders.
  • Breaking: startup and reload now refuse an alerting destination that only the alerting editor refused before: a URL that is not https://, or whose host is localhost or a literal private, loopback, link-local or other non-public address, in a Slack, Discord or Teams webhook_url, PagerDuty events_url or generic url. Startup and reload check alerting.yaml or, without it, the alerting section of prefixd.yaml. 0.26.0 accepted such a destination. Before upgrading, check that each alerting destination uses https and a public host. The error names the file and the key, never the URL; see alert destination URLs. A malformed alerting.yaml now stops startup before PostgreSQL and the speaker are contacted.
  • Breaking: prefixd now requires rustbgpd v0.83.0 or later and refuses to start against v0.82.x or older with rustbgpd 0.82.0 is older than the minimum 0.83.0; upgrade the speaker first. Upgrade rustbgpd before prefixd. rustbgpd v0.83.0 refuses a config that sets the gRPC listener access_mode key; the shipped configs/rustbgpd.toml does not set it. See rustbgpd v0.83.

Known limitations

  • The client key is the TCP peer address, and prefixd does not read forwarded headers. The default Compose stack doesn't publish port 8080, so prefixd sees two clients: nginx, which carries every detector and CLI request, and the dashboard container, which carries every browser session. All detectors therefore share one ingest bucket, and all operators share one bucket per class. Class isolation is what keeps a detector flood or login storm from returning 429 to withdrawals in that topology.
  • 429 responses keep the retry_after_seconds body field and send no Retry-After header.

Security

  • Parse errors for prefixd.yaml, correlation.yaml and alerting.yaml no longer quote the offending value, which could be part of a secret such as storage.connection_string or a webhook URL, in the reload log or startup error. They name the file, key path, line and column instead. Inventory and playbook errors keep their full detail.
  • Alert delivery errors no longer include the request URL, which could carry a webhook secret or a Telegram bot token, in the controller log or the POST /v1/config/alerting/test response.
  • Session cookies are now Secure by default unless auth.mode is none, including behind a TLS-terminating proxy. Previously only native http.tls set the flag. A deployment that browsers reach over plain HTTP must set http.secure_cookies: false; the shipped Compose configurations do. See Secure session cookies.
  • quinn-proto, quinn-udp — Updated quinn-proto 0.11.18 → 0.11.19 and quinn-udp 0.5.14 → 0.5.16 in both lockfiles, which fixes a MAX_STREAM_DATA frame opening streams beyond the stream limit (RUSTSEC-2026-0523), a long Retry token panicking or exhausting memory in a QUIC client (RUSTSEC-2026-0524) and a receive loop spinning after a truncated datagram (RUSTSEC-2026-0538). The crates are locked only through reqwest's optional http3 support, which prefixd does not enable, so no build compiles them. No advisory exception is added.

Added

  • An alerting guide covers Slack, Discord, Teams, Telegram, PagerDuty, Opsgenie and generic webhook destinations: platform setup, *_env secrets for Compose and systemd, the dashboard editor, per-destination events, test alerts, message formats, troubleshooting and current limits. The README and documentation index link to it, and a unit test loads every example in it.
  • prefixd_http_rate_limited_total{class} counts requests reject...
Read more

v0.26.0

Choose a tag to compare

@github-actions github-actions released this 12 Nov 23:41
e2f5214

prefixd 0.26.0 adds an RFC 8955 TCP flags match to manual FlowSpec rules and an optional symmetric return leg for scrubber diversion, which pairs the inbound diversion with a source-matched rule for the victim's return traffic. Both are off until configured: TCP flags need guardrails.allow_tcp_flags_match, and the return leg needs a scrubber profile with return_leg. The release also updates rustix for RUSTSEC-2026-0486, which only test code reaches. It applies no migration, keeps rustbgpd v0.81.0 as the minimum, and loads a 0.25.0 configuration as it is.

Upgrade notes

  • Upgrade a v0.25.0 deployment with v0.25.0 → 0.26.0. No database migration is required; migration 019 remains the latest.
  • guardrails.allow_tcp_flags_match is no longer reserved. It now admits the new TCP flags match and no longer logs a startup warning. Leave it false until the receiving routers are qualified for TCP flags matches.
  • Rows with tcp_flags fail to load on an older controller. Withdraw them before a downgrade; see the downgrade procedure.
  • Scrubber profiles accept an optional return_leg. No migration is required, and rows and profiles without one keep their JSON and wire bytes. 0.25.0 and earlier refuse a configuration with return_leg, and refuse to start while any outstanding diversion was admitted under a profile with return_leg, including inbound-only UDP rows, which also stops ordinary TTL expiry. Withdraw every such diversion and remove return_leg before a downgrade; recovery is to roll forward and drain. See the downgrade procedure.
  • A profile with return_leg needs max_active of at least 2, and each export_community must be unique across profiles and differ from every blackhole community.
  • Diversion quotas now count a pair as two rules against the profile's max_active and the customer, POP and global caps, including for ordinary mitigation admission. Rows without a return leg still count once.

Known limitations

  • prefixd qualifies the return leg's control plane only: the exact speaker rule, its read-back and its community-scoped export to the return peers. Qualifying that the return routers forward the victim's traffic to the scrubber, and that the scrubber handles both directions, is the operator's responsibility.
  • Router support for TCP flags matches varies. prefixd qualifies speaker encoding and read-back, not router installation or forwarding.
  • The 0.25.0 known limitations otherwise still apply.

Security

  • rustix — Updated 1.1.4 → 1.1.6 in both lockfiles, which fixes the extended-attribute functions marking unwritten bytes as initialized for a zero-length buffer (RUSTSEC-2026-0486). prefixd uses only rustix::process; the affected rustix::fs functions are reached through the test-only testcontainers archive path. No advisory exception is added.

Added

  • Global IP-target scrubber profiles can add a symmetric return_leg (ADR 030 amendment). For a TCP diversion, the controller derives a destination-less rule with the victim as source, the mirrored ports as source ports, an optional SYN+ACK selector and a required export_community, under the same target, owner, revision, readiness and latch. Both legs are added in one pass and the row is active only when one read-back shows both; any failed, missing or mis-exported leg drains both. Requests without a protocol and source-selected TCP requests are refused for such profiles, and VPN and redirect-to-VRF profiles refuse return_leg. Readiness reports for these profiles require a return_leg object. A pair is refused while any live or pending rule has a source containing its victim, and such rules are refused while the pair is outstanding. Diversion responses, diversion_updated, GET /v1/scrubbers, OpenAPI, prefixdctl JSON, audit details and the dashboard show both legs and each leg's export evidence. Released fixtures on rustbgpd 0.81.0 and 0.82.0 prove the exact return-leg add, read-back, revision-fenced delete and community-scoped export to the return peers only; router forwarding remains unqualified.

  • Manual discard, police and VPN mark rules accept an RFC 8955 type 9 tcp_flags match, for example {"set": ["syn"], "not_set": ["ack"]}. It requires protocol TCP and guardrails.allow_tcp_flags_match, has one canonical form and rule identity, and is encoded and read back exactly by rustbgpd 0.81.0 and 0.82.0 and GoBGP. A local speaker rule with type 9 in any other form fails the inventory read rather than being treated as a prefixd rule. API, OpenAPI, WebSocket messages, prefixdctl (--tcp-flags-set, --tcp-flags-not-set and match summaries), dashboard displays, the flowspec_match.tcp_flags capability and the flowspec_tcp_flags capability metric expose it. A refusal without the flag counts as prefixd_guardrail_rejections_total{reason="TcpFlagsMatchNotAllowed"}. Scrubber diversions refuse request-supplied TCP flags. Router support varies; qualify receivers before enabling the flag.

Changed

  • The rustbgpd guarded inventory read no longer fails on a local FlowSpec rule without a destination component that another guarded owner holds or that has no owner. Such a rule previously latched every scrubber profile; it now occupies its key, refuses diversion for every victim of its family, or of both families when it has no prefix component, and is never deleted. The ordinary reconciler's local read still fails on an unowned rule it cannot decode.

Documentation

  • The API reference lists the source and amplification matches that VPN mark rules already accept, and FEATURES describes VPN FlowSpec.
  • ADR 030 records that a new profile revision for a return_leg change is an operator procedure, not a check the controller enforces.

Artifacts

Container images, tagged 0.26.0 and 0.26:

  • ghcr.io/lance0/prefixd@sha256:20fb9590b3e2b843d00065a85cc28f50fdc084610f10a6c9fc0a8660545cadd2
  • ghcr.io/lance0/prefixd-dashboard@sha256:67430ba0481ba62f003d9b175180f1b8184c792f07f4055d35dc5320005eed4f

SHA256SUMS:

b7649db067d7ffd1b7f0aa90dc434e9f77801b51c520963dc154faa3a2e5bdf6  prefixd-linux-amd64.tar.gz
9fc950472743b017efc4e67174bc267f8b211fdc2a57e217159e41a3aff4424c  prefixd-sbom.cdx.json

Full changelog: v0.25.0...v0.26.0

v0.25.0

Choose a tag to compare

@github-actions github-actions released this 10 Nov 19:48
0bdcc6a

Upgrade notes

  • Upgrade a v0.24.0 deployment with v0.24.0 → 0.25.0. No database migration is required; migration 019 remains the latest.
  • Copy the updated scripts/prefixd-fastnetmon.sh to every FastNetMon host. It sends explicit 0.9 confidence and logs NO_MITIGATION when a 2xx response has no mitigation_id. A ban that an older script recorded without confidence can now meet the shipped correlation threshold and create a mitigation. It also sources /etc/default/prefixd and requires curl.
  • The shipped prefixd.yaml and prefixd-gobgp.yaml no longer contain a correlation section; correlation.yaml is the only source for those Compose configurations. An inline section still applies when no correlation.yaml exists. If you relied on the inline section with no standalone file, create one before switching to the new shipped main config: with neither, correlation is disabled.
  • Existing prefixd-config volumes keep their inventory, playbook and correlation files. Merge the new ack_flood playbook into /etc/prefixd/playbooks.yaml; checkout edits do not reach the volume.
  • Compose pins rustbgpd 0.82.0 and exposes PREFIXD_RUSTBGPD_IMAGE. VPN FlowSpec also needs l3vpn_ipv4_flowspec/l3vpn_ipv6_flowspec on the rustbgpd neighbor and the receiver. A v0.24.0 controller has no VPN code and silently ignores bgp.vpn_scopes.

Known limitations

  • VPN FlowSpec qualifies controller intent, speaker export and, in fixtures, a software peer's received routes. Router installation, VRF import and forwarding remain separate platform qualification, including for redirect actions.
  • The FastNetMon Community notify script authenticates with a bearer token only; credentials auth mode rejects it.
  • GoBGP refuses VPN requests; only the rustbgpd 0.82.0 controller paths are qualified for scoped admission.
  • The 0.24.0 known limitations otherwise still apply, including controller-dependent TTL expiry and the administrator-only Scrubbers page.

Added

  • Manual VPN destination rules can mark DSCP 0–63 through rustbgpd, with exact action read-back, immutable withdrawal, repair and restart recovery. API and CSV expose the exact DSCP; CLI and dashboard require an exact marking preview. Global, source-only and automatic marking and marking lifetime extension remain refused; router packet marking requires separate platform qualification.
  • Opt-in VPNv4 and VPNv6 FlowSpec scopes on rustbgpd 0.82.0, with immutable RD/RT identity through admission, withdrawal and recovery. Manual and automatic family defaults preserve global behavior when omitted; GoBGP refuses VPN.
  • Manual source-only VPN discard/police with explicit whole-VRF authorization, source protection, short TTL and scoped quotas. CLI/dashboard previews show destination any and require confirmation. Guarded target-IP diversion can use a configured VPN scope.
  • Profile-configured guarded redirect-to-VRF for VPNv4 and VPNv6. The controller preserves the action route target separately from scope RTs, retains existing readiness/re-arm checks and freezes the action through withdrawal retries. Receiver installation and forwarding require separate qualification.

Changed

  • Record VPNv4/v6 five-action software-peer and recovery qualification, including exact receiver attributes and independent withdrawal. Router installation and traffic enforcement remain separate qualification.

  • Vendor the rustbgpd v0.82.0 controller schema and test the existing global lifecycle against its pinned image as well as v0.81.0. The global daemon minimum remains v0.81.0; VPN support requires a successful family probe.

  • Unknown keys under bgp now fail configuration loading instead of being ignored. Check a 0.24.0 prefixd.yaml for misspelled BGP keys before upgrading.

  • Pin Compose to rustbgpd 0.82.0 and expose PREFIXD_RUSTBGPD_IMAGE so VPN deployments are not silently recreated on 0.81.0.

  • Remove the duplicate correlation block from the shipped prefixd.yaml and prefixd-gobgp.yaml; correlation.yaml is the only source for those Compose configurations, because it already replaced that block whenever it existed. The inline fallback still applies when no standalone file exists. Existing prefixd-config volumes keep their copies: merge the new ack_flood playbook into /etc/prefixd/playbooks.yaml before relying on it.

Fixed

  • Send explicit ban confidence (0.9) from the FastNetMon Community notify script, with or without jq, so bans meet the shipped correlation threshold. Existing installations must copy the updated script to the FastNetMon host.
  • Refresh the separate fuzz lockfile after the controller's tower-http 0.7 upgrade so locked fuzz builds and release preparation use a consistent graph.
  • Ignore RUSTSEC-2026-0459 (libsqlite3-sys) in both full-lock audits. SQLite is an optional, never-compiled sqlx driver (postgres only), and sqlx-sqlite 0.8.6 requires ^0.30.1 while 0.9.0 still caps below the patched 0.39.0. Remove the exception when sqlx accepts 0.39.
  • Log NO_MITIGATION with the response status instead of SUCCESS when the FastNetMon notify script receives a 2xx event response without a mitigation_id, so an unowned victim, unmet correlation or missing playbook is visible in the script log.
  • Ship an ack_flood playbook, so every vector the FastNetMon notify script can emit has a port-independent default instead of returning accepted_no_playbook.
  • Keep signal-group corroboration sticky after it is first met, matching ADR 022 and the API docs, even when decay later drops derived confidence below the threshold.
  • Source /etc/default/prefixd from the FastNetMon notify script, as its documentation already described, instead of silently using only the process environment.
  • Fail the FastNetMon notify script with an explicit curl is required error instead of an opaque shell error when the host lacks curl.
  • Log and retry FastNetMon unban delivery when curl fails instead of exiting silently under set -e, and remove GNU-only head -n -1/date -Iseconds from the notify script.

Artifacts

Container images, tagged 0.25.0 and 0.25:

  • ghcr.io/lance0/prefixd@sha256:5565f30a6907fc50a136c51672008f6b51d9ba8c29259ca0ca9acd308ecdd37b
  • ghcr.io/lance0/prefixd-dashboard@sha256:c8c44ebe13efe3ad213a5bb10f71cbc984a463ee4b5ca22853f8db0f3cc83325

SHA256SUMS:

668342eb9efedd67396e0e9a01575579b8803eef2d22a54a97f45a6773b25316  prefixd-linux-amd64.tar.gz
003682170834a3b6a6a6f57ac8e505d3b0e7cd938d0e81df352706c78f13eb25  prefixd-sbom.cdx.json

Full changelog: v0.24.0...v0.25.0

v0.24.0

Choose a tag to compare

@github-actions github-actions released this 02 Nov 21:20
e58e29a

prefixd 0.24.0 adds manual scrubber diversion through rustbgpd's guarded FlowSpec contract. It is disabled by default and needs an administrator, a configured profile and fresh readiness. The release also reports per-peer FlowSpec export on rustbgpd, searches and pages the complete mitigation and event history on the server, and, with opt-in leasing, detects a rustbgpd restart before the next lease renewal. It requires rustbgpd v0.81.0, which must be upgraded first, and migration 019 adds the scrubber diversion table on startup.

Upgrade notes

  • Follow v0.23.1 → 0.24.0 in the upgrade guide: upgrade rustbgpd to v0.81.0, then replace the controller and dashboard, then copy grafana/prometheus-alerts.yml. prefixd refuses to start against v0.80.x with "upgrade the speaker first". See rustbgpd v0.81.
  • Migration 019 applies on startup. It adds the scrubber_diversions table, creates no rows and changes no existing mitigation; no adoption step runs.
  • Scrubber diversion stays off unless scrubber.enabled is set; the only new configuration keys are under scrubber, and a 0.23.1 prefixd.yaml loads as it is. Enable diversion in a separate restart, and drain every diversion before disabling it or downgrading; see scrubber diversion and downgrade.
  • On rustbgpd, health is now degraded when an active FlowSpec rule reaches no Established peer or its export read fails, and a local FlowSpec rule that prefixd cannot represent fails the whole speaker read; remove such foreign rules before upgrading. Existing password hashes keep working, and the new history search parameters leave existing API clients unaffected. The guide lists the other API changes.

Known limitations

  • TTL expiry needs the running controller. Unleased FlowSpec rules and blackholes stay announced if prefixd stops while the speaker stays up; the leased modes, which bound that to one lease, are opt-in and rustbgpd-only.
  • prefixd qualifies control-plane receipts only: local speaker intent, per-peer export and, in fixtures, a peer's received routes. Router forwarding and scrubber behavior are not qualified. A scrubber profile's qualification_receipt is an operator reference that prefixd does not verify.
  • A diversion withdrawal that meets another owner's rule at its match stays outstanding. prefixd never deletes a foreign rule, and there is no break-glass override yet.
  • The dashboard's Scrubbers page is shown only to administrators, although GET /v1/scrubbers and GET /v1/diversions allow any authenticated user.
  • prefixd now reads rustbgpd's per-peer FlowSpec export, but still uses neither its batch reads nor replay-complete signaling. Do not list prefixd in global.gr_eor_replay_owners.
  • The 0.23.0 known limitations otherwise still apply.

Security

  • Update the build-time Markdown parser pulldown-cmark to 0.13.6 in both lockfiles for RUSTSEC-2026-0414 and RUSTSEC-2026-0433. It is used by protobuf code generation; no advisory exception or runtime behavior change is introduced.

Added

  • Add disabled-by-default manual scrubber diversion through rustbgpd's guarded FlowSpec contract: immutable persisted profile/action snapshots, independent owners, authenticated bounded readiness, withdrawal latching and explicit re-arm. API/OpenAPI, CLI and dashboard controls preserve full host matches and require target confirmation. Dry-run sends no speaker mutation; pending withdrawal retains victim exclusion through the authorization barrier and final revision-checked local absence. Router forwarding requires a separate qualified profile receipt. Requires rustbgpd v0.81.0; migration 019 adds the scrubber_diversions table. See the upgrade guide before disabling profiles or downgrading with outstanding diversions.

  • Every /v1/scrubbers and /v1/diversions endpoint requires authentication; arm, preview, create and withdraw also require Admin. Unknown profiles and diversions return 404, disabled scrubbers 409, and an unconfirmed outcome 500. Withdrawal takes an optional reason, also through prefixdctl diversions withdraw --reason, and the dashboard confirms withdrawal with a warning that attack traffic returns to ordinary routing. Create and withdraw finish and record their outcome even if the client disconnects.

  • Each scrubber lifecycle pass reads the guarded inventory once, renews each profile owner once with a window that outlives the next renewal, and bounds rotating export reads. A slow export read marks evidence historical rather than latching; steady passes write no diversion or audit rows. Draining intent admitted by another controller process waits rustbgpd's 120-second window cap. Saved withdrawals cannot return to active or change their first reason or requester. A profile target inside its own destinations is refused.

  • Add a separate guarded FlowSpec speaker boundary for direct target-IP diversion, with exact IPv4/IPv6 action read-back, independent owner windows and revision-fenced deletion. All guarded mutations require the controller fence and use no legacy fallback. Another owner's guarded rule is an occupied key in the guarded inventory, never prefixd intent, and is never deleted. Definitive guarded refusals, such as a window that is not live or a revision mismatch, are named in logs and errors; other failures remain unconfirmed until read back.

  • CI runs the authenticated browser withdrawal smoke against disposable PostgreSQL and pinned rustbgpd, reusing the candidate controller binaries and production dashboard build. It checks pending confirmation, persisted/rendered audit and fresh local speaker intent before and after withdrawal, retains protected failure evidence, and removes its owned stack. No router enforcement qualification is implied.

  • Per-peer FlowSpec export evidence on rustbgpd, keyed by the full canonical match and shown on mitigation detail, authenticated health and the dashboard. Separate bounded FlowSpec metrics preserve the existing blackhole metrics. Both kinds share one fair, rotating 10-second observation budget. Failed and historical reads remain distinct from empty or unsupported observation; committed means the peer's Adj-RIB-Out, not router enforcement. No configuration or schema migration is required, and the existing blackhole alert stays scoped to blackholes.

  • An optional docker-compose.inventory.yml overlay reads configs/inventory.yaml directly from the host for either speaker profile. Existing volume-managed inventories remain the default. The quickstart covers switching workflows, reloading edits and recreating stale file mounts.

Changed

  • Require and pin rustbgpd v0.81.0 for Compose, labs and fixtures, and vendor its unmodified release proto. CI qualifies v0.81.0 and checks that startup refuses the released v0.80.1 image.

  • On rustbgpd v0.81.0, replayed blackholes and FlowSpec rules are selected immediately after a speaker restart instead of waiting for Graceful Restart selection deferral. The 0.23.1 advice to set graceful_restart = false on neighbors that never come up only mattered on v0.80.x. selection_deferred remains a decoded export reason; the PrefixdBlackholeNotExported hint for it and its operator message no longer describe the old hold.

  • prefixd refuses to read a local FlowSpec rule it cannot represent on its rustbgpd speaker, such as one with IPv6 extended communities or an unguarded redirect-to-IP action that another tool injected. The whole read fails rather than dropping the row: reconciliation fails, startup is refused when bgp.rustbgpd.leased_flowspec is set, and GET /v1/speaker/routes returns 502. Remove the foreign rule to recover. A guarded rule of another owner is excluded from these reads instead; a malformed guarded rule in prefixd's own scrubber owner namespace still fails them.

  • Update the password hashing dependency argon2 to 0.6 and drop the unused direct password-hash 0.5 dependency. New operator hashes keep the same Argon2id parameters and PHC format; existing stored password hashes are unchanged and still authenticate.

  • rustbgpd export evidence includes configured addressed peers without an Established session even when the separate peer-session read fails. These peers stay outside Established-peer disposition counts; an all-down roster still warns no_established_peer. Their state is now nullable when no matching FSM observation is available; the dashboard shows that state as unobserved. Unbound interface-only neighbors still use the optional session snapshot. No speaker minimum or metric label changes.

  • The event dashboard now uses 20-row server cursor navigation, literal search across IP and event UUID, and exact source/vector filters. Ordering is fixed by ingestion time. CSV export traverses every matching page and refuses incomplete, duplicate or nonadvancing results. Exports are live and retained in browser memory; large-history memory qualification remains open. GET /v1/events accepts bounded q, source and vector parameters while preserving unfiltered behavior and the existing tuple cursor format.

  • Dashboard CSV exports now quote carriage returns inside fields, preserving detector and audit text as one field instead of creating extra CSV records.

  • The dashboard mitigation list now uses complete server cursor navigation and server-side search, customer, POP and status filters instead of filtering only the newest 100 rows. Pages stay in newest-first order; column sorting of a bounded subset is removed. Selection is page-scoped, and CSV export walks all matching pages, refusing a partial download on failure. Exports are live traversals and retain matching rows in browser memory. Only one page is rendered at...

Read more

v0.23.1

Choose a tag to compare

@github-actions github-actions released this 26 Oct 17:14
2592a8b

prefixd 0.23.1 makes planned rustbgpd restarts clearer and shorter. A blackhole that the speaker holds from selection after its restart now reports the unexported reason selection_deferred, and the example rustbgpd configuration disables Graceful Restart on its placeholder neighbor, so in the Compose quickstart replayed rules are selected as soon as reconciliation re-adds them instead of after the 120-second restart window. There is no migration and no configuration change; copy the updated alert rules.

Upgrade notes

  • Follow v0.23.0 → 0.23.1 in the upgrade guide: replace the controller and dashboard, then copy grafana/prometheus-alerts.yml. No migration, adoption step or configuration change is required, and rustbgpd stays at 0.80.1.

  • selection_deferred is a new value of the reason label on prefixd_blackhole_unexported and of the blackhole export warning. Check your own queries and silences that match reason="pending".

  • If you based your rustbgpd configuration on the shipped example, set graceful_restart = false on any neighbor that never comes up, or remove that neighbor. See speaker upgrade notes.

Known limitations

  • After a planned speaker restart, rustbgpd v0.80.x holds injected routes, blackholes included, from selection while any Graceful Restart peer is down, until that peer sends End-of-RIB or gr_restart_time expires (120 seconds by default). MarkReplayComplete does not end the hold. Disable Graceful Restart on peers that never come up. The example configuration change removes only its placeholder neighbor's hold. prefixd reports a held blackhole as selection_deferred and cannot end the hold.
  • The 0.23.0 known limitations otherwise still apply.

Changed

  • A blackhole that every Established peer reports as pending with rustbgpd's selection_deferred reason now carries the unexported reason selection_deferred instead of pending, in detail, health and prefixd_blackhole_unexported{reason}. The speaker accepted the route but holds route selection after its restart until Graceful Restart peers send End-of-RIB or the restart window expires. Health stays degraded while the route is exported to no peer. A mix of pending reasons stays pending. PrefixdBlackholeNotExported adds a hint for the new reason and keeps its five-minute window, which outlasts the default 120-second hold.

Fixed

  • The example configs/rustbgpd.toml disables Graceful Restart on its placeholder neighbor. That neighbor never connects, so after each planned rustbgpd restart in the Compose quickstart, replayed FlowSpec rules were held from selection until the restart window (gr_restart_time, 120 seconds by default) expired. They are now selected as soon as reconciliation re-adds them. Enable Graceful Restart on real peers that support it.

Artifacts

Container images, tagged 0.23.1 and 0.23:

  • ghcr.io/lance0/prefixd@sha256:15b34cd17c2f3a0ee8f6716482bb5e7a07da8804f407334897d601e0babee389
  • ghcr.io/lance0/prefixd-dashboard@sha256:6ea41bfe9605b318d951efa7c756e93819bfff4f9a3a1c49628c03d91b6e084a

SHA256SUMS:

9a6f9f91dea493ddb4be657a29c4e5d3fefeda2705ce6cffcf91467a4865d4af  prefixd-linux-amd64.tar.gz
f6922b051fea82400ee7464ab06d768ccc59c10d592f6e6fe7ff4c61bdf64c61  prefixd-sbom.cdx.json

Full changelog: v0.23.0...v0.23.1

v0.23.0

Choose a tag to compare

@github-actions github-actions released this 26 Oct 15:47
32da4c5

prefixd 0.23.0 lets manual FlowSpec rules target guarded destination CIDRs and same-family source prefixes, previews manual admission without side effects, and extends an active rule's lifetime with an audit trail, optionally bounded by a new total lifetime cap. The Inventory page, prefixdctl speaker list-routes and GET /v1/speaker/routes show the speaker's local FlowSpec routes. rustbgpd v0.80.0 or later is now required: upgrade it before prefixd. There is no migration; check the destination prefix bounds and inventory.yaml before upgrading.

Upgrade notes

  • Follow v0.22.1 → 0.23.0 in the upgrade guide: upgrade rustbgpd first, then replace the controller and dashboard. No migration or adoption step runs, and grafana/prometheus-alerts.yml is unchanged.

  • prefixd now requires rustbgpd v0.80.0 or later and refuses to start against an older daemon; upgrade the speaker first. Compose and the default speaker fixture pin v0.80.1. Scoped peer observations preserve their interface, and interface-only peers report discovery without aliasing another neighbor. Exact peer metric labels can change. See speaker upgrade notes.

  • Check guardrails.dst_prefix_minlen and dst_prefix_minlen_v6 before upgrading. Earlier releases ignored values below 32 and 128; this release admits manual destination CIDRs down to those lengths. Set them to 32 and 128 first if you do not want CIDRs. See manual destination CIDRs and downgrade.

  • Inventory load and reload now reject an unparseable customer prefix or asset IP. Startup fails on one, and a failed reload keeps the previous inventory; validate inventory.yaml before upgrading.

Known limitations

  • TTL expiry needs the running controller. Unleased FlowSpec rules and blackholes stay announced if prefixd stops while the speaker stays up; the leased modes, which bound that to one lease, are opt-in and rustbgpd-only.
  • guardrails.max_lifetime_seconds bounds ordinary FlowSpec intent in prefixd. It does not cap blackholes or set a deadline on the speaker, and a controller downgrade removes it.
  • Admission preview reserves no capacity, and creation rechecks it. Preview, the local route view and lifetime extension observe neither export nor router enforcement.
  • prefixd does not yet use rustbgpd v0.80's FlowSpec and batch export reads or replay-complete signaling. Do not list prefixd in global.gr_eor_replay_owners.
  • Leave guardrails.allow_src_prefix_match false until the receiving routers are qualified for source-prefix matches.
  • The 0.21.0 known limitations otherwise still apply, except that allow_src_prefix_match is no longer reserved; allow_tcp_flags_match still is.

Security

  • ctutils — Updated 0.4.2 → 0.4.4, which removes secret-dependent branches from constant-time mask generation and u128 comparisons (RUSTSEC-2026-0385). The crate reaches the HMAC signing and verification used for signal webhooks and alert delivery through hmac and sha2.
  • tokio — Updated 1.52.3 → 1.53.3, which deprecates the AsyncFd constructors that let safe code register file descriptors it does not own (RUSTSEC-2026-0386). prefixd does not call AsyncFd directly.

Added

  • Optional nonzero guardrails.max_lifetime_seconds caps each ordinary FlowSpec rule's lifetime from original creation across admission, detector refreshes and operator extensions. Over-cap requests are refused without changing expiry or extension audit; unset preserves existing behavior. Existing rows are never retroactively shortened. Blackhole policy is separate.

  • Authenticated POST /v1/mitigations/preview and the manual rule form's optional Check admission action evaluate the same FlowSpec preparation and safety policy as creation without saving intent or calling the speaker. Results show the complete candidate, owner attribution, requested lifetime, mode and check time, distinguish refusal from unavailable reads, and clear on edits. Capacity is not reserved; creation rechecks. Speaker-side state and router enforcement remain unobserved. Blackhole preview is unavailable. Preview does not take the lifecycle mutex, so it never delays detector ingest, expiry or withdrawal. Its preparation and safety reads have a five-second deadline; timeout returns an unavailable result without saving intent, preserving the prepared candidate when available. Each preview database read runs in a read-only transaction with a transaction-local server deadline, releasing blocked queries and returning its connection to the pool.

  • Operators can extend an active enforced FlowSpec rule from its detail page or POST /v1/mitigations/{id}/extend, with a required reason and atomic old/new expiry audit. Remaining lifetime stays bounded and never shortens the saved horizon; an unchanged horizon writes no revision or audit. Fresh ownership, safelist, binding and match-policy checks protect the exact existing rule, without creating another mitigation, consuming a quota slot or mutating the speaker. Blackholes, simulations, pending and expired intent are refused. Each read-only preparation read runs in a read-only transaction with a transaction-local server deadline, so timed-out checks release blocked queries and return their connections to the shared database pool.

  • prefixdctl mitigations extend requests a guarded FlowSpec lifetime extension with a required TTL and reason. Table and JSON output distinguish a saved extension from an unchanged horizon and include the previous and saved expiry.

  • Manual FlowSpec discard and police rules accept aligned IPv4/IPv6 destination CIDRs in victim_ip when operators deliberately relax existing prefix bounds. Whole-prefix customer ownership, all safelist overlaps and fresh repair checks protect admission; new safelist entries withdraw affected owned rules in full. The dashboard previews the complete match and expiry, keeps CIDRs on their mitigation detail pages, and generates exact-target reports without implying host aggregation. Defaults, detectors, playbooks and RTBH remain host-only.

  • The Inventory page shows the selected speaker's local IPv4/IPv6 FlowSpec routes, complete matches, actions and injection owners. Observation scope distinguishes rustbgpd retained intent from GoBGP accepted local RIB; unsupported or failed reads stay unknown and never appear as an empty table. Customer inventory remains independently available. This view does not prove export or router enforcement and does not include blackholes.

  • Nightly and manually triggered smoke checks execute the existing benchmark bodies once and run both parser fuzz targets with bounded input, time and memory budgets. Logs and fuzz artifacts are retained after failures; these checks make no performance claim. Release preparation keeps the fuzz lockfile's package version aligned with the controller.

  • prefixd_speaker_capability{backend,capability} exposes the selected speaker's runtime capabilities without probing on scrape. An unprobed lease is unconfirmed, distinct from current health or router installation.

  • prefixdctl speaker list-routes and authenticated GET /v1/speaker/routes expose the selected speaker's complete local IPv4/IPv6 FlowSpec inventory, including match, action, rate and injection owner. Backend and observation scope distinguish rustbgpd retained intent from GoBGP accepted local RIB. Unsupported and failed observations return errors, never an empty inventory. These reads also work in dry-run and standby; they do not list blackholes or prove router enforcement.

  • Manual FlowSpec discard and police rules accept a same-family src_prefix CIDR through the API and dashboard. Both speakers encode and read IPv4 and offset-zero IPv6 source prefixes; list/detail, CLI and rule previews show the source scope. speaker.capabilities.flowspec_match adds source_prefix.

Changed

  • prefixd_blackhole_replaced_total{pop} and the PrefixdBlackholeReplaced alert now count unleased blackhole reconciliation repairs that replaced a different local route at the prefix, as well as admissions. The repair also logs an error. Leased adds still do not increment the counter.

  • Announcement counters, announcement latency histograms and BGP session gauges add a bounded backend label. The operations dashboard identifies backend and peer, preserves backend latency groups and shows capability availability.

  • guardrails.allow_src_prefix_match now enables manual source-prefix matches instead of logging that it has no effect. It still defaults to false. Rules without a source prefix keep their existing identity and JSON storage. Before downgrading, drain source-prefix rules and their pending withdrawals as described in the upgrade guide. No database migration is required.

  • A blackhole export read that rustbgpd aborts because the route, its Established peers or their export settings changed between pages now restarts once from the first page. A second abort is an observation error.

Removed

  • The HTTP load helper and its report-parser regression suite. Local verification and CI no longer require hey.

  • The obsolete GoBGP-only lab helper and standalone FRR topology. Use just interop-frr for maintained rustbgpd and GoBGP router receipt tests with isolated fixtures and dated results. The Juniper topologies remain available.

Fixed

  • Operator configuration forms connect visible labels to their controls, keep quiet-hour selections named, and expose webhook field hints and validation errors to assistive technology.

  • Unfocused text inputs, text areas, selects and checkboxes have a boundary of at least 3:1 against page, card, muted and dialog surfaces in light and dark themes. The "Using global event...

Read more

v0.22.1

Choose a tag to compare

@github-actions github-actions released this 22 Oct 02:44
87a225c

prefixd 0.22.1 makes PrefixdBlackholeReplaced clear an hour after the last replacement instead of latching until prefixd restarts, and exports the pre-registered metric series at zero from startup, as the metrics reference already described. It adds no migration, keeps rustbgpd 0.79.0 and loads an unchanged 0.22.0 configuration.

Upgrade notes

  • Follow v0.22.0 → 0.22.1 in the upgrade guide: replace the controller and dashboard, then copy the new grafana/prometheus-alerts.yml to your Prometheus or recreate the Compose Prometheus. No migration or adoption step runs, the configuration is unchanged and rustbgpd stays at 0.79.0.

Known limitations

  • TTL expiry needs the running controller. Unleased FlowSpec rules and blackholes stay announced if prefixd stops while the speaker stays up; the leased modes, which bound that to one lease, are opt-in and rustbgpd-only.
  • The replacement counter is local to the process. A restart resets it without firing or clearing a replacement still inside the alert's hour, and a replacement before Prometheus first scrapes the process is not alerted.
  • The 0.22.0 known limitations otherwise still apply, except that PrefixdBlackholeReplaced no longer latches.

Changed

  • PrefixdBlackholeReplaced no longer latches until prefixd restarts. It fires on a replacement within the last hour and clears an hour after the last one. prefixd exports prefixd_blackhole_replaced_total{pop} for its configured POP at zero from startup, so the first replacement fires the alert. Copy the new grafana/prometheus-alerts.yml to your Prometheus.

Fixed

  • The controller now exports the pre-registered metric series, such as lease renewal and state, export disposition, unexported reason and reconciliation status, at zero from startup, as the metrics reference already described. Before, each series appeared only at its first event.

Artifacts

Container images, tagged 0.22.1 and 0.22:

  • ghcr.io/lance0/prefixd@sha256:23d71f4e1455fc8317ab265d4380febb568d565eea4fbaad07378b98df2a8c9c
  • ghcr.io/lance0/prefixd-dashboard@sha256:a3f440196b00eff8f1cd42ba0f32a8810db7c7e0ebc07619f2e1935590b8b113

SHA256SUMS:

e35e4cf338380c4a9d822f2f7838fbe956eace01faa820a15f5756e2550d6569  prefixd-linux-amd64.tar.gz
63c02e132a0fa7c8852577f4552e6d2147b57a92a6db8c1baac20a841d3f2d9b  prefixd-sbom.cdx.json

Full changelog: v0.22.0...v0.22.1

v0.22.0

Choose a tag to compare

@github-actions github-actions released this 22 Oct 01:16
243e8ad

prefixd 0.22.0 lets operators choose the dashboard's display timezone, counts and alerts on unleased blackhole admissions that replaced an untracked local route, and marks blackhole export evidence retained from before a lost controller fence as historical so health, metrics and the interface no longer present it as current. It adds no migration, keeps rustbgpd 0.79.0 and loads an unchanged 0.21.0 configuration.

Upgrade notes

  • Follow v0.21.0 → 0.22.0 in the upgrade guide: replace the controller and dashboard. No migration or adoption step runs, the configuration is unchanged and rustbgpd stays at 0.79.0.
  • Copy the new grafana/prometheus-alerts.yml to your Prometheus, or recreate the Compose Prometheus. It adds PrefixdBlackholeReplaced on the new prefixd_blackhole_replaced_total{pop} counter and rewords the export_policy text of PrefixdBlackholeNotExported.
  • With rustbgpd, mitigation export_evidence and health detail's speaker.blackhole_exports add historical. After the controller loses and regains its fence, GET /v1/health/detail reports degraded until a fresh complete read replaces each retained blackhole's evidence. Automation that treats degraded as a database or speaker fault should read speaker.blackhole_exports.historical. /v1/ready is unchanged.

Known limitations

  • TTL expiry needs the running controller. Unleased FlowSpec rules and blackholes stay announced if prefixd stops while the speaker stays up; the leased modes, which bound that to one lease, are opt-in and rustbgpd-only.
  • PrefixdBlackholeReplaced latches: the counter is local to the process, so the alert keeps firing until prefixd restarts or the alert is silenced. It records a past replacement, not an active conflict.
  • The 0.21.0 known limitations otherwise still apply.

Added

  • Choose a dashboard display timezone in Preferences. The browser-local choice updates absolute times, charts and tooltips; UTC remains the default, and API timestamps, exports, TTLs and notification quiet hours stay unchanged.
  • Count unleased blackhole admissions that replace an untracked local route with prefixd_blackhole_replaced_total{pop} and alert with PrefixdBlackholeReplaced. The alert latches historical replacement evidence until the process counter resets; admission and leased ownership behavior are unchanged.

Changed

  • Check the Prometheus alert rules and run their promtool unit tests with pinned Prometheus v3.15.0 in just alerts, just gate and a CI job. Nightly and main-push Interop runs no longer cancel each other; a newer PR commit still cancels its superseded Interop run.
  • Run the FRR blackhole scenario with rustbgpd and amplification scenarios with both speakers in Interop CI alongside FlowSpec, retaining separate receipts for each speaker, scenario and workflow attempt, including failed runs.

Fixed

  • Retained blackhole export evidence is explicitly historical after controller ownership is lost, including after ownership returns until a fresh complete read. Mitigation export_evidence and speaker.blackhole_exports report it with historical: true, and health detail is degraded while it remains after ownership returns. Detail preserves historical peer rows and their timestamp on a failed refresh; health and the interface no longer present them as current export. An observation that spans an ownership loss is discarded.
  • Historical blackhole export evidence no longer feeds prefixd_blackhole_export_peers or prefixd_blackhole_unexported, so a failed refresh after ownership returns cannot report the previous owner's committed peers or keep PrefixdBlackholeNotExported firing; it counts as a read error until a fresh complete read.
  • Rotate blackhole export reads between reconciliation passes so the shared observation budget does not repeatedly leave the same mitigations unread. Each pass resumes at the first read the budget cut off, so every blackhole is read within as many passes as it takes the budget to cover the set.
  • Blackhole export-policy warnings now direct operators to the speaker's export policy without guessing that RPKI validation caused the denial.

Artifacts

Container images, tagged 0.22.0 and 0.22:

  • ghcr.io/lance0/prefixd@sha256:1a395ada8535f0fae30bb6aef1f93412c4a70879df817819a28e57ac72211875
  • ghcr.io/lance0/prefixd-dashboard@sha256:eab73d29b2d2e1e7bc7bb63e34f3fcc1ac42db9259f47a3e194d975e1d309f32

SHA256SUMS:

d0ab30ea1ac5751dbd3f18cb21700f883cba9729994088ef50c71ff4efd1c3d1  prefixd-linux-amd64.tar.gz
520e09535d0f65cbedbd18e93ba18c4e69cb76bbdfe9d0fa8c5d76159a93ad69  prefixd-sbom.cdx.json

Full changelog: v0.21.0...v0.22.0

v0.21.0

Choose a tag to compare

@github-actions github-actions released this 21 Oct 00:51
d0c52a9

prefixd 0.21.0 adds blackhole host routes on rustbgpd, created by Admins or by allowlisted detectors, with frozen routes, separate quotas, safelist rechecks, per-peer export evidence and optional injection leases that let rustbgpd remove prefixd's routes when the controller stops. It adds amplification-aware FlowSpec matches on source ports, non-first fragments and packet length, driven by a new udp_amplification vector and detector source-port reports. A PostgreSQL advisory lock keeps a second controller for the same POP in standby, and the new GET /v1/ready tells load balancers which controller holds it. rustbgpd 0.79.0 is now required: upgrade it before prefixd. Startup now refuses the configuration keys removed in 0.20.0, and requires bgp.backend whenever bgp.gobgp_grpc is set.

Upgrade notes

  • Follow v0.20.0 → 0.21.0 in the upgrade guide: upgrade rustbgpd first, then replace the controller. Migrations 016–018 apply on first start, and no adoption step is needed. Leased modes stay off until you set them.
  • prefixd.yaml now fails to load if it contains a key removed in 0.20.0, or sets bgp.gobgp_grpc without bgp.backend (or bgp.mode). 0.20.0 ignored both with a warning. Before upgrading, delete the removed keys and add bgp.backend: gobgp where needed; see removed keys.
  • rustbgpd 0.79.0 is now the minimum speaker version. Upgrade rustbgpd to 0.79.0 before upgrading prefixd: with the rustbgpd backend, startup reads the daemon version and refuses an older or unreadable one ("upgrade the speaker first"). CI and just speakers test only 0.79.0. GoBGP is unchanged. See rustbgpd minimum version.
  • With rustbgpd, GET /v1/health/detail now also reports degraded while an active blackhole is committed to no Established peer, including when the speaker has no Established peer at all. Automation that treats degraded as a database or speaker fault should read speaker.blackhole_exports. /v1/ready and the fence are unchanged. A failed export read keeps the last complete read's result, so it neither raises nor clears degraded.
  • blackhole.leased: true is now accepted with rustbgpd 0.79.0 or later. New enforced blackholes are then added under the controller's owner-scoped injection lease, and rustbgpd removes them within blackhole.lease_seconds if prefixd stops. Blackholes added before the change stay unleased until they are withdrawn or expire. Once leased blackholes exist, startup refuses blackhole.leased: false until they are withdrawn or expire. The vendored rustbgpd proto is now the 0.79.0 release.
  • The default and shipped quotas.max_active_per_customer rise from 5 to 20; explicit configured limits are preserved. Active customer/POP/global quotas now count only FlowSpec rules. Blackholes use their independent POP/global caps, while max_new_per_minute remains shared by both route kinds.
  • Multi-rule event results now follow admission priority: the chunk containing the detector's highest-ranked source port, fragment coverage, remaining chunks by rank, then other static rules in their relative playbook order. Chunk contents and rule identities are unchanged. Event outcomes include canonical scopes and quota names for refusals, backed by reject_rule audits and prefixd_event_rule_quota_rejections_total metrics.
  • A second controller for the same POP and speaker target that shares the database now starts in standby instead of mutating the speaker. The database connection must be direct or through a session-mode pooler: PgBouncer transaction pooling breaks the session advisory lock. Point load balancers and detector routing at GET /v1/ready, not GET /v1/health. --adopt-legacy-speaker and --retire-dry-run-intent now refuse while a controller for the POP holds the fence; stop it first. See controller fence and rolling deploys.
  • With the rustbgpd backend, a guardrails.max_ports above 8, the encoder's per-list limit, now fails configuration load at startup and names both values. Before, rules over 8 ports were saved and then refused at announcement. Lower max_ports to 8 or less before upgrading. Shipped configurations use 5, and GoBGP is unaffected.
  • The guardrails.max_ports default drops from 8 to 5, and the shipped configurations now set 5. FRR 10.7.1 accepts at most five values in one FlowSpec component and resets the whole session on a rule with more, dropping every route on it; see the FRR amplification receipt. Where max_ports is unset, manual and API requests with six to eight ports in one list now return 422, and a detector's from_event source ports split into rules of at most five: a 20-port amplification report becomes four source-port rules instead of three, each counting toward quotas. A configuration that sets max_ports: 8, as earlier shipped files did, keeps it. Raise it only for routers known to accept longer lists. Existing rules are unaffected: the cap applies only to new admissions, so stored rules with six to eight ports stay announced, are repaired after a speaker restart, expire and are withdrawn as before. A detector re-report after the upgrade splits at five, so it creates new rules instead of extending the stored ones, which leave at their TTL.
  • Migration 016 adds withdrawal_requests.rule_kind, flowspec or blackhole. Existing requests become flowspec, which every earlier request was; replay rewrites no mitigation row.
  • Migration 017 adds the nullable events.top_src_ports_json column. Replay leaves every existing event's value NULL and rewrites no other row.
  • Migration 018 replaces the events constraint UNIQUE(source, external_event_id) with a unique index over ban events only, so an unban can share its ban's external ID. Existing rows already satisfy the index, and replay rewrites no row. Earlier releases run with the index and do not restore the constraint.
  • Earlier releases refuse a playbooks.yaml with a udp_amplification playbook or a multi-rule step, by design: a release that ignored the step would widen the rule. Before downgrading, remove such playbooks and withdraw every udp_amplification mitigation; earlier releases also refuse rows with that vector. The shipped configs/playbooks.yaml carries the new playbooks as commented examples only.
  • Before downgrading to 0.20.0 or earlier, withdraw every rule with a source-port, fragment or packet-length match and drain its withdrawals. Those releases ignore the new keys and would withdraw with the wider rule, orphaning the real one on the speaker. See amplification matches and downgrade.
  • Before downgrading to 0.20.0 or earlier, also withdraw every blackhole and every leased FlowSpec rule and drain their withdrawals. Those releases understand neither blackhole rows nor injection owners. See downgrading to 0.20.0.
  • Before enabling blackholes, check the receiving routers' import policy. A /32 or /128 blackhole is RPKI-Invalid wherever it is validated with an origin AS, so a policy that drops RPKI-Invalid before it matches BLACKHOLE drops every blackhole silently. See RPKI filters.
  • A PUT /v1/config/playbooks body that does not decode now returns 400 with {"errors": [reason]} instead of an empty body.

Known limitations

  • A 201 means prefixd saved intent and the speaker accepted the local request. Blackhole export evidence committed means the peer's Adj-RIB-Out, not router receipt or enforcement, and FlowSpec rules have no export evidence. Router enforcement of a blackhole depends on the router's RTBH policy, which prefixd does not verify.
  • TTL expiry needs the running controller. Unleased FlowSpec rules and blackholes stay announced if prefixd stops while the speaker stays up. The leased modes, which bound that to one lease, are opt-in and rustbgpd-only.
  • Blackholes and injection leases need rustbgpd; GoBGP reports both as unsupported.
  • The controller fence sees only controllers that share one database and needs a direct or session-mode connection. It does not stop other tools writing to the speaker.
  • FRR 10.7.1 received the amplification rules but installed none of them as a filter, and accepts at most five values per FlowSpec component. Vendor forwarding qualification remains open.
  • guardrails.allow_src_prefix_match and guardrails.allow_tcp_flags_match are reserved and have no effect.
  • Unsupported unrelated local rules on a GoBGP speaker fail the complete observation and block reconciliation until an operator removes them. GoBGP process metadata is unsupported in health detail.
  • Release binaries are Linux amd64 only.

Security

  • rustls-webpki — Updated 0.103.15 → 0.103.16, which rejects certificate paths through distrusted emSign intermediates (RUSTSEC-2026-0382).
  • webpki-roots, webpki-root-certs — Updated 1.0.5 → 1.0.10, which drop the emSign ECC Root CA - G3 root (RUSTSEC-2026-0381, RUSTSEC-2026-0383).

Added

  • Blackhole export evidence (rustbgpd): once per reconciliation pass, prefixd reads ListPathExportDispositions for each active enforced blackhole, to the last page, and joins it with ListNeighbors. Mitigation detail adds export_evidence (each Established peer's committed, withheld or pending ...
Read more