Backport of Remove log line about server mgmt token init into release/1.14.x (#15612)

Co-authored-by: freddygv <freddy@hashicorp.com>
pull/15462/head^2
hc-github-team-consul-core 2 years ago committed by GitHub
parent b1526699ef
commit 657616a744
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,3 @@
```release-note:bug
acl: avoid debug log spam in secondary datacenter servers due to management token not being initialized.
```

@ -116,7 +116,6 @@ func (s *serverACLResolverBackend) IsServerManagementToken(token string) bool {
return false
}
if mgmt == "" {
s.logger.Debug("server management token has not been initialized")
return false
}
return subtle.ConstantTimeCompare([]byte(mgmt), []byte(token)) == 1

Loading…
Cancel
Save