Skip to content

0.19.0

Latest

Choose a tag to compare

@robertcheramy robertcheramy released this 01 Dec 08:01
· 1 commit to master since this release
53b51e0

[0.19.0 – 2026-12-01]

This release replaces the HAML templates with ERB templates that escape HTML by default and fixes several security issues (XSS, ReDoS in the config search, leaking node vars). The config search shows matching lines with context, the user interface has been reworked, and Ruby 3.0 and 3.1 are deprecated. Many API errors now return 400 or 404 instead of a 500; API clients should check the changes below.

Added

  • Configuration option mtime_from_versions: show the time of the newest version as last change of a node in the node list, when oxidized does not know it (e.g. after a restart). Also sets mtime in /nodes.json. See docs/configuration.md (@zaits07)
  • Security regression tests for XSS prevention in node name, version, diff, stats views and HTML escaping of device config content (@mattimustang, @robertcheramy)
  • Config search results show matching lines with two lines of context, line numbers and highlighted matches. Overlapping or touching context windows are merged into a single snippet (@bpbp-boop, @robertcheramy)
  • Search form on the results page, with options to search for literal text instead of a regular expression, to search case-insensitively and to set the number of snippets per node (@bpbp-boop)
  • AGENTS.md: add guidance for AI coding agents, and CONTRIBUTING.md with the AI contribution policy (@robertcheramy)

Changed

  • Update web libraries to the latest versions (@robertcheramy)
  • Nodes and stats pages: rename the table search to "Filter" and move the "Reset filter" button next to the filter box (@robertcheramy)
  • Nodes and stats pages: move the "Column visibility" button into the table controls, next to the page length (@robertcheramy)
  • Nodes and stats pages: center the column "Last Status" (@robertcheramy)
  • Move the "Refresh page" button into the navigation bar, next to the theme toggle, as an icon without text (@robertcheramy)
  • Move the button "Reload node list from source backend" from the nodes page to a new admin page (@robertcheramy)
  • The gem only contains the files needed at runtime and the documentation (@robertcheramy)
  • Encode JSON output with the standard library instead of Sinatra's json helper (@robertcheramy)
  • Dependencies: require Oxidized >= 0.38.0 to support puma 8, and allow puma 8 and json 3 (@robertcheramy)
  • Config search returns 400 with an error message on an invalid regular expression instead of an empty result (@bpbp-boop)
  • API: /nodes/conf_search.json returns additional fields per node (match_count, truncated and the snippets in matches), and errors as { "error": "<message>" } with status 400 (@bpbp-boop, @robertcheramy)
  • API: /node/show, /node/next, /node/fetch and /node/version (including view and diffs) return 404 with the message Node not found: <node> for an unknown node. /node/fetch returned 200 with the error message before, the other routes a 500. Fixes: #485 (@robertcheramy)
  • API: /node/version.json returns [] instead of ["node not found"] when the versions of a node cannot be read (@robertcheramy)
  • Split webapp.rb into smaller files: helpers in lib/oxidized/web/helpers/ and routes as Sinatra extensions in lib/oxidized/web/routes/. No functional change (@robertcheramy)
  • Replace the HAML templates with ERB templates rendered by Erubi, which escapes HTML by default (@robertcheramy)
  • Escape device configurations and diffs when rendering the page instead of encoding them in advance (@robertcheramy)
  • Show the column "Total Runs" on the stats page by default (@robertcheramy)
  • Log the oxidized-web version at startup (@robertcheramy)

Deprecated

Removed

  • Dependencies on haml and htmlentities; the templates are now rendered by the new dependency erubi (@robertcheramy)
  • The X-UA-Compatible meta tag (@robertcheramy)

Fixed

  • /nodes.text, /nodes/stats.text, /nodes/conf_search.text and /node/version.text render the HTML page instead of returning a 500, as their data cannot be shown as text (@robertcheramy)
  • PUT /node/next accepts a JSON body without the content type application/json, treats an empty body as no commit information and returns 400 on an invalid body instead of a 500 (@robertcheramy)
  • /node/version and /node/version/diffs no longer return a 500 when the git or gitcrypt output cannot read the versions of a node (e.g. a repository without a commit). The versions page shows an empty list and the diff page "No diff available" (@robertcheramy)
  • /node/version/view and /node/version/diffs return 400 when the parameter oid is missing instead of a 500 (@robertcheramy)
  • JSON output of configurations that are not UTF-8 converts them to UTF-8 instead of returning a 500; binary data is replaced by a message (@robertcheramy)
  • NoMethodError when the parameter group is absent from /node/version/view and /node/version/diffs requests (@makaiver)
  • NoMethodError and RegexpError crashes (500) on /node/version, /nodes/conf_search and in route_parse when params are missing or contain a malformed regex. Missing params return empty results (@makaiver)
  • Config search with non-ASCII characters (e.g. UTF-8 or Latin1); binary or missing configs are skipped. Fixes: #469 (@janegilv, @robertcheramy)
  • URL-encode node names, groups and models in links and redirects, so that names with characters like #, &, +, %, ? or spaces work (@robertcheramy)
  • Stats page: compute the average run time over the runs kept in the history, count all failure types (not only no_connection) for the last failure and the average, and show a failure rate of 0% instead of NaN and never as last failure for nodes that did not run yet (@robertcheramy)
  • Show the node status in the node list and on the stats page as an icon with a distinct shape per status instead of a colored square, so that it is readable with color vision deficiencies. Fixes: #446 (@robertcheramy)
  • ArgumentError: U_STRING_NOT_TERMINATED_WARNING when converting empty text to UTF-8. An empty diff shows "No diff available" (@robertcheramy)
  • Diff page: preselect the version currently diffed against in the version selection. Fixes: #396 (@robertcheramy)

Security

  • Fix XSS vulnerability (CWE-79) by escaping HTML globally in the templates; user-controlled values in node names, group names, model names, and URL parameters are now HTML-escaped in all templates (@mattimustang)
  • Config search aborts with 400 when a regular expression takes more than one second on a config, to protect against ReDoS. Needs Ruby >= 3.2 (@robertcheramy)
  • Config search aborts with 400 when the whole search takes more than 30 seconds (@robertcheramy)
  • hide_node_vars also hides the vars in /nodes.json and /nodes/<group|model>/<value>.json; they were returned unfiltered before (@robertcheramy)
  • Internal errors show an error page Internal Server Error instead of a debug page with backtrace. The error is logged in the oxidized log (@robertcheramy)

New Contributors

Full Changelog: 0.18.1...0.19.0