Add support for a "ask" parameter for on-demand TLS similar to Caddy's one #8
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Blocked by: Deuxfleurs/garage#610The TLS-on-demand endpoint should be called before any call to the Let's Encrypt API.
Furthermore, we should find a solution to garbage collect certificates that are not used anymore (for example, if we correctly call the check API before any renew, then unused certificates should expire after something like 7d or 14d. Then, we can say that expired certficates can be safely garbage collected).
Interface
New directive of the form:
Garage will then call the URL and return a 200 or 400 http status code:
Some info about
src/check_cert.rs
Currently certificate generation is done as follow:
*
in the Consul service.src/cert_store.rs::CertStore::certificate_loop
src/cert_store.rs::CertStore::check_cert
src/cert_store.rs::CertStore::renew_cert
Internal change
Our change will be made at two places:
proxy_config.rs::ProxyEntry::new
parse_tricot_tags
must include the new directiveOption<String>
new
function must interpret the tag and set the appropriate structure entrycert_store.rs::CertStore::certificate_loop
will need toon-demand-tls-ask
URLs (and their associated glob patterns) in a vector outside of the loop:Out of scope
Garbage collection of non renewed certificates