secret-handling

Enforces security policies that block commits and reads of files containing secrets.

619|188|Updated Jul 4, 2024
One-click install
npx skills add https://github.com/CommunityToolkit/Aspire --skill secret-handling-communitytoolkit
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: secret-handling
Source: https://github.com/CommunityToolkit/Aspire/tree/main/examples/squad/CommunityToolkit.Aspire.Hosting.Squad.AppHost/dev-squad/.copilot/skills/secret-handling
Command: npx skills add https://github.com/CommunityToolkit/Aspire --skill secret-handling-communitytoolkit

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill ensures that sensitive information such as credentials and secrets are not accidentally exposed in the codebase by enforcing strict read and write policies.

Core Features & Use Cases

  • Prevent Secret Exposure: Blocks the commitment of files containing secrets to the repository.
  • Prohibit Secret Reads: Disallows reading of environment files and other secret-containing files.
  • Safe Alternatives: Provides guidelines on safe alternatives to access configuration information.
  • Scribe Integration: Integrates with Scribe for pre-commit validation to detect and block commits with secrets.
  • Remediation Guidance: Offers steps to take if a secret is already committed.

Quick Start

Use the secret-handling skill to validate the commit of a file and ensure it does not contain 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 accidentally committing secrets to my code repository?

To prevent accidental secret exposure, you can enforce pre-commit validation to block files containing credentials from entering the repository. This monitors file reads and writes to ensure sensitive information is not committed.

What should I do if a secret is already committed to my repository?

If a secret is already committed, remediation guidance offers specific steps to secure the repository. This includes blocking further exposure and providing safe alternatives for accessing configuration information.

Does Scribe integration work for pre-commit secret detection?

Scribe integration works for pre-commit secret detection by validating commits before they are finalized. It monitors file writes for sensitive information and blocks the commit if secrets are detected.

Can I read environment files containing secrets while enforcing code safety policies?

Reading environment files and other secret-containing files is prohibited to enforce code safety. The policy disallows these reads and provides guidelines on safe alternatives to access configuration information.

What is the best way to enforce secret management policies for sensitive credentials?

The best way to enforce secret management policies is by monitoring file operations for sensitive information and integrating pre-commit validation. This blocks secret exposure and provides safe configuration access alternatives.