Skip to content

Bump libssh to 0.12.0 - #108329

Merged
thevar1able merged 2 commits into
masterfrom
bump-libssh-0.12.0
Jun 24, 2026
Merged

thevar1able merged 2 commits into
masterfrom
bump-libssh-0.12.0

Conversation

@thevar1able

@thevar1able thevar1able commented Jun 23, 2026 •

Copy link
Copy Markdown
Member

Update the contrib/libssh submodule to the upstream release libssh-0.12.0 (from an upstream master snapshot, libssh-0.11.0-368-g47305a2f), tracked via the ClickHouse/libssh-0.12.0 branch of the fork mirror. Both the old and new pins are clean upstream commits, so no ClickHouse patches needed to be carried forward.

Build integration changes in contrib/libssh-cmake:

  • Bump the libssh_VERSION_* variables to 0.12.0.
  • Add the new ML-KEM sources. In 0.12.0, kex.c references ssh_client_hybrid_mlkem_remove_callbacks from an unguarded switch case, so hybrid_mlkem.c and mlkem.c are now mandatory. ClickHouse bundles OpenSSL 3.5, which provides the EVP ML-KEM API, so the OpenSSL backend mlkem_crypto.c is used (matching upstream's OPENSSL_VERSION >= 3.5.0 logic).
  • In every per-platform config.h: define GLOBAL_CONF_DIR (now used unconditionally via string concatenation in options.c), and enable HAVE_OPENSSL_MLKEM / HAVE_MLKEM1024 to select the OpenSSL ML-KEM backend and the ML-KEM-1024 variants.

Changelog category (leave one):

  • Build/Testing/Packaging Improvement

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

Update libssh to 0.12.0.

Documentation entry for user-facing changes

  • Documentation is written (mandatory for new features)

Version info

  • Merged into: 26.7.1.24 (included in 26.7 and later)
  • Backported to: 26.6.3.62, 26.5.7.63, 26.3.20.4, 25.8.31.9

Update the `contrib/libssh` submodule from an upstream master snapshot
(`libssh-0.11.0-368-g47305a2f`) to the upstream release `libssh-0.12.0`,
tracked via the `ClickHouse/libssh-0.12.0` branch of the fork mirror. Both
the old and new pins are clean upstream commits, so no ClickHouse patches
needed to be carried forward.

Build integration changes in `contrib/libssh-cmake`:

- Bump the `libssh_VERSION_*` variables to 0.12.0.
- Add the new ML-KEM sources to the build. In 0.12.0, `kex.c` references
  `ssh_client_hybrid_mlkem_remove_callbacks` from an unguarded switch case,
  so `hybrid_mlkem.c` and `mlkem.c` are now mandatory. ClickHouse bundles
  OpenSSL 3.5, which provides the EVP ML-KEM API, so the OpenSSL backend
  `mlkem_crypto.c` is used (matching upstream's `OPENSSL_VERSION >= 3.5.0`
  logic).
- In every per-platform `config.h`: define `GLOBAL_CONF_DIR` (now used
  unconditionally via string concatenation in `options.c`), and enable
  `HAVE_OPENSSL_MLKEM` / `HAVE_MLKEM1024` to select the OpenSSL ML-KEM
  backend and the ML-KEM-1024 variants.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@thevar1able
thevar1able marked this pull request as ready for review June 23, 2026 20:49
@clickhouse-gh

clickhouse-gh Bot commented Jun 23, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [5b2c7fb]

Summary: ❌

job_name test_name status info comment
Stress test (amd_debug) FAIL
Logical error: 'Inconsistent AST formatting: the original AST: (STID: 1941-26fa) FAIL cidb, issue ISSUE EXISTS
Stress test (arm_tsan) FAIL
Hung check failed, possible deadlock found FAIL cidb, issue ISSUE EXISTS

AI Review

Summary
  • This PR bumps contrib/libssh to upstream libssh 0.12.0, updates the hand-maintained libssh CMake/config integration for the new ML-KEM sources and macros, and adds PostgreSQL's explicit_bzero source for affected platform builds. I did not find a correctness issue that warrants an inline review comment.
Missing context / blind spots
  • ⚠️ Full CI is still in progress: the Praktika report currently has no failed tests, and Style check passed, but Fast test, Build (arm_tidy), and the aggregate PR check were still pending when reviewed. Successful completion of those jobs would close the build/test validation gap for this dependency bump.
Final Verdict
  • Status: ✅ Approve

@clickhouse-gh clickhouse-gh Bot added pr-build Pull request with build/testing/packaging improvement submodule changed At least one submodule changed in this PR. labels Jun 23, 2026
@Algunenano Algunenano self-assigned this Jun 24, 2026

@Algunenano Algunenano left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

#define GLOBAL_CLIENT_CONFIG "/etc/ssh/ssh_config"

/* Global configuration directory (libssh >= 0.12 uses it unconditionally) */
#define GLOBAL_CONF_DIR "/etc/ssh"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I had some concerns this might lead us to use external files, but it seems this is only used in the client side for known_hosts, and we never act as such. That is, it's only used to make the build pass.

@thevar1able
thevar1able added this pull request to the merge queue Jun 24, 2026
Merged via the queue into master with commit cd3c529 Jun 24, 2026
164 of 167 checks passed
@thevar1able
thevar1able deleted the bump-libssh-0.12.0 branch June 24, 2026 13:26
@robot-ch-test-poll3 robot-ch-test-poll3 added the pr-synced-to-cloud The PR is synced to the cloud repo label Jun 24, 2026
@Revertionist

Copy link
Copy Markdown
Contributor

@thevar1able can this be backported to 25.8?

@robot-ch-test-poll2 robot-ch-test-poll2 added the pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore label Aug 13, 2026
@robot-ch-test-poll robot-ch-test-poll added the pr-must-backport-synced The `*-must-backport` labels are synced into the cloud Sync PR label Aug 13, 2026
thevar1able added a commit that referenced this pull request Aug 18, 2026
Backport #108329 to 26.5: Bump `libssh` to 0.12.0
thevar1able added a commit that referenced this pull request Aug 18, 2026
Backport #108329 to 26.6: Bump `libssh` to 0.12.0
thevar1able added a commit that referenced this pull request Aug 18, 2026
Backport #108329 to 26.3: Bump `libssh` to 0.12.0
thevar1able added a commit that referenced this pull request Aug 18, 2026
Backport #108329 to 25.8: Bump `libssh` to 0.12.0
kewin-robetti pushed a commit to viasoftkorp/ClickHouse that referenced this pull request Aug 24, 2026
kewin-robetti pushed a commit to viasoftkorp/ClickHouse that referenced this pull request Aug 24, 2026
kewin-robetti pushed a commit to viasoftkorp/ClickHouse that referenced this pull request Aug 24, 2026
zeekay pushed a commit to hanzoai/datastore that referenced this pull request Sep 11, 2026
VighneshPath pushed a commit to VighneshPath/ClickHouse that referenced this pull request Sep 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore pr-build Pull request with build/testing/packaging improvement pr-must-backport-synced The `*-must-backport` labels are synced into the cloud Sync PR pr-synced-to-cloud The PR is synced to the cloud repo submodule changed At least one submodule changed in this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants