summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2026-11-13Merge pull request #5628 from natali-rs1985/T9568rollingJohn Estabrook
remote: T9568: Do not send HTTP credentials to another host after a redirect
2026-11-12Merge pull request #5648 from c-po/T9606-ospf-compatibleKyrylo Yatsenko
ospf: T9606: add "compatible" node for RFC1583 and RFC7474 options
2026-11-12ospf: T9606: move "parameters rfc1583-compatibility" to "compatible rfc1583"Christian Breunig
The RFC1583 option sat under "parameters" although FRR groups it with its other "compatible" commands. It now lives under "compatible rfc1583" for the default and VRF instances. Migration moves an existing setting and drops a "parameters" node left empty by the move.
2026-11-12boot-config-loader: T9615: assign config file name outside the else branchChristian Breunig
No functional change, pylint reported a used-before-assignment as it does not know the other branch exits.
2026-11-12T9615: remove unused importsChristian Breunig
2026-11-12T9615: remove helpers calling dropped config tree test functionsChristian Breunig
The show_commit_data and test_commit wrappers were removed by commit 09cb7801d790 ("T7272: drop test functions"), but the helper scripts using them were left behind and failed on import.
2026-11-12T9615: run is_ip_network test shadowed by a duplicate nameChristian Breunig
Two tests shared one name, so the is_ip_network test was replaced by the compare_netmask test and never ran.
2026-11-12keepalived: T9615: only ignore EAGAIN when reading the FIFOChristian Breunig
Any exception without an errno attribute raised an AttributeError inside the handler instead of being logged. EAGAIN is now caught on its own and everything else is logged.
2026-11-12vyos-hostsd-client: T9615: fix setting the host nameChristian Breunig
The host name and domain name were passed to the client as a single dict, so --set-host-name always failed with a TypeError. Both are now passed as separate arguments.
2026-11-12Merge pull request #5558 from jestabro/commit-confirm-timerViacheslav Hletenko
T9446: start commit-confirm timer after commit completes in the case 'reload'
2026-11-12Merge pull request #5566 from natali-rs1985/T9466Viacheslav Hletenko
load-balancing: T9466: Fix listen-address check for VRF, link-local and new IPv6 addresses
2026-11-12Merge pull request #5619 from alexandr-san4ez/T9329-rollingViacheslav Hletenko
telegraf: T9329: Add PKI based TLS options for InfluxDB output
2026-11-12Merge pull request #5637 from c-po/T6301-dhcpv6-client-release-timeoutViacheslav Hletenko
dhcpv6-client: T6301: do not block commits on an unanswered Release
2026-11-11telegraf: T9329: Add PKI based TLS options for InfluxDB outputOleksandr Kuchmystyi
Add a reusable `tls` node for Telegraf outputs and use it for InfluxDB: `ca-certificate`, `certificate`, `server-name` and `insecure`. Referenced PKI objects are written to `/run/telegraf/certs`.
2026-11-10Merge pull request #5636 from jestabro/perms-write-fileJohn Estabrook
T9590: fix order of set perms/ownership and first write in utils write_file
2026-11-10Merge pull request #5640 from natali-rs1985/T9601Viacheslav Hletenko
telegraf: T9601: Pass Azure Data Explorer credentials via the environment file
2026-11-10Merge pull request #5638 from c-po/T9587-vyos-op-run-suidViacheslav Hletenko
debian: T9587: restore SUID bit on vyos-op-run
2026-11-09telegraf: T9601: Pass Azure Data Explorer credentials via the environment fileNataliia Solomko
The Azure client ID, secret and tenant ID were only set in the commit process environment, so they never reached the telegraf service and the Azure Data Explorer output could not authenticate. The secret also stayed in the configuration daemon after the commit. The credentials are now written to the same root-only environment file as the InfluxDB token, and changing them restarts telegraf.
2026-11-09load-balancing: T9466: Fix listen-address check for VRF, link-local and new ↵Nataliia Solomko
IPv6 addresses The listen-address check ignored the HAProxy VRF. An address on an interface in that VRF was reported as not assigned. With "vrf default" the port check always failed. Changing the VRF only reloaded HAProxy, so it kept running in the old VRF. HAProxy cannot parse a link-local address with its "%interface" scope. The commit passed, but HAProxy failed to load the config. A new IPv6 address cannot be used until duplicate address detection finishes. Adding it together with the listen-address, as on every boot, was refused as "port used by another service". Now: - addresses and ports are checked inside the HAProxy VRF, and "default" means no VRF - HAProxy restarts when its VRF changes - a link-local address is passed to HAProxy as "bind <address> interface <interface>"; one without an interface is refused - the check waits until a new IPv6 address can be used
2026-11-08Merge pull request #5526 from yzguy/wwan-static-bearer-addressingChristian Breunig
wwan: T9388: apply a static bearer's address/gateway/DNS directly instead of DHCP(v6)/SLAAC
2026-11-08op-mode: T9587: reject control characters in operator commandsChristian Breunig
The special character check for operator-level users allowed any whitespace, including newlines. Tag node values are substituted into a shell command which runs as root, so an operator could append arbitrary commands, e.g. "vyos-op-run show interfaces ethernet $'eth0\nid'". Only plain spaces are accepted now, everything else is rejected before privileges are raised. The operator smoketest covers this case.
2026-11-08Merge pull request #5629 from natali-rs1985/T9569Christian Breunig
telegraf: T9569: Pass InfluxDB token via a root-only environment file
2026-11-08Merge pull request #5632 from sever-sever/T9582Christian Breunig
T9582: Fix OpenConnect RADIUS accounting server missing from radius_servers
2026-11-08Merge pull request #5634 from natali-rs1985/T9588Christian Breunig
http-api: T9588: Keep config strings out of world-readable /tmp
2026-11-08Merge pull request #5633 from natali-rs1985/T9585Christian Breunig
nhrp: T9585: Fix verify() never validating NHRP tunnels
2026-11-08utils: T9322: simplify address assignment lookup and document ValueErrorChristian Breunig
The lookup for an address on all interfaces carried a copy of the zone index and VRF filtering that already exists in the lookup returning the matching interfaces. It now delegates to it, so the two cannot drift. The per-interface address match is written as a single condition, the comments are trimmed, and the docstrings state that anything but a single address raises ValueError instead of being reported as not assigned. The sflow zone index smoketest removes the dummy interface it creates, and the unit tests drop a stale task reference and a duplicate import.
2026-11-08utils: T9322: reject addresses that are not a single address and honour zone ↵Ruben Herold
indexes The helper that tells whether an address is assigned to an interface accepted ranges and addresses with a zone index. A range ended in a traceback. A zone index was ignored, so an address on the loopback interface was reported as assigned to the interface named in the zone. The helper now rejects everything that is not a single address, a zone index included. The functions that look for an address on all interfaces use the zone to pick the one interface to check, so a zone that names an interface which does not hold the address is no longer accepted. The command that lists the addresses is passed as a list, so the interface name and the namespace do not reach a shell. Unit tests and a smoketest cover the cases.
2026-11-07netlinkd: T9388: keep the bearer retry bookkeeping under the lockChristian Breunig
The pending bearer re-applies are updated by the dial and retry worker threads while the reconcile loop drops interfaces which are gone, disabled or disconnected. A worker finishing its attempt afterwards wrote the entry back, so such an interface was tried once more. All access now holds the WWAN lock, and a worker only updates an entry which is still pending.
2026-11-07wwan: T9388: apply a static bearer's address/gateway/DNS directlyAdam Smith
QMI raw-ip modems get their address, gateway and DNS from ModemManager as a "static" bearer instead of over a DHCP(v6) or Router Advertisement exchange, so "address dhcp", "address dhcpv6" and "ipv6 address autoconf" never produced a usable config and only worked for IPv4 by accident. Check the interface's connected bearer first. If its method for the family is static, apply it directly; if it is dhcp, or there is no bearer yet, fall through to the existing DHCP(v6) client / kernel SLAAC unchanged. - Address and DNS are applied from the bearer. DNS is registered with vyos-hostsd under the same dhcp-<if>/dhcpv6-<if> tags a real client uses. A DHCP(v6) client which was started while the bearer was still missing, including one which keeps restarting, is stopped before the settings are applied. - The default route is rendered into FRR as a tag 210 static route, the same way a DHCP one is. WWANIf records the gateway of the bearer in /run/vyos-wwan, which the new get_wwan_router() filter reads, and a new block in staticd.frr.j2 fed by get_wwan_interfaces() renders the IPv4 and IPv6 default routes. Distance, no-default-route and VRFs behave as for DHCP, also for an interface without "address dhcp". frrender notices a gateway change, and WWANIf reconciles FRR with vyos-frr-render.py whenever the recorded gateway changes, the way the dhclient lease hook does, so op-mode reconnect is covered as well. The state is written atomically, as the renderer reads it concurrently. - The address installed from the bearer is recorded in /run/vyos-wwan too. It is removed on reconnect, when the family is no longer configured and when the interface goes away, and nothing else on the interface is ever touched. - vyos-netlinkd applies the bearer again after it re-dials a lost session, as the new session can come back with a different address or gateway. A DHCP client used to pick that up on its own. What a previous session left behind is dropped for a family the new one does not supply, the configured DHCP(v6) client or SLAAC is started for it as a commit would, and an incomplete result is retried on the following reconcile passes for a while. - The bearer is picked by its connected status rather than bearers[0], and its config is polled briefly with wait_for() until it is no longer missing or a placeholder, since it can be populated slightly after the bearer reports connected.
2026-11-07dhcpv6-client: T6301: do not block commits on an unanswered ReleaseChristian Breunig
When stopped, dhcp6c removes its leases at once but then retransmits the Release for ~30 seconds if the server never replies. As the client is stopped or restarted synchronously, every commit deleting "address dhcpv6", changing "dhcpv6-options" or moving the interface to another VRF hung for that long. Stopping the client now waits at most 5 seconds for it to exit before it is killed, which is treated as a clean stop so the unit does not end up failed. Add a smoketest dropping the Release on a veth pair with a local DHCPv6 server, verifying the commit returns quickly and the lease is removed.
2026-11-06T9590: add unittest to check perms at first write of utils write_fileJohn Estabrook
2026-11-06tunnel: T9193: keep accepting a lone zero-keyed GRE tunnel on an any sourceChristian Breunig
A GRE tunnel with source-address 0.0.0.0, no remote and "parameters ip key 0" used to commit, but was refused once a zero key stopped counting as a key for such a tunnel. That breaks existing configurations on upgrade. Accept it again whenever a key is configured at all. A zero key still cannot tell two such tunnels apart, and the collision check keeps refusing the second one, so only the single-tunnel case changes back.
2026-11-06tunnel: T9193: do not collide GRE tunnels of different encapsulationChristian Breunig
The Kernel keeps gre and gretap tunnels in tables of their own, so a gre and a gretap tunnel may share local address, remote address and GRE key. Only compare tunnels of the same encapsulation.
2026-11-06tunnel: T9193: match GRE tunnel uniqueness check to the KernelLee Clements
The pairwise GRE collision check did not follow the Kernel's notion of a duplicate tunnel. With a key set it ignored remote and source-interface, rejecting tunnels the Kernel keeps apart. Without one it refused keyless tunnels on different source-interfaces, and collided a keyless tunnel with a keyed one, which also left the keyless tunnel failing every later commit. A zero key was judged differently depending on which side was verified. Two tunnels now collide only when local address, remote, source-interface and key all match, as ip_tunnel_find() decides. An any address counts as unset, and a zero key is treated as no key only where neither endpoint is set. Keys are compared as the value the Kernel stores, so octal spellings such as "010" are caught and invalid ones such as "08" are refused on commit. Error messages name the configured source and the shared node. Smoketests cover the new cases.
2026-11-06http-api: T9588: Keep config strings out of world-readable /tmpNataliia Solomko
The /config-file endpoint wrote config strings to /tmp/config.file, readable by any local user and never removed. A file pre-created at that path by another user made every later request fail. The string now goes to a private temp file that is always removed. The load and merge helpers, and the vyconf session, also remove their own /tmp copy when loading raises, e.g. on a syntax error.
2026-11-06nhrp: T9585: Fix verify() never validating NHRP tunnelsNataliia Solomko
The NHRP configuration checks looked for the tunnel settings at the top level of the shared FRR config dict, but they are nested under the 'nhrp' key. None of the checks ran, so invalid configs committed silently: a missing tunnel interface, a non-mGRE tunnel or one with a remote address, a missing network-id, and map/nhs entries without valid NBMA addresses. The result was an inactive NHRP or a generic frr-reload failure. The checks now read the NHRP part of the config, and an NHRP tunnel that refers to a missing interface is rejected with a clear error.
2026-11-06telegraf: T9569: Pass InfluxDB token via a root-only environment fileNataliia Solomko
The InfluxDB token was set with Environment= in the systemd drop-in, so any local user could read it with "systemctl show". The token is now written to a root-only environment file loaded by systemd, and no longer shows up in "systemctl show". Telegraf is restarted when the token changes, as a reload would keep the old value.
2026-11-06Merge pull request #5631 from c-po/T9559Viacheslav Hletenko
https: T9559: fix bogus port conflict with "vrf default"
2026-11-06T9582: Fix OpenConnect RADIUS accounting server missing from radius_serversViacheslav Hletenko
Fix swapped dict_search() arguments and check the valueless "accounting mode radius" node with "is not None", so the accounting server key is written to /run/ocserv/radius_servers. Add smoketest with separate authentication and accounting servers.
2026-11-05qos: T6393: police ingress traffic before redirecting itChristian Breunig
With an ingress limiter and "redirect" on the same interface, the redirect filter was evaluated first and took all traffic, so the limiter never applied. The limiter filters of such an interface now redirect the traffic after policing it: what exceeds the rate is handled by "exceed", conforming traffic is redirected. A "not-exceed ok" is passed on to the redirect instead of ending the actions. The interface's own redirect filter moves to the lowest priority and only catches traffic no limiter class matched; an interface commit only replaces that filter and keeps the limiter in place.
2026-11-05qos: T6393: keep redirect filter when applying an ingress policyChristian Breunig
An interface with both an ingress QoS policy and "redirect" lost its redirect filter on every QoS commit, including boot. QoS re-applied the interface redirect first and then re-created the ingress qdisc for its own policy, dropping the redirect filter again. Mirror and redirect are now re-applied after the QoS policies, and the redirect re-uses an existing ingress qdisc instead of failing to add it.
2026-11-05interfaces: T6393: install mirror and redirect filters for VLAN targetsChristian Breunig
A VLAN sub-interface used as mirror or redirect target (e.g. bond0.10) was only accepted if it already existed in the Kernel. The configuration committed at runtime, but at boot the source interface is committed before the VLAN is created - verify failed and the whole source interface was rolled back, as reported for tunnel targets. A VLAN target is now also accepted if its parent interface has the vif, vif-s or vif-c configured on the CLI. VLAN sub-interfaces learn which interfaces mirror or redirect into them and install their filters once created, as other interfaces already do. Add a config load test mirroring and redirecting into tunnel and bond VLAN targets, which are committed after the ethernet sources.
2026-11-05interfaces: T6393: accept mirror and redirect targets defined on the CLIciaens
Interface types are committed in priority order (ethernet 318, bridge 319, bonding 320, ... tunnel 380). verify_mirror_redirect() required the mirror and redirect target to exist in the Kernel, so "interfaces ethernet eth1 mirror ingress tun0" (or "redirect tun0") could never commit on the first pass at boot, or when both interfaces are created in the same commit: VYOS_TAGNODE_VALUE=eth1 .../interfaces_ethernet.py Requested mirror interface "tun0" does not exist! Sending reply: ERROR_COMMIT with output VYOS_TAGNODE_VALUE=tun0 .../interfaces_tunnel.py Sending reply: SUCCESS with output The whole ethernet node was rolled back, taking its addresses and everything on top of them down with it. The tc filter itself is installed by the target's commit since the previous commit, only verify() blocks. Also accept a target which is defined on the CLI, at its interface name position of the interfaces tree that Config.get_config_dict() attaches to its dictionaries. A target that is neither configured nor existing still fails the commit with the same error message as before. VLAN sub-interface targets are only accepted from the Kernel, as nothing would install their filter later on. VLAN sub-interfaces as sources get the interfaces tree attached to their own dictionaries in get_interface_dict(). A target placed in a network namespace is out of reach for tc(8) and is rejected with its own message, also while its device still sits in the default namespace. A target whose device is created asynchronously by a daemon (OpenVPN) now also passes verify at boot; if its device is not up yet when that interface applies, the filter is installed on the next commit of either side instead of the source interface being rolled back. src/tests/test_configverify.py was removed together with its last test case (T8859) and is re-added with tests for the target verification.
2026-11-05https: T9559: fix bogus port conflict with "vrf default"Christian Breunig
Committing "set service https vrf default" failed with "TCP port 443 in vrf default is already used by another service" although nothing listened on the port. The port check bound its test socket to a VRF device named "default", which does not exist, and reported that failure as a port conflict. The default VRF is now treated like no VRF at all. A VRF device that does not exist no longer counts as a busy port, as nothing can listen in it; any other error is raised instead of being reported as a conflict. The same check is used by the Prometheus VPP exporter.
2026-11-04remote: T9568: Do not use .netrc credentials for redirect targetsNataliia Solomko
A "default" entry in .netrc matches any host, so a download that was redirected to a different host could send those credentials there. Credentials from .netrc are now only used for the original host.
2026-11-04remote: T9568: Do not send HTTP credentials to another host after a redirectNataliia Solomko
Downloads that were redirected to a different host sent the user's credentials to that host. Credentials are now dropped when the redirect leaves the original host.
2026-11-03Merge pull request #5567 from aiv/T9469-openvpn-client-config-tls-keyViacheslav Hletenko
openvpn: T9469: add TLS key to generated client config
2026-11-03Merge pull request #5626 from natali-rs1985/T9566Christian Breunig
webproxy: T9566: Pass LDAP bind password via file instead of command line
2026-11-03Merge pull request #5627 from c-po/T9567-serial-console-compat-migrationChristian Breunig
serial: T9567: honor booted serial console during 31 -> 32 migration
2026-11-03serial: T9567: honor booted serial console during 31 -> 32 migrationChristian Breunig
An installation that still carries a legacy 1.3.x image keeps GRUB in compat mode. The GRUB structure update then rewrites the GRUB vars on every boot, before the config migration runs. The migration relied on these vars to detect a serial boot console and silently skipped setting "system console device ttyS0 kernel" after an upgrade from 1.4. The console code then fell back to tty0, so the next boot lost all serial output. On compat GRUB installs, the migration now uses the console the kernel booted with (the last console= argument). Installs using the current GRUB layout keep reading the GRUB vars, so a one-off console choice from the GRUB boot options menu is not persisted into the config.