Skip to content

Use sipHash128 instead of MD5 to derive attach UUIDs in test 04401 (fails in FIPS builds) - #116023

Merged
alexey-milovidov merged 1 commit into
masterfrom
fix/04401-fips-md5-uuid
Aug 24, 2026
Merged

alexey-milovidov merged 1 commit into
masterfrom
fix/04401-fips-md5-uuid

Conversation

@alexey-milovidov

@alexey-milovidov alexey-milovidov commented Aug 23, 2026 •

Copy link
Copy Markdown
Member

Changelog category (leave one):

  • CI Fix or improvement (changelog entry is not required)

Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):

Use sipHash128 instead of MD5 to derive attach UUIDs in the stateless test 04401_url_engine_s3_dispatch_engine_grant.

The test's attach_uuid helper derives deterministic table UUIDs via SELECT reinterpretAsUUID(MD5(...)). In OpenSSL FIPS builds MD5 throws SUPPORT_IS_DISABLED ("Function MD5 is not available in FIPS mode"), so the helper returns an empty string and every ATTACH TABLE ... UUID '' fails with CANNOT_PARSE_UUID — the test fails deterministically in the FIPS stateless job (which only runs in the private repository's CI, so upstream CI never exercises this path; observed as a CH Inc sync failure, e.g. on #115286). sipHash128 also returns FixedString(16) and is available in FIPS builds.

Related: #115914
Related: #115286


Workflow [PR]
Sync PR [sync-upstream/pr/116023]

Version info

  • Merged into: 26.9.1.41 (included in 26.9 and later)

`MD5` throws `SUPPORT_IS_DISABLED` ("Function MD5 is not available in FIPS mode")
in OpenSSL FIPS builds, so `attach_uuid` returned an empty string and every
`ATTACH TABLE ... UUID ''` in `04401_url_engine_s3_dispatch_engine_grant` failed
with `CANNOT_PARSE_UUID`. `sipHash128` also returns `FixedString(16)` and is
available in FIPS builds.

Co-Authored-By: Claude Fable 5 <[email protected]>
@clickhouse-gh

clickhouse-gh Bot commented Aug 23, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [44f38a6]

Summary: ✅


AI Review

Summary

This PR replaces MD5 with sipHash128 in attach_uuid for 04401_url_engine_s3_dispatch_engine_grant, which avoids the SUPPORT_IS_DISABLED failure in OpenSSL FIPS builds while preserving the test's need for deterministic 128-bit UUIDs. I did not find a correctness, metadata, or evidence gap that warrants a review comment; the public CI report for this PR is green.

Final Verdict
  • Status: ✅ Approve

@clickhouse-gh clickhouse-gh Bot added the pr-ci label Aug 23, 2026

@alexey-milovidov alexey-milovidov left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Ok.

@alexey-milovidov alexey-milovidov self-assigned this Aug 23, 2026
@alexey-milovidov
alexey-milovidov added this pull request to the merge queue Aug 24, 2026
Merged via the queue into master with commit f4963fb Aug 24, 2026
181 checks passed
@alexey-milovidov
alexey-milovidov deleted the fix/04401-fips-md5-uuid branch August 24, 2026 18:49
@robot-clickhouse robot-clickhouse added the pr-synced-to-cloud The PR is synced to the cloud repo label Aug 24, 2026
alexey-milovidov pushed a commit to comino/ClickHouse that referenced this pull request Oct 16, 2026
The test builds the opaque `checksum` string of its Parquet `FILE` tuples
with `MD5`, which throws `SUPPORT_IS_DISABLED` at analysis when OpenSSL
FIPS mode is enabled. The inserts that write the test files then fail and
the whole test fails in the FIPS job, on master too.

`sipHash128` has no OpenSSL dependency and no FIPS check and also returns
`FixedString(16)`, so the value stays a 32-char hex string. The label
prefix is renamed with it. Only the three checksum values in the
reference change. Same substitution as ClickHouse#116023.

Reported on ClickHouse#123788.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-ci pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants