Repository navigation
[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 setsmtimein/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.jsonreturns additional fields per node (match_count,truncatedand the snippets inmatches), and errors as{ "error": "<message>" }with status 400 (@bpbp-boop, @robertcheramy) - API:
/node/show,/node/next,/node/fetchand/node/version(includingviewanddiffs) return 404 with the messageNode not found: <node>for an unknown node./node/fetchreturned 200 with the error message before, the other routes a 500. Fixes: #485 (@robertcheramy) - API:
/node/version.jsonreturns[]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 inlib/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
- Ruby 3.0 and 3.1 are deprecated, removal is planned for June 2028, see docs/deprecated.md (@robertcheramy)
- The legacy configuration
restis listed as deprecated, removal is planned for April 2027 together with oxidized, see docs/deprecated.md (@robertcheramy)
Removed
- Dependencies on
hamlandhtmlentities; the templates are now rendered by the new dependencyerubi(@robertcheramy) - The
X-UA-Compatiblemeta tag (@robertcheramy)
Fixed
/nodes.text,/nodes/stats.text,/nodes/conf_search.textand/node/version.textrender the HTML page instead of returning a 500, as their data cannot be shown as text (@robertcheramy)PUT /node/nextaccepts a JSON body without the content typeapplication/json, treats an empty body as no commit information and returns 400 on an invalid body instead of a 500 (@robertcheramy)/node/versionand/node/version/diffsno 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/viewand/node/version/diffsreturn 400 when the parameteroidis 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)
NoMethodErrorwhen the parametergroupis absent from/node/version/viewand/node/version/diffsrequests (@makaiver)NoMethodErrorandRegexpErrorcrashes (500) on/node/version,/nodes/conf_searchand inroute_parsewhen 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 andneveras 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_WARNINGwhen 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_varsalso hides the vars in/nodes.jsonand/nodes/<group|model>/<value>.json; they were returned unfiltered before (@robertcheramy)- Internal errors show an error page
Internal Server Errorinstead of a debug page with backtrace. The error is logged in the oxidized log (@robertcheramy)
New Contributors
- @mattimustang made their first contribution in #443
- @makaiver made their first contribution in #441
- @zaits07 made their first contribution in #461
- @janegilv made their first contribution in #470
- @bpbp-boop made their first contribution in #448
Full Changelog: 0.18.1...0.19.0