Skip to content

Add credential redaction to dokucheck CLI tool - #440

Closed
mnindrazaka wants to merge 1 commit into
mainfrom
claude/optimistic-goldberg-ykk12j
Closed

Add credential redaction to dokucheck CLI tool#440
mnindrazaka wants to merge 1 commit into
mainfrom
claude/optimistic-goldberg-ykk12j

Conversation

@mnindrazaka

Copy link
Copy Markdown
Collaborator

Adds a command-line flag to the dokucheck utility to control whether sensitive credentials are displayed in full or redacted in the output. By default, credentials are now redacted to make the tool's output safe for CI logs and public sharing.

Changes:

  • Added -show-credentials flag to dokucheck command with default behavior of redacting sensitive values
  • Implemented format() helper function that redacts credentials by default, showing either a character count for short values or first/last 4 characters with total length for longer values
  • Updated doku-check make target to pass -show-credentials flag for local development use
  • Added dokucheck to the release build process so it can be deployed as a standalone binary on the VPS
  • Updated README with documentation on how to use the credential checking tool locally and in production

The redaction strategy preserves enough information to verify credential format while preventing accidental exposure in logs.

https://claude.ai/code/session_01S4JVnnR1QZd4HpDPe3Em78

make doku-check was a go run target, so it only worked on a machine with
the Go toolchain and the generated api-contract module. Neither is present
on the VPS, which left no way to test the live DOKU credentials there.

build-release now also compiles cmd/dokucheck into dist/release, so the
existing deploy tarball carries it to the box. Identifiers are redacted in
its output so it is safe to run where the log is public; -show-credentials
prints them in full.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01S4JVnnR1QZd4HpDPe3Em78
@vercel

vercel Bot commented Sep 11, 2026

Copy link
Copy Markdown

Deployment failed for project gatherloop-pos with the following error:

Resource is limited - try again in 24 hours (more than 100, code: "api-deployments-free-per-day").

Learn More: https://vercel.com/m-nindra-zakas-projects-ae6b8849?upgradeToPro=build-rate-limit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants