Skip to content

Releases

v0.84.0

Choose a tag to compare

@github-actions github-actions released this 22 Nov 17:34
0d2c902

Added

  • bgp_rib_outbound_eviction_recovery_seconds{outcome} measures one receiver's recovery build after an owed-row cap eviction or when a dirty resync during an EVPN selection hold defers a rebuild until release. A refused data commit has its own series. See the metric reference.
  • bgp_rib_outbound_owed_drain_step_seconds{scope}: the duration of one owed-route drain step toward one receiver on the RIB actor, with scope cursor (IPv4 or IPv6 unicast or labeled unicast, or EVPN, owed whole), keyed (a receiver's owed routes) or whole (one whole-family pass of another family). Bucket edges include 50 ms and 250 ms. See the metric reference.
  • Config diffs and SIGHUP errors name individual restart-required RPKI, BMP and MRT fields. Credential values, free-form BMP text and MRT paths are redacted. rbgp config last-reload and the GetLastSighupReload RPC list the fields observed to require a restart. The versioned CLI JSON envelope advances to rbgp-json/1.5.
  • ListSessionEvents reports evicted_total and oldest_retained_unix_ms, bgp_session_event_history_evicted_total counts evictions, and NeighborState.last_error_unix_ms records when last_error was set. rbgp events sessions prints a stderr note after an eviction, and rbgp neighbor shows when the last error occurred, in JSON as last_error_unix_ms. The proto fields are additive.
  • During a startup IPv4 or IPv6 unicast selection release, a ListReceivedRoutes, ListBestRoutes or ListAdvertisedRoutes client can set accept_releasing to read the rows already committed. Every page from this daemon carries selection_release.releasing_families, including empty and final pages. A client that omits the opt-in gets its page after the release, and readiness counts and bgp_rib_loc_prefixes keep the last complete value until it finishes. A limited rbgp rib query opts in and names the releasing families after the rows, and in JSON as releasing_families; against an older daemon the text reports that release status is unavailable and JSON omits the field. The proto fields are additive. See pagination.

Changed

  • bgp_rib_actor_turn_duration_seconds and bgp_rib_actor_work_duration_seconds gain a 250 ms bucket edge (le="0.25"), between the existing 200 ms and 500 ms edges, so a turn or work unit can be placed against a 250 ms bound. The existing edges are unchanged and buckets are cumulative, so queries and dashboards that read an existing le value, _sum or _count are unaffected; each series exports one more bucket line. See the metric reference.
  • After non-unicast selection release, receivers get End-of-RIB over several RIB turns. Outstanding release work runs every 10 ms. An uncontended VPN release visits up to eight receivers per tick. An RT-Constrain membership rebuild releases up to two completed holds per tick after the initial batch. A full writer keeps its ordinary retry deadline: a refused End-of-RIB is offered again one second later. Due retries then run eight receivers per 10 ms tick until each has had one offer, and the next round waits another second. bgp_rib_dirty_resync_total no longer counts ticks that only retry or release End-of-RIB markers.
  • MRT dumps encode and write bounded chunks instead of retaining a second complete route table and encoded file. Peer metadata is captured at the start; peers joining during a dump are excluded. EVPN steps visit at most 4,096 slots, including vacancies, and use temporary disk sorting to retain record order. Owned route chunks and encoded records each have an 8 MiB cap; an oversized prefix fails the dump without publishing a partial file. A neighbor whose EVPN table is removed, cleared or replaced mid-dump keeps the rows already read and the rest is skipped as withdrawn. The dump is staged in the output directory for its whole duration, and startup removes stage files a previous process left behind. See dump consistency and limits.
  • When the first member of an eligible unicast update group joins a RIB with at least 10,000 best routes, the RIB can install unrelated updates while it builds the group table. The initial member replay follows publication of the complete table. This applies to plain single-best unicast groups with no export policy or peer-specific export controls. A policy change that needs the same unfinished table keeps the old policy in effect until the table is ready and earlier route updates have reached distribution. A cold registration can reclaim an unused table left by a completed policy preparation. When a policy change needs a different cold destination, unrelated updates can still reach peers under the installed policy while the first build finishes or the unused table is retired.

Removed

  • Removed rustbgpd --migrate-config downgrade-v0.64 and its --validator option. To roll back to v0.64.0, restore a config that release accepts or use the v0.83.0 offline tool to convert the RFC 8212 posture. See the rollback procedure.
  • The deprecated config key spellings max_prefixes_ipv4, max_prefixes_ipv6, max_prefixes_received_ipv4, max_prefixes_received_ipv6, max_prefixes_out_ipv4, max_prefixes_out_ipv6 and recovery_delay_secs are no longer accepted. The published JSON schema no longer lists them.

Fixed

  • An administrative reset (rbgp neighbor reset, gRPC ResetNeighbor) no longer leaves the peer's routes retained under graceful restart or LLGR in two cases. When the peer negotiated the RFC 8538 N bit and draining queued output before the close raised Cease / Out of Resources, that plain Cease/8 made both sides retain each other's routes; it is now sent as a Cease / Hard Reset carrying the Cease/8. When the reset found the session Idle after an earlier graceful-restart loss, it only restarted the connection and left the retained routes stale; it now purges them first. See Reset a peer session.
  • A paced first-member update-group build no longer starts over repeatedly while another peer sends large UPDATEs. With Extended Message, one UPDATE can change 2,048 or more best routes; a steady stream of them changed routes faster than the build picked the changes up, so the build threw its partial table away and began again for as long as the stream lasted. The build now picks up changes on every one of its turns while more than 2,048 are waiting, which matches the rate at which route input can change best routes.
  • When a config transaction (ApplyConfigTransaction or gNMI Set) has applied new policy chains live and then fails to publish the candidate, its rollback now restores the prior chains instead of re-applying them as a new forward edit. Previously the rollback went through the forward edit's qualification, so a peer that came up without Route Refresh after the apply made the whole rollback refuse, and every target kept the candidate chains until the daemon fenced.
  • Aborting, canceling (gNMI) or timing out a commit-confirmed config transaction now restores the prior import policy even when a peer lost Route Refresh inside the confirm window. Before, the rollback was applied as a new import edit, which is refused for such a peer, so it failed with abort_failed / auto_revert_failed and the unconfirmed candidate kept running behind the mutation fence. The prior policy is installed and that one session is reset so the peer resends its routes under it; a forward import edit for such a peer, including a history rollback, is still refused.
  • A route change event no longer rebuilds the whole table of every update-group member that is waiting to be resynced in the same RIB actor turn. This covers an UPDATE, a withdrawal, a route injection, a source session going down, an RPKI or ASPA validation change, a graceful-restart or LLGR stale sweep and an End-of-RIB stale purge, including an End-of-RIB with nothing stale and a source going down with no routes left. Those members were resynced inline, one after another, so with many members dirty after backpressure one unrelated event could hold every other peer's updates for seconds, and for minutes at full-table scale. The event now leaves each dirty member to the resync tick, which rebuilds one member per slice within its poll budget, and records the change in the member's withdrawal residue as it does when the member's channel is full.
  • Disabling a peer (rbgp neighbor disable, gRPC DisableNeighbor, a config admin_down) or deleting it (gRPC DeleteNeighbor, rbgp neighbor delete, removal by a config reload) no longer leaves routes retained when the peer negotiated RFC 8538 Notification Graceful Restart. The plain Cease / Administrative Shutdown made both sides keep each other's routes as stale for the restart time, then any LLGR stale time, although the session was not coming back. The NOTIFICATION is now a Cease / Hard Reset wrapping the Administrative Shutdown and any RFC 9003 shutdown communication (RFC 8538 §5.1, §5.2), as is a Cease / Out of Resources raised while the teardown drains queued output. A disable that finds the session Idle or reconnecting purges routes still retained from an earlier session loss. A dynamic peer removed because a config rollback left no range that admits it, and an interface-only (unnumbered) neighbor removed from the configuration, are handled like a deleted peer. The session-crash and maximum-prefix latches stop the peer the same way; a maximum-prefix breach already sent its own Cease as a Hard Reset. See Enable / disable a peer.
  • Pace export-policy reload and rollback for changed residual peers with no currently sendable address family. These peers can still enumerate the routing table during ...
Read more

v0.83.0

Choose a tag to compare

@github-actions github-actions released this 15 Nov 07:04
3686a4b

Release framing — paced reloads, recovery in place and bounded work. Export-policy reloads at scale are now paced: on a 700-peer, 400,400-route test bed, a grouped reload completes in under 2 s instead of about 107 s, a distinct-chain reload that v0.82.0 rolled back now commits, and no RIB turn in either exceeds 0.9 s. Steady-state route-reflector throughput is unchanged. The gRPC and metrics/readiness servers and the RPKI tasks now recover in place instead of exiting the daemon. A long export-policy reload or rollback is bounded by a stall timeout instead of a fixed deadline and keeps serving BFD and session events meanwhile. gNMI requests, policy dry runs and MRT dumps bound their work, more long RIB turns keep answering readiness, and credential, config, policy-source and MRT files are held to stricter rules. The string event timestamp fields, Route.med and the listener access_mode key are removed; read the upgrade notes before upgrading. rustbgpd-fsm 0.15.1 and rustbgpd-rpki 0.10.1 are patch releases on wire 0.28.0.

Security

  • gNMI Get accepts at most 16 paths, as Subscribe does, and renders paths that select the same data once. A request whose paths would render more than 65,536 leaf updates returns RESOURCE_EXHAUSTED before rendering, and rendering runs on the blocking pool, at most four requests at once per listener. Previously one Get could put the all-neighbors path in its prefix and send millions of empty paths, each rendering every neighbor in memory on an async worker shared with BGP sessions.
  • gNMI Subscribe renders the paths that select the same data once per snapshot, poll, sample tick, and heartbeat, and bounds each render at 65,536 leaf updates, as Get does. A subscription whose paths would render more than that against the current roster gets RESOURCE_EXHAUSTED before any update or sync_response, and a stream whose roster grows past the bound ends with RESOURCE_EXHAUSTED at its next render. Large renders run on the blocking pool and share Get's four render slots per listener. A dial-out target whose subscription ends with an error status before delivering data now logs it at warn and backs off instead of reconnecting every backoff_initial. Previously each sample tick rendered up to 16 paths against the whole roster on an async worker shared with BGP sessions, discarding duplicates only after rendering.
  • TestPolicy and ComparePolicy (rbgp policy test and rbgp policy compare) now evaluate route pages on the blocking pool instead of the async runtime that serves BGP sessions and other RPCs, and bound the reads that set up the walk and the walk itself at 60 s after the compile, after which the request returns DEADLINE_EXCEEDED with the number of routes it evaluated. The CLI waits long enough for the daemon's compile and walk bounds to report first. The two dry-run slots per API listener now cover evaluation as well as the compile, so a third concurrent request returns RESOURCE_EXHAUSTED while two walks run. Previously a costly candidate over a large table held one async worker per request for the length of the walk.
  • TestPolicy rejects show_changes above 1,000 with INVALID_ARGUMENT, matching show_rejected and max_samples, so one request can no longer return a rendered diff for every route in the table. rbgp policy test rejects --show-changes above 1000 before sending.
  • Bound credential reads to 4 MiB and configuration reads to 64 MiB, refusing non-regular and world-writable credential files, including public listener certificates, CA bundles and CRLs. Read gNMI dial-out TLS credentials outside runtime workers and report their permissions in doctor. Enforce the same config limit before normalized documents are accepted or written, confine dial-out candidate credential paths, and scrub validation buffers.
  • Read candidate .rpol entry modules, [policy] rpol_roots and dataset files below operator_only at the canonical path the confinement check accepted, without resolving the named path again. A symlink retargeted, or a root or ancestor directory replaced by a symlink, between the check and the read can no longer redirect the read outside the accepted policy directories; the read is refused instead. Candidate configs keep the paths as written, and operator, boot and SIGHUP loads are unchanged.
  • Resolve the policy directories that confine candidate sources below operator_only once, when the config is read at boot or SIGHUP, instead of again for every candidate. They hold until the next accepted reload, which resolves them again; API commits keep the directories already resolved. A nested policy directory replaced by a symlink in between no longer extends the confinement to the symlink's target. Whether each [policy] rpol_roots entry is a directory or a file is fixed at the same time. An entry that is a regular file admits only that file as a path a candidate names: another module cannot import it, its own imports are looked up only under the candidate's policy directories and not relative to its directory, and a directory later put in its place is not a policy directory. The file each gRPC credential path resolved to at boot or SIGHUP stays out of candidate sources until the next accepted reload, across API commits, and so does the file the path resolves to when a candidate is loaded; a credential symlink rotated in between keeps both targets out. A credential file moved aside by rename is not covered under its new name. Operator, boot and SIGHUP loads are unchanged.
  • Update the locked MCP SDK to rmcp 3.9.0 for RUSTSEC-2026-0462. The affected Streamable HTTP client transports are disabled in the stdio MCP server build.
  • MRT dump files are now created 0600 and a missing [mrt] output_dir is created 0700, instead of following the process umask (0644 and 0755 under umask 022). Dumps carry routes, peer addresses, ASNs and router IDs. An existing output_dir and the directories above it are now held to the runtime_state_dir ownership and mode rules before each dump. See [mrt].
  • Refuse <config>.unconfirmed-* backups beside the resolved config target as candidate policy sources below operator_only, and check opened source file identities so hardlinks cannot bypass protection of the running config and credential files. Confined candidate loads fail closed when the accepted physical target is missing or replaced.
  • Retain accepted config target authority across launch-link changes and rollback, reject backup hardlink aliases and source-open symlink swaps, and use the accepted config at EVPN candidate admission. Below operator_only, fail closed when the config directory exceeds 4096 entries, and return UNAVAILABLE when it changes during source reads. Recheck accepted target and parent identities on each source read to reject ancestor-directory replacement without repeating the backup inventory. Only candidates that name .rpol or dataset files need the accepted config file unchanged on disk. Loading a config needs only search permission on its ancestor directories, and backups are identified without read permission.
  • Route listings sort and deduplicate their community and large-community filter terms once per request and match each route with a binary search. Previously the RIB compared every term against every scanned route, so one listing carrying a very long community filter could hold the RIB for the whole table scan. Matching results are unchanged.
  • Update the locked rustix dependency to 1.1.6 for RUSTSEC-2026-0486, fixing unsound extended-attribute buffer handling. The separate 0.38 series is unaffected and remains unchanged.

Added

  • Session state, FSM event and BGP notification logs include the session ID and last installed TCP endpoints. Sent collision-resolution notifications also record the owning FSM state before teardown, allowing packet captures to be correlated with the closing connection.
  • InjectionService.BatchListFlowSpecExportDispositions reads the per-peer export dispositions of up to 1000 locally injected FlowSpec rules, global or VPN, in one paged walk, as BatchListPathExportDispositions does for unicast keys. A key with no local rule is listed with found = false, and a malformed key is listed at its position with a per-key error (invalid_key, with a keys[i]: message); neither fails the call. An empty, oversized or duplicate key list returns INVALID_ARGUMENT naming the key's index. Each page reads its keys in one RIB turn, and a resumed page returns ABORTED when any listed rule changed. The RPC is a sensitive_read, like the single-key ListFlowSpecExportDispositions, and this diagnostic RPC is outside v1. Clients need a daemon newer than v0.82.0; older daemons return UNIMPLEMENTED. See FlowSpec batch read-back.
  • rbgp health prints the running daemon's version (Version:, and daemon_version in JSON, null when an older daemon reports none). After a package upgrade without a restart it differs from rustbgpd --version, which reads the binary on disk; the upgrade runbook now verifies with it. The opt-in rbgp-json envelope carries this additive field at version 1.3 in this release; rbgp-rib stays at 1.1. See Package upgrade and rollback.
  • [mrt] max_files keeps at most that many dumps, deleting the oldest <file_prefix>.*.mrt[.gz] files after each successful publish. Unset keeps every dump, as before; 0 is rejected. Restart-required like the rest of [mrt]. See [mrt].
  • NeighborState gains admin_state, which says whether the daemon holds a neighbor down and which owner did: an operator disable, the configured admin_down, a max-prefix shutdown latch, or the latch after repeated session task crashes. rbgp neighbor and the TUI show a held-down neighbor as `Idl...
Read more

v0.82.0

Choose a tag to compare

@github-actions github-actions released this 08 Nov 16:30
608dcae

Release framing — hardening and composable policy. This release hardens the daemon against peers, RTR caches and API clients: explicit resource limits on Add-Path paths, RPKI records, BFD timers and outbound queues, fail-closed handling of runtime state, and refusal of malformed or out-of-state input. .rpol becomes composable, with callable policies and typed parameters, and several policy semantics change; read the upgrade notes before reloading existing policy files. The daemon also originates IPv4 and IPv6 VPN FlowSpec through the controller API, outside the v1 inventory. rustbgpd-wire 0.28.0, rustbgpd-fsm 0.15.0 and rustbgpd-rpki 0.10.0 move to a new wire line together.

Security

  • BFD local discriminators are now drawn at random from the operating system's CSPRNG instead of counting up from 1. A control packet selects its session by Your Discriminator alone (RFC 5880 §6.8.6), so with sequential values a configured peer could derive another session's discriminator from its own and send packets that moved that session's state. Random values stop that guessing. They do not authenticate the sender: a host that can observe a session's packets on the same segment can still forge its state (RFC 5880 §9). See BFD configuration.
  • An Init or Up BFD session now discards a packet with Your Discriminator zero unless its My Discriminator matches the peer's learned discriminator. Previously an on-link sender spoofing the peer's address with TTL 255 could force an Up session Down with one forged packet, and the session then echoed the sender's discriminator. Down sessions still accept the zero-discriminator bootstrap, and the real peer can still signal Down after its own detection timeout. See BFD configuration.
  • Bound Birdwatcher route requests to four concurrent workers and a ten-second HTTP deadline. Empty and oversized peer views now avoid the global primary route scan; other adapter scans refuse incomplete results above the new --max-scan-routes matching/returned-row limit (10,000 rows by default). This bounds adapter transfer and retention, not native RIB query CPU work. Operators serving larger nonempty views may need to raise this limit.
  • Prepare FIB status rows and their unfiltered order before publication, and build each filter's order on first use within that publication, so paged ListFibRoutes requests copy only their returned rows instead of converting and sorting the complete FIB on every page. Retired publications are released by the blocking publisher rather than by an API reader.
  • A candidate config sent over the API could make the daemon read any file it can read, even from an observer (sensitive_read) principal through DiffRuntimeConfig, PlanConfigTransaction or StreamPlanConfigTransaction (rbgp config diff and rbgp config plan). The candidate named the file as an .rpol file, policy root, dataset, or gRPC TLS or token file. Three effects followed: a compile error echoed the first lines of that file, a device such as /dev/zero was read without a size limit, and a FIFO blocked the peer-manager actor until a writer appeared. Below operator_only, .rpol, root and dataset paths must now resolve under the running config's policy directories: its [policy] rpol_roots and the directories of its .rpol and dataset files. gRPC credential paths must be ones the running config already uses. The running config file and its credential files are never sources, not even through an .rpol import, and stay protected after a config transaction or an EVPN apply installs a candidate. A candidate cannot raise rpol_max_graph_bytes above the running value, and every refusal is the same message, so it reveals nothing about what a path names. ApplyEvpnRuntime candidates are held to the same limits, taken from the on-disk config, and at most four load at once. Operator callers can still stage candidate sources elsewhere, as rs-config-render does. For every API caller, errors for those files give the path, line and column and the compiler stage, without file text. Every .rpol, dataset and gRPC credential read during a config load, including on-disk loads, now refuses anything but a regular file without waiting on it and stops at a size bound. Diff and plan load the candidate on the blocking pool, so the peer-manager actor keeps serving other requests while it loads.
  • Pin external workflow actions to full commit SHAs and container base images to digests, with checks that reject mutable references. Dependabot tracks action pins and Dockerfile base-image digests.
  • CLI unicast, BGP-LS and topology listings stop with an error when a daemon repeats a continuation token, including multi-page cycles. The repeated page is rejected before its rows are consumed.
  • rbgp doctor's daemon.config_freshness check now compares the config file's mtime with the daemon's last config-file marker at full filesystem timestamp resolution. The daemon records the marker as seconds and nanoseconds; before this, both sides were whole seconds, so an edit saved in the same second as the daemon's own read or write was reported as current. Any difference from the marker now warns, including a file replaced with an older timestamp. A whole-second marker from an older daemon keeps the previous comparison. Two saves within one filesystem timestamp tick still cannot be told apart.
  • Bound the work and log volume of an UPDATE that repeats a path attribute. RFC 7606 §3 (g) dispositions are unchanged: a duplicate MP_REACH_NLRI or MP_UNREACH_NLRI still resets the session, and other duplicates are still discarded after the first occurrence. Previously each repeated occurrence produced its own decode record and WARN line, so a single UPDATE could emit thousands of log lines while the session stayed up. Repeats of one type now share one record per cause. The malformed-attribute WARN is now one summary line per UPDATE, logged with the action finally applied and the decoder cause behind it, and is emitted at power-of-two counts per TCP connection; every cause is still logged at DEBUG. bgp_update_malformed_total still counts every malformed UPDATE.
  • EVPN duplicate-MAC detection now counts only MAC moves detected by local learning (RFC 7432 §15.1). Remote Type 2 announcements and withdrawals also counted. A BGP peer that repeatedly advertised a MAC learned on this VTEP could reach the threshold with no local activity. With action = "suppress_local", that withdrew the local Type 2 and filtered remote FDB programming for the MAC for recovery_seconds. A local learn against a remote advertisement still counts, so a genuine duplicate MAC is still detected. See evpn_duplicate_mac_moves_total.
  • rbgp diff snapshot from-bmp no longer copies an UPDATE's path attributes once per NLRI. The routes of one UPDATE now share one attribute set, the capture is read one BMP message at a time, and the snapshot is streamed to stdout after validation. Previously a 64 KiB capture could grow past 600 MiB of memory and abort under a memory limit instead of exiting 2. The snapshot is measured before the first byte is written: past the new 4 GiB output limit the conversion exits 2 with nothing on stdout. Input that continues past the 1 GiB input limit, as a pipe or a growing file can, is refused rather than converted from its first 1 GiB. Output bytes are unchanged. See from-bmp bounds.
  • rbgp diff snapshot from-mrt now reads the dump once, one record at a time, into a private temporary file that is copied to stdout only after the whole dump converted, instead of loading the whole file and every decoded route. Memory stays near one record; previously a 21 MB dump could request a single 768 MiB allocation and abort instead of exiting 2. A record longer than 16 MiB, or a snapshot longer than 4 GiB, refuses the dump with exit 2 and nothing on stdout. Output bytes are unchanged. See the MRT view contract.
  • FSM Error NOTIFICATIONs for unexpected messages identify OpenSent, OpenConfirm or Established with RFC 6608 subcodes 1, 2 or 3 and carry the unexpected message type. Malformed UPDATEs before Established now receive the same FSM Error; malformed headers and OPENs keep their existing error codes. Session teardown and route cleanup are unchanged.
  • Native gRPC mTLS listeners accept an optional tls_client_crl_file: PEM certificate revocation lists checked against every client certificate chain at the TLS handshake. A revoked operator certificate was previously accepted until it expired. The CRL reloads with the other credentials on SIGHUP. Once configured it fails closed: a missing, empty, or unparsable file fails startup, --check, and the credential reload, and a CRL past its nextUpdate refuses every client until a fresh one is reloaded. A listener with a CRL offers no TLS session resumption, so a client cannot reuse a session from before an expiry or revocation. Listeners without the field are unchanged. See client certificate revocation.
  • gRPC credential files are now checked before they are read, at config load, startup, every SIGHUP credential reload, --check, and in rbgp doctor. A token_file, tls_cert_file, tls_key_file, or tls_client_ca_file whose target is not a regular file is refused, as is a world-writable token or private key; previously a FIFO at one of these paths could stall startup. A token or private key readable by every local user, owned by someone other than the daemon user or root, or open to a group other than the daemon's is still accepted, with one warning per load or reload that names the file, its mode and owner, and the remedy. The warning count...
Read more

v0.81.0

Choose a tag to compare

@github-actions github-actions released this 01 Nov 05:31
eb1749d

Security

  • Update the protobuf build tooling's pulldown-cmark dependency to 0.13.5 for RUSTSEC-2026-0414.

Added

  • Export route explain responses and rbgp rib advertised --explain expose validation-state codes for the deciding export-policy deny term.
  • FlowSpec injection and read-back accept direct target-IP redirect/copy actions for IPv4 and IPv6, distinct from the existing VRF redirect action. The IPv6 target uses path attribute 25, with lossless 20-octet raw values exposed in ipv6_extended_communities; rbgp flowspec renders the typed targets and includes nonempty raw values in JSON. Ordinary eBGP export filters non-transitive 20-octet values under the existing community policy, preserving received Partial flags; empty attribute 25 values cannot be encoded. BMP unicast snapshots retain attribute 25 in unknown_attrs, preserving value order, duplicates and received Partial flags. See the API contract and ADR-0143. Controllers need an implementing daemon release; an older server may ignore new fields. This does not add bounded lease mutations, qualify router forwarding, or enable a scrubber controller.
  • Guarded FlowSpec mutations (ADR-0144): InjectionService gains IssueMutationWindow, AddGuardedFlowSpec, DeleteGuardedFlowSpec and RenewGuardedLease. A guarded add or renewal commits only inside a server-issued mutation window (at most 120 s; 64 live windows per owner). A guarded add never shortens the owner's lease: it caps any extension at its window and keeps a later deadline set under another window. A guarded renewal sets the lease to exactly now + lease_seconds, capped at its window, so it can shorten the lease of every rule the owner holds. The owner's lease never outlives the latest-expiring window it used, so a request delayed before its handler, in the RIB queue or behind RIB work cannot revive a diversion after the owner's windows end; a controller reads the deadline back rather than inferring it from one window. Each guarded add carries a nonzero revision, and a guarded delete removes the rule only at its revision, so a late delete cannot remove a newer admission of the same key. Guarded owners live in their own namespace, reported as guarded:<owner>, which the leased and unleased methods cannot reach; DeleteFlowSpec with override_owner stays the break-glass. Read-back adds admission_revision to FlowSpecRouteEntry and LeasedKey, and ListLeasedKeys accepts a guarded owner name. All four methods are operator_only; successful window issues and guarded renewals audit at INFO. The methods and fields are outside the v1 contract; see guarded FlowSpec mutations.
  • bgp_rib_actor_turn_duration_seconds{kind} times every RIB actor turn, the synchronous handling of one inbound RIB message, labelled by message kind (routes, peer_up, peer_down, query, and nine more). Every series is exported at zero from startup, and a new message type cannot build until it is assigned a kind. A turn of 200 ms or longer logs one slow RIB actor turn WARN with the kind, duration, and the peer, route or member count where one applies, at most once per 10 seconds with a count of suppressed turns. See the operations reference.

Changed

  • FlowSpec rules injected through AddFlowSpec or AddLeasedFlowSpec are now selected and sent to Established peers at once after a planned restart, instead of waiting out RFC 4724 selection deferral. A configured neighbor that has not re-established a session does not hold selection. Received FlowSpec rules and the FlowSpec End-of-RIB still wait for the deferral to release; when it releases, the ordinary best-path order decides between a local and a received rule with the same key. Locally injected IPv4 /32, IPv6 /128 and BLACKHOLE unicast routes also bypass selection deferral; other unicast injections remain deferred while the gate is active. See the ADR-0141 amendment. The v1 contract and the End-of-RIB grace window documentation now describe the unicast deferral window and state that MarkReplayComplete does not shorten it.
  • After a planned restart, Graceful Restart selection deferral waits only for eligible peers that have re-established a session. A configured neighbor that stays down no longer holds selection for the full restart window. The existing marker-derived upper bound remains.
  • Activating a hold preserves each current session's admitted routes while RTBH updates continue. Missing initial routes replay before End-of-RIB after release, and conditional advertisement settling restarts with its full interval. Controller replay grace remains a separate completion gate.
  • Neighbor diagnostics distinguish dormant startup rosters from released selection-deferral families.
  • Limit the unicast Graceful Restart selection-deferral bypass to locally injected IPv4 /32, IPv6 /128 or BLACKHOLE 65535:666 routes. Untagged defaults, aggregates and other non-host injections wait with received candidates. Removing BLACKHOLE from a non-host injection withdraws its old advertisement without exposing a received fallback before selection resumes. The existing injected FlowSpec exemption is unchanged. See the injection contract.
  • Clean VPN update-group members with identical announcement views share one payload and UPDATE encoding. Source and RT-Constrain exceptions, recovery and differing transport profiles retain per-member delivery. VPN labels, next hops, withdrawal order and terminal markers are preserved.
  • Outbound Add-Path path IDs for unicast now stay with a path while it is sent, instead of following rank order. A new path takes the lowest free ID, and rank decides only which paths fit send_max. A rank change no longer re-announces every path below it. Received paths keep their source peer's IDs, lowest first in rank order; when one peer contributes several paths, one leaving can still move a survivor to that peer's lowest ID, and two of its paths swapping rank swap their IDs.
  • The guarded FlowSpec mutation contract (ADR-0144) moves into the v1 inventory: IssueMutationWindow, AddGuardedFlowSpec, DeleteGuardedFlowSpec and RenewGuardedLease, the admission_revision read-back on FlowSpecRouteEntry and LeasedKey, and the guarded:<owner> name in lease listings. They were outside the v1 inventory when added. The contract pins window-checked commits, the window cap on the lease deadline, revision-fenced adds and deletes, the guarded owner namespace and the definitive refusal statuses. Like the FlowSpec controller boundary, it pins the API shape only; forwarding, timing after controller loss and GR/LLGR retention stay outside the guarantee. See the v1 contract.
  • Published crates: rustbgpd-wire 0.26.1 → 0.27.0 (breaking), rustbgpd-fsm 0.13.1 → 0.14.0 and rustbgpd-rpki 0.8.1 → 0.9.0. Wire adds the IPv4 direct target-IP FlowSpecAction::RedirectToIp and the lossless twenty-octet Ipv6ExtendedCommunity with IPv6 target-IP helpers, and decodes path attribute 25 as Ipv6ExtendedCommunities or Ipv6ExtendedCommunitiesPartial instead of Unknown. FSM and RPKI move to wire 0.27 with no other API change.

Fixed

  • An Add-Path receiver no longer briefly loses an RTBH path when a blackholing path that its session cannot send replaces it in the same pass as one it can. An example is a path whose attributes push a single UPDATE past a 4096-byte receiver's message ceiling. The unsendable path could take over the departing RTBH path's ID. The rejection then withdrew that ID before the sendable path's announcement. Path ID planning now checks such paths with the session's encoder whenever the prefix already has a blackholing row on the wire. A path the encoder rejects never keeps or takes a blackhole path ID, so the sendable path replaces the RTBH path in place. Prefixes with no blackholing row do no extra work.
  • An Add-Path receiver no longer briefly loses an RTBH path when another path for the same prefix is announced above it or deleted. Path IDs followed rank order, so these changes renumbered the RTBH path, and the transport's withdraw-first UPDATE order or a separate re-announcement left a window with no blackhole for that prefix. Each Add-Path update now also sends its blackholing rows before any ordinary row, so a receiver that kept our routes across a session flap never sees an ordinary path replace its RTBH path first. A path that starts carrying BLACKHOLE (a received update or export policy) in the same pass as an RTBH path is deleted takes over that path's ID in place.
  • Service RIB readiness queries while constructing and replacing inbound Enhanced Route Refresh stale inventories. Bound inventory growth by hash shard while preserving family isolation and exact stale-route counts.
  • Allow metrics snapshots up to 64 MiB in rbgp doctor, metrics, top, and evpn diagnose, so per-peer metrics above gRPC's default 4 MiB limit remain available. Doctor retains the full metrics file in its diagnostic bundle and explicitly marks the system section partial if collection fails.
  • ListPathExportDispositions and ExplainAdvertisedRoute now compare a route-server client's advertised route in that client's own form, after its route-server control communities are scrubbed and any prepend applied, for grouped members and per-client-best peers. An unchanged route that carries a control community reads COMMITTED instead of not_yet_committed, including a route frozen during Graceful Restart selection ...
Read more

v0.80.1

Choose a tag to compare

@github-actions github-actions released this 25 Oct 18:39
2fb2cbf

Fixed

  • A burst of route-server client session downs no longer withdraws slowly. With rs_control_communities enabled, the default for route_server_client, the RIB checked each departing session's withdrawals separately for every remaining client, so concurrent downs queued behind one another. In the scale benchmark's flap-storm cell (700 clients, 400,400 prefixes, 50 clients down at once), withdraw p50 fell from about 3.5 s on v0.80.0 to about 0.25 s. Withdrawals now share the update-group path unless a withdrawn route carries a control community for the client's route-server ASN; those keep the per-client check, so a client a route was suppressed toward is still not sent its withdrawal.

v0.80.0

Choose a tag to compare

@github-actions github-actions released this 25 Oct 00:12
871d9d2

Security

  • Updated rustls-webpki to 0.103.16 for RUSTSEC-2026-0382, which rejects certificate paths through distrusted emSign intermediates whose private keys are public. rustbgpd uses it to verify gRPC mTLS client certificates and gNMI dial-out collector certificates, and rbgp uses it to verify the daemon's gRPC server certificate. Both verify against the operator-configured CA bundle, not a bundled root store, so exposure requires a configured trust anchor that chains to an emSign root.
  • Updated webpki-roots and webpki-root-certs to 1.0.10 for RUSTSEC-2026-0381 and RUSTSEC-2026-0383, which remove the emSign ECC Root CA - G3 root. Only the rs-config-render tool's HTTPS fetches use these bundled roots; the rustbgpd and rbgp binaries do not link them.

Added

  • [[bmp.collectors]] on_identity_conflict = "exclude" lets a neighbor whose link-local address another BMP-monitored neighbor already holds, on a different interface, establish with its session left out of BMP instead of being refused. The default, "refuse", keeps the earlier behaviour; any refusing collector refuses. An excluded neighbor is reported in NeighborState.bmp_identity_excluded, rbgp doctor (as interface_only.<if>.bmp for an interface-only neighbor, which also reports a learned address refused with bmp_identity_conflict) and bgp_bmp_identity_excluded_neighbors, and admissions are counted in bgp_bmp_identity_conflicts_total{outcome}. See the configuration reference.
  • ListConditionalAdvertisements reports each attached neighbor as an attached_neighbors row, with a bare peer_address and the peer_interface of an IPv6 link-local neighbor. The bare-address attached_peers list is unchanged and now superseded. rbgp policy conditional-advertisements shows a link-local neighbor as fe80::1%eth0, and its --json output adds attached_neighbors beside attached_peers.
  • InjectionService.BatchListPathExportDispositions reads the export dispositions of up to 1000 locally injected unicast route keys per paged walk. It lists keys in request order, and a key with no local route when its page is read appears with found = false instead of the call failing with NOT_FOUND. A page holds at most page_size entries: each peer row is one, so one key's rows can span several pages. Each entry costs at most one export explain. A resumed page returns ABORTED when any named key's route content or presence, the Established peer set or their export policy differs from the first page. A route added and removed again between pages is not detected. See batch read-back.
  • ListPathExportDispositions and the batch form take include_configured. It also lists every managed peer without an Established session, with the new disposition PATH_EXPORT_DISPOSITION_NOT_ESTABLISHED and reason not_established, so a controller no longer joins the result with ListNeighbors. A neighbor added or removed between pages, or a listed peer becoming Established, returns ABORTED.
  • ListPathExportDispositions rows carry deny_validation: for a policy_denied row, one rpki_<state> or aspa_<state> code for each validation state the deciding export-policy statement's match tests, so a controller can tell a route-origin-validation deny of an RPKI-Invalid blackhole from any other policy deny without parsing detail. Other rows leave it empty. See export read-back.
  • Fast external failover: a directly connected eBGP session now closes as soon as the kernel confirms that the interface carrying it lost carrier, went administratively down, was removed, or lost the session's local address, instead of waiting for the hold timer. A session qualifies only when its own connection proves it: the local address is on that interface and the peer is inside its connected prefix, or the peer is a link-local neighbor on that interface. Multihop, loopback-sourced and iBGP sessions are untouched. The stop sends no NOTIFICATION, retains no routes under Graceful Restart or LLGR, and the session reconnects normally. A netlink overrun is treated as unknown and stops nothing. fast_external_failover turns it off per neighbor or peer group (hot-applied) or in [global] (restart-required); see the configuration reference. Operator-visible: the teardown cause names the interface and reason (fast external failover: interface eth1 (ifindex 4) carrier lost) in the neighbor's last error and the session-lost event, bgp_session_down_total counts it as local_no_notification, and bgp_netlink_subscription_overruns_total gains the actor="fast_external_failover" label value.
  • Interop leg M126 runs the official FastNetMon Community 1.2.9 package against rustbgpd-gobgp-bridge, rustbgpd and FRR 10.7.1: a replayed attack bans and unbans an IPv4 /32 and an IPv6 /128, which reach FRR with BLACKHOLE (65535:666) and a next-hop-self address, through a rustbgpd restart, a bridge restart and an unban while rustbgpd is stopped. The rustbgpd:dev image now includes the bridge binary. See the M126 receipt.
  • examples/flowspec-controller/ is a FlowSpec controller backend profile: border-router neighbors that carry only ipv4_flowspec / ipv6_flowspec, with rules injected over gRPC. From the first release that ships it, the v1 upgrade chain archives it beside the route-server and route-reflector examples, so a later release that stops accepting that configuration fails the archived-fixture parse test.
  • InjectionService.ListFlowSpecExportDispositions reports the per-peer export disposition of one locally injected FlowSpec rule, named by its AddFlowSpec key, with the rows, reasons, include_configured, paging and ABORTED check of ListPathExportDispositions. A received rule with the same key never counts as the local rule's export. The RPC is a sensitive_read, and this new diagnostic RPC is outside v1. See FlowSpec read-back.
  • gNMI state/peer-as reports the AS the session negotiated for a neighbor with remote_asn = "external" or "internal", and omits the leaf while that session is not Established, instead of reporting 0. A SAMPLE subscription deletes the leaf when the session goes down. Numeric neighbors are unchanged. See the gNMI reference.
  • Opt-in planned-restart End-of-RIB grace window: gr_eor_grace_time on a neighbor or peer group (default off) holds End-of-RIB toward a Graceful Restart helper after a marker-backed restart until one deadline fixed at daemon start, so injection controllers can replay routes before the helper removes its stale copies. Routes and withdrawals keep flowing; every End-of-RIB path respects the hold. Release is timer-driven and logged, and bgp_gr_eor_grace_released_total{peer,reason} counts it with reason="deadline". The window closes the observed gap only when replay completes before release; see the configuration reference. Operator-visible: an explicit outbound replay ends in a wire End-of-RIB, so it is now refused while the grace window holds that peer's family, as it already was during restart selection deferral; retry after the window ends.
  • Replay-complete signal for the planned-restart End-of-RIB grace window: list injection controllers in [global] gr_eor_replay_owners, and each calls the new InjectionService.MarkReplayComplete(owner, incarnation) after it replays its desired state into the current daemon incarnation. The held End-of-RIB is released as soon as every listed controller has signalled, counted as bgp_gr_eor_grace_released_total{peer,reason="replay_complete"}; the window's deadline still releases it otherwise, with a WARN log naming the controllers that never signalled. The signal is ordered behind the controller's earlier injections, so the window closes the gap when every listed controller signals before the deadline. A stale incarnation is FAILED_PRECONDITION with ErrorInfo reason INCARNATION_MISMATCH. The RPC is operator_only and outside the v1 inventory. An empty list keeps the timer-only window.
  • rustbgpd-gobgp-bridge signals replay complete as gobgp-bridge after a post-restart reconcile pass finishes without a failure. See the configuration reference.
  • ttl_security (GTSM, RFC 5082) is accepted on interface-only neighbors. When the neighbor binds a learned address, the BGP listener enforces Hop Limit 255 on connections from that address on that interface before the peer can be matched for inbound, and removes the selector only after that endpoint's peer is retired. A connection learned from an inbound SYN gets the same check, and active opens send Hop Limit 255. The IPv6 listener answers with Hop Limit 255 from startup, or from the reload or config transaction that introduces interface-only GTSM, before the neighbor can bind, and never lowers it; a GTSM peer that sends no RAs and dials in is therefore learned. Turning ttl_security on or off reloads as a session settings edit, and a deleted neighbor's selector is removed after its peer. A connection accepted under a selector that a reload has since turned off has its Hop Limit minimum cleared before the new session takes it. The selector matches by address and interface, so it never applies to a neighbor on another link that shares the address. ttl_security_hops above 1 is rejected, since the peer is directly connected. See Interface-only neighbors.
  • An interface-only neighbor now also learns its peer's link-local address from the peer's BGP connec...
Read more

v0.79.0

Choose a tag to compare

@github-actions github-actions released this 20 Oct 15:56
60cb5c9

Added

  • rbgp rib delete and rbgp flowspec delete take --owner <name> and --override-owner for entries added under an injection lease, so an operator can remove a stuck blackhole or filter whose controller is gone. Without them, deleting an owned entry fails with exit status 1, names the owner and points at both flags. rbgp rib route tables gain a Lease column, and rbgp flowspec received 0.0.0.0 lines a lease suffix, when an entry is owned; --json rows gain a lease object (owner, generation, remaining_ms). Output for unowned entries is unchanged.
  • tools/gobgp-bridge adds rustbgpd-gobgp-bridge, a separate tool outside the daemon and the v1 contract. It serves GoBGP v3 AddPath with binary IPv4 or IPv6 unicast NLRI and attributes on loopback, so RTBH detectors that drive GoBGP can announce and withdraw blackholes through rustbgpd's injection API without client changes. Other GoBGP methods return UNIMPLEMENTED. Injected routes do not survive a daemon restart; see the bridge README for the supported subset, the security warning and restart behaviour.
  • rustbgpd-gobgp-bridge keeps the bans it has announced in memory and re-adds them on a reconcile pass (--reconcile-interval-secs, default 30), so a rustbgpd restart no longer ends mitigation for detectors that announce each ban once. A withdrawal the daemon could not acknowledge is retried on each pass and stops the ban from being replayed. The bridge tracks at most 65,536 paths and refuses new bans beyond that with RESOURCE_EXHAUSTED. The set does not survive a bridge restart; see the bridge README.
  • Owner-scoped leases on injected routes and FlowSpec rules (ADR-0141), so a stopped controller's state expires instead of living until the daemon restarts. InjectionService.AddLeasedPath and AddLeasedFlowSpec add under an owner's lease and return its generation; RenewLease renews it and returns FAILED_PRECONDITION for a generation that is not live, including one from before a restart; ListInjectionLeases lists the table. When a lease runs out, the daemon withdraws all of the owner's entries in one RIB turn, logs a WARN line, and counts it in the new bgp_injection_lease_expiries_total counter; the new bgp_injection_leases gauge reports the owners in the table. An unexpected exit of the lease expiry task is a component failure: the daemon shuts down and exits 1. DeletePath and DeleteFlowSpec gain owner and override_owner, and local route and FlowSpec read-back report injection_owner, lease_generation and lease_remaining_ms. Unowned injection is unchanged. At most 64 owners hold a live lease, each with at most 16,384 entries. The new RPCs and fields are outside the v1 inventory for now. See leased injection.
  • SelectionDeferralFamilyState carries a canonical family label next to its numeric afi/safi, and rbgp neighbor JSON and detail output show it. The field is empty from an older daemon.
  • InjectionService.AddPath accepts an unspecified next hop (0.0.0.0 or ::) as next-hop self, resolved per session at export to the session's local address (IPv6: the neighbor's local_ipv6_nexthop, else the session's local IPv6 address) on eBGP, iBGP and route-server-client sessions. This is the default next hop of many RTBH controllers. An IPv6 route with no local IPv6 next hop on a session is refused for that peer with the exact-export reason missing_ipv6_next_hop instead of being sent with ::, and [[fib_tables]] rejects the route with the new reason next_hop_unspecified. AddPathResponse.outcome reports CREATED, REPLACED or UNCHANGED against the previous local route, and DeletePathRequest.allow_missing returns OK with outcome NOT_PRESENT for an absent route, mirroring the FlowSpec controller contract. The API reference documents the contract, restart re-injection and the transports for clients without TLS support.
  • The v1 inventory now pins NeighborService.ResetNeighbor and the everyday command paths: rbgp neighbor add, delete, enable, disable, reset, refresh-in and refresh-out; rbgp peer-group list, get, set, delete, attach and detach; rbgp neighbor-set list, get, set and delete; rbgp dynamic-neighbor list, add and delete; and rbgp policy chain with its show, set-import, set-export, clear-import and clear-export subcommands. Operator-visible: rbgp neighbor <addr> softreset is now rbgp neighbor <addr> refresh-in, pairing with refresh-out and replay-out; softreset remains accepted as an alias. Its --json result reports "action": "refresh_inbound" (previously "softreset"), matching refresh_outbound and replay_outbound.
  • RouteEvent and BgpEvent carry a typed int64 timestamp_unix_ms. The decimal-string timestamp field is still populated but deprecated; new clients should read the typed field, which carries the event time at millisecond resolution, so it orders events within the same second.
  • rbgp rib add prints the unicast injection outcome, for example Route 10.99.0.0/24 added (unchanged), and rbgp rib delete takes --allow-missing, which exits 0 and prints Route 10.99.0.0/24 not present for an absent route; without the flag a missing route is still an error. The --json results of both carry outcome (created, replaced, unchanged, deleted, not_present, or unknown for an older daemon), as rbgp flowspec add and delete already do. The API reference describes the outcomes.
  • Each tagged release publishes the exact tagged proto/rustbgpd.proto as the rustbgpd.proto release asset, with a rustbgpd.proto.sha256 checksum, so controllers can pin generated stubs to a daemon release instead of hand-vendoring the file. The API reference has the download, verify and regenerate recipe. Publishing the file promotes no alpha field into the v1 contract.
  • InjectionService.ListPathExportDispositions reports, for one route added with AddPath and named by its (prefix, prefix_length, path_id) key, one export disposition per Established peer: committed to the peer's Adj-RIB-Out, withheld with a bounded reason (for example family_suppressed:missing_ipv6_next_hop, export_policy, outbound_prefix_limit, exact_export_rejected:<reason> or not_selected), or pending. A route for the same prefix from another source never counts as this route's export, and a committed disposition does not mean the peer received the route. Peers are paged in address order. The method is a sensitive_read and joins the v1 inventory with AddPath and DeletePath. See the export read-back reference.

Changed

  • rbgp runs on a single-threaded async runtime instead of starting one worker thread per host CPU on every invocation, so one-shot commands start faster and their startup cost no longer grows with the host's core count. Scripts, exporters, and probes that call rbgp in a loop benefit most.
  • A dirty update-group member that holds an admitted-key recovery proof now resyncs with fewer full passes over that proof: the commit reuses the pre-send reservation, retention checks skip unused entry lookups, proof keys are no longer copied into a temporary prior or the resync's prefix scope when the existing fallback already covers a refusal, and proof lookups compare addresses as integers. Wire output, withdrawal duties and recovery memory are unchanged; full-table mass-dirty recovery spends less RIB-actor time per proof-backed member.
  • rustbgpd-gobgp-bridge now passes a 0.0.0.0 or :: next hop through as next-hop self instead of refusing it, so detectors keep their default next hop. Withdrawals use DeletePath with allow_missing, and the bridge logs the daemon's add and delete outcome for each request. See the bridge README.
  • InboundPrefixLimitState names each inbound max-prefix bound with family and stage, the labels of the bgp_max_prefix_* metrics, instead of a single scope string (field 1, now reserved by number and name). family is aggregate or a canonical family label, and stage is accepted or received. A row now joins its metric series without rebuilding the label. The max_prefix_warning session event detail, the inbound_prefix_limits[] rows of rbgp neighbor --json, the "Inbound Prefix Limits" block of the human detail view, and the rbgp doctor check name peer.<address>.inbound_prefix_limit.<family>.<stage> use the same spelling. See the API reference.
  • Prometheus series that carry an address family now use one family label with the canonical configuration family labels (ipv4_unicast, l2vpn_evpn, linkstate, and so on). The RIB gauges bgp_rib_prefixes, bgp_rib_adj_out_prefixes and bgp_rib_loc_prefixes publish one series per family instead of per table, so afi_safi="all" no longer hides an IPv4 + IPv6 unicast sum. The max-prefix series split the old scope into family and stage (accepted or received), so they join the RIB gauges with on(peer, family). bgp_rpki_vrp_count labels its address family afi. The old label names and values are not emitted alongside the new ones; see the upgrade note for the complete mapping and the operations reference for the series. Operator-visible: dashboards, alerts and scripts that select or aggregate on afi_safi, scope or af must be updated; the shipped alert rules and Grafana dashboards are.
  • Output now uses one spelling per value, the one configuration uses. The gRPC `NeighborConf...
Read more

v0.78.0

Choose a tag to compare

@github-actions github-actions released this 18 Oct 22:41
b26db4e

Security

  • Update rustls to 0.23.46, fixing RUSTSEC-2026-0346 (session Debug output could expose TLS secrets) and RUSTSEC-2026-0347 and RUSTSEC-2026-0349 affecting the gRPC TLS listener and rbgp client.

Added

  • Prepare bounded recovery provenance and connection-fenced reset handling for EVPN update groups. The counter bgp_evpn_recovery_provenance_exhausted_total{cause} records resets accepted by the captured connection. EVPN grouping remains inactive pending storage, encoding and qualification; current private EVPN exports are unchanged.
  • Prepare shared EVPN route storage and admitted member projections for update groups, retaining received route-target and reflection inputs across staging, regroup and replay. EVPN grouping remains inactive pending live admission, shared encoding and qualification.
  • A pinned FRR 10.7.1 interoperability leg for global IPv4 and IPv6 SRv6 service routes, proving selection, Prefix-SID preservation through route reflection and independent withdrawals. This is a control-plane proof; SRv6 service import, origination and forwarding remain unsupported.
  • bgp_outbound_eor_deferrals_total{peer} counts End-of-RIB markers that were deferred because the peer writer channel was full or closed. These deferrals were previously only logged. The marker stays pending and is retried after the peer's next resync. bgp_outbound_route_drops_total is unchanged. The Grafana "RIB ingest pressure" panel plots the new counter.
  • NeighborState reports outbound resync and update-group recovery fallback per peer: outbound_resync_pending, outbound_dirty_seconds and update_group_recovery_fallback (the cause label of bgp_update_group_recovery_fallback_total). rbgp neighbor <addr> shows them as Outbound Resync and Recovery Fallback, and its JSON adds the same keys. rbgp doctor adds peer.<addr>.outbound_resync, yellow while a fallback cause is set or a resync has been pending for 60 seconds, and rib.update_group_recovery, yellow once a peer_limit, daemon_limit or allocation_failure fallback has occurred since daemon start. See Update-group recovery fallback. The additive fields change the v1 NeighborService message-graph digest.
  • Bounded received and advertised VPN, labeled-unicast and RT-Constrain route pages, with typed family selectors, exact or longer prefix filters, and RD or membership filters as appropriate. Views distinguish the required received/advertised neighbor from an optional best-route source filter. An additive EVPN best-route page filters MAC, ESI and VXLAN VNI without copying the full table. EVPN received/advertised pages also accept the explicitly unstable MAC, ESI and VNI filters, with exact raw RD input available on the new family pages and existing EVPN peer pages. New EVPN peer filters require daemon acknowledgement before the CLI prints a result, preventing an older server from silently ignoring them. New rbgp rib vpn|labeled|rtc received|advertised and rbgp evpn best commands expose mutation-fenced continuation tokens and JSON page metadata. Group-owned VPN advertised pages refuse reads while that destination is resynchronizing. Existing unpaged RPCs and CLI arrays are unchanged. ListVpnRibRoutes, ListLabeledRibRoutes and ListRtcRibRoutes and the rbgp rib vpn|labeled|rtc command paths join the v1 inventory in the scoped route-reflector-l3vpn, route-reflector-labeled-unicast and route-reflector-rtc roles, and ListBestEvpnRoutes with route types 1 to 5, including its MAC, ESI and VNI filters, joins the scoped route-reflector-evpn role (see Changed). The MAC, ESI and VNI filters on EVPN received/advertised pages and the rbgp evpn best command remain outside v1.
  • rbgp policy check works as a CI and editor gate. Every check now computes the static lints, and --deny-lints[=LINT,...] fails the check with exit code 4 on the named lints (or all of them), after the existing 1, 2 and 3. Without the flag, lints stay warnings and exit codes are unchanged. --fail-on-empty exits 2 when the file and its imports define no tests. -j output is now the versioned rbgp-policy-check/1.0 document; a new findings array locates each compile error and lint by file, line and column, with a stable code, severity, label and notes. Existing keys, including the message-only diagnostics strings, keep their shape. See the CLI reference.
  • rbgp policy compare and the ComparePolicy RPC compare a candidate .rpol export chain with the chain installed for one peer over the same live Loc-RIB walk, and report only the routes that change: newly rejected, newly accepted, and accepted with different attributes, with exact counts and at most 1,000 samples per class. --replace MEMBER swaps one installed member and keeps the rest of the chain, so routes an earlier member rejects are not reported as candidate accepts. Native egress steps apply to neither side. The run is read-only, moves no counters, requires SensitiveRead, and is outside the v1 inventory (comparing with the installed chain).
  • bgp_readiness_probe_failures_total{reason} counts each failed /readyz probe once, by the failing component: deadline, peer_manager_unavailable, peer_manager_timeout, rib_unavailable, rib_timeout, rib_stalled or daemon_unavailable. Readiness status, response bodies and deadlines are unchanged. bgp_inbound_connections_dropped_total{reason} now exports every reason at 0 from startup, so a first drop is visible to increase(). See HTTP probes.
  • Log slow /readyz HTTP phases when accepting a connection through reading its request line, or starting its probe through writing its response, exceeds 100 ms. Warnings separate handler startup, request-line reads, the core probe and response writes; existing probe-failure warnings also include elapsed context. Readiness status, response bodies and deadlines are unchanged.
  • bgp_update_group_recovery_limit_bytes{scope} exports the fixed unicast/VPN update-group recovery caps (peer and daemon), and bgp_rib_outbound_dirty_peers and bgp_rib_outbound_dirty_oldest_seconds report how many peers are currently dirty and awaiting outbound resync and how long the longest-waiting one has been dirty, sampled from RIB state. See update-group recovery fallback.
  • Measure stalls in process instead of through sampled /readyz probes. bgp_rib_actor_slice_seconds{stage} times every poll of the RIB actor (stage="actor_poll") and the slices between sampled readiness checkpoints, and bgp_rib_actor_slice_max_microseconds{stage} reports the longest slice since the previous metrics render. A 10 ms tokio probe records bgp_runtime_scheduler_lateness_seconds, and bgp_runtime_worker_busy_microseconds_total{worker} exports each runtime worker's busy time, so RIB actor occupancy can be told apart from runtime worker saturation. The histograms resolve 1 ms to 2 s with dense buckets around 25, 50, 100, 200 and 500 ms. The overview dashboard gains panels for both, and the operations reference documents them. Readiness semantics and deadlines are unchanged.
  • Opt-in RFC 9324 local re-evaluation: with local_revalidation = true in [rpki], sessions whose import policy matches RPKI or ASPA state keep their pre-policy IPv4/IPv6 unicast input, and a VRP or ASPA change re-runs import policy locally for the covered routes instead of sending inbound Route Refresh to every dependent peer. Each session retains at most 65,536 validation rejects; beyond that it falls back to Route Refresh until the session resets. FlowSpec families and IRR dataset swaps keep Route Refresh. See local re-evaluation.
  • Policy tests support removes large-community GA:*:*, not removed community assertions, and with only to require an exact modification set. The IXP Manager renderer tests pin the wildcard export scrub and retention of other ASNs' communities. RT/RO removal checks follow their decoded identity across encodings.
  • [policy] require_passing_tests (default false) makes every config load run the in-language test blocks of each loaded .rpol unit and refuse the load when one fails, naming the file, the test, and the expected and actual outcome. With it on, the daemon refuses to start on such a policy and a SIGHUP reload is rejected without runtime effect, keeping the running policy. rustbgpd --check now runs these tests whether or not the setting is on and exits 1 on a failure, so a config whose .rpol tests fail no longer passes --check. The config source loaded log line gains an rpol_test_ms phase. See the configuration reference.
  • .rpol in-language tests can assert what a policy removes and what it leaves alone: with removes community LIT (and the large-community / ext-community forms), without community LIT, and without local-pref|med|next-hop|prepend. Previously a scrub term was covered only by expect p == accept, which still passed after the scrub was deleted. expect chain [p1, p2(args), ...] evaluates several policies as one configured chain, through the daemon's own chain assembly and merge rules, with coverage attributed to each member. The renderer's shared hygiene policy now includes a test that fails if any scrub term is removed. See Tests.
  • rbgp config last-reload, its --json output and GetLastSighupReload now report the RIB-side outbound convergence of a complete SIGHUP reload: converging with the number of peers ...
Read more

v0.77.0

Choose a tag to compare

@github-actions github-actions released this 12 Oct 23:37

Security

  • rs-config-render parses YAML with yaml_serde 0.10.7 instead of the deprecated serde_yaml 0.9.34, clearing RUSTSEC-2024-0449 (unsafe-libyaml unmaintained). yaml_serde is the YAML organization's maintained continuation of serde_yaml with the same libyaml port, so template-context parsing is unchanged. The rustbgpd daemon never carried this dependency; no configuration change is needed.

Added

  • rbgp doctor warns when an established eBGP peer has no effective inbound prefix limit after peer-group inheritance, naming the peer and available configuration keys. iBGP and route-reflector clients are excluded; the advisory warning retains exit status 0.
  • Opt-in [evpn_core_isolation] (ADR-0140) holds the CE-facing links of bound Ethernet Segments administratively down while the PE has no Established or GR-retained L2VPN/EVPN session, or every configured uplinks entry has lost carrier, and at startup until EVPN has synced, so an all-active CE moves its traffic to the other ES member instead of hashing flows into a PE that drops them. Every member of a bound bond is taken down (the bond stays up); a segment with no remote ES peer seen while the core was up is not held. A hold releases after EVPN has stayed synced for hold_after_sync_seconds (default 10) or, with a warning, after backstop_seconds (default 180). Each admin-down is preceded by a durable identity receipt in runtime_state_dir; clean shutdown, the new rustbgpd --release-core-isolation --runtime-state-dir DIR stop-hook helper, and the next start raise only links whose recorded identity still matches, and report the rest as ownership_ambiguous. New evpn_es_core_isolation_state{interface, state} and evpn_core_isolated{signal} gauges and rbgp doctor checks evpn.es.<interface>.core_isolation and evpn.core_isolation.uplinks report it. See [evpn_core_isolation].
  • Pinned GoBGP 4.10.0 interoperability coverage for EVPN Types 1–5 route reflection through graceful restart, End-of-RIB stale sweep and long-lived graceful restart marking and expiry. This receipt does not change EVPN stability classifications or add a dataplane support promise.
  • Neighbors and peer groups accept admin_down = true, with an optional RFC 9003 admin_down_reason of at most 128 bytes, to keep a configured neighbor administratively down across restarts without deleting it. The peer is added disabled: it makes no connection attempts, refuses inbound connections, reads 0 in bgp_peer_admin_enabled, and stays listed in rbgp neighbor. On SIGHUP, setting the key sends Cease/Administrative Shutdown with the reason and clearing it enables the peer. The runtime rbgp neighbor <addr> enable|disable toggle stays transient and holds until a restart or a reload that changes the key. admin_down is rejected on a peer group referenced by [[dynamic_neighbors]]. rbgp config import maps BIRD disabled, FRR neighbor X shutdown [message ...] and GoBGP admin-down to the new key. See Administrative down.
  • A dynamic neighbor whose session went idle stays visible while the RIB retains its GR or LLGR stale routes: rbgp neighbor, ListNeighbors and GetNeighborState return a row for it with its retention phase and time left, marked by the new presence-aware retention_only field ("retention_only": true in JSON, source retention only (no session or configuration)). The row disappears when retention ends. rbgp doctor runs only the retention check for such a row, and rbgp diff advertised refuses it as not configured. The rbgp neighbor --json list now also carries the optional gr_retention rows, with stale-route counts, and gr_retention_available. See Graceful Restart.
  • rbgp neighbor PEER and NeighborService.GetNeighborState show a per-family stale-route retention row while the RIB retains GR or LLGR stale routes for a peer, including while its session is down: the phase (gr_restart, gr_awaiting_eor, or llgr), the time until the RIB's next sweep or LLGR promotion for that family, and the stale-route count. The new gr_retention rows and the presence-aware gr_retention_available flag are additive; rbgp doctor warns, naming the time left and the stale-route count, for each family in the LLGR phase. See Graceful Restart.
  • Neighbors and peer groups accept per-family inbound limits for the non-unicast families a route reflector carries: max_prefixes_l3vpn_ipv4_unicast, max_prefixes_l3vpn_ipv6_unicast, max_prefixes_ipv4_labeled_unicast, max_prefixes_ipv6_labeled_unicast, max_prefixes_l2vpn_evpn, max_prefixes_ipv4_flowspec, max_prefixes_ipv6_flowspec and max_prefixes_rtc. Each bounds the unique routes accepted in its family, with Add-Path paths of one route collapsed, independently of the aggregate max_prefixes and of every other family, so a VPN leak can be capped without capping the peer's EVPN routes. max_prefix_action applies per family: shutdown sends Cease/1 carrying the RFC 4486 AFI, SAFI and bound, block withholds net-new routes of that family while the session stays Established, and warning reports. The keys hot-apply on reload. bgp_max_prefix_usage, bgp_max_prefix_limit, bgp_max_prefix_headroom and bgp_max_prefix_blocking gain the family label as a scope value while the bound is set. See the neighbor reference.
  • rbgp config last-reload and rbgp doctor expose the latest SIGHUP result, including a closed failure reason and bounded applied/unapplied operation identities for partial reloads. gRPC credential publication is recorded as an applied operation on success or a known partial result on failure. Doctor also warns when the retained reload task fails.

Fixed

  • In-place rbgp policy fmt rewrites use a unique sibling temporary file, preserve file permissions, and sync the file and parent directory. MRT dumps also sync their completed payload before rename and the output directory afterward. Both writers remove their temporary file when publication fails.
  • Show still-current Linux EVPN L2 apply failures in the evpn_current_apply_failures metric and instance status, including host-wide failures and operations held by permanent suppression or retry backoff. Clear them after success, withdrawal, or a changed operation shape.
  • Legacy unscoped EVPN remote-MAC FDB programming checks foreign VLAN siblings before changing the bridge entry, including a static row present only on the port's PVID. A conflicting sibling blocks programming or removal until the operator clears it; explicitly configured bridge VLANs retain their own scope. Shared nexthop groups also defer installs and updates while a blocked row retains a reference to the group.
  • Forward aliased known unicast through a healthy bound all-active Ethernet Segment when only an ES peer learned the CE MAC. Eligible peer Type 2 routes now create owned local-port FDB rows with pre-apply local/foreign ownership checks, VLAN scope, and duplicate-MAC quarantine. Withdrawal, drain, link failure, and segment removal remove that forwarding state. All-active CE forwarding requires interface; peer-only routes do not create new BGP advertisements. After restart, live peer forwarding retains validated local VLAN siblings and converts an adopted overlay row without waiting for orphan-reap grace. Single-active DF recovery retains ordinary local MAC relearning. Reconciliation repairs incomplete owned legacy VLAN row sets and retains desired adopted rows while their startup attachment is not ready.
  • An EVPN Type 1 Ethernet A-D route with an all-zero ESI no longer resets the session. A single-homed VPWS per-EVI route carries ESI 0 (RFC 8214 §4), so a reflector now accepts and reflects it unchanged; the per-ES form is accepted too. A Type 4 Ethernet Segment route with an all-zero ESI names no multihomed segment (RFC 7432 §8.1.1) and is now handled as RFC 7606 treat-as-withdraw for its UPDATE instead of a session reset.
  • An EVPN Type 2 route with MAC Address Length 0 no longer resets the session. RFC 9135 §9.1.1 makes it treat-as-withdraw: its UPDATE withdraws its other routes, and the route itself is dropped. Because the MAC Address Length is part of the route key (RFC 7432 §7.2), it never removes the peer's 48-bit route for the same MAC, in an announcement or a withdrawal, and it is never reflected. A Type 5 route announced with both a non-zero ESI and a non-zero gateway IP is now treat-as-withdraw (RFC 9136 §3.2) instead of being accepted and reflected. An MP_UNREACH_NLRI whose EVPN routes were all dropped, including unsupported route types, is no longer mistaken for End-of-RIB. Likewise, an MP_REACH_NLRI whose NLRI were all dropped still counts as carrying NLRI, so a treat-as-withdraw error in its UPDATE no longer escalates to a session reset (RFC 7606 §5.2).
  • Unicast export explain reports outbound_prefix_limit_reached when a peer's outbound maximum withholds a net-new prefix, including the family, limit, and usage. Grouped peer explanations use the same admitted route view as advertised listings; admitted prefixes remain exportable at the limit.
  • bgp_gr_stale_routes{peer} now falls as a reconnected peer re-advertises or withdraws its stale routes before End-of-RIB, and when the GR timer purges routes, either at promotion to LLGR (families without LLGR and NO_LLGR routes) or while older LLGR-stale routes remain. It was set only at GR entry, End-of-RIB and the LLGR sweep, so it overstated the retained routes in between. The gauge now reads per-family counters the RIB maintains on every stale-route change instead of scanning the peer's routes. Tearing down a peer whose only remaining retention was an LLGR deadline from an earlier restart now also clear...
Read more

v0.76.0

Choose a tag to compare

@github-actions github-actions released this 11 Oct 16:16

Added

  • just bench-converged-rejoin <out-dir> <base> <head> measures the reloadstall converged-rejoin (GR helper) flapstorm, base against head at a low and a high K in alternating order, one fresh daemon per cell behind the quiet-host gate. Its shape and bars are written to campaign.json before the first cell, and ACCEPTANCE overrides the bars from a JSON file. The verdict is PASS, FAIL or INVALID, and any missing or malformed cell makes it INVALID. SMOKE=1 runs a small pipeline check that applies every validity check but no performance bar, and DRY_RUN=1 prints the plan. See bench/scale/reloadstall/README.md.
  • Conditional advertisement conditions accept prefix ranges (alpha, outside the v1 inventory). A condition_prefixes entry may be a table such as { prefix = "10.0.0.0/8", le = 24 } or { prefix = "2001:db8::/32", ge = 48, le = 64 }, with prefix-list ge/le semantics, beside the existing exact strings. Invalid bounds are load errors. Ranges are tracked as routes change, without a table walk. rbgp policy conditional-advertisements and PolicyService.ListConditionalAdvertisements report each range's bounds, its count of present prefixes, and up to eight of them. See configuration.
  • Conditional advertisement status and peer-group attachment (alpha, outside the v1 inventory). rbgp policy conditional-advertisements (alias conditional) and the new PolicyService.ListConditionalAdvertisements RPC (sensitive_read tier, 2 s deadline) list each installed definition with every condition prefix's observation, the applied gate (pending, advertise, or suppress), the settle timer and its remaining time, and the attached neighbors; --json prints the same fields. [peer_groups.<name>] conditional_advertisements attaches definitions to every static member that sets no list of its own, with the export_policy_chain override rule; dynamic neighbors do not inherit it. SetPeerGroup keeps the configured group value, and a SIGHUP reload that changes it runs on the generation route. See configuration.
  • Conditional advertisement for IPv4 and IPv6 unicast (alpha, outside the v1 inventory). [policy.conditional_advertisements.<name>] defines an advertise_policy predicate, advertise_if = "present" | "absent", exact condition_prefixes, an optional condition_policy, and a settle_time debounce (default 5 s); static neighbors attach definitions with conditional_advertisements = [...]. Matching routes are advertised to an attached neighbor only while the condition holds. The gate runs last, just before the neighbor's export chain, in every unicast export mode (single best, Add-Path, per_client_best, ORR); a suppressed route is withdrawn silently, and an advertise_policy evaluation error suppresses. Conditions react to route changes rather than a scan timer. Attached neighbors use the per-peer export path with the update-group reason conditional_advertisement, and rbgp rib --prefix P advertised PEER --explain reports conditional_advertisement_suppressed or conditional_advertisement_eval_error. New metrics: bgp_conditional_advertisement_condition, bgp_conditional_advertisement_permitted, and bgp_conditional_advertisement_transitions_total; a condition_policy evaluation error counts on bgp_policy_eval_errors_total with direction="condition". See configuration and ADR-0137.
  • The unsent-data threshold experiment can run isolated container RTT legs with daemon-only cgroup accounting, receiver-ingress delay and live TCP RTT evidence. The native namespace path now uses the same ingress shaping and rejects missing delay or dropped packets. Production defaults are unchanged.
  • [[ethernet_segments]] accepts esi = "auto-lacp", which derives the RFC 7432 §5 Type 1 ESI from the CE's LACP system MAC and port key as reported by the 802.3ad bond named by interface. Readiness is checked at runtime: the daemon and rustbgpd --check do not depend on the bond. The segment originates nothing while its bond is missing, down, not 802.3ad, or partnerless, logging the reason. It is added when LACP converges, and it is withdrawn and re-originated under the new ESI when the CE is replaced, with no restart. Type 2 (STP) derivation is not implemented. See Auto-derived ESI.
  • esi = "auto-lacp" Ethernet Segment readiness is visible outside the log. The new evpn_es_auto_esi_state{interface, state} gauge is a state set per configured bond, with state either ready or the not-ready reason (no_partner, down, not_lacp_mode, …). rbgp doctor adds an evpn.es.<interface>.auto_esi check that names the reason, and the shipped alert rules add EvpnAutoLacpSegmentNotReady (not ready for 10 minutes). See Auto-derived ESI.
  • Allow single-homed VLAN-aware bundle members to bind an IP-VRF configured with overlay_index_mode = "interface_less". Routed Type 5 prefixes retain Ethernet Tag 0 and the separate IP-VRF L3VNI, RD, route targets and Router MAC; member Type 2/3 routes retain their Ethernet Tags. Linux SVI/VRF attachments remain operator-provisioned. Bundle multi-homing, locally assigned VNIs, non-zero-tag Type 5, and GW-IP/ESI overlay-index resolution through bundle members remain unsupported. A local SR Linux 25.10.1 receipt qualifies routed forwarding, Type 5 withdrawal and binding reloads; EVPN remains alpha. See the bundle configuration.
  • rbgp evpn instances and the ListEvpnInstances API now report, per L2VNI, the remote Type 1 EAD-per-EVI and Type 2 routes that the VTEP does not program, by reason (for example ethernet_tag_mismatch). The new EvpnInstanceState.remote_route_drop_counts field carries the same current values as the evpn_l2_remote_route_drops{vni,reason} gauge. The human output adds remote-route-drops=[reason=N,...] when a VNI has drops; JSON adds remote_route_drop_counts. See the API reference.
  • The VTEP now counts remote Type 1 EAD-per-EVI and Type 2 routes that match a local L2VNI by VNI and route target but carry another Ethernet Tag. Before, it skipped them silently. The new evpn_l2_remote_route_drops{vni,reason} gauge reports them with reason ethernet_tag_mismatch. The routes stay in Adj-RIB-In and are still reflected. [[evpn_instances]] also gains service_interface and ethernet_tag for the VLAN-aware bundle service, validated against the bundle rules. See the configuration reference.
  • A daemon started with no [[ethernet_segments]] now takes its first Ethernet Segment live. SIGHUP or ApplyEvpnRuntime can add an explicit-ESI segment or an esi = "auto-lacp" segment without a restart, where both were rejected with FAILED_PRECONDITION before. The segment orchestrator starts with the first committed segment; the auto-lacp readiness probe starts the first time the committed config names an auto-lacp bond. A refused or failed apply starts neither. Coordinated shutdown drains a live-started orchestrator the same way as one started at boot. See Auto-derived ESI. Operator-visible: on a daemon with no Ethernet Segment, SetEthernetSegmentDrain for an unconfigured ESI now returns NOT_FOUND instead of UNAVAILABLE.
  • EVPN preference DF election now honors RFC 9785 Don't-Preempt recovery: recovering segments wait three seconds for remote Type 4 routes (within 30 seconds of daemon start, also until an L2VPN/EVPN session is established, every established one has sent End-of-RIB, and graceful-restart selection deferral no longer holds L2VPN/EVPN), inherit a protected reference PE's preference with DP=0, and restore configured values when becoming the reference. Equal-preference elections prefer DP=1 before the lowest originator IP. Explicit administrative DF changes still force a switchover; mixed DP and remote routes arriving after the wait cannot guarantee non-preemption. Single-active attachment circuits stay blocked during the recovery wait.
  • EvpnService.ListEthernetSegments and rbgp evpn es list report the DF preference and Don't-Preempt bit the local Type 4 route carries (advertised_df_preference, advertised_df_dont_preempt) beside the configured values, and whether RFC 9785 recovery is still waiting for remote Type 4 routes (df_recovery_pending, df_recovery_remaining_ms). The advertised values differ from the configured ones while a recovering PE inherits another PE's preference.
  • The VTEP now serves single-homed VLAN-aware bundle members (RFC 8365 §5.1.2, ADR-0092). An [[evpn_instances]] row with service_interface = "vlan_aware_bundle" and an explicit ethernet_tag is accepted. It originates its IMET and its local MAC-only, MAC+IP and SVI-MAC Type 2 routes under that Ethernet Tag, and programs remote Type 2 and Type 3 routes only when they carry its tag, its VNI and a bundle route target. The FDB rows land on the member's bridge_vlan, so the same MAC under two tags is kept in two VLANs. For a bundle member, evpn_l2_remote_route_drops now also counts vni_mismatch (route target and tag select the member but the VNI differs) and multihoming_unsupported (a multi-homed Type 2 or an EAD-per-EVI route). For every L2VNI it also counts received IMET routes under another Ethernet Tag as ethernet_tag_mismatch. ListEvpnInstances adds service_interface and ethernet_tag, and ...
Read more