← 返回
开发者工具 Key 中文

Render Env Guard

Preflight-check Render service environment variables before deploys; catches missing keys and placeholder/template values that commonly break production roll...
部署前检查 Render 服务环境变量,捕获缺失键和常导致生产故障的占位符/模板值。
daniellummis
开发者工具 clawhub v1.0.0 1 版本 100000 Key: 需要
★ 0
Stars
📥 537
下载
💾 4
安装
1
版本
#latest

概述

Render Env Guard

Use this skill when a deployment is failing because environment variables are missing, placeholder values leaked from templates, or service selection is ambiguous.

What this skill does

  • Resolves a Render service by ID or name
  • Pulls service environment variables through Render API
  • Validates required keys exist and are non-empty
  • Flags suspicious values (template placeholders, localhost DB URLs, unexpanded ${VAR} refs)
  • Exits non-zero on any blocking issue so CI/deploy scripts can fail fast

When to use

  • Before render deploy / render blueprint updates
  • After onboarding a new environment
  • When runtime is showing config-related 5xx errors

Inputs

  • RENDER_API_KEY (required)
  • one of:
  • RENDER_SERVICE_ID
  • RENDER_SERVICE_NAME
  • optional:
  • RENDER_API_BASE_URL (default https://api.render.com/v1)
  • REQUIRED_ENV_KEYS (comma-separated, default: DATABASE_URL,DIRECT_URL,SHADOW_DATABASE_URL,NEXT_PUBLIC_APP_URL)

Run

bash scripts/check-render-env.sh

or with explicit values:

RENDER_SERVICE_NAME=my-service \
REQUIRED_ENV_KEYS="DATABASE_URL,NEXT_PUBLIC_APP_URL,STRIPE_SECRET_KEY" \
bash scripts/check-render-env.sh

Output contract

  • Prints a short report with PASS/FAIL
  • Returns exit code 0 when all required keys are valid
  • Returns exit code 1 when any key is missing/invalid or service lookup fails

Notes

  • This checker is intentionally strict to prevent bad deploys.
  • It validates values at the service level (what Render will inject at runtime), not local .env files.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-30 15:53 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

security-compliance

GitHub Actions Trigger Health Audit

daniellummis
审计 GitHub Actions 运行状态,按触发事件和工作流划分,快速定位并优先处理不稳定的自动化源。
★ 0 📥 716
developer-tools

CodeConductor.ai

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

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 921 📥 185,809