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

Improve connection doctor and validation of connection URLs #946

Merged

Conversation

avelanarius
Copy link
Member

This PR improves the validation of connection URLs in configuration, giving clearer error messages to the user and the expected format of the connection string.

Related to that, RemoteLogDrainUrl and QuesmaInternalTelemetryUrl now can't be provided in the config - they were overwritten by hardcoded constants either way.

Additionally, ClickHouse connection doctor is improved:

  • If connection succeeded it suggests making sure that username/password is correct
  • It now skips TLS trial connections if the user disabled TLS in the config (and informs of that fact)
  • It tries default ports in more cases

This PR is extracted from larger PR #938.

This PR improves the validation of connection URLs in configuration,
giving clearer error messages to the user and the expected format of the
connection string.

Related to that, RemoteLogDrainUrl and QuesmaInternalTelemetryUrl now
can't be provided in the config - they were overwritten by
hardcoded constants either way.

Additionally, ClickHouse connection doctor is improved:
- If connection succeeded it suggests making sure that username/password
  is correct
- It now skips TLS trial connections if the user disabled TLS in the
  config (and informs of that fact)
- It tries default ports in more cases

This PR is extracted from larger PR QuesmaOrg#938.
Copy link
Member

@mieciu mieciu left a comment

Choose a reason for hiding this comment

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

👍

@avelanarius avelanarius added this pull request to the merge queue Nov 4, 2024
@avelanarius avelanarius removed this pull request from the merge queue due to a manual request Nov 4, 2024
@avelanarius avelanarius added this pull request to the merge queue Nov 4, 2024
Merged via the queue into QuesmaOrg:main with commit d028fa1 Nov 4, 2024
5 checks passed
@avelanarius avelanarius deleted the better-conn-string-validation branch November 4, 2024 11:49
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.

2 participants