From 471f25e470723c1b8ad7a5f04a53ef5bd0ebae16 Mon Sep 17 00:00:00 2001 From: Zach Wasserman Date: Sun, 21 Feb 2021 09:58:36 -0800 Subject: [PATCH] Return denylist parameter with pack configs (#339) This was previously handled correctly within the Fleet server datastores and API endpoints, but not returned to the actual osquery client. Fixes #338 --- server/kolide/osquery.go | 1 + server/service/service_osquery.go | 1 + 2 files changed, 2 insertions(+) diff --git a/server/kolide/osquery.go b/server/kolide/osquery.go index cc0e2d56309b..56ad3d84ea95 100644 --- a/server/kolide/osquery.go +++ b/server/kolide/osquery.go @@ -46,6 +46,7 @@ type QueryContent struct { Snapshot *bool `json:"snapshot,omitempty"` Removed *bool `json:"removed,omitempty"` Shard *uint `json:"shard,omitempty"` + Denylist *bool `json:"denylist,omitempty"` } type PermissiveQueryContent struct { diff --git a/server/service/service_osquery.go b/server/service/service_osquery.go index dd7ab0b2280b..b9f93a78950e 100644 --- a/server/service/service_osquery.go +++ b/server/service/service_osquery.go @@ -158,6 +158,7 @@ func (svc service) GetClientConfig(ctx context.Context) (map[string]interface{}, Version: query.Version, Removed: query.Removed, Shard: query.Shard, + Denylist: query.Denylist, } if query.Removed != nil {