Skip to content

Add Let's Encrypt Integration - #48661

Closed
Lokhmat wants to merge 14 commits into
ClickHouse:masterfrom
Lokhmat:lets-encrypt-integration
Closed

Lokhmat wants to merge 14 commits into
ClickHouse:masterfrom
Lokhmat:lets-encrypt-integration

Conversation

@Lokhmat

@Lokhmat Lokhmat commented Apr 11, 2023

Copy link
Copy Markdown
Contributor

Changelog category (leave one):

  • New Feature

Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):

Let's Encrypt Integration with ability to automatically fetch SSL certificates

Documentation entry for user-facing changes

This feature is one of the Intern task issue: #42194

In this PR add new files handler for completing HTTP-01 challenge, CertificateIssuer class for managing issuance of Let's Encrypt certificate and lightweight acme library from Let's Encrypt list of suggested libraries: https://letsencrypt.org/docs/client-options/

Information about CI checks: https://clickhouse.com/docs/en/development/continuous-integration/

@CLAassistant

CLAassistant commented Apr 11, 2023 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@robot-clickhouse-ci-2 robot-clickhouse-ci-2 added pr-feature Pull request with new product feature submodule changed At least one submodule changed in this PR. labels Apr 11, 2023
@alexey-milovidov alexey-milovidov added the can be tested Allows running workflows for external contributors label Apr 11, 2023
@Lokhmat

Lokhmat commented Apr 12, 2023

Copy link
Copy Markdown
Contributor Author

@alexey-milovidov Could you please also answer some org questions that i've written to telegram

@clickhouse-gh

clickhouse-gh Bot commented Jun 25, 2024

Copy link
Copy Markdown
Contributor

Dear @thevar1able, this PR hasn't been updated for a while. You will be unassigned. Will you continue working on it? If so, please feel free to reassign yourself.

@thevar1able thevar1able self-assigned this Jun 25, 2024
@alexey-milovidov

Copy link
Copy Markdown
Member

The main problem is to make it work for clusters under a load balancer or DNS balancing - when a request to ACME challenge goes to an arbitrary server, but the certificate should appear on every server.

I have a few ideas on how to do it... We can use Keeper for shared state. But keeping private keys there is a bit risky, because people can forget to make it secure.

@thevar1able

thevar1able commented Jun 25, 2024 •

Copy link
Copy Markdown
Member

@alexey-milovidov I had the same thought, we can do it like Caddy does with different storages, but use Keeper. Is it unsafe to store private keys in Keeper though?

@poundifdef

Copy link
Copy Markdown

Could you store just the ACME token on keeper, and then share that amongst the different individual nodes? Once an individual server has generated the cert, that could be copied to the other nodes without placing the key itself in keeper. Letsencrypt will only use the domain name to request the challenge to the LB, so presumably it would be "safe" if the ACME token were to leak since it would not be usable on a different host.

@alexey-milovidov

Copy link
Copy Markdown
Member

@thevar1able, it is safe to even store private keys and certificates in Keeper, as long as it is isolated on the network level, so only clickhouse-server can connect to it, and/or password-protected.

@thevar1able thevar1able mentioned this pull request Jul 10, 2024
1 task done
@clickhouse-gh

clickhouse-gh Bot commented Jul 30, 2024

Copy link
Copy Markdown
Contributor

Dear @thevar1able, this PR hasn't been updated for a while. You will be unassigned. Will you continue working on it? If so, please feel free to reassign yourself.

@thevar1able

Copy link
Copy Markdown
Member

Closing in favor of #66315

@thevar1able thevar1able closed this Mar 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

can be tested Allows running workflows for external contributors pr-feature Pull request with new product feature submodule changed At least one submodule changed in this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants