Skip to content

Commit

Permalink
rm: factory: Add info on TUF targets expiration configuration
Browse files Browse the repository at this point in the history
It turned the current info on the TUF targets expiration
configuration is not quite accurate. It suggests to use
`<build-type>.params.TUF_TARGETS_EXPIRE` parameters which is rather an
internal mechanism and should not be recommended for users.

The proper way to set targets metadata default validity period is
through the `tuf.targets_expire_after` parameter, this is the one that
we should recommend to users.

Signed-off-by: Mike Sul <[email protected]>
  • Loading branch information
mike-sul committed Feb 8, 2024
1 parent 28a4d13 commit f601843
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions source/reference-manual/factory/factory-definition.rst
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,19 @@ notify:

**Default:** ``false``

.. _def-tuf-expiration:

tuf
---
Configures validity period of the Factory TUF targets role metadata

.. sidebar:: ``tuf:`` Section Example

.. code-block:: yaml
tuf:
targets_expire_after: "2Y33M44D"
.. _def-lmp:

lmp
Expand Down Expand Up @@ -189,8 +202,6 @@ Variables
Defaults to the directory mounted on the SDK build container.
If this directory exists, it is used as the source for the shared state cache (``sstate-cache``) mirror.
When the directory does not exist, the ``lmp-manifest`` value is used (currently points to the public HTTP shared state cache).
* **TUF_TARGETS_EXPIRE**:
Is used to change the default target expiration date (default 1y).

.. _def-containers:

Expand Down

0 comments on commit f601843

Please sign in to comment.