-
Notifications
You must be signed in to change notification settings - Fork 192
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement embeddable dashboard on NIST 800-53 (#6515)
* feat(NIST800-53): replace the dashboard on NIST 800-53 application * fix(NIST800-53): fix ids dashboards panels * fix: remove unused visualziation definition * rename(nist800-53): rename dashboard files * fix(nist800-53): add id to visualizations * fix(nist): fix dashboard * fix: fix dashboards * feat(nist-800-53): use data source on Dashboard and Events tabs * fix(nist): remove comment * fix(nist): add date range to Dashboard query * remove(nist): visualizations on server side * feat(nist-800-53): hide filter control on the search bar of dashboard * feat(nist): move sample data warning on the dashboard * fix: import dashboard --------- Co-authored-by: Federico Rodriguez <federico.rodriguez@wazuh.com>
- Loading branch information
1 parent
5a3ac2a
commit 510714d
Showing
13 changed files
with
1,549 additions
and
1,489 deletions.
There are no files selected for viewing
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
42 changes: 42 additions & 0 deletions
42
...ts/common/data-source/pattern/alerts/alerts-nist-800-53/alerts-nist-800-53-data-source.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,42 @@ | ||
import { tFilter } from '../../../index'; | ||
import { DATA_SOURCE_FILTER_CONTROLLED_NIST_800_53_EXIST } from '../../../../../../../common/constants'; | ||
import { AlertsDataSource } from '../alerts-data-source'; | ||
|
||
const KEY_EXIST = 'rule.nist_800_53'; | ||
|
||
export class AlertsNIST80053DataSource extends AlertsDataSource { | ||
constructor(id: string, title: string) { | ||
super(id, title); | ||
} | ||
|
||
private getFilterExist() { | ||
return [ | ||
{ | ||
meta: { | ||
index: this.id, | ||
negate: false, | ||
disabled: false, | ||
alias: null, | ||
type: 'exists', | ||
key: KEY_EXIST, | ||
value: 'exists', | ||
params: { | ||
query: null, | ||
type: 'phrase', | ||
}, | ||
controlledBy: DATA_SOURCE_FILTER_CONTROLLED_NIST_800_53_EXIST, | ||
}, | ||
exists: { | ||
field: KEY_EXIST, | ||
}, | ||
$state: { | ||
store: 'appState', | ||
}, | ||
} as tFilter, | ||
]; | ||
} | ||
|
||
getFixedFilters(): tFilter[] { | ||
return [...this.getFilterExist(), ...super.getFixedFilters()]; | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
plugins/main/public/components/common/data-source/pattern/alerts/alerts-nist-800-53/index.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 @@ | ||
export * from './alerts-nist-800-53-data-source'; |
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.