diff --git a/changes/24248-host-details-encryption-banner b/changes/24248-host-details-encryption-banner new file mode 100644 index 0000000000..7de5934177 --- /dev/null +++ b/changes/24248-host-details-encryption-banner @@ -0,0 +1,2 @@ +* Only show the "follow instructions on My device" banner for Linux hosts whose disks are encrypted +but for which Fleet hasn't escrowed a valid key. diff --git a/frontend/pages/hosts/details/HostDetailsPage/components/HostDetailsBanners/HostDetailsBanners.tsx b/frontend/pages/hosts/details/HostDetailsPage/components/HostDetailsBanners/HostDetailsBanners.tsx index 0e4eb8b851..cc1b6a73f6 100644 --- a/frontend/pages/hosts/details/HostDetailsPage/components/HostDetailsBanners/HostDetailsBanners.tsx +++ b/frontend/pages/hosts/details/HostDetailsPage/components/HostDetailsBanners/HostDetailsBanners.tsx @@ -8,13 +8,11 @@ import { IOSSettings } from "interfaces/host"; import { HostPlatform, isDiskEncryptionSupportedLinuxPlatform, - platformSupportsDiskEncryption, } from "interfaces/platform"; import InfoBanner from "components/InfoBanner"; import CustomLink from "components/CustomLink"; import { LEARN_MORE_ABOUT_BASE_LINK } from "utilities/constants"; -import { isDiskEncryptionProfile } from "pages/hosts/details/OSSettingsModal/OSSettingsTable/OSSettingStatusCell/helpers"; const baseClass = "host-details-banners"; @@ -110,16 +108,13 @@ const HostDetailsBanners = ({ ); } - // setting applies if ( hostPlatform && - platformSupportsDiskEncryption(hostPlatform, hostOsVersion) && + isDiskEncryptionSupportedLinuxPlatform(hostPlatform, hostOsVersion ?? "") && diskEncryptionOSSetting?.status ) { - if ( - !diskIsEncrypted && - isDiskEncryptionSupportedLinuxPlatform(hostPlatform, hostOsVersion ?? "") - ) { + // setting applies to a Linux host + if (!diskIsEncrypted) { // linux host not in compliance with setting return (