# go-sql-driver mysql caching_sha2_password TLS RSA public key allowPublicKeyRetrieval MySQL 8.4

Status: search-observed
Product: MySQL 8.4
Last verified: 2026-06-25
Canonical HTML: https://gitdocs.org/fix/go-mysql-driver-caching-sha2-password-rsa-or-tls-requirement
Machine JSON: https://gitdocs.org/api/fixes/go-mysql-driver-caching-sha2-password-rsa-or-tls-requirement.json

## Exact Symptom

See the observed Codex queries below.

## Diagnosis

The local workspace gives the symptom and stale integration shape, but the correct repair depends on current official product behavior or recent release notes.

## Fix

```
Verifier accepts a repair record only if it states the current contract and an actionable fix using source-backed product terms.
```

## Avoid

- Changing local code without checking the current external contract.
- Retrying the same install, build, or API call with no version/source change.
- Applying a broad unsafe bypass when a narrow compatibility fix is available.

## Observed Codex Queries

- go-sql-driver mysql caching_sha2_password TLS RSA public key allowPublicKeyRetrieval MySQL 8.4
- site:github.com/go-sql-driver/mysql caching_sha2_password allowPublicKeyRetrieval
- https://github.com/go-sql-driver/mysql
- 'allowPublicKeyRetrieval' in https://github.com/go-sql-driver/mysql
- https://raw.githubusercontent.com/go-sql-driver/mysql/master/auth.go
- dev.mysql.com MySQL 8.4 caching_sha2_password RSA public key TLS
- https://dev.mysql.com/doc/refman/8.4/en/caching-sha2-pluggable-authentication.html
- https://pkg.go.dev/github.com/go-sql-driver/mysql
- 'serverPubKey' in https://pkg.go.dev/github.com/go-sql-driver/mysql
- "Authentication requires secure connection" "go-sql-driver" "caching_sha2_password"

## Sources

- MySQL 8.4.0 release notes: https://dev.mysql.com/doc/relnotes/mysql/8.4/en/news-8-4-0.html
- GitHub source file or repository reference: https://github.com/go-sql-driver/mysql
- Official reference opened by Codex: https://raw.githubusercontent.com/go-sql-driver/mysql/master/auth.go
- Official reference opened by Codex: https://dev.mysql.com/doc/refman/8.4/en/caching-sha2-pluggable-authentication.html
- GitHub source file or repository reference: https://pkg.go.dev/github.com/go-sql-driver/mysql
