TerraVision 0.56.4
Security
Upgrade if you draw Terraform folders you did not write. Both issues need a crafted terravision.yml or module source in that folder.
- Titles and labels stay plain text in every output. A
terravision.ymlis read from the source folder, even with--planfile. Its title could inject script into the interactive HTML page, and its labels could add links to SVG and HTML diagrams or copy a local file into a saved SVG. Annotation and plan text is now escaped, the HTML page fills its placeholders in one pass, and exported files embed only TerraVision's own icons. Advisories GHSA-gr2g-28fj-fgmq and GHSA-24gx-f2fh-749r. Thanks to @elfrost for two careful private reports. - Module sources are checked before download. A
?ref=reaches git as a single branch name, a//subfoldermust stay inside the module, and a private registry'sTF_TOKEN_*is sent only to that registry over HTTPS. Thanks to @nagarajulu for the private report.
Fixes
- AI annotations work on OpenAI GPT-5 and o-series models.
--ai-annotate restapiretries withmax_completion_tokenswhen the model refusesmax_tokens, and errors now show the server's message (#289). Thanks to @swf1996120 for the report and a ready-made reproduction. - Every failure exits with status 1. Eleven error paths printed an ERROR and exited 0, so CI passed with no diagram drawn (#285).
--planfilewith--graphfileno longer needs Terraform installed, from the command line or the MCP server (#268).- Links reach every copy of a
for_eachorcountmodule. Each copy now draws like a plain call of the same module, with no links between copies (#298). - Exported graphs list each resource once, in its innermost box (
graphdataand the MCP.tvg.json). Redrawing an exported graph gives the same picture (#232). - Smaller package: the unused
hcl2/folder is gone (#272).
Diagrams are unchanged apart from module copies (#298) and labels containing <, > or &, which now show as typed.