Skip to content

fix: mark connection-string as isSecret in config_schema - #25

Merged
btipling merged 1 commit into
mainfrom
bt/secret-audit-mysql
Jun 15, 2026
Merged

fix: mark connection-string as isSecret in config_schema#25
btipling merged 1 commit into
mainfrom
bt/secret-audit-mysql

Conversation

@btipling

Copy link
Copy Markdown
Contributor

Marks the MySQL connection-string config field as a secret.

Why

connection-string (user:password@tcp(host:port)/db) embeds the database
password but was not flagged secret, so it was stored and surfaced as plain
config. This adds field.WithIsSecret(true) to the field definition in
cmd/baton-mysql/config.go.

baton-mysql defines its config in Go and ships no committed
config_schema.json at the repo root; field.WithIsSecret(true) is the
source of truth that the generated schema is built from, so this single change
is the equivalent of the schema fix.

BREAKING: adding isSecret: true to these fields changes how existing
configurations are stored. Customers with existing connector configurations
will need to re-enter credentials after this change is deployed.

Review only — do not merge.

The MySQL connection-string embeds the database password
(user:password@tcp(host)/db) and was not flagged secret, so it was
stored and surfaced as plain config. Mark it secret.

baton-mysql defines its config in Go and ships no committed
config_schema.json, so the generated-schema fix is the field.WithIsSecret(true)
option on the connection-string field; the schema is regenerated from this
at build time.

Co-authored-by: c1-squire-dev[bot] <c1-squire-dev[bot]@users.noreply.github.com>
@btipling
btipling requested a review from a team June 13, 2026 02:11
@github-actions

Copy link
Copy Markdown
Contributor

Connector PR Review: fix: mark connection-string as isSecret in config_schema

Blocking Issues: 0 | Suggestions: 0 | Threads Resolved: 0
Review mode: full
View review run

Review Summary

Single-line change adds field.WithIsSecret(true) to the connection-string config field in cmd/baton-mysql/config.go. This is correct — connection-string embeds database credentials and should be marked secret so the SDK treats it appropriately during storage and display. The PR description accurately notes the breaking-change implications for existing configurations. No issues found.

Security Issues

None found.

Correctness Issues

None found.

Suggestions

None.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No blocking issues found.

@btipling
btipling merged commit e6d8237 into main Jun 15, 2026
9 of 11 checks passed
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