Commit Graph
16299 Commits
Author SHA1 Message Date
Daniel Nylander 37eaddafb6 Translated using Weblate (Swedish)
Currently translated at 100.0% (5196 of 5196 strings)

Translation: Cacti/core
Translate-URL: https://translate.cacti.net/projects/cacti/core/sv/
2026-11-16 01:18:18 -06:00
dependabot[bot] a3cf32141d ci(deps): bump the github-actions group across 1 directory with 5 updates (#8740)
Bumps the github-actions group with 5 updates in the / directory:

| Package | From | To |
| --- | --- | --- |
| [github/codeql-action/init](https://github.com/github/codeql-action) | `4.39.1` | `4.39.3` |
| [github/codeql-action/analyze](https://github.com/github/codeql-action) | `4.39.1` | `4.39.3` |
| [jdx/mise-action](https://github.com/jdx/mise-action) | `5.2.2` | `5.2.7` |
| [trufflesecurity/trufflehog](https://github.com/trufflesecurity/trufflehog) | `3.99.7` | `3.99.8` |
| [github/codeql-action/upload-sarif](https://github.com/github/codeql-action) | `4.39.1` | `4.39.3` |



Updates `github/codeql-action/init` from 4.39.1 to 4.39.3
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/9b3254085494b55a0f7c4c2b3d2d52cc712ce370...33d7b85da1a04171e211befe2c739303b9a4c066)

Updates `github/codeql-action/analyze` from 4.39.1 to 4.39.3
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/9b3254085494b55a0f7c4c2b3d2d52cc712ce370...33d7b85da1a04171e211befe2c739303b9a4c066)

Updates `jdx/mise-action` from 5.2.2 to 5.2.7
- [Release notes](https://github.com/jdx/mise-action/releases)
- [Changelog](https://github.com/jdx/mise-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/jdx/mise-action/compare/8418fedb1110381a0d3ba51a7a415d7c1b884550...b44d12e7d0d8ee7461bb893e1b1993500433185b)

Updates `trufflesecurity/trufflehog` from 3.99.7 to 3.99.8
- [Release notes](https://github.com/trufflesecurity/trufflehog/releases)
- [Commits](https://github.com/trufflesecurity/trufflehog/compare/31ce31ee1abbcc7dc8eee5764c17121c3044c8b2...ea68ca03c865c5f324e86e849ced20ed3cf9dbbb)

Updates `github/codeql-action/upload-sarif` from 4.39.1 to 4.39.3
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/9b3254085494b55a0f7c4c2b3d2d52cc712ce370...33d7b85da1a04171e211befe2c739303b9a4c066)

---
updated-dependencies:
- dependency-name: github/codeql-action/init
  dependency-version: 4.39.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: github-actions
- dependency-name: github/codeql-action/analyze
  dependency-version: 4.39.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: github-actions
- dependency-name: jdx/mise-action
  dependency-version: 5.2.7
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: github-actions
- dependency-name: trufflesecurity/trufflehog
  dependency-version: 3.99.8
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: github-actions
- dependency-name: github/codeql-action/upload-sarif
  dependency-version: 4.39.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: github-actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-13 09:31:01 -05:00
cb2c788c44 fix(theme): match the language selectmenu to each theme's select2 controls (#8702)
The language dropdown (#user_language / #i18n_default_language) is the only
dropdown still rendered by jQuery UI selectmenu (the custom languageselect
widget); every other dropdown uses select2. Only the modern theme had a
dedicated .ui-selectmenu-button.ui-button rule, so in every other theme the
language dropdown fell back to the generic jquery-ui / .ui-selectmenu-button
styling and did not match its select2 controls - at runtime:

- .ui-corner-all { border-radius: 0 !important } squared the corners in
  cacti, deepness, paper-plane, paw, raspberry and sunrise (0px) and
  midwinter (4px)
- dark, paw and raspberry lost their select2 glass/highlight gradient
- paper-plane generic .ui-selectmenu-button !important rules forced a white
  background and a #bbb border

Add a dedicated .ui-selectmenu-button.ui-button rule (closed + open state) to
cacti, dark, deepness, midwinter, paper-plane, paw, raspberry and sunrise that
mirrors each theme's .select2-selection--single (gradient/transparent
background, border, 6px radius and open-state colours), using !important only
where the theme's own !important rule requires it. modern already matched.

dark disables the global focus outline (*:focus { outline: none }), so the new
closed-state rule would drop the keyboard-focus indicator; add a :focus-visible
ring for dark, matching what the modern theme already does.

Add tests/e2e/tests/selectmenu-theme-coverage.js, a shared helper that
exercises the closed and open selectmenu button for every changed theme
(asserting the restored 6px radius) and the dark keyboard-focus ring. It is
registered from develop-theme-correctness.spec.ts (the chromium coverage job)
and filter-dialog-theme.spec.js (the changed-coverage job) so the changed CSS
lines get browser coverage in both gates. Record the change as a changelog.d
fragment.

Co-authored-by: TheWitness <copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-11-11 14:14:16 -05:00
6a8bb24ad0 fix(theme): [develop][regression #8227] dark message-dialog buttons and Modern language selectmenu (#8697) (#8699)
* fix(theme): [develop] dark message-dialog buttons and Modern language selectmenu (#8697)

Dark: colour both session message dialog buttons via #btnSessionMessageOk and
#btnSessionMessagePause with the #31442b primary-action/Go green (border
rgba(0,0,0,0.35)) so Ok and Pause match the Go button (develop already scoped
the filter dialog's action button to #31442b, but the message dialog was
uncovered).

Modern: the User Language 'languageselect' selectmenu rendered with the
jquery-ui themeroller look when closed. Style .ui-selectmenu-button to match the
select2 single-selection (#e6e6e6 glass + #aaaaaa border + 6px radius) with a
select2-style triangle caret; the open menu list stays white.

All changes are in main.css; jquery-ui.css is left untouched.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* fix(theme): restore keyboard focus for message buttons and language selectmenu, fix open-state specificity (#8697)

Address review feedback: the Dark message-dialog buttons and the Modern
language selectmenu overrode .ui-button:focus while both themes disable the
global focus outline (*:focus { outline: none; }), leaving those controls with
no visible keyboard focus. Add distinct :focus-visible rings. Also raise the
Modern open-state selector specificity with .ui-button so it keeps winning over
the :hover rule when the menu is opened by mouse.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* fix(theme): style dark session message dialog via a class, not button IDs (#8697)

Address review feedback from @somethingwithproof:

Drop the per-button ID selectors (#btnSessionMessageOk / #btnSessionMessagePause)
that styled the Dark session message dialog. ID specificity beat .ui-button:hover,
so both buttons stayed flat and no longer reacted to hover or keyboard focus.
layout.js now tags the dialog widget with a cactiSessionMessageDialog class and
the Dark theme scopes the primary-action green (#31442b) plus the theme's own
#155413 hover/focus feedback to that dialog, matching the theme palette. The
focused button shifts to #155413 so keyboard users can tell Ok from Pause.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* fix(theme): use the dark theme's jquery-ui.css button greens for the session dialog (#8697)

Match the Dark session message dialog buttons (Ok/Pause) to the colours in the
theme's own jquery-ui.css instead of a custom green: #155413 (the .ui-button
hover/focus green) at rest and on hover/focus, darkening to #31442b (the
.ui-button active green) on press. Still scoped via the cactiSessionMessageDialog
class rather than per-button IDs.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* fix(theme): pale green at rest, deeper green on focus for dark session buttons (#8697)

Correct the Dark session message dialog buttons (Ok/Pause) so the resting state
uses the pale #31442b green and hover/keyboard focus deepens to the #155413
green (both from the theme's jquery-ui.css .ui-button palette). This restores a
clearly distinct keyboard-focus appearance. Still scoped via the
cactiSessionMessageDialog class rather than per-button IDs.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: TheWitness <copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-11-11 11:46:28 -05:00
fb354dbf5e feature: add a shared dashboarding Card API (chrome + chart widgets) to core (#8683)
* feature: add a shared dashboarding Card API (chrome + chart widgets) to core (#8680)

* feature: add a shared dashboarding Card API to core

Ship the shared card chrome used by the dashboarding plugins as core assets:
include/js/cards.js (the window.CactiCards controller) and
include/css/cards.css (the themeable .cc* markup contract). Both are loaded by
the common page header (lib/html.php) so any plugin or core page can render a
draggable, reorderable grid of cards without bundling its own copy.

The files are byte-identical to the copies currently vendored in the intropage
and mactrack plugins; those plugins load the core copy on Cacti 1.2.32+ and
fall back to their bundled copy on older cores.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* test(security): refresh the sink inventory baseline

The tracked sink baseline had drifted against the current 1.2.x tree: many
source files changed line numbers (and a few redirect sinks) since it was last
regenerated, so the 'sink and architectural hotspot guard' failed for every PR
branched off current 1.2.x. Regenerate it with
tests/security/build_sink_inventory.sh. No new sinks are introduced by the Card
API (cards.js/cards.css are not PHP and add no tracked sinks); this is a
line-number/ordering resync of pre-existing entries.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* fix(ui): harden the CactiCards controller per review feedback

- dragReference: resolve the pointer row before comparing horizontal
  centres so dragging over a later card no longer snaps the insertion
  point to the start of the row
- replaceCard: re-resolve the target by card id when the captured node
  was already swapped out, so overlapping refresh/resize responses no
  longer throw on a detached node (and resize still saves layout)
- normalizeState: sync the documented data-expandable/data-expanded
  attributes with the .ccCardExpandable/.ccCardExpanded classes used for
  CSS clipping and serialize(), bridging the cards.css selector mismatch
- dragstart: only enter reorder mode when the card itself is the armed
  drag source, ignoring native drags bubbling from body links/images
- dragend: disarm card.draggable on every drag end since native DnD
  suppresses the mouseup cleanup path

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* feature: add shared card-widget chart primitives to the Card API

Extend the Card API with a small, JS-free chart-primitive library so any plugin
- including third-party panels surfaced inside another plugin such as Intropage
- can draw rich card bodies with no plugin-specific stylesheet or JavaScript:

- include/css/card-widgets.css: the themeable .cc* primitives (semicircular
  gauge, usage/distribution bars, min/avg/max bullet, stacked proportion bar,
  stat tiles), coloured from currentColor and the shared --cc-sev-* properties.
  Loaded by the common page header alongside cards.css.
- lib/html.php: card_gauge(), card_bar(), card_bullet(), card_stackbar() and
  card_stat() render helpers (plus card_severity()) that emit exactly that
  markup. Available wherever global.php is loaded (web and poller).

These consolidate the near-identical gauge/bullet/bar/stack widgets currently
duplicated across the hmib, apcupsd and mactrack dashboards.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: TheWitness <copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Fix typo in comment about DOM behaviour

* fix(ci): number and reorder CHANGELOG entries and inventory cards.js

- Move the two Card API feature entries into the 1.3.0-dev feature block and
  number them (#8683) so .github/scripts/check-changelog.py accepts them
  (security->issue->feature ordering, traceable PR number).
- Register include/js/cards.js in build/legacy-js.json applicationFiles so the
  JavaScript contracts library inventory recognises the new core script.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* test(cards): cover the card helper CSS and PHP for the changed-line gates

- Add Playwright coverage fixtures to develop-theme-correctness.spec.ts that
  render every selector in include/css/cards.css and include/css/card-widgets.css
  (triggering the handle/tool hover and active states), so the develop theme
  correctness changed-CSS-line gate reaches 100 percent.
- Add tests/fixtures/Core/CardWidgetMarkup.php, a changed-line coverage probe
  that loads card_severity/card_gauge/card_bar/card_stat/card_stackbar/card_bullet
  in isolation and exercises every branch; register it in run_pr_change_tests.sh.
- Assign-then-return in card_gauge/card_stat/card_bullet (matching card_bar and
  card_stackbar) so Xdebug attributes the return to a covered line; no output
  change.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* fix(cards): harden refresh/resize ordering, async remove, and toggle focus

Address review feedback on the CactiCards controller:

- Share a per-card-id request generation between refreshCard and resizeCard
  (startRequest/requestSuperseded) and discard a superseded response before
  replacing markup, so a slow refresh can no longer revert a newer grow/shrink.
- Await onRemoveCard: only drop the live card and persist the layout once the
  host Promise fulfils, leaving the card and saved layout intact on rejection
  (and re-resolving the node by id before removal).
- Transfer keyboard focus to the revealed counterpart when expand/collapse is
  activated from the keyboard, since cards.css hides the activated button.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* feature(ui): add gauge ticks, bullet avg marker and pill severities to card-widgets

Extend the shared Card API chart-widget library with .ccGaugeTick (gauge
min/max ticks), .ccBulletAvgMarker (a dashed historical-average marker on the
min/avg/max bullet) and .ccPill--up/--warn/--down/--none (status-pill severity
colours), all themed from the existing --cc-sev-* custom properties. This lets
converging plugin dashboards draw their richer card bodies from the shared .cc*
contract. Mirrors the 1.2.x change in #8684.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* fix(cards): skip adding a card id already on the grid

Converge the controller: a second add of the same card can resolve while the
first is still pending (the option stays selectable until the debounced
catalogue sync), so skip ids already present to avoid appending a duplicate the
server then dedupes. Brings the develop controller to the shared baseline that
the 1.2.x PR and every plugin bundle now carry.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Darken Card API severity pills to meet WCAG 4.5:1 contrast

The .ccPill--up/--warn/--down fallback backgrounds rendered 11px text at
3.51:1 (warn) to below the 4.5:1 WCAG AA threshold, and .ccPill--none used
currentColor as a background that resolved to white (invisible on light
themes). Mix each severity hue 70% with black for >=4.5:1 contrast with the
white label, and give --none a translucent currentColor wash that inherits
the theme foreground. Render the severity pill variants in the theme-
correctness fixture so the changed .cc* rules satisfy the CSS-line gate.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Preserve live card expand/collapse state across a Card API refresh

replaceCard() now carries the live card's current expand/collapse state onto the
fresh markup at swap time, so expanding or collapsing a card while its refresh
(or resize) response is in flight is no longer reverted. Applies to the per-card
refresh, resize and the plugins' Refresh-all paths, which all swap through
replaceCard(). Adds an e2e test that drives the controller through a refresh
landing mid-toggle, covering the changed line.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Only preserve a live card toggle when the user changed it mid-refresh

Mirror the 1.2.x review fix (#8700): replaceCard() carries the live expand/
collapse state onto fresh markup only when the user toggled during the request
(live differs from the state captured when the request started) and the fresh
card is still expandable; direct callers with no captured state keep host markup
authoritative (normalizeState contract). refreshCard() passes its captured
state; resizeCard() captures it before onResize(). Adds a second e2e case
asserting refreshed markup drives expansion when the user did not toggle.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: TheWitness <copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-11-11 11:46:03 -05:00
42a8591b78 fix(session): use SessionHandlerInterface object for DB session handler (PHP 8.4) (#8691)
* fix(session): use SessionHandlerInterface object for DB session handler

As of PHP 8.4, passing individual callbacks to session_set_save_handler()
is deprecated in favor of an object implementing SessionHandlerInterface.
Wrap the existing cacti_db_session_* functions in a Cacti_DB_Session_Handler
class and register that object so database-backed sessions no longer emit
the deprecation warning. Minimum supported PHP is 8.2.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* fix(session): return deleted session count from handler gc()

Address review feedback: SessionHandlerInterface::gc() should report the
number of sessions removed. Return db_affected_rows() after the cleanup
delete instead of a hardcoded 0 so session_gc() reflects actual deletions.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: TheWitness <copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-11-10 08:54:46 -05:00
4dd546b0b1 fix(ui): shorten the Time View graph drilldown menu labels (issue#8641) (#8685)
The Time View (Graph Utility View) page builds its own drilldown action
menu and used the long tooltip strings 'Graph Details, Zooming and
Debugging Utilities' and 'Click to view just this Graph in Real-time'.
Since issue#8641 these drilldown actions render in the three-bar menu,
where the tooltip becomes the visible label, so they showed full
sentences instead of the short labels used everywhere else.

Use the same short labels as the standard graph drilldown menu
(graph_drilldown_icons): 'Details' and 'Realtime'.

Co-authored-by: TheWitness <copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-11-10 07:59:34 -05:00
Thomas Vincent 4c2f00a987 fix(ci): repair develop's workflow policy test and page crawl log check (#8687)
* fix(ci): drop the publisher's obsolete checkout credential allowance

#8648 scoped the remediation publisher's git credentials to its push step,
so its checkouts now set persist-credentials: false and no longer need the
CHECKOUT_WRITE_WORKFLOWS entry #8668 added. The rejection test removed the
publisher from that list and expected a violation, which can no longer
occur, so it failed on develop and on every branch that merged develop.

Remove the stale entry, assert the publisher passes without it, and
exercise the rejection path with a workflow that still keeps checkout
credentials.

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

* fix(ci): ignore the audit log purge note in the page crawl log check

Daily maintenance logs "NOTE: Purged N Audit Log Records" when the
poller runs at its scheduled time, so locked integration fails whenever a
run crosses that time. Filter the note like the other routine maintenance
lines.

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

---------

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
2026-11-09 21:24:57 -05:00
Daniel Nylander 50111c475c Translated using Weblate (Swedish)
Currently translated at 100.0% (5196 of 5196 strings)

Translation: Cacti/core
Translate-URL: https://translate.cacti.net/projects/cacti/core/sv/
2026-11-09 16:18:16 -06:00
Thomas Vincent df569d630b fix(script-server): keep each response on one line and mask logged credentials (#8675)
* fix(script-server): keep each response on one line

script_server.php buffered only the include of a script file, so a data
source function that printed anything wrote it to the poller ahead of its
result, and a result containing a line break was written as several
lines. spine and cmd.php read one line per request, so either case
shifted every later reply on that server by one.

Buffer the function call and discard its output, closing the buffer even
when the function throws and logging only the size of what was dropped at
debug verbosity, since the output can carry credentials. Replace line
breaks in the result with spaces before writing it, which keeps a
multipart name:value result intact.

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

* fix(script-server): print parse errors only when debugging

parseArgs() printed an ERROR line to STDOUT when a request could not be
parsed, and the caller then answered U, so the poller read the error as
the reply to that request and the U as the reply to the next one. Print
the error only when debugging, as 1.2.x already does.

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

* fix(script-server): log an unparsable argument list by size only

When a request could not be parsed, the warning logged the raw argument
string, which can carry device credentials. Log its size instead, as
1.2.x already does.

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

* fix(script-server): mask device credentials in logged arguments

The debug request log and the missing function warning wrote the script
arguments as given, and the signal handler logged the raw argument
string, so device SNMP credentials passed to a script reached the log.
Mask every argument, and every colon separated field of one, that
matches a configured device credential, and log only the argument count
from the signal handler, as 1.2.x already does.

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

* fix(poller): mask device credentials in cmd.php script logs

cmd.php logged script and Script Server commands as given, and those
commands carry the device SNMP credentials. Mask each credential, in
every form cacti_escapeshellarg() and cacti_escapeshellarg_cmd() can
write it, before the command is logged, as 1.2.x already does.

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

* fix(poller): define the Script Server pipes before cmd.php uses them

$pipes was only ever set by proc_open(), so PHPStan reported it as
possibly undefined where cmd.php closes the Script Server pipes. Start
it as an empty array, which is what every path that does not open the
Script Server already relies on.

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

* fix(poller): mask device credentials in cmd.php recache logs

The recache checks logged each reindex command as given, and a data
query script or Script Server command carries the device SNMP
credentials. Mask them with the device's credentials before logging,
as the data source logs already do.

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

* docs(changelog): note the Script Server response and logging fixes

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

* test(poller): cover the win32 forms of masked cmd.php credentials

CACTI_SERVER_OS is a constant, so the unit suite only ever builds the
unix forms of cacti_escapeshellarg() and cacti_escapeshellarg_cmd().
Build the win32 forms in a separate process and check that
poller_redact_snmp_secrets() masks each one, including the colon
separated SNMPv3 field, as the 1.2.x tests do.

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

* docs(changelog): number the Script Server entries with issue#8596

The CHANGELOG check requires every new entry to carry an issue or
pull-request number. Both entries come from issue#8596, which sorts
after issue#8480 at the end of the issue group.

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

* test(poller): give the changed-line coverage gate the masking evidence

The unit tests load the Script Server, poller and cmd.php functions
from temporary source slices, which the unit coverage report cannot
attribute to the real files, so the 80 percent changed-line gate saw
13 of 96 lines. Add a request-coverage probe that runs the same
functions at their original line numbers with checked results, and
dispatch it when cmd.php, script_server.php or lib/poller.php change.

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

* fix(poller): store the first line of script output, as 1.2.x does

exec_poll() returned the line exec_with_timeout() reports, which is
the last one. A script that ends its output with a newline, as most
do, left that line empty, so cmd.php stored U for every such data
source and recache check. Return the first line instead, which is
what 1.2.x reads with fgets() and what every caller trims and stores.
exec_with_timeout() keeps its contract for its other caller.

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

* fix(poller): mask device credentials when a failing script is logged

When a script exits with an error, exec_poll() logs the command and
its output, and exec_with_timeout() logs the command and its stderr. A
script data source command carries the device SNMP credentials, and
the script can echo them. exec_poll() now takes the poller item and
masks its credentials in both warnings; exec_with_timeout() takes an
optional mask for its warning, so lib/reports.php logs as before. The
masking runs only when a failure is logged. cmd.php, cmd_realtime.php
and remote_agent.php pass the item.

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

* docs(changelog): note the script output and failure warning fixes

Add issue#8676 entries for the first-line script output fix and the
masking of credentials in failing-script warnings, after the
issue#8596 entries at the end of the issue group.

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

* test(poller): share the cmd.php device stand-ins between test and fixture

The cmd.php log masking test and its request-coverage fixture each
declared the same database, ping, SNMP and Script Server stand-ins.
Move them into tests/Helpers/CmdDeviceStubs.php and load both in its
namespace. The test also checks that each reply is logged with its
SCRIPT or SERVER label.

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

* refactor(poller): share one cmd.php path for script and Script Server replies

The script and Script Server cases of collect_device_data() repeated
the same validation and logging, differing only in how the reply is
read and in the SCRIPT or SERVER log label. Read the reply per action
and run the shared validation and logging once. The log lines and the
error data sources are unchanged.

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

---------

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
2026-11-09 16:31:12 -05:00
Thomas Vincent 45d8fa1fb7 ci(audit): scope publisher git credentials to the publishing step (#8648)
The released-branch checkout in publish-remediation persisted the
GITHUB_TOKEN in .git/config, which the workflow policy check rejects and
which leaves the token readable by every later step. Check out without
persisted credentials and set up the git credential helper inside the
publishing step only, removing it when the step exits.

The Composer audit jobs also read the released branch's manifest and
lockfile explicitly, so the root and tests/ projects are each audited
against their own lockfile.

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
2026-11-09 16:03:33 -05:00
Thomas Vincent cc7ceb5f3e ci: allow the remediation publisher's credentialed checkout (#8668)
* ci: allow the remediation publisher's credentialed checkout

released-dependency-audit.yml's publish-remediation job checks out 1.2.x
with persist-credentials: true because released_dependency_remediation.py
publishes with `git push origin`. The workflow policy treats every checkout
outside CHECKOUT_WRITE_WORKFLOWS as read-only, so "Workflow policy checks"
fails on develop and on every pull request. List the workflow with the
other workflows that push. Its read-only checkouts already set
persist-credentials: false.

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

* test(ci): cover the workflow policy's credentialed checkout list

Loads check-workflow-policy.py and checks that the remediation publisher's checkout is accepted while it is listed and reported once it is not, so the changed-Python coverage gate has evidence for the script.

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

---------

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
2026-11-09 15:01:47 -05:00
dependabot[bot] e53ea25d69 deps(deps): bump the npm group with 2 updates (#8677)
Bumps the npm group with 2 updates: [hotkeys-js](https://github.com/jaywcjlove/hotkeys-js) and [pace-js](https://github.com/CodeByZach/pace).


Updates `hotkeys-js` from 4.0.8 to 4.0.12
- [Release notes](https://github.com/jaywcjlove/hotkeys-js/releases)
- [Commits](https://github.com/jaywcjlove/hotkeys-js/compare/v4.0.8...v4.0.12)

Updates `pace-js` from 1.2.4 to 1.3.0
- [Release notes](https://github.com/CodeByZach/pace/releases)
- [Commits](https://github.com/CodeByZach/pace/compare/v1.2.4...v1.3.0)

---
updated-dependencies:
- dependency-name: hotkeys-js
  dependency-version: 4.0.12
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: npm
- dependency-name: pace-js
  dependency-version: 1.3.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: npm
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-09 12:50:03 -05:00
dependabot[bot] d1b5aba5bd deps(deps-dev): bump the composer group with 2 updates (#8679)
Bumps the composer group with 2 updates: [phpstan/phpstan](https://github.com/phpstan/phpstan-phar-composer-source) and [rector/rector](https://github.com/rectorphp/rector).


Updates `phpstan/phpstan` from 2.3.2 to 2.3.4
- [Commits](https://github.com/phpstan/phpstan-phar-composer-source/commits)

Updates `rector/rector` from 2.7.0 to 2.8.3
- [Release notes](https://github.com/rectorphp/rector/releases)
- [Commits](https://github.com/rectorphp/rector/compare/2.7.0...2.8.3)

---
updated-dependencies:
- dependency-name: phpstan/phpstan
  dependency-version: 2.3.4
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: composer
- dependency-name: rector/rector
  dependency-version: 2.8.3
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: composer
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-09 12:48:25 -05:00
b23ad25036 security(script-server): add path containment + preserve Windows script paths (forum t=64910) (#8654)
* security(script-server): add path containment and preserve Windows script paths

Develop's script server loaded the include file after only a file_exists()
check and dispatched the named function with no containment, and
get_script_query_path() returned the raw script path. This forward-ports the
script-server hardening from 1.2.x and adapts it to the revised,
non-mangling path method so it works on Windows.

script_server.php:
  - Build the allowed script roots from CACTI_PATH_BASE and CACTI_PATH_SCRIPTS.
  - Validate realpath($include_file) is within the allowed roots before
    require_once().
  - After loading, reject PHP internal functions and any function whose
    resolved source file lives outside the allowed roots (ReflectionFunction).
  - Add the script_server_path_is_allowed() containment helper.

lib/data_query.php (get_script_query_path):
  - Reject '..' path traversal.
  - Sanitize the script path without corrupting Windows separators: strip
    shell metacharacters on Windows while preserving the backslash separator
    (cacti_escapeshellcmd() would turn 'C:\path\script.php' into
    'C: path script.php', which the containment check then rejects as 'C:');
    non-Windows platforms use escapeshellcmd() on their forward-slash paths.

Adds tests/Unit/Security/PathTraversal/ScriptServerContainmentHardeningTest.php
covering the containment guard and the Windows-safe sanitization, with both
source-scan and runtime suites.

Companion fixes: #8652 (1.2.x) and #8653 (1.2.31).
Forum: https://forums.cacti.net/viewtopic.php?t=64910

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* fix(script-server): narrow realpath() result to satisfy PHPStan level 6

realpath() returns string|false; assigning it to \ propagated
string|false across the command loop, so basename(), realpath(),
file_exists(), cacti_strtolower() and script_server_log_request() were all
flagged as receiving string|false. Reject a false realpath() explicitly in
the containment guard (behaviour-preserving: script_server_path_is_allowed()
already returns false for a false path), which narrows \ to
string before it is assigned back to \.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: TheWitness <copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-11-09 10:03:55 -05:00
edeaf135a1 fix(ui): use the three-bar action menu on the Details and Time View graph pages (#8641)
* fix(ui): use the three-bar action menu on the Details and Time View graph pages

The graph drilldown icons were switched to a hidden three-bar (hamburger)
action menu for the thumbnail/preview/tree graph areas, but the Details
(zoom) and Time View (utility) pages still rendered the raw glyph anchors.
Give those two areas the same graphDrillDownToggle treatment so the action
glyphs stay hidden behind the hamburger until it is activated, render the
drilldown container id through get_filter_request_var('local_graph_id'), and
move the Details graph title outside the toggle's positioning container
(matching html_graph_area() in lib/html.php) so a wide title no longer pushes
the hamburger off the graph corner.

Use the native Element.matches(':hover') in graphDrilldownStillHovered()
instead of jQuery's :hover: jQuery delegates :hover to Sizzle for a node
outside the document and throws "unsupported pseudo: hover" when a pending
close timer runs after the Details/Time View area reloads.  A detached node
is treated as not hovered, so the native check cannot throw.

Add a coverage fixture that renders html_graph_single_view() and
html_graph_zoom() with their I/O stubbed and asserts the menu structure and
title placement, so the changed PHP output - not just handwritten browser
HTML - is exercised by the changed-line and request coverage gates.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* docs(changelog): add issue#8641 entry

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* security(html_graph): html-escape local_graph_id in drilldown container id

SonarCloud/Semgrep flag the raw get_filter_request_var(local_graph_id)
echoed into the drilldown container id attribute in html_graph_single_view()
and html_graph_zoom() as reflected XSS. The value is already int-validated,
but wrap it in htmle() so the request-to-response taint path is closed and
the scanners are satisfied.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: TheWitness <copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-11-09 09:56:53 -05:00
Thomas Vincent 1159552780 Fix Cacti theme titlebar wrapping and link contrast (#8481)
* Fix Cacti theme titlebar wrapping and link contrast

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

* Add accessible headers to the theme fixture tables

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

---------

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
2026-11-08 20:34:02 -08:00
Thomas Vincent b421c1cd59 test(ldap): cover first-login claims and required DN groups (#8535)
Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
2026-11-05 20:16:12 -05:00
github-actions[bot] ffa613a851 chore(contributors): update contributor list (#8598)
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-11-05 20:12:05 -05:00
d66752117c fix(cli): add --security-level and SNMPv3 help to change_device.php (#8579)
* fix(cli): add --security-level and SNMPv3 help to change_device.php

change_device.php merges overrides onto the stored device, so a device
that was authPriv stayed authPriv when only auth settings were given.
Add --security-level to set noAuthNoPriv, authNoPriv or authPriv
explicitly, clearing protocols and secrets the level does not use.
Only require an SNMPv3 password when an auth protocol is set, validate
protocol names with the list of valid values, report the SNMPv3 user
and level instead of the community, and add SNMPv3 help examples.

* fix(cli): collapse SNMPv3 help prints to clear SonarQube duplication

The new SNMPv3 "security level" explanation and "Examples" sections in
change_device.php's display_help() were written as a run of ~20 consecutive
`print '...' . PHP_EOL;` statements. SonarCloud's token-based duplication
detector normalizes string literals, so this run matched the equally long
run of help prints in cli/structure_rra_paths.php, tripping the Quality
Gate (11.7% duplicated lines on new code, 1 block / 19 lines).

Collapse those two sections into a single concatenated `print` each. The
emitted help text is byte-for-byte identical; only the statement grouping
changes, which breaks the duplicated token run.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* fix(cli): declare SNMPv3 protocol globals in change_device.php

The SNMPv3 validation block references the $snmp_auth_protocols and
$snmp_priv_protocols arrays (defined in include/global_arrays.php) without a
`global` declaration, so PHPStan (level 8, the Commit Audit "PHP 8.3 locked
integration" job) reports "Variable $snmp_auth_protocols might not be defined"
and the same for $snmp_priv_protocols.

Declare both arrays global at the top of the SNMPv3 branch, matching how every
other consumer of these arrays (managers.php, automation_snmp.php, lib/snmp.php)
brings them into scope. No behavioural change.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: TheWitness <copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-11-04 16:01:33 -05:00
github-actions[bot] 0a017c3596 chore(contributors): update contributor list (#8580)
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-11-04 15:41:10 -05:00
bd9998e723 fix: Improve Script Server performance by guarding debug log strings (#8586)
Building the per-request INC and RESPONSE debug log strings (basename(),
implode() and string concatenation) on every poll is wasteful when debug
logging is disabled, which is the normal production configuration.

Introduce testable helpers in lib/functions.php:
- cacti_effective_log_level() resolves the effective verbosity the same way
  cacti_log() does (selective per-file/per-plugin override, else log_verbosity).
- script_server_log_request() / script_server_log_response() only assemble and
  emit their debug strings when that level is POLLER_VERBOSITY_DEBUG.

script_server.php now calls these helpers instead of building the strings
inline, so the hot path stays cheap while selective script-server debugging
keeps working. Unit coverage is added for the new helpers.

This is the develop counterpart of the 1.2.x change in #8585.

Co-authored-by: TheWitness <copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-11-04 15:38:01 -05:00
Thomas Vincent 48cb019174 ci(deps): close Dependabot blind spots on 1.2.x (#8576)
* ci(deps): unblock minor and patch Dependabot updates on develop and 1.2.x

Scope the 7-day Dependabot cooldown to major releases (semver-major-days: 7) so weekly runs pick up minor and patch updates without an extra week of delay. Ignore unresolvable major versions on develop (symfony/* >= 8.0.0 on PHP 8.3 and pestphp/* >= 4.0.0) and all major version bumps on 1.2.x so Dependabot's Composer and npm version resolvers fall back to the latest minor and patch releases instead of aborting. Set versioning-strategy: increase for /api where no composer.lock is tracked.

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

* test(deps): enforce Dependabot branch policy

Cover every 1.2.x update entry and add the missing GitHub Actions major-version block. Run the contract test when dependency automation changes so the maintenance-branch blind spot cannot recur.

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

* test(deps): lock Composer and Symfony policy

Keep Composer update jobs on 1.2.x while requiring the only Symfony version cap to remain on develop at Symfony 7.x.

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

* ci(deps): draft 1.2.x security remediations

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

---------

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
2026-11-04 14:45:21 -05:00
08d16f894a fix(ui): only add the theme search filter icon when the filter input is visible (#8583)
The theme main.js files appended a search icon after any #filter/#filterd/#rfilter
input whenever it existed in the DOM, even while it was hidden, leaving a stray
icon on the page. Gate the decoration on the input being :visible, and defer it
with setTimeout(0) so it runs after applySkin()/cactiReady() reveal #main and
#navigation_right. The :visible check then skips only intentionally hidden filters,
while ordinary filters -- including after AJAX refreshes -- still receive their
icon, placeholder and autocomplete settings.

Also make cacti_trusted_proxy_match() IP-family aware so an IPv4-mapped IPv6
address (::ffff:a.b.c.d) never matches a bare IPv4 proxy entry. Newer Symfony
IpUtils releases normalize the mapped form inside checkIp(), which broke the
native dependency test matrix; gating on IP family keeps the match deterministic.
A coverage case keeps lib/client_address.php at 100%.

Co-authored-by: TheWitness <copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-11-04 14:40:24 -05:00
4e5b2852dc security: harden tokens, imports, script substitution and SpikeKill mutations (#8237)
* security(batch12): constant-time 2FA cookie and reset-token compares (GHSA-4qx8-jj2h-p7q2)

auth_2fa.php used === to compare the 2FA bypass-cookie HMAC and
auth_resetpassword.php used != for the reset-token check; both are
byte-by-byte and leak timing. Switch to hash_equals() so the comparison
is constant-time. Develop-only paths (no released 1.2.x equivalent).

* security(batch12): route package-repo manifest fetches through cacti_http (GHSA-54fg-q9h9-88mm)

package_repos.php fetched the package.manifest for the GitHub and
Direct-URL (repo_type 0/2) repository types with raw file_get_contents()
- the Direct-URL path additionally disabled SSL verification - which
bypassed the hardened cacti_http() client and allowed SSRF (cloud
metadata, internal host/port probing) plus MITM. Both paths now use
cacti_http(), which restricts the scheme to http/https, blocks
private/loopback/link-local targets, pins DNS to prevent rebinding, and
verifies TLS. The GitHub Bearer token is passed via the headers option.
Develop-only (package_repos.php does not exist in released 1.2.x).

* security(batch12): shed matched quotes around resolved data-input tokens (GHSA-5v3j-wcrr-jxjg)

Field values are escaped with cacti_escapeshellarg(), which wraps them
in single quotes. When a Data Input template author placed the <field>
placeholder inside a matched pair of quotes (e.g. "<arg1>"), those
surrounding quotes made the value's own quoting literal, so $(...) or
backticks in the value executed via the shell on the next poll - a
realm-3 user reaching OS command execution, bypassing the CVE-2026-39902
hardening and not addressed by the single-pass fq9x fix.

substitute_script_path() now consumes one matched pair of surrounding
quotes when a token resolves, so the escaped value's own quoting is
authoritative. Unresolved tokens keep their literal form (including any
quotes), and the single-pass behaviour that fixed GHSA-fq9x is retained.
Affects released 1.2.x (<= 1.2.31) and develop; this is the develop fix,
to be backported to 1.2.x.

* security(batch12): regression tests + CHANGELOG for batch-12 develop fixes

Add tests/Unit/Security/Batch12SecurityRegressionTest.php guarding the
batch-12 sinks (GHSA-4qx8, GHSA-54fg, GHSA-5v3j) with a behavioral proof
that a double-quoted Data Input placeholder sheds its quotes, plus a
confirmation test that poller_spikekill.php escapes --rrdfile
(GHSA-vhh2, already fixed in #7235). List the four GHSAs in the CHANGELOG.

* security(batch12): update batch-11 fq9x regression test for quote-aware substitute_script_path

The GHSA-5v3j quote-shedding changed substitute_script_path()'s regex
and capture group, which the batch-11 fq9x test pinned verbatim. Update
those two assertions to the quote-aware pattern marker and $matches[2];
the single-pass guarantee the test covers is unchanged.

* security(batch12): narrow reset-hash row with is_array for PHPStan L6

The hash_equals() guard left $hash inferred as non-empty-array|true, so
$hash['user_id'] tripped PHPStan level 6. Guard with is_array() instead
of a truthy check; db_fetch_row_prepared returns false for no row, so
behavior is unchanged.

* security(batch12): drop the executable bit on the new security test files

* security(batch12): route import-time repo manifest fetches through cacti_http (GHSA-54fg)

get_repo_file() still used raw file_get_contents() for the GitHub and Direct-URL repo types, bypassing the SSRF hardening added to form_save(). Route both remote branches through cacti_http() (scheme/host validation, private-range block, DNS pinning, TLS verify; Bearer token via the headers option) and add a regression assertion covering the import sink.

* security(batch12): make substitute_script_path fully quote-aware (GHSA-5v3j)

The matched-pair quote shed only neutralised a token the template wrapped
exactly ("<arg1>"). A token embedded in a larger quoted word ("prefix<arg1>",
"<arg1>suffix", "<a><b>") kept the outer double quotes, so backticks/$(...) in
the already-escaped value stayed live - the bypass Copilot flagged.

Replace the regex with a single-pass shell-quote-state scanner: it still sheds
an exact wrapping pair, but for any token inside a larger quoted word it briefly
closes the template's quoting around the escaped value so it cannot be
re-interpreted. Values are never re-scanned (single-pass, GHSA-fq9x retained).

Updates the batch-11/12 source assertions, adds prefix/suffix/mixed regression
cases, and drops the Batch12 eval fallback (the unit bootstrap already loads
lib/functions.php via include/global.php).

* security(batch12): relocate batch-12 regressions into vuln-class subfolders

Split tests/Unit/Security/Batch12SecurityRegressionTest.php into behavior-named
files under the existing vulnerability-class layout, per the review feedback:

  Auth/TwoFaCookieAndResetTokenConstantTimeTest.php   GHSA-4qx8
  Ssrf/PackageRepoManifestFetchTest.php               GHSA-54fg
  ShellInjection/DataInputQuotedPlaceholderTest.php   GHSA-5v3j
  ShellInjection/SpikekillRrdfileEscapeTest.php       GHSA-vhh2

Each file reaches the repo root via dirname(__DIR__, 4) for its one
subfolder-deep location. No assertion changes; pure relocation.

* security: preserve template quoting for raw path tokens in substitute_script_path

Keep the develop fix in sync with the 1.2.x backport (#8238): substitute_script_path()
only sheds/closes the template's quotes for self-quoting (cacti_escapeshellarg) values.
Trusted raw path_* tokens are substituted in place so a quoted "<path_php_binary>" keeps
its quotes for the shell and a bare <path_cacti>/scripts/x.php stays unquoted for the PHP
script server, which resolves the first token as a filesystem path. Reformatted per
php-cs-fixer and added a raw-path-token regression test.

* security: keep substituting a token that follows a backslash in substitute_script_path

Mirror the 1.2.x fix (#8238): the scanner's backslash branches consumed the next
character unconditionally, so a legacy/custom template token such as \<arg> never
reached the matcher and the trailing cleanup stripped it to a bare backslash. Both
branches now only pair the backslash with a following quote/backslash (so an escaped
quote still cannot toggle quote-state); any other character - notably a <token> start -
leaves the backslash on its own and is processed on the next iteration. Reformatted per
php-cs-fixer and added a backslash-before-token regression test.

* security: normalize dangling backslash before substituted value in substitute_script_path (GHSA-5v3j)

A template backslash immediately before a <field> token (\<arg1>) escaped the
already-escaped value's opening quote, producing \'...' which the shell rejects
with an unmatched-quote error (odd backslash runs) or prepended a stray literal
backslash (even runs). The quote-aware scanner now sheds one backslash when the
run immediately preceding a self-quoted value is odd, in both the unquoted
in-place branch and the close-around branch, so the value's own quotes always
function as the shell's quotes and $(...)/backticks inside it can never
re-activate.

The backslash regression test now executes each substituted template through
/bin/sh (printf %s) and asserts a clean parse plus a literal round-trip across
odd/even backslash counts, rather than pinning the generated string.

* fix(security): preserve literal backslashes in quoted script fields

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

* test(security): cover changed guards and gate PR coverage

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

* ci: measure committed PR changes on a policy-compliant runner

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

* security: address review - nested cmd-sub/backtick handling, coverage gate, test skip

substitute_script_path() now follows the template's own $(...) and backtick
command substitutions as nested parsing contexts with their own quote state, so a
token placed inside one ("$(printf %s <field>)") is judged against that fresh
context instead of a suspended outer double quote. This closes the
nested-reinterpretation bypass where an escaped value sitting inside a command
substitution could be re-activated by an outer double quote. Backslash pairing in
both the unquoted and double-quoted contexts now also neutralizes $ and backtick,
so an escaped command substitution (\$(...) or \`...`) is not mis-detected as live.

.github/workflows/pr-changed-coverage.yml: drop the hard-coded PR-number
allowlist so the job runs whenever the path filter selects it, rather than
silently skipping every unlisted PR once these merge.

tests/Unit/Security/ShellInjection/ScriptFieldShellRoundTripTest.php: skip when
either exec() or proc_open() is unavailable (the test launches the fixture with
exec() while the fixture itself uses proc_open()). The fixture adds 7 nested
command-substitution and backtick round-trip cases (90 -> 97), each proving the
field value echoes back verbatim with nothing inside it executing.

* fix(security): clear quote-empty flag on single-quote content; cover new parser branches

The stack-based substitute_script_path() rewrite left quoteEmpty set while emitting literal content inside a single-quoted region, so a template like '\<field>' wrongly took the exact-wrap branch and dropped the backslash (ScriptSubstitutionMatrix 'shell 56'). Clear the frame's quoteEmpty whenever a single-quoted character is emitted, matching the pre-rewrite fallthrough.

ScriptSubstitutionMatrix.php: add 8 explicit parser cases exercising the \/backtick nested contexts and escaped \$ / backtick pairing so every rewritten line is covered by the changed-coverage probe (1285 -> 1293).

* style: short array syntax and php-cs-fixer formatting in substitute_script_path

* test(security): tolerate formatting in spikekill escaping contract

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

* fix(spikekill): bind menu requests and protect mutations on develop

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

* test(spikekill): validate real CSRF tokens and inline coverage

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

* ci(coverage): install locked dependencies for Symfony CSRF probes

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

* perf(spikekill): skip disabled float debug formatting

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

* fix(spikekill): enforce mutation scope and propagate RRD failures

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

* fix(spikekill): escape repair notes and cover window boundaries

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

* test: remove unused SpikeKill preference binding

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

* fix(security): reject unsupported nested shell grammar in #8237 (#8359)

* fix(security): reject unsupported nested shell grammar

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

* test(security): exercise nested grammar rejection in CI coverage

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

---------

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

* fix(security): reject script fields in backtick substitutions

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

* test: retain native security fixture evidence in changed coverage

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

* fix(security): reject ambiguous shell expansion contexts

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

* test(ssrf): assemble insecure manifest schemes at runtime

The SSRF negative-test inputs in PackageManifestMatrix.php are rejected by
the import preflight policy, but storing them as clear-text URL literals
(http://, ftp://, file://) tripped SonarCloud php:S5332 and dropped the
New Code security rating to B. Join the scheme separator at runtime so the
fixture no longer carries clear-text literals while the assembled values
keep the exact insecure schemes the policy must reject. All 32 manifest
cases still pass.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* fix(spikekill): drop dangling href in removeSpikes redirect check

The CSRF POST rewrite of removeSpikes replaced the GET href builder but
left checkForRedirects(data, href) referencing the now-undefined href,
throwing ReferenceError once a POST completed. Call checkForRedirects(data)
so a redirect response reloads (a POST has no GET href to follow).

Update the merged dom_dynamic_boundaries boundary test to exercise the
POST path: define csrfMagicToken and mock $.post instead of $.getJSON, so
it still verifies DOMPurify sanitization of spike results.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

---------

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
Co-authored-by: TheWitness <copilot@users.noreply.github.com>
Co-authored-by: TheWitness <1439914+TheWitness@users.noreply.github.com>
Co-authored-by: Thomas Vincent <thomasvincent@gmail.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-11-03 13:43:12 -08:00
TheWitnessandTheWitness a31fea5ce1 fix: (#8575)
Co-authored-by: TheWitness <copilot@users.noreply.github.com>
2026-11-03 12:45:02 -05:00
Thomas Vincent 207d5eecd6 fix(ui): enforce dynamic DOM rendering boundaries (#8542)
* fix(ui): enforce dynamic DOM rendering boundaries

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

* test(ui): run DOM boundary checks with browser dependencies

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

* ci(ui): fail the browser job on either regression failure

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

---------

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
2026-11-02 13:34:06 -05:00
Daniel Nylander 93ef6d7c1f Translated using Weblate (Swedish)
Currently translated at 100.0% (5198 of 5198 strings)

Translation: Cacti/core
Translate-URL: https://translate.cacti.net/projects/cacti/core/sv/
2026-11-02 11:29:11 -06:00
63a53d511b fix: Make boost_redirect the default boost behavior (develop port of #8559) (#8561)
* fix: Make boost_redirect the default boost behavior

Port of the 1.2.x change (issue#8470) to develop. Boost redirection is now
permanent whenever boost is enabled, so the boost_redirect setting is removed
and the collector always stages poller output directly into
poller_output_boost.

- cmd.php: drop the boost_redirect guard; stage whenever boost_rrd_update_enable
  is on.
- include/global_settings.php, settings.php: remove the boost_redirect setting
  and its UI toggles.
- lib/snmpagent.php: always report the redirect object as enabled.
- poller.php, settings.php: stop force-setting boost_redirect for multi-poller
  installs (boost_rrd_update_enable alone now implies redirection).
- lib/boost.php: boost_poller_on_demand() no longer stages inline; cmd.php owns
  staging, so it only reports rows as already staged and never re-inserts.

Tests are updated to match the single, permanent-redirect pipeline: the
hand-off acknowledgement and consolidation contracts point at the surviving
cmd.php/poller_recovery.php call sites, and the PollerOutput probe drops the
now-dead redirect-off staging scenarios.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* test(coverage): cover the permanent Boost redirect in snmpagent

Add a request-coverage probe that exercises the permanent
boostApplRrdUpdateRedirect assignment in snmpagent_global_settings_update().
The statement lives in a MibCache-driven function that cannot run under the
unit/integration coverage driver without a live SNMP agent cache, so the
single changed line is compiled at its original line number and executed
against a minimal MibCache stand-in, with Xdebug coverage remapped to
lib/snmpagent.php. Register the probe so the changed-PHP coverage gate runs
it whenever lib/snmpagent.php changes.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* i18n:

* tests: Cover the cmd.php Boost flush guards for the changed-line gate

Making boost_redirect the default removed the boost_redirect half of the three poller flush conditions in cmd.php, leaving bare read_config_option(boost_rrd_update_enable) guards at lines 392, 501, and 537. Those statements live in cmd.php top-level poller loop, so the unit/integration driver includes them in the denominator but never executes them, dropping changed-line coverage to 3 of 6 (50 percent).

Adds a request-coverage probe that compiles each changed guard at its original line number and executes it against minimal read_config_option/boost_flush_output_batch stand-ins, mirroring the existing snmpagent redirect probe. Xdebug hits are remapped to cmd.php, raising changed-line coverage to 6 of 6 (100 percent). Registers the probe in run_request_coverage.sh so it runs whenever cmd.php changes.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* fix(boost): keep the boost_redirect compatibility flag enabled

Port the poller.php compatibility assignment from the 1.2.x change
(#8559, commit ba2ab827) that this develop port dropped. Supported
Spine versions still read the hidden boost_redirect flag to stage
poller output into poller_output_boost; without it a compatible
collector never stages, yet boost_poller_on_demand() still reports
the rows as staged and poller_acknowledge_output() deletes them,
losing samples. Set the flag unconditionally before launching
collectors so redirection stays permanent whenever Boost is enabled.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: TheWitness <copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-11-02 17:28:47 +00:00
da682d9607 deps(deps-dev): bump the composer group with 2 updates (#8565)
* deps(deps-dev): bump the composer group with 2 updates

Bumps the composer group with 2 updates: [overtrue/phplint](https://github.com/overtrue/phplint) and [phpstan/phpstan](https://github.com/phpstan/phpstan-phar-composer-source).


Updates `overtrue/phplint` from 9.7.3 to 9.8.0
- [Release notes](https://github.com/overtrue/phplint/releases)
- [Changelog](https://github.com/overtrue/phplint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/overtrue/phplint/compare/9.7.3...9.8.0)

Updates `phpstan/phpstan` from 2.3.1 to 2.3.2
- [Commits](https://github.com/phpstan/phpstan-phar-composer-source/commits)

---
updated-dependencies:
- dependency-name: overtrue/phplint
  dependency-version: 9.8.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: composer
- dependency-name: phpstan/phpstan
  dependency-version: 2.3.2
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: composer
...

Signed-off-by: dependabot[bot] <support@github.com>

* deps(deps-dev): invoke phplint lint subcommand for 9.8.0 default-command change

phplint 9.8.0 changes the default console command from lint to list, so the bare \phplint --no-cache --exclude=...\ invocation now resolves to list, which has no --exclude option and exits 1 (breaking composer run-script lint in the locked integration job). Call the lint subcommand explicitly; this is accepted by 9.6 through 9.8, keeping the composer.json ^9.6 constraint satisfied.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: TheWitness <copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-11-02 17:24:56 +00:00
Thomas Vincent cd40748543 fix(graphs): group legends using the instance graph identity (#8528)
Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
2026-11-02 17:17:29 +00:00
github-actions[bot] 250a725f10 chore(contributors): update contributor list (#8562)
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-11-02 16:10:23 +00:00
d27c2a8779 fix: Fix php deprecation of spl_object_hash in php 8.6 (#8567)
* fix: Fix php deprecation of spl_object_hash in php 8.6

Replaces spl_object_hash() calls to address the PHP 8.6 deprecation.

Adds cacti_object_hash(), which uses spl_object_id() to produce a stable 32 character hash string, and migrates the database connection and affected-row tracking in lib/database.php to the helper. Boost already keys its per-connection packet-limit cache on spl_object_id() on develop, so no change is needed there.

Adds tests/Unit/CactiObjectHashTest.php covering hash format, determinism, uniqueness, and the non-object false return.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* tests: Cover cacti_object_hash connection-tracking paths in database.php

The changed-PHP-lines coverage gate fell below 80 percent because the cacti_object_hash() swaps in db_check_reconnect(), db_close(), and db_execute_prepared() (the DEBUG_SQL_CONNECT branches) were not exercised. Adds a unit test that drives those paths with a real PDO handle registered in \, raising changed-line coverage of lib/database.php to 7 of 8 lines (overall 10 of 11, 90.9 percent).

Every connection global these functions assign to is snapshotted and restored around each test so the shared connection state the rest of the suite relies on is not corrupted.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* tests: Move CactiObjectHashTest into the Core category folder

AGENTS.md requires unit tests to live in a category subfolder rather than the tests/Unit/ root. Moves the cacti_object_hash() helper test to tests/Unit/Core/ alongside the other core utility tests and updates its lib/functions.php include to dirname(__DIR__, 3) so it still resolves to the repository root.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: TheWitness <copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-11-02 15:54:54 +00:00
c6c37dfb5a deps(deps): bump chart.js from 2.9.4 to 4.6.1 (#8564)
* deps(deps): bump chart.js from 2.9.4 to 4.6.1

Bumps [chart.js](https://github.com/chartjs/Chart.js) from 2.9.4 to 4.6.1.
- [Release notes](https://github.com/chartjs/Chart.js/releases)
- [Commits](https://github.com/chartjs/Chart.js/compare/v2.9.4...v4.6.1)

---
updated-dependencies:
- dependency-name: chart.js
  dependency-version: 4.6.1
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* fix(build): sync chart.js 4.x UMD bundle

chart.js 4.x no longer ships dist/Chart.js; its browser bundle is now dist/chart.umd.js, which auto-registers all controllers and exposes the global Chart like the 2.x build. Point sync-js at the new path and refresh the vendored include/js/Chart.js so postinstall and the JavaScript contract tests succeed.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: TheWitness <copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-11-02 14:36:26 +00:00
Thomas Vincent bd1577a6c7 ci(security): add Semgrep rules for stored XSS and form_selectable_cell (#8550)
The XSS rule only modelled request variables, so stored text such as device
descriptions, graph titles, notes, SNMP strings and plugin hook output was
never reported. form_selectable_cell() prints its contents verbatim and had no
rule at all.

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
2026-11-01 17:42:28 +00:00
Sean Mancini 145733febd docs(copilot): add anti-pattern rejecting Twig usage (#8551) 2026-11-01 17:41:01 +00:00
Maël ChouteauandMaël Chouteau d92ab84435 fix(i18n): embed French JS strings with json_encode (#8556)
Single-quoted PHP gettext in <script> breaks when the French
translation contains an apostrophe. Use json_encode() as support.php
already does so the apostrophe is string data.

Fixes #8555

Co-authored-by: Maël Chouteau <mael.chouteau@pmbservices.fr>
2026-11-01 17:40:31 +00:00
dependabot[bot] db1be3b208 deps(deps): bump the composer group with 2 updates (#8498)
Bumps the composer group with 2 updates: [lipis/flag-icons](https://github.com/lipis/flag-icons) and [overtrue/phplint](https://github.com/overtrue/phplint).


Updates `lipis/flag-icons` from 7.5.0 to 7.6.0
- [Release notes](https://github.com/lipis/flag-icons/releases)
- [Changelog](https://github.com/lipis/flag-icons/blob/main/CHANGELOG.md)
- [Commits](https://github.com/lipis/flag-icons/compare/v7.5.0...v7.6.0)

Updates `overtrue/phplint` from 9.7.2 to 9.7.3
- [Release notes](https://github.com/overtrue/phplint/releases)
- [Changelog](https://github.com/overtrue/phplint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/overtrue/phplint/compare/9.7.2...9.7.3)

---
updated-dependencies:
- dependency-name: lipis/flag-icons
  dependency-version: 7.6.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: composer
- dependency-name: overtrue/phplint
  dependency-version: 9.7.3
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: composer
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-31 22:08:48 +00:00
dependabot[bot] 28cb9b58d5 deps(deps): bump billboard.js from 4.1.1 to 4.1.3 in the npm group (#8499)
Bumps the npm group with 1 update: [billboard.js](https://github.com/naver/billboard.js).


Updates `billboard.js` from 4.1.1 to 4.1.3
- [Release notes](https://github.com/naver/billboard.js/releases)
- [Changelog](https://github.com/naver/billboard.js/blob/master/CHANGELOG.md)
- [Commits](https://github.com/naver/billboard.js/compare/4.1.1...4.1.3)

---
updated-dependencies:
- dependency-name: billboard.js
  dependency-version: 4.1.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: npm
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-31 22:08:47 +00:00
dependabot[bot] af98315544 deps(deps-dev): bump @playwright/test in /tests/e2e in the npm-e2e group (#8501)
Bumps the npm-e2e group in /tests/e2e with 1 update: [@playwright/test](https://github.com/microsoft/playwright).


Updates `@playwright/test` from 1.64.0 to 1.64.1
- [Release notes](https://github.com/microsoft/playwright/releases)
- [Commits](https://github.com/microsoft/playwright/compare/v1.64.0...v1.64.1)

---
updated-dependencies:
- dependency-name: "@playwright/test"
  dependency-version: 1.64.1
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: npm-e2e
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-31 22:02:41 +00:00
dependabot[bot] 776b3ffcaf ci(deps): bump the github-actions group with 6 updates (#8553)
Bumps the github-actions group with 6 updates:

| Package | From | To |
| --- | --- | --- |
| [github/codeql-action/init](https://github.com/github/codeql-action) | `4.39.0` | `4.39.1` |
| [github/codeql-action/analyze](https://github.com/github/codeql-action) | `4.39.0` | `4.39.1` |
| [actions/setup-python](https://github.com/actions/setup-python) | `7.0.0` | `7.1.0` |
| [jdx/mise-action](https://github.com/jdx/mise-action) | `5.2.0` | `5.2.2` |
| [trufflesecurity/trufflehog](https://github.com/trufflesecurity/trufflehog) | `3.99.2` | `3.99.7` |
| [github/codeql-action/upload-sarif](https://github.com/github/codeql-action) | `4.39.0` | `4.39.1` |


Updates `github/codeql-action/init` from 4.39.0 to 4.39.1
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/6f2ac81f5cd81fe351a197ba0b00d91d03cd2aee...9b3254085494b55a0f7c4c2b3d2d52cc712ce370)

Updates `github/codeql-action/analyze` from 4.39.0 to 4.39.1
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/6f2ac81f5cd81fe351a197ba0b00d91d03cd2aee...9b3254085494b55a0f7c4c2b3d2d52cc712ce370)

Updates `actions/setup-python` from 7.0.0 to 7.1.0
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/5fda3b95a4ea91299a34e894583c3862153e4b97...6d4fd22b20465ccc0f7354476588e8df7c9ca0e0)

Updates `jdx/mise-action` from 5.2.0 to 5.2.2
- [Release notes](https://github.com/jdx/mise-action/releases)
- [Changelog](https://github.com/jdx/mise-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/jdx/mise-action/compare/9b200bcecbfd6303e69a4a261b2e09e3757440a7...8418fedb1110381a0d3ba51a7a415d7c1b884550)

Updates `trufflesecurity/trufflehog` from 3.99.2 to 3.99.7
- [Release notes](https://github.com/trufflesecurity/trufflehog/releases)
- [Commits](https://github.com/trufflesecurity/trufflehog/compare/e76dff8a7e57d6df0c60ad8cbf5d5cba505a8fc9...31ce31ee1abbcc7dc8eee5764c17121c3044c8b2)

Updates `github/codeql-action/upload-sarif` from 4.39.0 to 4.39.1
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/6f2ac81f5cd81fe351a197ba0b00d91d03cd2aee...9b3254085494b55a0f7c4c2b3d2d52cc712ce370)

---
updated-dependencies:
- dependency-name: github/codeql-action/init
  dependency-version: 4.39.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: github-actions
- dependency-name: github/codeql-action/analyze
  dependency-version: 4.39.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: github-actions
- dependency-name: actions/setup-python
  dependency-version: 7.1.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: github-actions
- dependency-name: jdx/mise-action
  dependency-version: 5.2.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: github-actions
- dependency-name: trufflesecurity/trufflehog
  dependency-version: 3.99.7
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: github-actions
- dependency-name: github/codeql-action/upload-sarif
  dependency-version: 4.39.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: github-actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-31 21:56:26 +00:00
Thomas Vincent 8f4ac605b2 refactor(themes): remove the Carrot and Hollyberry themes (#8526)
* refactor(themes): remove the Carrot and Hollyberry themes

Both were near-copies of the classic stylesheet kept as examples; the 1.3.0 upgrade prunes their directories and moves anyone who selected them to Modern instead of the alphabetical fallback.

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

* docs(changelog): add fragment for #8526

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

* test: cover retired theme cleanup and handle deleted coverage files

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

---------

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
2026-10-27 14:19:50 +00:00
Thomas Vincent ff31e051dd fix(a11y): [develop] correct labels, document semantics and duplicate IDs (#8295)
* fix(a11y): [develop] correct labels, document semantics and duplicate IDs

Associates form controls with their labels, replaces obsolete tt markup, removes duplicate element IDs, and adds a native accessibility browser suite with its database fixture.

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

* fix(a11y): validate label IDs and recognize attribute escaping

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

---------

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
2026-10-26 23:19:18 +00:00
Thomas Vincent 6578ffde9c deps: update Symfony 7.4 patch releases (#8520)
Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
2026-10-26 22:54:42 +00:00
Daniel Nylander 883b334deb Translated using Weblate (Swedish)
Currently translated at 100.0% (5198 of 5198 strings)

Translation: Cacti/core
Translate-URL: https://translate.cacti.net/projects/cacti/core/sv/
2026-10-26 10:38:21 -05:00
Daniel Nylander cd8bb244d7 Translated using Weblate (Swedish)
Currently translated at 100.0% (5198 of 5198 strings)

Translation: Cacti/core
Translate-URL: https://translate.cacti.net/projects/cacti/core/sv/
2026-10-26 10:20:19 -05:00
Daniel Nylander d81ffc688a Translated using Weblate (Swedish)
Currently translated at 100.0% (5198 of 5198 strings)

Translation: Cacti/core
Translate-URL: https://translate.cacti.net/projects/cacti/core/sv/
2026-10-26 08:47:46 -05:00
Daniel Nylander f7e199446c Translated using Weblate (Swedish)
Currently translated at 100.0% (5198 of 5198 strings)

Translation: Cacti/core
Translate-URL: https://translate.cacti.net/projects/cacti/core/sv/
2026-10-26 07:56:20 -05:00
Daniel Nylander a65f75035f Translated using Weblate (Swedish)
Currently translated at 100.0% (5198 of 5198 strings)

Translation: Cacti/core
Translate-URL: https://translate.cacti.net/projects/cacti/core/sv/
2026-10-26 06:30:10 -05:00
Daniel Nylander d6da903eec Translated using Weblate (Swedish)
Currently translated at 100.0% (5198 of 5198 strings)

Translation: Cacti/core
Translate-URL: https://translate.cacti.net/projects/cacti/core/sv/
2026-10-26 06:04:55 -05:00