.. Copyright 2025-2026, Contributors to the Grid Edge Interoperability & Security Alliance (GEISA) a Series of LF Projects, LLC This file is licensed under the Community Specification License 1.0 available at: https://github.com/geisa/specification/blob/main/LICENSE.md or https://github.com/CommunitySpecification/Community_Specification/blob/main/1._Community_Specification_License-v1.md SPDX-License-Identifier: Community-Spec-1.0 .. index:: single: Application Manifest Application Manifests _____________________ |geisa-adm-hdr| GEISA's application management system follows a model similar to `Amazon IoT Greengrass `_ or `Microsoft Azure IoT `_ in that applications have a `recipe `_, `manifest `_, or other set of metadata describing the requirements and dependencies. GEISA defines two manifests for each Edge Application: a Vendor Application Manifest and an Application Deployment Manifest. The Vendor Application Manifest provides information about the Edge Application to the System Operator and EMS, including external communication and dependency requirements and requested resource limits. It is used by an ADM-conformant EMS to inform the System Operator and facilitate secure import of the Edge Application. The Application Deployment Manifest is the System Operator-approved set of effective deployment parameters for a specific Edge Application. It is based on the Vendor Application Manifest and allows the System Operator to set permissions and resource allocations for the target environment, use case, and security requirements. The Application Deployment Manifest SHALL also include the EMS-assigned numeric ``AppID``, corresponding to LwM2M Resource ``4050``. A manifest may describe external communication or dependency requirements needed to interact with a Vendor Application Server. It does not deploy or configure a Vendor Application Server. .. Warning:: Overriding the Vendor Application Manifest may prevent applications from running correctly. If a system operator chooses to override the vendor recommendations, they take responsibility for any related application issues. To enable operational flexibility, the GEISA specification requires that system operators be able to override vendor settings, but operators should be aware of the potential consequences. The Vendor Application Manifest and Application Deployment Manifest SHALL include: - Vendor-assigned reverse-DNS application name (``app-name``) - Vendor assigned application names (``app-name``) use `https://en.wikipedia.org/wiki/Reverse_domain_name_notation Reverse DNS Name Notation`, similar to Java packages - GEISA recommends ``tld.companyname.geisa.appname`` for application names, for example, ``com.example.geisa.waveformanalyzer``. - Application display name (``name``) - Description of the application - Version Number of the application - Signature(s) of the application image artifact(s). - The GEISA EE SHALL NOT activate an application unless every signature for every image artifact provided in the manifest is valid. The Vendor Application Manifest SHALL include: - Compatibility: - GEISA API Minimum Version - GEISA LEE Minimum Version (null for unsupported) - GEISA VEE Minimum Version (null for unsupported) - Waveform Access Required (boolean) - Toolchain target triple following LLVM/Clang target-triple conventions (e.g. ``aarch64-unknown-linux-musl``, ``aarch64-unknown-linux-gnu``, etc.) - Toolchain version - System Resource Limits: - Maximum CPU allocation in percent (optional) - Maximum RAM in KiB - Maximum Persistent Storage in KiB - Maximum Non-persistent Storage in KiB - Maximum number of threads (required for VEE applications, optional for LEE applications) - Off-Device Communication - Each application that performs off-device communication MUST specify the classes, destinations, and daily volume of that communication. - See :doc:`/api/networking` for details. - Daily volumes are specified in Byte units, and daily messages are in message units. .. Note:: The CPU Archicture string is used by both LEE and VEE. On Linux systems, the architecture string can be obtained using the ``arch`` command, but this command is not required to be provided. Architecture names used within GEISA follow the target architecture names used by gcc, llvm, and other compilers. `Triple.cpp` provides a cannonical list. [TARGET]_ .. Note:: Application messaging is provided through the API and does not require direct access to a network interface. .. Note:: Requests for IP socket communication in a Vendor Application Manifest are subject to operator approval in the Application Deployment Manifest. The System Operator may approve, narrow, replace, or deny requested destination classes, endpoints, ports, and volume limits according to deployment policy. - External Dependencies - GEISA applications should be as self-contained as possible, with all necessary dependencies, except for the base libraries provided by the EE, contained with the application artifacts. - GEISA does not provide a mechanism for loading arbitrary packages. The external dependencies element in the manifest is used exclusively to indicate that one application depends on another. - Vendor-assigned application name (``app-name``) of the application this application depends on. - Default Application Configuration - GEISA applications may need basic information to initialize such as the URL of a server, or settings such as the frequency of reporting. The default application configuration provides an initial set of values that can be used by the System Operator when creating the Application Deployment Manifest. .. Note:: The system operator should be able to change the configuration information without needing to redeploy the application. - Default Launch Strategy - Includes details such as whether the application should automatically be restarted if it fails, and how many failures with a given period of time constitues a permanent failure. - Auto restart (boolean) - Max failures -- number of failures within the restart period after which the application will not be restarted - Restart period -- elasped time, in minutes, before the failure count is reset. The first failure starts the timer. If the configured maximum number of failures occurs before the restart period is over, the application is not restarted. Otherwise, the failure count is reset. - Signature(s) - All signatures SHALL be an OpenPGP detached signature packet encoded base64, as per [RFC9580]_ section 6, with the formatting modifications noted in this specification, and placed in the ``signatureValue`` element. - EMS and Platform implementations SHALL parse the contents of the ``signatureValue`` element to extract the OpenPGP signature block for evaluation. - To ensure a consistent canonical form of the manifest and to avoid the issues of escaping embedded newlines, the ``signatureValue`` shall contain only the concatenated base64 encoded value of the OpenPGP detached signature packet. This means: - Implementations MUST not include ``-----BEGIN PGP SIGNATURE-----`` and ``-----END PGP SIGNATURE-----`` labels. - Implementations MUST not include a newline before the base64 encoded signature. - Implementations MUST not include any newlines within the ``signatureValue`` element, even if they are escaped (e.g. ``\\n``). - Implementations MUST concatenate base64 encoded text into a single continuous string. - Implementations MUST accept ``signatureValue`` elements that contains only the base64/ASCII armor encoded signature packet. - Implementations SHOULD not include a checksum or any other characters after the required pad / special processing function characters, ``=``, as these may cause the JSON file to fail validation. - Implementations SHOULD ignore any extra characters beyond the required pad characters, ``=``. - The Signature Packet shall follow [RFC9580]_, section 5.2. - The Signature Type ID (as documented in [RFC9580]_, section 5.2) shall be ``0x00``, Binary Signature. - Signatures for the manifest shall be over the compact JSON encoding of the value of the manifest element, inclusive of the value only and all JSON syntax. - Signatures for application artifacts shall be over the entire binary image file. - Application manifests require at least one signature, though they support multiple signatures. - Application artifacts SHALL be signed by the application publisher - Application artifacts MAY be signed by an application certifier, system operator, or other entity. - Platform implementations SHALL validate all signatures included in a manifest. - Signature blocks SHALL include a ``signerRole``. Valid values in this version of the specification are: 'publisher', 'operator', 'certifier', and 'other'. - EMS and platform implementations SHALL verify that the signing identity is authorized for its declared ``signerRole`` under the operator-approved trust configuration. - Vendor application manifests SHALL include a manifest signature with the 'publisher' ``signerRole``. - Deployment application manifests SHALL include a manifest signature with the 'operator' ``signerRole``. The compact value of an application manifest removes all unnecessary whitespace (i.e. whitespace not part of a JSON element value). This provides a consistent, canonical form of the manifest for calculating the signature. One way of obtaining the compact value of the ``manifest`` element is using the ``jq`` command. For example: ``jq -c '.["geisa-application-manifest"].["manifest"]' < vendor-application-manifest-example.json`` yields: |geisa-manifest-extract| .. Note:: The ``jq`` *command* shown above does not include any line breaks or newlines in its output, but the Sphinx documenation system used by the GEISA specification adds them in for readability. Manifest signatures are always over the canonical compact form, without any newlines. |geisa-landscape| Here is an example of a Vendor Application Manifest: .. literalinclude:: ../../schemas/examples/vendor-application-manifest-example.json :language: json :linenos: Here is an example of an Application Deployment Manifest: .. literalinclude:: ../../schemas/examples/deployment-application-manifest-example.json :language: json :linenos: |geisa-pyramid| |geisa-landscape-end|