Back to Home
consigcody94 icon

infra-sage

by consigcody94

Overview

AI-powered management of Terraform infrastructure, automating tasks like module generation, configuration validation, change planning, resource listing, and drift detection.

Installation

Run Command
node /absolute/path/to/infra-sage/build/index.js

Environment Variables

  • TERRAFORM_DIR

Security Notes

The server executes `terraform` commands using `child_process.exec`, which runs commands via a shell. The `plan_changes` tool directly interpolates user-provided `varFile` and `target` parameters into the shell command string without sanitization or proper escaping. This creates a critical shell injection vulnerability where a malicious user could craft an argument (e.g., in `target`) to execute arbitrary shell commands on the host system. The `execAsync` function should ideally use `child_process.spawn` with arguments passed as an array to prevent shell interpretation, or meticulously sanitize inputs if `exec` is necessary.

Similar Servers

Stats

Interest Score0
Security Score1
Cost ClassMedium
Avg Tokens1000
Stars0
Forks0
Last Update2025-11-25

Tags

TerraformInfrastructure as CodeIaCCloud ManagementDevOps