Receber por email
← Voltar para o catálogo

env-setup

Environment configuration and secrets management. Use when setting up .env files, managing secrets, or configuring environments.

65estrelas
Atualizado há 4 meses

Ver no GitHub ↗ Licença: NOASSERTION

Como adicionar

/plugin marketplace add Tibsfox/gsd-skill-creator

O comando exato pode variar conforme o repositório. Confira o README no GitHub.

Para o autor da skill

Cole no README do seu repo

Mostra que sua skill está catalogada na Skillteca, gera backlink e tráfego rastreável.

[![Skillteca](https://www.skillteca.com.br/api/badge/env-setup/svg)](https://www.skillteca.com.br/skills/env-setup)

Alerta por categoria

Receba novas skills de Design e Frontend toda segunda

1 email curto, só com as skills novas de Design e Frontend. 4 minutos de leitura, sem spam, cancela com 1 clique.

Você confirma o email no primeiro envio. Sem spam. Cancela com 1 clique.

Ler descrição completa

Environment Configuration

Non-Negotiable Rules

| Rule | Why | |------|-----| | NEVER commit .env to git | Secrets persist in history forever | | NEVER log secret values | Logs stored in plain text, forwarded | | NEVER hardcode secrets | Source code is widely shared | | ALWAYS use .env.example | Documents vars without exposing values | | ALWAYS add .env* to .gitignore FIRST | Prevents accidental commit | | ALWAYS validate config at startup | Fail fast, not hours into production |

.gitignore (add before creating .env)

.env
.env.*
!.env.example
*.pem
*.key
credentials.json

Naming Conventions

  • UPPER_SNAKE_CASE: DATABASE_URL, JWT_SECRET
  • Prefix by service: DB_, REDIS_, AWS_
  • Booleans: ENABLE_CACHE=true (not 1/yes)
  • Feature flags: FEATURE_*

Key Patterns

  • No defaults for secrets — force explicit configuration
  • Validate at startup with Zod/Joi/Pydantic, not at first use
  • Unique secrets per environment — one leak shouldn't compromise all
  • Rotate leaked secrets immediately — check git history, audit access logs
  • Process env always wins — CI/CD overrides file-based config
Compartilhar X LinkedIn