Skip to content

fix: CHC properly detected in Status page#9144

Open
royendo wants to merge 2 commits intomainfrom
royendo/chc-cloud-label-detection
Open

fix: CHC properly detected in Status page#9144
royendo wants to merge 2 commits intomainfrom
royendo/chc-cloud-label-detection

Conversation

@royendo
Copy link
Copy Markdown
Contributor

@royendo royendo commented Mar 30, 2026

Status page today doesnt detect CHC properly shows up at
Clickhouse (self-managed)

Screenshot 2026-03-30 at 9 32 32

Based on inputs of DSN or config properties

Checklist:

  • Covered by tests
  • Ran it and it works as intended
  • Reviewed the diff before requesting a review
  • Checked for unhandled edge cases
  • Linked the issues it closes
  • Checked if the docs need to be updated. If so, create a separate Linear DOCS issue
  • Intend to cherry-pick into the release branch
  • I'm proud of this work!

@royendo royendo requested review from begelundmuller and k-anshul and removed request for k-anshul March 30, 2026 13:33
Comment on lines +465 to +469
// Inject ClickHouse Cloud info for frontend consumption
m["is_clickhouse_cloud"] = c.isClickHouseCloud()
if host := c.resolvedHost(); host != "" {
m["resolved_host"] = host
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It's not safe/intended for Config to mutate the config before returning it

// enrichConnectorWithRuntimeMetadata merges dynamic fields from the live OLAP connector handle
// into the proto connector config. This lets the frontend detect ClickHouse Cloud connectors
// even when the YAML config uses template variables (e.g. {{ .env.CLICKHOUSE_DSN }}).
func (s *Server) enrichConnectorWithRuntimeMetadata(ctx context.Context, instanceID string, pb *runtimev1.Instance) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is way too hacky. This file is not even supposed to contain any driver-specific logic.

@royendo royendo requested a review from AdityaHegde April 3, 2026 16:04
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