Skip to content

Acquire RLock after readyCh in GetX509SVID and FetchJWTSVID#147

Merged
JoshVanL merged 1 commit intodapr:mainfrom
acroca:spiffe-lock-after-ready
Mar 11, 2026
Merged

Acquire RLock after readyCh in GetX509SVID and FetchJWTSVID#147
JoshVanL merged 1 commit intodapr:mainfrom
acroca:spiffe-lock-after-ready

Conversation

@acroca
Copy link
Member

@acroca acroca commented Mar 11, 2026

GetX509SVID and FetchJWTSVID were acquiring the read lock before blocking on readyCh. The lock protects the SVID fields; acquiring it before those fields are even populated is incorrect ordering.

Also ,adds unit tests for GetX509SVID

@acroca acroca requested review from a team as code owners March 11, 2026 11:45
Signed-off-by: Albert Callarisa <albert@diagrid.io>
@acroca acroca force-pushed the spiffe-lock-after-ready branch from 8a49e01 to db0d24b Compare March 11, 2026 11:48
@JoshVanL JoshVanL merged commit 6b37127 into dapr:main Mar 11, 2026
6 checks passed
@acroca acroca deleted the spiffe-lock-after-ready branch March 11, 2026 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants