Skip to content
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

Manage nonces pushed concurrency between SAN validation goroutines #454

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hightoxicity
Copy link

@hightoxicity hightoxicity commented Dec 15, 2017

Having certs with many SAN, we encounter a lot of errors with bad nonces.
Analyzing code we see that concurrency is managed on nonce pushed to nonces but not between launched in concurrency goroutines.
But several goroutines are managing in parallel the challenges and they pop the last pushed occurence of nonce, sometime the pop() happen bewteen first attempt and the retry and another goroutine pushed a new nonce, anonther one is about to use to make her own call.

To fix this issue, I set a mutex to allow only one goroutine at a time to deal with jws post + nonce stuff.

@hightoxicity hightoxicity changed the title Manage nonces pushed concurrency bewteen validation goroutines Manage nonces pushed concurrency between validation goroutines Dec 15, 2017
@hightoxicity hightoxicity changed the title Manage nonces pushed concurrency between validation goroutines Manage nonces pushed concurrency between SAN validation goroutines Dec 15, 2017
@hightoxicity
Copy link
Author

Something even better would consist in pushing nonces under FQDN namespaces.

@ldez ldez added the area/lib label Nov 3, 2018
@ldez ldez added the bug label Nov 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

3 participants