secret-handling

Enforce safe secret handling by prohibiting access to live credential files and .squad/ commits.

Updated Nov 27, 2024
One-click install
npx skills add https://github.com/Izak90/Izak90.github.io --skill secret-handling-izak90
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: secret-handling
Source: https://github.com/Izak90/Izak90.github.io/tree/main/isaac_treinos_ar_livre/.copilot/skills/secret-handling
Command: npx skills add https://github.com/Izak90/Izak90.github.io --skill secret-handling-izak90

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The skill codifies strict prohibitions against reading live credential files (like .env) and prevents committing secrets to .squad/ by enforcing safe alternatives and guardrails across development and collaboration workflows.

Core Features & Use Cases

  • Enforces no reading of live secret files (.env, .env.*) and discourages embedding credentials in .squad/ decisions, logs, or history; instead use placeholders and safe schemas.
  • Guides safe config discovery: ask the user for details when needed, consult .env.example for schema, and consult documentation.
  • Provides pre-commit secret scanning, prohibition on writing sensitive data, and remediation steps for credential leaks.

Quick Start

Ask the user for the configuration details and use .env.example to infer the schema, then apply safe placeholders and avoid committing any secrets.

Frequently Asked Questions about secret-handling

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I prevent secrets in .env files from leaking into committed code?

To prevent secret leaks, prohibit reading live credential files like .env and avoid embedding credentials in committed files. Enforce safe alternatives by using placeholders and .env.example for schema validation across development workflows.

What is the best way to set up pre-commit checks for credential management?

The best way to set up pre-commit checks for credential management is to define validation rules and prohibited output patterns. This prevents writing sensitive data and provides clear remediation steps for any detected credential leaks.

How do I safely share configuration schemas without exposing live credentials?

Safely share configuration schemas by consulting .env.example to infer the required structure and asking the user for details when needed. Apply safe placeholders instead of accessing live secret files during collaborative workflows.

Why should I use placeholders instead of reading live .env files during development?

You should use placeholders because reading live .env files risks embedding credentials in logs and history. Placeholders enforce safe handling of secrets by ensuring sensitive data is never accessed or committed during development.

What steps should I take for incident response when a credential leak occurs?

For incident response during a credential leak, apply defined remediation steps to prohibit further access to sensitive data. Run pre-commit secret scanning to identify exposed credentials and enforce safe handling of secrets.

Can I use .env.example to infer configuration schema without accessing live secrets?

Yes, you can use .env.example to infer the configuration schema without accessing live secrets. This approach enforces safe handling of secrets by guiding safe config discovery through documentation and placeholders instead of live credential files.