Skip to content

Commit

Permalink
Add Cloud Security application structure and integration
Browse files Browse the repository at this point in the history
  • Loading branch information
guidomodarelli committed Jan 22, 2025
1 parent de10475 commit daa566b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
import { i18n } from '@osd/i18n';
import {
App,
AppMountParameters,
CoreSetup,
} from 'opensearch-dashboards/public';
import { PLUGIN_ID } from '../../../common/constants';
import { CATEGORY } from '../category';

export const CLOUD_SECURITY_ID = 'cloud_security';
export const CLOUD_SECURITY_TITLE = i18n.translate(
Expand All @@ -15,3 +21,13 @@ export const CLOUD_SECURITY_DESCRIPTION = i18n.translate(
'Monitoring and protection for cloud environments against security threats.',
},
);

export const CloudSecurityApp = (_core: CoreSetup): App => ({
id: CLOUD_SECURITY_ID,
title: CLOUD_SECURITY_TITLE,
category: CATEGORY,
mount:
async (_params: AppMountParameters) =>
// TODO: Implement the cloud security application
() => {},
});
13 changes: 2 additions & 11 deletions plugins/wazuh-analysis/public/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ import {
import {
CLOUD_SECURITY_ID,
CLOUD_SECURITY_TITLE,
CloudSecurityApp,
} from './groups/cloud-security/cloud-security';
import { NAV_GROUPS } from './groups/nav-groups';

Expand Down Expand Up @@ -225,17 +226,7 @@ export class AnalysisPlugin
EndpointSecurityApp(core),
ThreatIntelligenceApp(core),
SecurityOperationsApp(core),
{
id: CLOUD_SECURITY_ID,
title: CLOUD_SECURITY_TITLE,
category: CATEGORY,
mount: async (params: AppMountParameters) => {
// TODO: Implement the cloud security application
const { renderApp } = await import('./application');

return renderApp(params, {});
},
},
CloudSecurityApp(core),
];

for (const app of applications) {
Expand Down

0 comments on commit daa566b

Please sign in to comment.