Skip to content

Pass ClickHouse credentials from the environment - #215

Merged
muodov merged 1 commit into
mainfrom
max/clickhouse-credentials
Oct 23, 2026
Merged

muodov merged 1 commit into
mainfrom
max/clickhouse-credentials

Conversation

@muodov

@muodov muodov commented Oct 23, 2026

Copy link
Copy Markdown
Member

Asana: https://app.asana.com/1/137249556945/task/1219101002447012

Description

ClickhouseReporter creates its client with no credentials, so post-processing/clickhouse.js imports always connect as the server's default user.

It now reads CLICKHOUSE_USER and CLICKHOUSE_PASSWORD, the variables clickhouse-client already uses, and passes them on when both are set. Without them the client behaves as before.

Steps to test this PR

  • npm run mocha: clickhouseCredentials passes both values when set, and nothing when either is missing.
  • Run an import with both variables set and check that system.query_log records that user.

🤖 Generated with Claude Code

ClickhouseReporter created its client with no credentials, so imports
always connected as the server's default user. Read CLICKHOUSE_USER and
CLICKHOUSE_PASSWORD, the variables clickhouse-client uses, and pass them
on when both are set. Without them nothing changes.

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

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Claude Code Review

This repository is configured for manual code reviews. Comment @claude review for a one-time review, or @claude review always to subscribe this PR to a review on every future push.

Tip: disable this comment in your organization's Code Review settings.

@muodov
muodov merged commit f35cfe0 into main Oct 23, 2026
3 checks passed
@muodov
muodov deleted the max/clickhouse-credentials branch October 23, 2026 12:50
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.

1 participant