Back to catalog

lengrufeng2008 /

lengrufeng2008/dsh-secret-guard

Verified

Local-only secret scan and redaction for DSH prompts, logs, diffs, and files.

★ 0 Stars0 Forks0 IssuesN/A Community rating0 Confirmed installs
READMESource: main@2592c229

Secret Guard for DSH

Local-only credential scan and redaction for prompts, logs, diffs, and files. Findings are redacted; the full secret is never returned.

Use

node bin/dsh-secret-guard.mjs --file notes.txt
cat notes.txt | node bin/dsh-secret-guard.mjs --redact

In DSH:

Use secret_scan on this text.
Use secret_redact before sharing this file.

Rules

GitHub tokens, AWS keys, OpenAI-style keys, private-key blocks, JWT-like tokens, and assigned credential values.

Limits

  • Pattern-based, not entropy/AST/secret-manager integration.
  • A clean scan is not proof that a document is secret-free.
  • Redaction can break syntax; review the result.
  • No network, no telemetry, no write to disk.

Tests

npm test

Test tokens are constructed at runtime; no real credential is committed.

Provenance

A small independent scanner. Inspired by common secret-scanning practice; no source copied. License: MIT.

—/ 5

No ratings yet

Community comments

No comments yet. Be the first to write one.