|
| 1 | +:orphan: |
| 2 | + |
| 3 | +.. _migration_101: |
| 4 | + |
| 5 | +Migration notes for |addon| v1.0.1 |
| 6 | +################################## |
| 7 | + |
| 8 | +.. contents:: |
| 9 | + :local: |
| 10 | + :depth: 3 |
| 11 | + |
| 12 | +This document describes changes required or recommended for migrating your Matter application from |addon| v1.0.0 to v1.0.1. |
| 13 | + |
| 14 | +.. _migration_101_required: |
| 15 | + |
| 16 | +Required changes |
| 17 | +**************** |
| 18 | + |
| 19 | +Identify where the DAC private key is stored |
| 20 | +============================================ |
| 21 | + |
| 22 | +Use the **first firmware** that completed factory-data migration on each device, not the Kconfig defaults of your current project alone. |
| 23 | + |
| 24 | ++---------------------------+---------------------------------------------------------------------+ |
| 25 | +| First boot that migrated | DAC private key location | |
| 26 | +| the DAC key | | |
| 27 | ++===========================+=====================================================================+ |
| 28 | +| In-tree |NCS| Matter | CRACEN KMU (expected on nRF54L with factory data) | |
| 29 | +| (through |NCS| v3.4.0) | | |
| 30 | ++---------------------------+---------------------------------------------------------------------+ |
| 31 | +| |addon| v1.0.0 on nRF54L | PSA ITS (:kconfig:option:`CONFIG_CHIP_CRYPTO_PSA_DAC_PRIV_KEY_ITS`) | |
| 32 | ++---------------------------+---------------------------------------------------------------------+ |
| 33 | + |
| 34 | +You can confirm the **current** firmware intent in :file:`build/<image>/zephyr/.config`: |
| 35 | + |
| 36 | +* :kconfig:option:`CONFIG_CHIP_CRYPTO_PSA_DAC_PRIV_KEY_KMU=y` - firmware migrates new keys to KMU. |
| 37 | +* :kconfig:option:`CONFIG_CHIP_CRYPTO_PSA_DAC_PRIV_KEY_ITS=y` - firmware migrates new keys to ITS. |
| 38 | +* :kconfig:option:`CONFIG_CHIP_CRYPTO_PSA_DAC_PRIV_KEY_KMU_ITS_FALLBACK=y` - when KMU is selected, an existing ITS copy may still be used for signing (default in v1.0.1). |
| 39 | + |
| 40 | +Choose a migration path |
| 41 | +======================= |
| 42 | + |
| 43 | +Path A — Device previously on in-tree |NCS| Matter (key in KMU), updated to v1.0.0 |
| 44 | +---------------------------------------------------------------------------------- |
| 45 | + |
| 46 | +**Symptom:** Re-commissioning after performing factory reset fails after DFU. |
| 47 | +Attestation errors such as ``OpCreds: Failed AttestationRequest request with IM error 0x01 (err = ac)`` occur. |
| 48 | +Existing Matter fabrics may still operate. |
| 49 | + |
| 50 | +**Action:** Deploy |addon| v1.0.1 (or newer) firmware with KMU defaults restored. |
| 51 | + |
| 52 | +Path B — Product shipped or first flashed with |addon| v1.0.0 on nRF54L series device (key in ITS) |
| 53 | +-------------------------------------------------------------------------------------------------- |
| 54 | + |
| 55 | +Until each unit is re-provisioned with new factory data (new DAC key and certificates), choose one of the following for **every** firmware image you ship to those devices. |
| 56 | + |
| 57 | +**Option 1 — KMU defaults with ITS fallback (recommended for v1.0.1+ field updates):** |
| 58 | + |
| 59 | +Use the normal nRF54L KMU migration settings and leave the :kconfig:option:`CONFIG_CHIP_CRYPTO_PSA_DAC_PRIV_KEY_KMU_ITS_FALLBACK` Kconfig option set to ``y`` (default). |
| 60 | +Commissioning and device attestation keep working because the stack detects the ITS copy at boot and uses it for signing while logging a warning. |
| 61 | +Plan re-provisioning when you want the key stored in KMU only. |
| 62 | + |
| 63 | +**Option 2 — Explicit ITS backend:** |
| 64 | + |
| 65 | +Keep the migration destination aligned with where the key already lives: |
| 66 | + |
| 67 | +.. code-block:: kconfig |
| 68 | +
|
| 69 | + CONFIG_CHIP_CRYPTO_PSA_DAC_PRIV_KEY_ITS=y |
| 70 | + # CONFIG_CHIP_CRYPTO_PSA_DAC_PRIV_KEY_KMU is not set |
| 71 | +
|
| 72 | +Add this to :file:`prj.conf` or a board overlay and verify it in the merged :file:`.config` after building. |
| 73 | + |
| 74 | +**Do not:** |
| 75 | + |
| 76 | +* Disable :kconfig:option:`CONFIG_CHIP_CRYPTO_PSA_DAC_PRIV_KEY_KMU_ITS_FALLBACK` on KMU-default v1.0.1 firmware for these units unless you intend boot to stop until the ITS copy is removed or the device is re-provisioned. |
| 77 | + |
| 78 | +* Perform a factory reset on firmware that erases settings (:kconfig:option:`CONFIG_CHIP_FACTORY_RESET_ERASE_SETTINGS`) while the DAC key exists only in ITS. |
| 79 | + That can **permanently erase** the DAC private key. |
| 80 | + |
| 81 | +Path C — New development on v1.0.1+ |
| 82 | +----------------------------------- |
| 83 | + |
| 84 | +No Kconfig changes are required for new nRF54L devices that will boot v1.0.1 first: KMU remains the default when :kconfig:option:`CONFIG_CRACEN_LIB_KMU` is available. |
| 85 | +See :ref:`matter_platforms_security_dac_priv_key` for backend options. |
| 86 | + |
| 87 | +Recommended validation |
| 88 | +====================== |
| 89 | + |
| 90 | +After changing DAC storage settings or migration firmware on nRF54L hardware: |
| 91 | + |
| 92 | +#. Build and inspect :file:`build/<app>/zephyr/.config` for the expected :kconfig:option:`CONFIG_CHIP_CRYPTO_PSA_DAC_PRIV_KEY_*` symbol. |
| 93 | +#. On a test device, run through factory reset (if applicable) and full Matter commissioning, including device attestation. |
| 94 | +#. When migrating from older |NCS| Matter releases, include commissioning **after** SMP or Matter OTA in your release test plan (not only the DFU step). |
0 commit comments