Repository navigation
Conversation
|
@alexey-milovidov Could you please also answer some org questions that i've written to telegram |
|
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. |
|
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. |
|
@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? |
|
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. |
|
@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. |
|
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. |
|
Closing in favor of #66315 |
Changelog category (leave one):
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/