You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unfortunately the key used is a static string "issue" which if simultaneous requests come in for different common names that are not cached the wrong result may be returned.
Changing the key from the fixed string to the same key used for the cache (name in this context) would prevent the issue from occurring.
I haven't actually run into this issue myself (my usage of certify only ever has the one common name being issued) but stumbled across it while looking at the code for unrelated reasons so I thought I'd open a bug report rather than a trivial PR just in case I've misunderstood the logic being used.
The text was updated successfully, but these errors were encountered:
singleflight is used to deduplicate requests to issue a new certificate
certify/certify.go
Line 140 in 168d95c
Unfortunately the key used is a static string "issue" which if simultaneous requests come in for different common names that are not cached the wrong result may be returned.
Changing the key from the fixed string to the same key used for the cache (name in this context) would prevent the issue from occurring.
I haven't actually run into this issue myself (my usage of certify only ever has the one common name being issued) but stumbled across it while looking at the code for unrelated reasons so I thought I'd open a bug report rather than a trivial PR just in case I've misunderstood the logic being used.
The text was updated successfully, but these errors were encountered: