← 返回
开发者工具 中文

Env Doctor

Validate .env files for common issues — detect leaked secrets (AWS keys, GitHub tokens, Stripe keys, JWTs), find duplicate variables, flag empty values, comp...
验证 .env 文件的常见问题——检测泄露的密钥(AWS 密钥、GitHub 令牌、Stripe 密钥、JWT),查找重复变量,标记空值,检查兼容性问题
johnnywang2001
开发者工具 clawhub v1.0.0 1 版本 99813.1 Key: 无需
★ 0
Stars
📥 534
下载
💾 5
安装
1
版本
#latest

概述

Env Doctor

Validate and audit .env files for secrets, duplicates, syntax issues, and missing variables.

Quick Start

python3 scripts/env_doctor.py .env
python3 scripts/env_doctor.py .env --example .env.example
python3 scripts/env_doctor.py .env --strict --json

Features

  • Secret scanning — detects AWS keys, GitHub tokens, Stripe keys, Slack tokens, Google API keys, JWTs, private key blocks, and more
  • Duplicate detection — flags variables defined more than once
  • Example comparison — compares .env against .env.example to find missing or extra vars
  • Syntax validation — catches malformed lines, unquoted values with spaces
  • Placeholder detection — warns about values like "changeme", "your-api-key-here"
  • Exit codes — 0 = healthy, 1 = issues, 2 = secret leaks (CI-friendly)
  • No dependencies — Python stdlib only

Options

FlagDescription
-------------------
--example PATH.env.example file for comparison
--jsonOutput structured JSON
--strictTreat empty values as errors

Secret Patterns Detected

AWS Access/Secret Keys, GitHub Tokens (ghp_, gho_, ghs_, ghu_, github_pat_), Slack Tokens, Stripe Keys, Google API Keys, Private Key Blocks, JWTs, Twilio Tokens, SendGrid Keys, Heroku API Keys, and generic high-entropy secrets.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-29 21:49 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 68 📥 180,261
productivity

Agent Invoice Generator

johnnywang2001
根据自然语言或结构化数据生成专业的PDF发票,适用于用户请求创建发票、向客户计费或生成收据等场景。
★ 0 📥 651
developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 669 📥 324,254