mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 08:58:41 +00:00
Remove invalid node keys from server logs (#21731)
#21412 Tested using the curl command in the issue description. - [X] Changes file added for user-visible changes in `changes/`, `orbit/changes/` or `ee/fleetd-chrome/changes`. See [Changes files](https://github.com/fleetdm/fleet/blob/main/docs/Contributing/Committing-Changes.md#changes-files) for more information. - [X] Manual QA for all new/changed functionality
This commit is contained in:
parent
c6e20456a5
commit
78bd5db0b8
2 changed files with 2 additions and 1 deletions
1
changes/21412-remove-node-key-from-server-logs
Normal file
1
changes/21412-remove-node-key-from-server-logs
Normal file
|
|
@ -0,0 +1 @@
|
|||
* Removed invalid node keys from server logs.
|
||||
|
|
@ -81,7 +81,7 @@ func (svc *Service) AuthenticateHost(ctx context.Context, nodeKey string) (*flee
|
|||
case err == nil:
|
||||
// OK
|
||||
case fleet.IsNotFound(err):
|
||||
return nil, false, newOsqueryErrorWithInvalidNode("authentication error: invalid node key: " + nodeKey)
|
||||
return nil, false, newOsqueryErrorWithInvalidNode("authentication error: invalid node key")
|
||||
default:
|
||||
return nil, false, newOsqueryError("authentication error: " + err.Error())
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue