forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Endpoint] Policy Details integration with Ingest APIs (elastic#61827) (
elastic#62073) * implement Policy Details header * use Ingest APIs to persist (save) policy data to the Datasource * implement UI behaviour for Save, Cancel * implement UI bahaviour for when Policy (datasource) can not be retrieved
- Loading branch information
1 parent
b5c9181
commit a62f8ed
Showing
17 changed files
with
1,076 additions
and
222 deletions.
There are no files selected for viewing
226 changes: 153 additions & 73 deletions
226
...ns/endpoint/public/applications/endpoint/components/__snapshots__/page_view.test.tsx.snap
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
90 changes: 90 additions & 0 deletions
90
x-pack/plugins/endpoint/public/applications/endpoint/models/policy.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License; | ||
* you may not use this file except in compliance with the Elastic License. | ||
*/ | ||
|
||
import { PolicyConfig } from '../types'; | ||
|
||
/** | ||
* Generate a new Policy model. | ||
* NOTE: in the near future, this will likely be removed and an API call to EPM will be used to retrieve | ||
* the latest from the Endpoint package | ||
*/ | ||
export const generatePolicy = (): PolicyConfig => { | ||
return { | ||
windows: { | ||
events: { | ||
process: true, | ||
network: true, | ||
}, | ||
malware: { | ||
mode: 'prevent', | ||
}, | ||
logging: { | ||
stdout: 'debug', | ||
file: 'info', | ||
}, | ||
advanced: { | ||
elasticsearch: { | ||
indices: { | ||
control: 'control-index', | ||
event: 'event-index', | ||
logging: 'logging-index', | ||
}, | ||
kernel: { | ||
connect: true, | ||
process: true, | ||
}, | ||
}, | ||
}, | ||
}, | ||
mac: { | ||
events: { | ||
process: true, | ||
}, | ||
malware: { | ||
mode: 'detect', | ||
}, | ||
logging: { | ||
stdout: 'debug', | ||
file: 'info', | ||
}, | ||
advanced: { | ||
elasticsearch: { | ||
indices: { | ||
control: 'control-index', | ||
event: 'event-index', | ||
logging: 'logging-index', | ||
}, | ||
kernel: { | ||
connect: true, | ||
process: true, | ||
}, | ||
}, | ||
}, | ||
}, | ||
linux: { | ||
events: { | ||
process: true, | ||
}, | ||
logging: { | ||
stdout: 'debug', | ||
file: 'info', | ||
}, | ||
advanced: { | ||
elasticsearch: { | ||
indices: { | ||
control: 'control-index', | ||
event: 'event-index', | ||
logging: 'logging-index', | ||
}, | ||
kernel: { | ||
connect: true, | ||
process: true, | ||
}, | ||
}, | ||
}, | ||
}, | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.