Skip to content

v1.23.1 — tools may not touch this server's own control files (HLD §18 step 0)

Choose a tag to compare

@zw008 zw008 released this 16 Oct 02:55
· 40 commits to main since this release
  • Security fix. Tools that read or write a path on the server host (guest file download/upload, OVA and
    deployment-spec reads, kubeconfig output, bundle manifests) could reach this server's own files. Over HTTPS any
    token holder could overwrite $OPS_HOME/mcp-tokens or rules.yaml, or upload a skill's .env into a VM.
    vmware_policy.hostpaths.check_host_path now refuses any path that resolves (~, .. and symlinks included)
    into $OPS_HOME, a ~/.vmware-* skill directory, the directory of a VMWARE_*_CONFIG file, or the token file and
    TLS certificate/key a running server was started with. @vmware_tool checks the family's host-path parameters
    (local_path, ova_path, spec_path, manifest_path, output_path) before a tool runs, and each skill also
    checks where it opens the file, so CLI, plans and workflows are covered.
  • Over a network transport, host files are off unless the operator opts in. Protecting the control files is not
    enough when a token holder could still write ~/.ssh/authorized_keys or the installed packages, or read other
    secrets. Network callers may use host paths only inside VMWARE_MCP_FILE_ROOT (a directory the operator sets);
    unset, every host path is refused. stdio and the CLI keep the control-file protection only.
  • Names are compared ignoring case (the default macOS filesystem would otherwise let ~/.VMWARE through) and by file
    identity; /dev and /proc paths are always refused.
  • VMWARE_MCP_FILE_ROOT must be an absolute path that is neither / nor the home directory or one of its parents —
    the server refuses to start otherwise — and it is matched by exact name plus file identity. The network rule is
    process-wide once a server is configured for a network transport, so a thread a tool starts cannot fall back to
    the stdio rule.
  • Keep OPS_HOME a dedicated directory: everything inside it is off limits to these tools.