-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Watch of type connect_leaf blocks until timeout on service restart #13302
Comments
One could argue that this is just the behaviour of the blocking api, but I can't even request a cert with a non-blocking get before starting the watch as that will block aswell. https://gist.github.com/iSchluff/0e062b036b6643a47861fba2bd362177
Basically it seems like the blocking query prevents any chance of getting a new cert without waiting until 10m are over. |
Should be fixed by #12820 I guess |
johnalotoski
added a commit
to input-output-hk/bitte
that referenced
this issue
Aug 24, 2022
* Fixes traefik slow restart issue: hashicorp/consul#13302
johnalotoski
added a commit
to input-output-hk/bitte
that referenced
this issue
Aug 29, 2022
* Fixes traefik slow restart issue: hashicorp/consul#13302
johnalotoski
added a commit
to input-output-hk/bitte
that referenced
this issue
Aug 31, 2022
* Fixes traefik slow restart issue: hashicorp/consul#13302 * Updates the idle_timeout Consul patch for the new version bump code
johnalotoski
added a commit
to input-output-hk/bitte
that referenced
this issue
Sep 15, 2022
* Fixes traefik slow restart issue: hashicorp/consul#13302 * Updates the idle_timeout Consul patch for the new version bump code
johnalotoski
added a commit
to input-output-hk/bitte
that referenced
this issue
Sep 22, 2022
* Fixes traefik slow restart issue: hashicorp/consul#13302 * Updates the idle_timeout Consul patch for the new version bump code
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Overview of the Issue
On service restart for a connect native service I would expect to be able to re-retrieve the leaf certificate without waiting for the update timeout of 10 minutes. Currently however the connect_leaf watch will always block until the timeout of 10m expires from the last issue.
The service I am trying to use is traefik in connect native mode with the consul catalog provider. The effect is that on same-node restarts the service is unusable for up to 10m on restart.
I would expect the watch to provide the current certificate immediately on restart.
Reproduction Steps
Set up a connect native service, request a leaf cert via watch. Then restart that service, the service will not be issued a certificate until the 10m timeout expires.
Complete minimal example: https://gist.github.com/iSchluff/d18e6afc670eeb2355011578ea90e425
Just the connect_leaf watch code from the traefik provider with example nomad job.
Log
Consul info for both Client and Server
Client info
Server info
Operating system and Environment details
Ubuntu 20.04.4 LTS
Linux 5.4.0-113-generic
The text was updated successfully, but these errors were encountered: