We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 339ee6d commit 5988c96Copy full SHA for 5988c96
authorization/storage_authorization.go
@@ -705,7 +705,7 @@ func (s *Store) filterAuthorizationsFn(filter influxdb.AuthorizationFilter) func
705
}
706
707
return func(a *influxdb.Authorization) bool {
708
- if a.Token == token {
+ if subtle.ConstantTimeCompare([]byte(a.Token), []byte(token)) == 1 {
709
return true
710
711
return slices.Contains(allHashes, a.HashedToken)
0 commit comments