opentelemetry-go-compile-instrumentation v1.2.1 - MySQL Credential and File Rule Fixes

opentelemetry-go-compile-instrumentation v1.2.1 shipped on November 16, 2026. It is a small patch release with two security fixes: one stops MySQL passwords from leaking into span attributes, the other closes a file read risk in instrumentation rules. If you run this instrumentation against database/sql workloads, this patch matters.

The full release notes are on the GitHub release page.

MySQL password disclosure fix

The bigger of the two fixes targets database/sql instrumentation. Span attributes could previously include connection details parsed from the data source name, and that path could carry the password. The release now matches the driver’s own DSN credential boundary rules. For drivers with a registered parser, the generic ParseDbName fallback is skipped entirely, so credentials never reach span attributes in the first place.

In practice this means spans for MySQL calls should now be safe to export without extra attribute scrubbing on your side.

Safer file reads in instrumentation rules

The second fix covers InstFileRule, the rule type that reads files from an instrumentation rule package. Two classes of unsafe read were possible: path traversal and reads through escaping symlinks.

The rule loader now rejects absolute paths, root or volume relative paths, and any path containing ... Reads are confined to the rule package directory using os.OpenRoot, and symlink escapes cannot reach files outside that directory. If you package custom instrumentation rules, expect stricter validation on the paths you declare.

Upgrade notes

The release notes list no breaking API changes. Both fixes change security behavior, so a rule package that relied on absolute paths or .. references will now be rejected. That is the point of the change, but it is worth checking before you roll v1.2.1 out.

Where to get it

← All updates