diff --git a/changes/21412-remove-node-key-from-server-logs b/changes/21412-remove-node-key-from-server-logs new file mode 100644 index 0000000000..c6555bd5bc --- /dev/null +++ b/changes/21412-remove-node-key-from-server-logs @@ -0,0 +1 @@ +* Removed invalid node keys from server logs. diff --git a/server/service/osquery.go b/server/service/osquery.go index f98c2cdc79..689c1e776e 100644 --- a/server/service/osquery.go +++ b/server/service/osquery.go @@ -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()) }