Skip to content

Commit

Permalink
Create endpoints plugin and unique Endpoints Summary React component (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
lucianogorza authored Dec 19, 2023
1 parent 4b967e2 commit 01cbd74
Show file tree
Hide file tree
Showing 95 changed files with 1,573 additions and 5,553 deletions.
1 change: 1 addition & 0 deletions docker/osd-dev/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ services:
- '${SRC}/main:/home/node/kbn/plugins/wazuh'
- '${SRC}/wazuh-core:/home/node/kbn/plugins/wazuh-core'
- '${SRC}/wazuh-check-updates:/home/node/kbn/plugins/wazuh-check-updates'
- '${SRC}/wazuh-endpoints:/home/node/kbn/plugins/wazuh-endpoints'
- wd_certs:/home/node/kbn/certs/
- ${WAZUH_DASHBOARD_CONF}:/home/node/kbn/config/opensearch_dashboards.yml
- ./config/${OSD_MAJOR}/osd/wazuh.yml:/home/node/kbn/data/wazuh/config/wazuh.yml
Expand Down
9 changes: 4 additions & 5 deletions plugins/main/opensearch_dashboards.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
"id": "wazuh",
"version": "4.9.0-00",
"opensearchDashboardsVersion": "opensearchDashboards",
"configPath": [
"wazuh"
],
"configPath": ["wazuh"],
"requiredPlugins": [
"navigation",
"data",
Expand All @@ -19,7 +17,8 @@
"opensearchDashboardsReact",
"opensearchDashboardsUtils",
"opensearchDashboardsLegacy",
"wazuhCheckUpdates"
"wazuhCheckUpdates",
"wazuhEndpoints"
],
"optionalPlugins": [
"security",
Expand All @@ -29,4 +28,4 @@
],
"server": true,
"ui": true
}
}
17 changes: 12 additions & 5 deletions plugins/main/public/components/common/welcome/overview-welcome.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import {
EuiFlexGrid,
EuiCallOut,
EuiPage,
EuiButtonEmpty,
} from '@elastic/eui';
import './welcome.scss';
import {
Expand All @@ -39,6 +38,7 @@ import {
} from '../../../utils/applications';
import { getCore } from '../../../kibana-services';
import { RedirectAppLinks } from '../../../../../../src/plugins/opensearch_dashboards_react/public';
import { WzButtonPermissions } from '../../common/permissions/button';

const appCategories = Applications.reduce((categories, app) => {
const existingCategory = categories.find(
Expand Down Expand Up @@ -85,14 +85,21 @@ export const OverviewWelcome = compose(
title={
<>
No agents were added to this manager.{' '}
<EuiButtonEmpty
<WzButtonPermissions
buttonType='empty'
permissions={[
{ action: 'agent:create', resource: '*:*:*' },
]}
iconType='plusInCircle'
href={getCore().application.getUrlForApp(
endpointSumary.id,
{ path: '#/agents-preview' },
{
path: `#${endpointSumary.redirectTo()}deploy`,
},
)}
>
Add agent
</EuiButtonEmpty>
Deploy new agent
</WzButtonPermissions>
</>
}
color='warning'
Expand Down
Loading

0 comments on commit 01cbd74

Please sign in to comment.