Skip to content

Run vendor tools with fixed argument lists and bounded cost #35

Closed

Description

@somethingwithproof

Summary

Executing a vendor tool is the plugin's main trust boundary. Operators choose which tool and interval; they never supply a command line.

Requirements

  • REQ-EXEC-001 The plugin MUST execute vendor tools with a fixed argument vector and no shell, and MUST NOT interpolate operator, device, or node input into a command.
  • REQ-EXEC-002 Tool binaries MUST be selected from an allowlist of known names and resolved paths set by the administrator, not typed into a form as a command.
  • REQ-EXEC-003 The plugin MUST NOT use sudo, setuid helpers, or root, and MUST report a permission failure instead of retrying with more privilege.
  • REQ-EXEC-004 Every execution MUST have a wall-clock timeout, an output size cap, and a clean-environment allowlist.
  • REQ-EXEC-005 Only one collection per node MUST run at a time; a second MUST be skipped and counted.
  • REQ-EXEC-006 A nonzero exit status, timeout, or truncated output MUST produce an error state with unknown values, never zero values.
  • REQ-EXEC-007 Tool output MUST be treated as untrusted data: parsed by field position and validated against expected types before storage.

Acceptance criteria

  • Tests prove a hostile node name or GPU name containing shell metacharacters reaches no command line.
  • Timeout, oversize, and truncated-output fixtures produce error state with U values.
  • Static check: no shell_exec, backticks, or system() in plugin code.

References

Dependencies

Activity

  1. added
    type: requirementA testable behavior the plugin must have
    priority: blockerStops its milestone until resolved
    area: collectionHow GPU metrics reach the Cacti poller
    area: securityTrust boundaries, privileges, and command execution
    phase: 1 nvidiaNVIDIA collection with alerting
    on Nov 14, 2026
  2. moved this from Todo to In Progress in plugin_gpu roadmapon Nov 15, 2026
  3. moved this from In Progress to Done in plugin_gpu roadmapon Nov 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: collectionHow GPU metrics reach the Cacti pollerarea: securityTrust boundaries, privileges, and command executionphase: 1 nvidiaNVIDIA collection with alertingpriority: blockerStops its milestone until resolvedtype: requirementA testable behavior the plugin must have

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions