Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement embeddable dashboard on PCI DSS #6504

Merged
merged 32 commits into from
May 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
26a27d3
feat(PCI DSS): replace the dashboard on PCI DSS application
Desvelao Mar 13, 2024
375e184
fix: fix ids dashboards panels
Desvelao Mar 14, 2024
881a9b9
fix: fix ids dashboards panels
Desvelao Mar 14, 2024
ac8bc38
fix: add id to visualizations
Desvelao Mar 14, 2024
ab3a4fe
rename(pci): rename dashboard files
Desvelao Mar 14, 2024
6f426f7
fix(pcidss): fix dashboards
Desvelao Mar 15, 2024
04ec624
Merge branch '4.9.0' of https://github.com/wazuh/wazuh-kibana-app int…
Desvelao Apr 8, 2024
98e1b6d
feat(pci-dss): use data source on Dashboard and Events tabs
Desvelao Apr 8, 2024
451e0ce
remove(pci-dss): replace local NoDataResults and loading indicator by…
Desvelao Apr 8, 2024
d912223
fix(pci-dss): render of all or agent dashboard
Desvelao Apr 8, 2024
b41495e
feat(pci-dss): partial implementation of the usage of datasource on t…
Desvelao Apr 11, 2024
289574a
fix(pci): remove comment
Desvelao Apr 15, 2024
8c210b6
fix(pci): add date range to Dashboard query
Desvelao Apr 15, 2024
fc79f35
remove(pci): visualizations on server side
Desvelao Apr 15, 2024
c5a44c6
Merge branch '4.9.0' of https://github.com/wazuh/wazuh-kibana-app int…
Desvelao Apr 26, 2024
dddcd25
feat(pci-dss): replace table on flyout details of Controls tab
Desvelao Apr 26, 2024
e681a91
fix(pci-dss): fix redirection to other applications from Controls tab
Desvelao Apr 26, 2024
473cd91
fix(pci-dss): replace label to agent.name column on the COntrols flyout
Desvelao Apr 26, 2024
4a218e2
remove(pci-dss): unused import
Desvelao Apr 26, 2024
8443ea9
Merge branch '4.9.0' of https://github.com/wazuh/wazuh-kibana-app int…
Desvelao May 2, 2024
344c8bf
feat(pci-dss): hide filter control on the search bar of dashboard
Desvelao May 3, 2024
aaf3eb0
feat(pci-dss): hide filter control on the search bar of controls
Desvelao May 3, 2024
137e28e
Merge branch '4.9.0' of https://github.com/wazuh/wazuh-kibana-app int…
Desvelao May 3, 2024
3801369
fix(pci-dss): missing controlledBy variable
Desvelao May 3, 2024
437f4b8
fix(compliance): missing date picker on the Controls tab
Desvelao May 3, 2024
1b8c45c
feat(pci-dss): move sample data warning on the dashboard
Desvelao May 3, 2024
c13688e
fix(sample-data): remove effect dependencies and minor fix on link
Desvelao May 3, 2024
0f6829c
Merge branch '4.9.0' of https://github.com/wazuh/wazuh-kibana-app int…
Desvelao May 3, 2024
287beed
Merge branch '4.9.0' of https://github.com/wazuh/wazuh-kibana-app int…
Desvelao May 6, 2024
c3dc1e9
fix(regulatory-compliance): fix missing selected requirement on the f…
Desvelao May 7, 2024
07bb7d9
Merge branch '4.9.0' of https://github.com/wazuh/wazuh-kibana-app int…
Desvelao May 7, 2024
9d71ca7
changelog: add pull request entry
Desvelao May 7, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ All notable changes to the Wazuh app project will be documented in this file.

### Changed

