Skip to content

fix(service): redact MySQL credentials from SubmitQueue startup logs - #1140

Merged
sbalabanov merged 1 commit into
mainfrom
log/1a-redact-dsn
Nov 30, 2026
Merged

sbalabanov merged 1 commit into
mainfrom
log/1a-redact-dsn

Conversation

@sbalabanov

Copy link
Copy Markdown
Collaborator

TLDR: SubmitQueue servers no longer print full MySQL connection strings (with passwords) at startup; they log only host and database.

Changes

  • Add core.DescribeDSN in service/submitqueue/core/dsn.go, returning host:port/db or "" when the DSN does not parse.
  • Orchestrator: log queue_db instead of dsn.
  • Gateway: log app_db and queue_db instead of app_dsn and queue_dsn.
  • Add a table test for DescribeDSN.

Test Plan

  • make fmt && make lint && make check-gazelle && make check-tidy on a staged tree: pass.
  • bazel test //service/submitqueue/core/... //service/submitqueue/gateway/server/... //service/submitqueue/orchestrator/server/...: all pass except TestNewProfiles_GitChangeProviderReadsARealRepository, which needs a local gpgsm and fails identically on main.
  • grep -rnE '"(app_|queue_)?dsn"' service/ returns nothing.

🤖 Generated with Claude Code

@sbalabanov
sbalabanov marked this pull request as ready for review November 25, 2026 23:50
@sbalabanov
sbalabanov requested review from a team as code owners November 25, 2026 23:50
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@sbalabanov
sbalabanov merged commit 338f730 into main Nov 30, 2026
21 checks passed
@sbalabanov
sbalabanov deleted the log/1a-redact-dsn branch November 30, 2026 22:54
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