Skip to content

Commit

Permalink
Fix data race around static secret capability manager
Browse files Browse the repository at this point in the history
  • Loading branch information
VioletHynes committed Oct 9, 2024
1 parent 60d7051 commit 338df3b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,8 @@ func (sscm *StaticSecretCapabilityManager) StartRenewingCapabilities(indexToRene
capabilitiesIndex.IndexLock.RLock()
token := capabilitiesIndex.Token
indexReadablePathsMap := capabilitiesIndex.ReadablePaths
capabilitiesIndex.IndexLock.RUnlock()
indexReadablePaths := maps.Keys(indexReadablePathsMap)
capabilitiesIndex.IndexLock.RUnlock()

client, err := sscm.client.Clone()
if err != nil {
Expand Down

0 comments on commit 338df3b

Please sign in to comment.