grafana/pkg/expr/sql
Kyle Brandt 63e493cc26
expr/sql: enable SQL trace redaction for server-side expressions (#126168)
* expr/sql: enable SQL trace redaction for server-side expressions

Bumps the go-mysql-server fork to a build that includes the merged
upstream opt-in SQL trace redaction (dolthub/go-mysql-server#3537) and
opts the SSE SQL context into it via WithTraceRedaction(true).

GMS trace span attributes (the planbuilder "query" attr and the rowexec
"table"/"left"/"right" attrs) carry the user's SQL verbatim, including
table identifiers and literal filter values. With redaction enabled,
identifiers become stable tokens (n1, n2, ...) and literals become value
tokens ('v1', :v2, ...), deduped per query

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-11 14:54:41 +00:00
..
db.go expr/sql: enable SQL trace redaction for server-side expressions (#126168) 2026-06-11 14:54:41 +00:00
db_test.go Chore: Remove remaining ptr constructor helper functions (#124553) 2026-05-11 21:00:39 +03:00
dummy_arm.go
errors.go SQL Expressions: Add setting to limit length of query (#110165) 2025-08-27 12:08:25 -04:00
frame_db.go
frame_db_conf_arm.go SQL: Fix 32 bit arm builds (#113270) 2025-10-31 09:42:25 +00:00
frame_db_conv.go Plugins: Upgrade github.com/grafana/grafana-plugin-sdk-go v0.283.0 => v0.284.0 (#114400) 2025-11-25 15:46:07 +00:00
frame_table.go Update go-mysql-server fork synced with upstream, security fixes applied, and CGo disabled (#119243) 2026-03-03 13:57:44 -05:00
parser.go
parser_allow.go patch(security): apply May 2026 patches (#124824) 2026-05-13 18:53:11 +02:00
parser_allow_test.go Sql Expressions: Add parser tests (#124914) 2026-05-14 13:17:06 -04:00
parser_test.go