Warmup memory store when starting (behind a parameter) #9
Loading…
Reference in New Issue
No description provided.
Delete Branch "feat/load-certs-at-boot"
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?
Fixes: #6
Add the ability to warmup the memory store when the proxy is started.
Trace that serves as an example
The first time we start tricot, there is no certificates in consul.
We generate one successfully:
Note: The df-consul library has a bug when the prefix is empty and returns an error as you can note. This patch works despite the error, that should be fixed upstream.
Now we restart Tricot, it must load all the certificates contained in consul into the memory store:
This line:
INFO tricot::cert_store > Memory store warmed up with 1 certificates
tells you that the certificate has been successfully loaded.Thanks to that, users will not see anymore a self-signed certificate when trying to access their website after a tricot restart.