Skip to content

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

Open
sbalabanov wants to merge 1 commit into
mainfrom
log/1a-redact-dsn
Open

sbalabanov wants to merge 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

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@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

This branch has not been deployed

No deployments
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.

1 participant