Add fleetd SOFA user agent (#19359)
This commit is contained in:
@@ -0,0 +1 @@
|
||||
HTTP calls from the SOFA macOS tables now identified by a 'fleetd' user agent
|
||||
@@ -4,6 +4,7 @@ package table
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/fleetdm/fleet/v4/orbit/pkg/table/authdb"
|
||||
"github.com/fleetdm/fleet/v4/orbit/pkg/table/csrutil_info"
|
||||
"github.com/fleetdm/fleet/v4/orbit/pkg/table/dataflattentable"
|
||||
@@ -70,13 +71,13 @@ func PlatformTables(opts PluginOpts) []osquery.OsqueryPlugin {
|
||||
table.NewPlugin(
|
||||
"sofa_security_release_info", sofa.SofaSecurityReleaseInfoColumns(),
|
||||
func(ctx context.Context, queryContext table.QueryContext) ([]map[string]string, error) {
|
||||
return sofa.SofaSecurityReleaseInfoGenerate(ctx, queryContext, opts.Socket)
|
||||
return sofa.SofaSecurityReleaseInfoGenerate(ctx, queryContext, opts.Socket, sofa.WithUserAgent("fleetd"))
|
||||
},
|
||||
),
|
||||
table.NewPlugin(
|
||||
"sofa_unpatched_cves", sofa.SofaUnpatchedCVEsColumns(),
|
||||
func(ctx context.Context, queryContext table.QueryContext) ([]map[string]string, error) {
|
||||
return sofa.SofaUnpatchedCVEsGenerate(ctx, queryContext, opts.Socket)
|
||||
return sofa.SofaUnpatchedCVEsGenerate(ctx, queryContext, opts.Socket, sofa.WithUserAgent("fleetd"))
|
||||
},
|
||||
),
|
||||
|
||||
|
||||
Reference in New Issue
Block a user