Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v2][feat] Introduce ClickHouse connection configuration #6664

Closed
wants to merge 1 commit into from

Conversation

zzzk1
Copy link
Contributor

@zzzk1 zzzk1 commented Feb 3, 2025

Which problem is this PR solving?

Description of the changes

According to the principle of minimization, provide a connection configuration for subsequent clients connected to ClickHouse.

  • A YAML configuration file for e2e test, including the minimum parameters required to interact with ClickHouse.
  • Provide the default connection configuration. Subsequently, the connection configuration in YAML should be parsed and applied at runtime.

How was this change tested?

  • unit test

Checklist

@zzzk1 zzzk1 requested a review from a team as a code owner February 3, 2025 11:15
@zzzk1 zzzk1 requested a review from albertteoh February 3, 2025 11:15
Copy link

codecov bot commented Feb 3, 2025

Codecov Report

Attention: Patch coverage is 95.65217% with 1 line in your changes missing coverage. Please review.

Project coverage is 95.61%. Comparing base (92246c5) to head (09696eb).
Report is 10 commits behind head on main.

Files with missing lines Patch % Lines
...eger/internal/extension/jaegerstorage/extension.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6664      +/-   ##
==========================================
- Coverage   95.96%   95.61%   -0.35%     
==========================================
  Files         365      367       +2     
  Lines       20602    21141     +539     
==========================================
+ Hits        19770    20214     +444     
- Misses        634      711      +77     
- Partials      198      216      +18     
Flag Coverage Δ
badger_v1 11.99% <ø> (+2.07%) ⬆️
badger_v2 4.18% <0.00%> (+2.33%) ⬆️
cassandra-4.x-v1-manual 17.09% <ø> (+2.16%) ⬆️
cassandra-4.x-v2-auto 4.00% <0.00%> (+2.17%) ⬆️
cassandra-4.x-v2-manual 4.03% <0.00%> (+2.20%) ⬆️
cassandra-5.x-v1-manual 17.09% <ø> (+2.16%) ⬆️
cassandra-5.x-v2-auto 4.00% <0.00%> (+2.17%) ⬆️
cassandra-5.x-v2-manual 4.03% <0.00%> (+2.20%) ⬆️
elasticsearch-6.x-v1 21.36% <ø> (+2.05%) ⬆️
elasticsearch-7.x-v1 21.43% <ø> (+2.04%) ⬆️
elasticsearch-8.x-v1 21.59% <ø> (+2.03%) ⬆️
elasticsearch-8.x-v2 4.00% <0.00%> (+2.16%) ⬆️
grpc_v1 13.17% <ø> (+2.27%) ⬆️
grpc_v2 10.12% <0.00%> (+2.23%) ⬆️
kafka-3.x-v1 10.43% <ø> (+0.21%) ⬆️
kafka-3.x-v2 3.97% <0.00%> (+2.12%) ⬆️
memory_v2 4.18% <0.00%> (+2.33%) ⬆️
opensearch-1.x-v1 21.48% <ø> (+2.04%) ⬆️
opensearch-2.x-v1 21.48% <ø> (+2.04%) ⬆️
opensearch-2.x-v2 3.97% <0.00%> (+2.12%) ⬆️
tailsampling-processor 0.49% <0.00%> (+<0.01%) ⬆️
unittests 93.89% <95.65%> (-0.96%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Password: "",
},
//nolint: gosec // G402
TLS: &tls.Config{InsecureSkipVerify: true},

Check failure

Code scanning / CodeQL

Disabled TLS certificate check High

InsecureSkipVerify should not be used in production code.
Copy link
Member

@yurishkuro yurishkuro left a comment

Choose a reason for hiding this comment

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

I closed the ticket.

// Auth Specify an auth struct in the connection details to specify a username and password.
Auth Authentication `mapstructure:"auth"`
// TLS options. A non-nil value enables TLS.
TLS *tls.Config `mapstructure:"tls"`
Copy link
Member

Choose a reason for hiding this comment

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

Won't work, see how other configs are doing TLS

}

type Authentication struct {
Database string `mapstructure:"database"`
Copy link
Member

Choose a reason for hiding this comment

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

Why is database part of auth? Can't I auth via TLS and still specify database?

@zzzk1 zzzk1 closed this Feb 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[jaeger-v2][storage] Add Configuration For ClickHouse
2 participants