@balena/ui-shared-components 12.1.0-build-secure-boot-2c5c8e4924e342568b3329321abc34dad522f8e9-1 → 12.1.0-build-secure-boot-acb8e3d7ac5b0201d6d8bbbb6031f9ade9d1e28c-1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -61,7 +61,9 @@ export const ImageForm = memo(function ImageForm({ compatibleDeviceTypes, osVers
61
61
  const secureBootDontShowAgainKey = `${model.deviceType.slug}_secureboot_warning_do_not_show_again`;
62
62
  const dismissSecureBootWarning = useCallback((accepted, dontShowAgain) => {
63
63
  var _a;
64
+ setShowSecureBootConfirmationDialog(false);
64
65
  (_a = state.webTracker) === null || _a === void 0 ? void 0 : _a.track('Application Add Device Modal Hide Secure Boot Warning', { accepted, dontShowAgain });
66
+ setDontShowSecureBootWarningAgain(false);
65
67
  }, [state.webTracker]);
66
68
  const handleVariantChange = useCallback((v) => {
67
69
  setVariant(v);
@@ -222,9 +224,7 @@ export const ImageForm = memo(function ImageForm({ compatibleDeviceTypes, osVers
222
224
  }, onChange: (event) => {
223
225
  onChange('provisioningKeyExpiryDate', event.target.value);
224
226
  } })] }) })] })] }), _jsxs(Dialog, { open: showSecureBootConfirmationDialog, onClose: () => {
225
- setShowSecureBootConfirmationDialog(false);
226
227
  dismissSecureBootWarning(false, dontShowSecureBootWarningAgain);
227
- setDontShowSecureBootWarningAgain(false);
228
228
  }, children: [_jsx(DialogTitle, { children: "Enabling Secure Boot and Full Disk Encryption" }), _jsx(DialogContent, { children: _jsxs(Stack, { children: ["Enabling Secure Boot and Full Disk Encryption has important implications:", _jsxs("ul", { children: [_jsxs("li", { children: ["The image you are about to download is", ' ', _jsx(MUILinkWithTracking, { eventProperties: {
229
229
  source: "Application Add Device Modal Secure Boot Warning signed with balena's main platform key Link",
230
230
  }, href: "https://docs.balena.io/reference/OS/secure-boot-and-full-disk-encryption/overview/#keys-and-certificates-in-secure-boot", children: "signed with balena's main platform key" })] }), _jsx("li", { children: "Full Disk Encryption (FDE): All data on the disk will be encrypted with a unique key per device, ensuring that data extraction or retrieval from a powered-off device is impossible." }), _jsxs("li", { children: ["Secure Boot: Ensures only OS images signed by balena can unlock the disks and access data stored on the device. Hardened Mode Limitations:", _jsxs("ul", { children: [_jsx("li", { children: "Unsigned kernel modules cannot be loaded." }), _jsx("li", { children: "Boot parameters cannot be modified." }), _jsx("li", { children: "Debugging early boot processes is practically impossible." })] })] })] }), _jsxs(Typography, { children: ["If you need to load out-of-tree kernel drivers or require a unique signing key,", ' ', _jsx(MUILinkWithTracking, { eventProperties: {
@@ -234,17 +234,13 @@ export const ImageForm = memo(function ImageForm({ compatibleDeviceTypes, osVers
234
234
  }, href: "https://docs.balena.io/reference/OS/secure-boot-and-full-disk-encryption/overview/", children: "Learn more about Secure Boot and Full Disk Encryption." }), _jsx(FormControlLabel, { control: _jsx(Checkbox, { onChange: (event) => {
235
235
  setDontShowSecureBootWarningAgain(event.target.checked);
236
236
  } }), label: "Don't show me this warning again for this device type", sx: { mt: 2 } })] }) }), _jsxs(DialogActions, { children: [_jsx(Button, { "aria-label": "Go back and do not acknowledge Secure Boot and Full Disk Encryption warning", onClick: () => {
237
- setShowSecureBootConfirmationDialog(false);
238
237
  dismissSecureBootWarning(false, dontShowSecureBootWarningAgain);
239
- setDontShowSecureBootWarningAgain(false);
240
238
  }, variant: "outlined", color: "secondary", children: "Cancel" }), _jsx(Button, { "aria-label": "Acknowledge Secure Boot and Full Disk Encryption warning", onClick: () => {
241
239
  onChange('secureboot', true);
242
- setShowSecureBootConfirmationDialog(false);
243
240
  if (dontShowSecureBootWarningAgain) {
244
241
  setToLocalStorage(secureBootDontShowAgainKey, 'true');
245
242
  }
246
243
  dismissSecureBootWarning(true, dontShowSecureBootWarningAgain);
247
- setDontShowSecureBootWarningAgain(false);
248
244
  }, children: "I understand and acknowledge" })] })] })] }));
249
245
  });
250
246
  // TODO: We need a better way than just copying the styling. Consider creating a component to export
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@balena/ui-shared-components",
3
- "version": "12.1.0-build-secure-boot-2c5c8e4924e342568b3329321abc34dad522f8e9-1",
3
+ "version": "12.1.0-build-secure-boot-acb8e3d7ac5b0201d6d8bbbb6031f9ade9d1e28c-1",
4
4
  "main": "./dist/index.js",
5
5
  "sideEffects": false,
6
6
  "files": [
@@ -139,6 +139,6 @@
139
139
  },
140
140
  "homepage": "https://github.com/balena-io/ui-shared-components#readme",
141
141
  "versionist": {
142
- "publishedAt": "2025-04-08T12:51:43.517Z"
142
+ "publishedAt": "2025-04-09T12:40:08.708Z"
143
143
  }
144
144
  }