Metadata-Version: 2.4
Name: rulestamp-tfstate-secret-leak-lint
Version: 1.0.6
Summary: Names the attributes, outputs and backends that copy a cleartext secret into terraform.tfstate (bundled Node.js runtime)
Author-email: Rulestamp <support@getreadystack.com>
License: Proprietary - see LICENSE.txt
Project-URL: Homepage, https://getreadystack.com/tools/tfstate-secret-leak-lint?ref=pypi
Project-URL: Documentation, https://getreadystack.com/tools/tfstate-secret-leak-lint?ref=pypi
Project-URL: Support, https://getreadystack.com/support
Keywords: terraform,tfstate,secrets,linter,soc2,iac,hcl
Classifier: Programming Language :: Python :: 3
Classifier: Environment :: Console
Classifier: Topic :: Software Development :: Quality Assurance
Classifier: Operating System :: OS Independent
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE.txt
Requires-Dist: nodejs-wheel-binaries>=20
Dynamic: license-file

# Terraform State Secret Leak Lint

> Runs the same checker as our npm package on a Node.js runtime that pip installs for you (`nodejs-wheel-binaries`) - no system Node.js needed. Your files are checked locally.

Names the attributes, outputs and backends that copy a cleartext secret into terraform.tfstate

## Install

```
tfstate-secret-leak-lint file
```

Node 18+. The same 10 rules as the VS Code extension, from a terminal or CI.

## Free

- Scan the Terraform file you have open and name every attribute, output and backend setting that writes a cleartext secret into terraform.tfstate. 10 rules. On the 47-line sample file it returns 8 findings: 6 errors and 2 warnings. The fixed version of the same file returns 0.
- `--rules` lists every rule

## With a licence ($29 once)

- Scan every .tf file in the workspace in one pass and export the finding list as a dated Markdown or JSON evidence file you keep for the audit. $29 once, one licence key per person or CI seat.

```
tfstate-secret-leak-lint --dir ./templates --report html --out report.html
```

Hand review runs about $150/hour.

## Use from an AI agent (MCP)

Claude Code · Cursor · Windsurf · any MCP client - add to your MCP config:

```json
{ "mcpServers": { "tfstate-secret-leak-lint": { "command": "tfstate-secret-leak-lint", "args": ["--mcp"] } } }
```

Tools: `check_text` and `check_file` (free) · `check_dir` (licence). The agent gets every finding with the line number.

## Use in CI

```yaml
- name: Terraform State Secret Leak Lint
  run: pip install rulestamp-tfstate-secret-leak-lint && tfstate-secret-leak-lint --dir . --ci
```


The folder sweep, reports and CI mode need one licence — one payment, no subscription. Set `READYSTACK_LICENSE=<key>` or run `--license <key>` once.

[Get a licence](https://getreadystack.com/api/buy/cl/polar_cl_zIkhgslGAKC7DwM9YZoNxdZy6f9YhUR5XrlPP4UKzK6)


<!-- tfstate secret leak lint -->


## Install (PyPI)

```
pip install rulestamp-tfstate-secret-leak-lint
tfstate-secret-leak-lint --help
```
