-
Notifications
You must be signed in to change notification settings - Fork 307
sync-diff-inspector fails on TiDB cluster v8.5.4 with FIPS enabled #12627
Copy link
Copy link
Open
pingcap/tidb-tools
#886Labels
affects-8.5This bug affects the 8.5.x(LTS) versions.This bug affects the 8.5.x(LTS) versions.contributionThis PR is from a community contributor.This PR is from a community contributor.first-time-contributorIndicates that the PR was contributed by an external member and is a first-time contributor.Indicates that the PR was contributed by an external member and is a first-time contributor.severity/moderatetype/bugThe issue is confirmed as a bug.The issue is confirmed as a bug.
Metadata
Metadata
Assignees
Labels
affects-8.5This bug affects the 8.5.x(LTS) versions.This bug affects the 8.5.x(LTS) versions.contributionThis PR is from a community contributor.This PR is from a community contributor.first-time-contributorIndicates that the PR was contributed by an external member and is a first-time contributor.Indicates that the PR was contributed by an external member and is a first-time contributor.severity/moderatetype/bugThe issue is confirmed as a bug.The issue is confirmed as a bug.
Bug Report
What did you do?
Run sync-diff-inspector on TiDB cluster running v8.5.4 with FIPS enabled:
What did you expect to see?
sync-diff-inspector succeeds.
What did you see instead?
sync-diff-inspector fails with:
Preliminary RCA:
TiDB FIPS build mode was introduced in 7.6.0: Pull Request #47949: Makefile,cmd/tidb-server: add tidb-server FIPS build target.
sync-diff-inspector relies on MD5() for chunk checksumming. TiDB may push expression evaluation down to TiKV coprocessor, which uses OpenSSL for cryptographic functions (tidb_query_expr).
In FIPS configuration, md5 functions is disabled in OpenSSL library used by TiKV. Therefore, when TiKV OpenSSL inner_evp_generic_fetch() tries to load MD5 algorithm and fails with error code 50856204 (EVP_R_UNSUPPORTED)
As a result, sync-diff-inspector fails because TiDB rejects all MD5-based checksum queries due to OpenSSL security policy restrictions.
What version of TiDB are you using?
v8.5.4 with ENABLE_FIPS=1
which tool are you using?
sync-diff-inspector
what versionof tool are you using?
sync-diff-inspector from v8.5.4 release.