Skip to content

fix(webapp): strip secure param from query ClickHouse URL#3199

Closed
edosrecki wants to merge 1 commit intotriggerdotdev:mainfrom
edosrecki:fix/clickhouse-query-client-secure-param
Closed

fix(webapp): strip secure param from query ClickHouse URL#3199
edosrecki wants to merge 1 commit intotriggerdotdev:mainfrom
edosrecki:fix/clickhouse-query-client-secure-param

Conversation

@edosrecki
Copy link
Contributor

Summary

  • The initializeQueryClickhouseClient() function in clickhouseInstance.server.ts was missing the url.searchParams.delete("secure") call that the other two sibling ClickHouse client init functions (initializeClickhouseClient and initializeLogsClickhouseClient) already had
  • This caused the webapp to crash on startup with Error: Unknown URL parameters: secure when QUERY_CLICKHOUSE_URL fell back to CLICKHOUSE_URL (which contains ?secure=false)
  • Affects self-hosted Docker Compose deployments out of the box

Fixes #3184

The `initializeQueryClickhouseClient()` function was missing the
`url.searchParams.delete("secure")` call that the other two sibling
ClickHouse client init functions already had. This caused a startup
crash (`Error: Unknown URL parameters: secure`) when QUERY_CLICKHOUSE_URL
fell back to CLICKHOUSE_URL which contains `?secure=false`.

Fixes triggerdotdev#3184
@changeset-bot
Copy link

changeset-bot bot commented Mar 9, 2026

⚠️ No Changeset found

Latest commit: 3efcdf5

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions
Copy link
Contributor

github-actions bot commented Mar 9, 2026

Hi @edosrecki, thanks for your interest in contributing!

This project requires that pull request authors are vouched, and you are not in the list of vouched users.

This PR will be closed automatically. See https://github.com/triggerdotdev/trigger.dev/blob/main/CONTRIBUTING.md for more details.

@github-actions github-actions bot closed this Mar 9, 2026
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Mar 9, 2026

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 94fdc871-9dc1-4d9f-871c-06a2e7eba83a

📥 Commits

Reviewing files that changed from the base of the PR and between 436f20e and 3efcdf5.

📒 Files selected for processing (2)
  • .server-changes/fix-clickhouse-query-client-secure-param.md
  • apps/webapp/app/services/clickhouseInstance.server.ts

Walkthrough

The pull request adds a fix that removes the "secure" query parameter from ClickHouse URL environment variables before client instantiation. This resolves startup errors caused by unknown URL parameters in the ClickHouse client initialization. The fix is applied consistently across multiple ClickHouse client initializations (query and logs clients) and is documented via a changelog entry.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Tip

Try Coding Plans. Let us write the prompt for your AI agent so you can ship faster (with fewer bugs).
Share your feedback on Discord.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Contributor

@devin-ai-integration devin-ai-integration bot left a comment

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 1 additional finding.

Open in Devin Review

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.

bug: Unknown URL parameters: secure in trigger container

1 participant