Back to Home
alexandremahdhaoui icon

testenv-vm

Verified Safe

by alexandremahdhaoui

Overview

Provisions virtual machines, networks, and SSH keys for end-to-end infrastructure testing, solving the gap for systems requiring actual VMs rather than containers.

Installation

Run Command
go run ./cmd/testenv-vm --mcp

Environment Variables

  • TESTENV_VM_IMAGE_CACHE_DIR
  • TESTENV_VM_LIBVIRT_URI
  • TESTENV_VM_STATE_DIR
  • FORGE_RUN_LOCAL_ENABLED

Security Notes

The system leverages external tools like 'virsh' and 'qemu-img', which are inherently powerful and require careful input sanitization, though current implementations appear structured. SSH client connections (pkg/client/ssh.go) use 'ssh.InsecureIgnoreHostKey()' for testing purposes, which is a known security risk if used in production but acceptable in a test environment. SSH private keys are managed and stored on the local filesystem (e.g., .forge/testenv-vm/artifacts/), requiring host-level file permission management (mode 0600 is mentioned). No explicit 'eval' or similar arbitrary code execution patterns were found outside of Go's template engine which is designed to be safe.

Similar Servers

Stats

Interest Score0
Security Score7
Cost ClassMedium
Avg Tokens15000
Stars0
Forks0
Last Update2025-12-26

Tags

ForgeVMTest EnvironmentInfrastructure TestingVirtualization