Skip to content

Commit

Permalink
[Defend Workflows] User receives warnings that an artifact is expirin…
Browse files Browse the repository at this point in the history
…g and that they should update (elastic#166141)

closes elastic/security-team#7209

depends on elastic/security-docs#3902

Updated copy, `Learn more` link needs to be updated once docs are ready
to be linked.

![Screenshot 2023-09-11 at 11 16
33](https://github.com/elastic/kibana/assets/29123534/671055c9-6f61-4dd4-8234-943622773851)

---------

Co-authored-by: Ash <[email protected]>
  • Loading branch information
szwarckonrad and ashokaditya authored Oct 2, 2023
1 parent b5bcf69 commit 6589719
Showing 3 changed files with 25 additions and 6 deletions.
1 change: 1 addition & 0 deletions packages/kbn-doc-links/src/get_doc_links.ts
Original file line number Diff line number Diff line change
@@ -432,6 +432,7 @@ export const getDocLinks = ({ kibanaBranch }: GetDocLinkOptions): DocLinks => {
configureAlertSuppression: `${SECURITY_SOLUTION_DOCS}alert-suppression.html#_configure_alert_suppression`,
},
securitySolution: {
artifactControl: `${SECURITY_SOLUTION_DOCS}artifact-control.html`,
trustedApps: `${SECURITY_SOLUTION_DOCS}trusted-apps-ov.html`,
eventFilters: `${SECURITY_SOLUTION_DOCS}event-filters.html`,
blocklist: `${SECURITY_SOLUTION_DOCS}blocklist.html`,
1 change: 1 addition & 0 deletions packages/kbn-doc-links/src/types.ts
Original file line number Diff line number Diff line change
@@ -323,6 +323,7 @@ export interface DocLinks {
readonly configureAlertSuppression: string;
};
readonly securitySolution: {
readonly artifactControl: string;
readonly trustedApps: string;
readonly eventFilters: string;
readonly blocklist: string;
Original file line number Diff line number Diff line change
@@ -13,6 +13,7 @@ import {
EuiFlexItem,
EuiHorizontalRule,
EuiIconTip,
EuiLink,
EuiPanel,
EuiShowFor,
EuiSpacer,
@@ -25,15 +26,15 @@ import React, { useCallback, useContext, useEffect, useState } from 'react';
import { useDispatch } from 'react-redux';
import { ThemeContext } from 'styled-components';
import { i18n } from '@kbn/i18n';
import { FormattedMessage } from '@kbn/i18n-react';
import type { Moment } from 'moment';
import moment from 'moment';
import { cloneDeep } from 'lodash';
import { FormattedMessage } from '@kbn/i18n-react';
import { ProtectionUpdatesBottomBar } from './components/protection_updates_bottom_bar';
import { useCreateProtectionUpdatesNote } from './hooks/use_post_protection_updates_note';
import { useGetProtectionUpdatesNote } from './hooks/use_get_protection_updates_note';
import { useUserPrivileges } from '../../../../../common/components/user_privileges';
import { useToasts } from '../../../../../common/lib/kibana';
import { useKibana, useToasts } from '../../../../../common/lib/kibana';
import { useUpdateEndpointPolicy } from '../../../../hooks/policy/use_update_endpoint_policy';
import type { PolicyData, MaybeImmutable } from '../../../../../../common/endpoint/types';
import { ProtectionUpdatesWarningPanel } from './components/protection_updates_warning_panel';
@@ -62,6 +63,7 @@ export const ProtectionUpdatesLayout = React.memo<ProtectionUpdatesLayoutProps>(
const dispatch = useDispatch();
const { isLoading: isUpdating, mutateAsync: sendPolicyUpdate } = useUpdateEndpointPolicy();
const { canWritePolicyManagement } = useUserPrivileges().endpointPrivileges;
const { docLinks } = useKibana().services;

const paddingSize = useContext(ThemeContext).eui.euiPanelPaddingModifiers.paddingMedium;

@@ -254,10 +256,25 @@ export const ProtectionUpdatesLayout = React.memo<ProtectionUpdatesLayoutProps>(
}
)}
>
{i18n.translate('xpack.securitySolution.endpoint.protectionUpdates.manifestOutdated', {
defaultMessage:
'Manifest is older than 30 days. Recommended to update the manifest or enable "Update manifest automatically".',
})}
<FormattedMessage
id="xpack.securitySolution.endpoint.protectionUpdates.manifestOutdated"
defaultMessage="Your protection artifacts have not been updated in over 30 days. We strongly recommend keeping these up to date to ensure the highest level of security for your environment.{break}Note: After 18 months, protection artifacts will expire and cannot be rolled back. {learnMore}"
values={{
learnMore: (
<EuiLink
href={docLinks.links.securitySolution.artifactControl}
target="_blank"
external
>
<FormattedMessage
id="xpack.securitySolution.endpoint.protectionUpdates.manifestOutdated.learnMore"
defaultMessage="Learn more"
/>
</EuiLink>
),
break: <EuiSpacer size="m" />,
}}
/>
</EuiCallOut>
<EuiSpacer size="m" />
</>

0 comments on commit 6589719

Please sign in to comment.