Skip to content

Commit

Permalink
Backport of Remove log line about server mgmt token init into release…
Browse files Browse the repository at this point in the history
…/1.14.x (#15612)

Co-authored-by: freddygv <freddy@hashicorp.com>
  • Loading branch information
hc-github-team-consul-core and freddygv committed Nov 29, 2022
1 parent b152669 commit 657616a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .changelog/15610.txt
@@ -0,0 +1,3 @@
```release-note:bug
acl: avoid debug log spam in secondary datacenter servers due to management token not being initialized.
```
1 change: 0 additions & 1 deletion agent/consul/acl_server.go
Expand Up @@ -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
Expand Down

0 comments on commit 657616a

Please sign in to comment.