- Removed embedded discover [#6120](https://github.com/wazuh/wazuh-dashboard-plugins/pull/6120) [#6235](https://github.com/wazuh/wazuh-dashboard-plugins/pull/6235) [#6254](https://github.com/wazuh/wazuh-dashboard-plugins/pull/6254) [#6285](https://github.com/wazuh/wazuh-dashboard-plugins/pull/6285) [#6288](https://github.com/wazuh/wazuh-dashboard-plugins/pull/6288) [#6290](https://github.com/wazuh/wazuh-dashboard-plugins/pull/6290) [#6289](https://github.com/wazuh/wazuh-dashboard-plugins/pull/6289) [#6286](https://github.com/wazuh/wazuh-dashboard-plugins/pull/6286) [#6275](https://github.com/wazuh/wazuh-dashboard-plugins/pull/6275) [#6287](https://github.com/wazuh/wazuh-dashboard-plugins/pull/6287) [#6297](https://github.com/wazuh/wazuh-dashboard-plugins/pull/6297) [#6287](https://github.com/wazuh/wazuh-dashboard-plugins/pull/6287) [#6291](https://github.com/wazuh/wazuh-dashboard-plugins/pull/6287) [#6459](https://github.com/wazuh/wazuh-dashboard-plugins/pull/6459) [#6434](https://github.com/wazuh/wazuh-dashboard-plugins/pull/6434)
- Removed embedded discover [#6120](https://github.com/wazuh/wazuh-dashboard-plugins/pull/6120) [#6235](https://github.com/wazuh/wazuh-dashboard-plugins/pull/6235) [#6254](https://github.com/wazuh/wazuh-dashboard-plugins/pull/6254) [#6285](https://github.com/wazuh/wazuh-dashboard-plugins/pull/6285) [#6288](https://github.com/wazuh/wazuh-dashboard-plugins/pull/6288) [#6290](https://github.com/wazuh/wazuh-dashboard-plugins/pull/6290) [#6289](https://github.com/wazuh/wazuh-dashboard-plugins/pull/6289) [#6286](https://github.com/wazuh/wazuh-dashboard-plugins/pull/6286) [#6275](https://github.com/wazuh/wazuh-dashboard-plugins/pull/6275) [#6287](https://github.com/wazuh/wazuh-dashboard-plugins/pull/6287) [#6297](https://github.com/wazuh/wazuh-dashboard-plugins/pull/6297) [#6287](https://github.com/wazuh/wazuh-dashboard-plugins/pull/6287) [#6291](https://github.com/wazuh/wazuh-dashboard-plugins/pull/6287) [#6459](https://github.com/wazuh/wazuh-dashboard-plugins/pull/6459) [#6434](https://github.com/wazuh/wazuh-dashboard-plugins/pull/6434) [#6504](https://github.com/wazuh/wazuh-dashboard-plugins/pull/6504)
- Develop logic of a new index for the fim module [#6227](https://github.com/wazuh/wazuh-dashboard-plugins/pull/6227)
- Allow editing groups for an agent from Endpoints Summary [#6250](https://github.com/wazuh/wazuh-dashboard-plugins/pull/6250)
- Change how the configuration is managed in the backend side [#6337](https://github.com/wazuh/wazuh-dashboard-plugins/pull/6337) [#6519](https://github.com/wazuh/wazuh-dashboard-plugins/pull/6519) [#6573](https://github.com/wazuh/wazuh-dashboard-plugins/pull/6573)
Expand Down
3 changes: 3 additions & 0 deletions plugins/main/common/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,9 @@ export const DATA_SOURCE_FILTER_CONTROLLED_EXCLUDE_SERVER =
'hidden-exclude-server';
export const DATA_SOURCE_FILTER_CONTROLLED_PINNED_AGENT = 'pinned-agent';
export const DATA_SOURCE_FILTER_CONTROLLED_CLUSTER_MANAGER = 'cluster-manager';
export const DATA_SOURCE_FILTER_CONTROLLED_REGULATORY_COMPLIANCE_REQUIREMENT =
'hidden-regulatory-compliance-requirement';
export const DATA_SOURCE_FILTER_CONTROLLED_PCI_DSS_EXIST = 'pci-dss-exist';
export const DATA_SOURCE_FILTER_CONTROLLED_VULNERABILITIES_RULE_GROUP =
'vulnerabilities-rule-group';
export const DATA_SOURCE_FILTER_CONTROLLED_DOCKER_RULE_GROUP =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export * from './alerts-malware-detection';
export * from './alerts-aws';
export * from './vulnerabilities';
export * from './mitre-attack';
export * from './pci-dss';
export * from './virustotal';

export * from './alerts-google-cloud';
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
import { tFilter } from '../../../index';
import { DATA_SOURCE_FILTER_CONTROLLED_PCI_DSS_EXIST } from '../../../../../../../common/constants';
import { AlertsDataSource } from '../alerts-data-source';

const KEY_EXIST = 'rule.pci_dss';

export class AlertsPCIDSSDataSource 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_PCI_DSS_EXIST,
},
exists: {
field: KEY_EXIST,
},
$state: {
store: 'appState',
},
} as tFilter,
];
}

getFixedFilters(): tFilter[] {
return [...this.getFilterExist(), ...super.getFixedFilters()];
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './alerts-pci-dss-data-source';
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,15 @@ import { mitreAttackColumns } from '../../overview/mitre/events/mitre-attack-col
import { virustotalColumns } from '../../overview/virustotal/events/virustotal-columns';
import { malwareDetectionColumns } from '../../overview/malware-detection/events/malware-detection-columns';
import { WAZUH_VULNERABILITIES_PATTERN } from '../../../../common/constants';
import { DashboardPCIDSS } from '../../overview/pci/dashboards/dashboard';
import { DashboardDocker } from '../../overview/docker/dashboards';
import { DashboardMalwareDetection } from '../../overview/malware-detection/dashboard';
import { DashboardFIM } from '../../overview/fim/dashboard/dashboard';
import { MitreAttackDataSource } from '../data-source/pattern/alerts/mitre-attack/mitre-attack-data-source';
import {
AlertsDockerDataSource,
AlertsDataSource,
AlertsPCIDSSDataSource,
AlertsVulnerabilitiesDataSource,
AlertsAWSDataSource,
VirusTotalDataSource,
Expand Down Expand Up @@ -339,7 +341,26 @@ export const ModulesDefaults = {
},
pci: {
init: 'dashboard',
tabs: RegulatoryComplianceTabs(pciColumns),
tabs: [
{
id: 'dashboard',
name: 'Dashboard',
buttons: [ButtonModuleExploreAgent, ButtonModuleGenerateReport],
component: DashboardPCIDSS,
},
{
id: 'inventory',
name: 'Controls',
buttons: [ButtonModuleExploreAgent],
component: props => (
<ComplianceTable {...props} DataSource={AlertsPCIDSSDataSource} />
),
},
renderDiscoverTab({
tableColumns: pciColumns,
DataSource: AlertsPCIDSSDataSource,
}),
],
availableFor: ['manager', 'agent'],
},
hipaa: {
Expand Down
Loading
Loading