Project details
redacted is a secret-redacting proxy designed to protect sensitive information during interactions with AI coding assistants. By scrubbing output in real-time, it ensures that secrets such as tokens and passwords are replaced with safe markers, preventing unintended exposure when tools interact with coding environments.
The redacted project provides a robust solution for removing sensitive information from tool outputs before they are processed by AI coding assistants. This secret-redacting proxy effectively safeguards your credentials by ensuring that no secrets are exposed through typical outputs, such as environment variables or log entries.
Secure Output Scrubbing: The tool uses a PostToolUse hook to intercept and scrub outputs from various commands, replacing sensitive information with masked markers while maintaining the integrity of clean data.
Local Scanning: All detection and replacement processes occur locally on your machine without any network calls, ensuring maximum privacy and security for sensitive information.
Dynamic Detection of Secrets: redacted learns secrets from your .env files during initialization. It captures values, stores their lengths, and detects them even without pre-defined patterns.
Given the following tool output:
DATABASE_URL=postgres://admin:secret@db.example.com:5432/prod
AWS_ACCESS_KEY_ID=AKIAEXAMPLEKEYID0001
SMTP_PASS="Qf7mZp2kLw9vTx4nRb2024"
APP_NAME=myapp
After processing, the AI assistant receives this sanitized version:
DATABASE_URL=[REDACTED:database_url ...prod]
AWS_ACCESS_KEY_ID=[REDACTED:aws_access_key ...0001]
SMTP_PASS="[REDACTED:smtp_pass ...2024]"
APP_NAME=myapp
While redacted is powerful, it does have limitations:
! are not intercepted, which may require additional awareness during usage.Detailed documentation, including installation guidelines and usage patterns, is available in the reference section. Interested users can explore the overall architecture, benchmarks, and contribution guidelines through the project's documentation.
The redacted tool is an essential utility for developers relying on AI coding assistants, providing peace of mind by securing sensitive information before it can be inadvertently exposed.
Comments
0Start the conversation
Share the first comment.