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

Fix race in cert auth tests #17181

Merged
merged 1 commit into from
Sep 19, 2022
Merged

Fix race in cert auth tests #17181

merged 1 commit into from
Sep 19, 2022

Conversation

cipherboy
Copy link
Contributor

This race was added in #17136 but doesn't affect the shipped binary as it exists solely in the tests. The test would race against the periodic func for access to these variables.

Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>

@cipherboy cipherboy added bug Used to indicate a potential bug auth/cert Authentication - certificates test pr/no-changelog labels Sep 16, 2022
@cipherboy cipherboy added this to the 1.12 milestone Sep 16, 2022
There were two races here:

 1. Tests racing against periodic func on updating the backend.
 2. Tests racing internally to itself, to access the http-served
    CRL data.

Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>
@cipherboy
Copy link
Contributor Author

@stevendpclark @sgmiller Updated to fix the other data race within the tests, around crlBytes and serving that over the httpd reader thingy.

@cipherboy
Copy link
Contributor Author

\o/ go-race is now green!

@cipherboy
Copy link
Contributor Author

Thanks! Merging...

@cipherboy cipherboy merged commit 9a80004 into main Sep 19, 2022
@cipherboy cipherboy deleted the cipherboy-fix-data-race branch December 1, 2022 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auth/cert Authentication - certificates bug Used to indicate a potential bug pr/no-changelog test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants