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

Create endpoints plugin and unique Endpoints Summary React component #6230

Merged
merged 6 commits into from
Dec 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
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
Loading