secrets-hygiene

Enforce secret storage, logging, detection, and rotation practices in CI/CD workflows.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/prapanch/agent-coda --skill secrets-hygiene
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: secrets-hygiene
Source: https://github.com/prapanch/agent-coda/tree/main/secops/secrets-hygiene
Command: npx skills add https://github.com/prapanch/agent-coda --skill secrets-hygiene

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Secrets hygiene prevents API keys, tokens, and passwords from leaking into code, logs, CI output, container images, or incident evidence, which otherwise leads to real compromise and costly incident response.

Core Features & Use Cases

  • Secret storage discipline: Choose secure secret storage from HSMs and secret managers down to encrypted local files, and avoid hardcoding secrets in code.
  • Leak prevention controls: Establish pre-commit and repository safeguards (e.g., git-secrets, gitleaks, trufflehog) plus logging and sanitization practices that stop secrets from appearing in outputs.
  • Incident-ready rotation: Execute a rotation checklist that generates new secrets, updates consumers, revokes old credentials, and audits for unauthorized usage.

Use case: A team needs to roll over database credentials used across multiple services after a suspected exposure, while also ensuring future commits and CI logs cannot reintroduce the same class of leak.

Quick Start

Use the secrets-hygiene skill to design a secret storage and rotation plan for your CI/CD pipelines and application services while adding automated secret detection to prevent accidental commits.

Frequently Asked Questions about secrets-hygiene

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

FAQPage Schema
How do I prevent secrets from leaking into CI/CD logs and source control?

Secret leak prevention requires establishing pre-commit repository safeguards using automated scanning, alongside strict logging sanitization practices that redact sensitive values from CI outputs and application errors before they are recorded.

What's the best way to rotate database credentials across multiple services after a suspected exposure?

Credential rotation after exposure requires an incident-ready checklist that generates new secrets, updates consumer services, revokes old credentials, and audits unauthorized usage to ensure secure recovery across the entire CI/CD delivery workflow.

What is secret storage discipline and do I need a vault or HSM for my application?

Secret storage discipline involves choosing secure storage from HSMs and secret managers down to encrypted local files. You must choose a storage tier that matches your application's security requirements while always avoiding hardcoding secrets directly in code.

Can I use pre-commit scanning tools to stop accidental secret commits in my pipeline?

Pre-commit scanning tools like git-secrets, gitleaks, and trufflehog are used to establish repository safeguards that automatically detect and block accidental secret commits before they enter your source control history.

How does redaction work for sensitive values in incident response and error handling?

Redaction of sensitive values works by establishing logging and sanitization practices that actively intercept and mask secrets, stopping them from appearing in application outputs, incident evidence, and error messages during runtime.