Skip to content

fix: include secure and verify in the ClickHouse CLI profile - #1108

Merged
EladBarkay merged 2 commits into
masterfrom
clickhouse-profile-secure-verify
Dec 1, 2026
Merged

EladBarkay merged 2 commits into
masterfrom
clickhouse-profile-secure-verify

Conversation

@EladBarkay

@EladBarkay EladBarkay commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Problem

The ClickHouse profile printed by generate_elementary_cli_profile (and create_elementary_user) has no secure or verify. A ClickHouse Cloud user who copies it as-is gets dbt-clickhouse's default secure: False and can't connect, because ClickHouse Cloud only accepts TLS. The ClickHouse profile in the docs already lists both.

Fix

Emit secure and verify from the current target. dbt-clickhouse exposes both on target (they're in ClickHouseCredentials._connection_keys() from 1.8 through 1.10.4), so the printed profile carries over the user's actual TLS settings.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • New Features
    • ClickHouse profile settings now support secure connections and certificate verification.

Without secure, a profile copied from generate_elementary_cli_profile
connects without TLS, which ClickHouse Cloud rejects.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

ClickHouse elementary profile arguments now include secure and verify, sourced from the corresponding target fields.

Changes: ClickHouse profile arguments

Layer / File(s) Summary
Add target security arguments
macros/utils/cross_db_utils/generate_elementary_profile_args.sql
The generated ClickHouse profile arguments now include secure and verify values from the corresponding target fields.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Suggested reviewers: guyeshdat, haritamar

Merge Risk: Minimal · up to 3aade

Printed ClickHouse profiles will now include the target's secure and verify settings, so ClickHouse Cloud connections keep TLS. No concrete merge risk was found.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the change accurately: the PR adds secure and verify to the ClickHouse CLI profile. The raw summary confirms the diff adds these two keys, populated from target.secure and target.verif…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the change accurately: the PR adds secure and verify to the ClickHouse CLI profile. The raw summary confirms the diff adds these two keys, populated from target.secure and target.verify, in generate_elementary_profile_args.sql. The title is short, specific, and states the primary change, so it passes.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Essentials
  • Run ID: aa517a27-b77c-4e08-b090-453afa291bef
Commits

Reviewing files that changed from the base of the PR and between a8684ed and 3aadeac.

Files selected for processing: 1

  • macros/utils/cross_db_utils/generate_elementary_profile_args.sql

Included review availability: This review used your included allowance. 4 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 5 reviews per hour.

@github-actions

Copy link
Copy Markdown
Contributor

👋 @EladBarkay
Thank you for raising your pull request.
Please make sure to add tests and document all user-facing changes.
You can do this by editing the docs files in the elementary repository.

@jonlevine7

jonlevine7 commented Nov 30, 2026 •

Copy link
Copy Markdown

✅ Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
✅ Open Source Security 0 0 0 0 0 issues
✅ Licenses 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@EladBarkay
EladBarkay marked this pull request as ready for review November 30, 2026 18:24
Resolve conflict with #1107: keep secure/verify, drop dbname.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@EladBarkay
EladBarkay merged commit 09516ff into master Dec 1, 2026
50 of 53 checks passed
@EladBarkay
EladBarkay deleted the clickhouse-profile-secure-verify branch December 1, 2026 12:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants