App Configuration Model
The h_app.yaml file defines the contents of a Hantera app. It specifies which resources are included in the package and how they are linked together.
An app manifest typically declares:
- A unique app identifier
- Portal extensions
- Components
- Ingress definitions
- Rules
- Egresses
- Connections
- App settings
- Registry entries
- Job definitions
- Declared dependencies (
requires) on other apps' graph shape and Filtrera modules — see Declaring App Dependencies and the Requires section below
id: hantera-test-app
name: Hantera Test App
description: Minimal example app showing HTTP ingress → reactor component → actor command, plus settings, registry entries, and a job definition.
authors:
- Hantera
extensions:
portal: ./portal
components:
# Reactor component used by the HTTP ingress
- id: components/orders.hrc
# Reactor component used as a scheduled job target
- id: components/hantera-test-app-order-processing.hrc
# Rule component activated by the rules section below
- id: rules/order-validation.hrl
# Example discount component
# - id: discounts/order-discount.hrd
ingresses:
- id: orders
componentId: components/orders.hrc
type: http
acl:
- actors/order:create
# If the component reads app settings from registry, grant it explicitly
- registry/apps/hantera-test-app/settings/webhookSecret:read
properties:
route: hantera-test-app/orders
httpMethod: POST
body:
mode: structured
isPublic: true
rules:
- componentId: rules/order-validation.hrl
parameters:
maxOrderTotal: 10000
egresses:
- id: shopfront-webhook
componentId: platform/http
idempotent: true
parameters:
url: https://shop.example.com/hooks/order-created
connections:
partner-rabbit:
type: rabbitmq
properties:
protocol: amqp10
endpoint: amqp://localhost:5672
authentication:
mechanism: plain
username: integration
password: secret
registryEntries:
# Example: extend the graph model with a field definition
- path: /graph/order/fields/externalReference
value:
type: text
source: dynamic->'externalReference'
jobDefinitions:
- id: hantera-test-app-order-processing
componentId: components/hantera-test-app-order-processing.hrc
settings:
webhookSecret:
label:
default: Webhook secret
description:
default: Shared secret used to authenticate incoming webhook requests.
secret: trueEach top-level field corresponds to a resource declaration or app-level configuration.
App ID
The id uniquely identifies the app resource and scopes app settings in Hantera.
Example:
id: hantera-test-appApp settings are stored under:
apps/hantera-test-app/settings/`<settingName>`Portal Extensions
The extensions.portal field references a directory that will be bundled into the app package.
extensions:
portal: ./portalIf defined, the portal extension directory is bundled and registered when the app is installed. Portal extensions are optional. Without one, the app can still execute backend logic and modify system state.
See the Portal Extension documentation for implementation details.
Components
The components field references component files included in the app.
components:
- id: components/webhooks/orders.hrc
- id: rules/cart-to-order.hrlEach entry points to a Filtrera component file that will be packaged and registered during installation
See:
Ingresses
The ingresses field declares transport bindings for components. Example:
ingresses:
- id: orders
componentId: components/webhooks/orders.hrc
type: http
acl:
- actors/order:create
properties:
route: hantera-test-app/orders
httpMethod: POST
body:
mode: structuredEach ingress:
- References a component via componentId
- Declares transport type (http, etc.)
- Defines an ACL
- Specifies transport properties
See the Ingress documentation for full specification details.
Rules
The rules field activates rule components shipped with the app. Listing a rule component under components only packages it; it does not run until it is also referenced here.
Example:
components:
- id: rules/order-validation.hrl
- id: rules/order-confirmation.hrl
rules:
- componentId: rules/order-validation.hrl
parameters:
maxOrderTotal: 10000
- componentId: rules/order-confirmation.hrlEach entry:
- References a component via
componentId, which must also be declared undercomponents - Optionally sets
parameters, keyed by the component'sparamnames
parameters are plain YAML values. Every param in the component except input must either be given a value here or have a default value in the component, and each value must match the parameter's type. Installation fails otherwise.
On installation, all entries are combined into a single rule resource with the ID apps/<appId>, labelled with the app's name. The input parameter of each component determines which hook it runs on.
See the Rules documentation for hooks, effects, and examples.
Egresses
The egresses field declares outbound calls that the app's components can make with the call macro.
Example:
egresses:
- id: createSession
componentId: components/egresses/createSession.heg
idempotent: true
cacheTtlSeconds: 600
acl:
- registry/apps/my-app:read
- id: shopfront-webhook
componentId: platform/http
idempotent: true
parameters:
url: https://shop.example.com/hooks/order-created| Field | Required | Description |
|---|---|---|
id | Yes | Egress key, unique within the app. Lowercase letters, digits, _, . and -. Callers use the full key apps/<appId>/<id>. |
componentId | Yes | An egress component declared under components, or a built-in platform component such as platform/http. |
idempotent | No | Set true only if repeating an identical call has the same effect. Only idempotent egresses can be called from rules. Defaults to false. |
cacheTtlSeconds | No | A positive value enables the response cache. Requires idempotent: true. |
cacheKeyParameter | No | Name of a component parameter that carries the caller's cache key. Without it, the key is derived from the payload. |
acl | No | Permissions the egress component runs with, such as registry reads or connections/<id>:use. |
parameters | No | Pins component parameters so callers cannot set them, for example the url of platform/http. |
Callers need egresses/apps/<appId>/<id>:call in their own ACL, even when the egress belongs to the same app.
See the Egress documentation for egress components, caching, and access control.
Connections
The connections field declares message broker connections (RabbitMQ, Azure Service Bus, or Azure Event Hubs) that queue and stream ingresses consume from and egresses send through. Unlike the other sections, it is a map keyed by connection id.
Example:
connections:
partner-rabbit:
type: rabbitmq
properties:
protocol: amqp10
endpoint: amqp://localhost:5672
authentication:
mechanism: plain
username: integration
password: secretEach connection defines:
- A
type:rabbitmq,azureServiceBus, orazureEventHubs - Transport
properties, such as the endpoint and authentication
Connections have no ACL of their own. An egress that sends through a connection is granted connections/apps/<appId>/<id>:use in its own acl.
The values in the manifest are defaults. To let each tenant configure the endpoint or credentials, bind those properties to app settings. See Settings Bindings.
See the Connection documentation for properties, authentication mechanisms, and status.
Registry
The registryEntries field declares registry paths that will be created or updated at installation time.
registryEntries:
- path: /graph/ticket.cart/fields/email
value:
type: text
source: dynamic->'email'Each entry defines:
- A registry
path - A
valuepayload
Registry semantics are defined in the Registry documentation.
Jobs Definitions
Apps can include jobDefinitions fields that reference components and make them schedulable for execution.
jobDefinitions:
- id: hantera-test-app-order-processing
componentId: components/hantera-test-app-order-processing.hrc
# Optional: route to the low-latency queue (`default` or `priority`)
queue: priority
# Optional: cap simultaneous executions of this definition
maxConcurrency: 1queue and maxConcurrency are optional. See Queues and Concurrency for details.
Job definitions and their executions are managed through:
/resources/job-definitions/resources/jobs
For the full model, examples, scheduling, retention, and monitoring, see the Job definitions and Jobs documentation.
App Settings
The settings field declares configurable values exposed in the Portal UI.
Example:
settings:
webhookSecret:
label:
default: Webhook secret
secret: trueWhen installed, this creates a configuration field in the Portal UI.
The value is stored in the registry under:
apps/`<appId>`/settings/`<settingName>`A setting is used in one of two ways:
- Read by components — your Filtrera code reads the value from the registry and needs an explicit registry-read ACL:
registry->'apps/hantera-test-app/settings/webhookSecret'If secret: true, users cannot read it from the UI, but components can access it if granted ACL permission.
- Bound to a resource field — with a
bindingsdeclaration, the setting automatically overlays a field on a resource the app provides (a connection or ingress). The platform applies the value; components never read the setting and no registry ACL is needed:
settings:
amqpEndpoint:
label:
default: AMQP endpoint
bindings:
connections:
partner-rabbit: $.properties.endpointSee Settings Bindings for the full model.
Requires
The requires section declares the graph shape and Filtrera modules an app depends on from other apps. For conceptual guidance and workflow, see Declaring App Dependencies.
Top-level structure
requires:
graph: <RequiresGraph> # optional
modules: <RequiresModules> # optional| Field | Type | Required | Description |
|---|---|---|---|
graph | RequiresGraph | No | Graph contract: nodes, fields, edges, and sets the app reads. |
modules | RequiresModules | No | Module contract: Filtrera modules the app imports. |
Omitting requires means the app depends only on base graph shape and modules shipped in its own package.
requires.graph
requires:
graph:
nodes:
<nodeId>: <RequiresGraphNode>
sets:
<setName>: <RequiresGraphSet>| Field | Type | Required | Description |
|---|---|---|---|
nodes | Map<string, RequiresGraphNode> | No | Keyed by node id (asset.product, order, etc) |
sets | Map<string, RequiresGraphSet> | No | Keyed by top-level set names used in queries |
RequiresGraphNode
<nodeId>:
fields:
<fieldName>: <RequiresGraphField>
edges:
<edgeName>: <RequiresGraphEdge>| Field | Type | Required | Description |
|---|---|---|---|
fields | Map<string, RequiresGraphField> | No | Fields the app reads from the node |
edges | Map<string, RequiresGraphEdge> | No | Edges the app traverses from the node |
RequiresGraphField
<fieldName>:
type: <GraphFieldType>
dimension: <dimensionName> # optional
enumDefinition: <enumId> # optional| Field | Type | Required | Description |
|---|---|---|---|
type | Graph field type | Yes | One of: text, enum, number, instant, [text], [enum] |
dimension | string | No | Required dimension, for example locale |
enumDefinition | string | No | Enum definition id; valid only when type is enum or [enum] |
RequiresGraphEdge
<edgeName>:
cardinality: single | many
relatedNode: <nodeId>| Field | Type | Required | Description |
|---|---|---|---|
cardinality | single | many | Yes | Whether traversal yields one node or many |
relatedNode | Node id | Yes | Target node id, resolvable in the composite context |
RequiresGraphSet
<setName>:
node: <nodeId>| Field | Type | Required | Description |
|---|---|---|---|
node | Node id | Yes | Node bound to this top-level set name |
requires.modules
requires:
modules:
<modulePath>: <RequiresModule>The map key is the path portion of component:// URI. For component://apps/products/price-lookup.module.hrc, the key is /apps/products/price-lookup.module.hrc.
RequiresModule
<modulePath>:
exports:
<exportName>: <RequiresModuleExport>| Field | Type | Required | Description |
|---|---|---|---|
exports | Map<string, RequiresModuleExport> | No | Exports the app references; unused exports omitted |
RequiresModuleExport
<exportName>:
type: <FiltreraTypeString>| Field | Type | Required | Description |
|---|---|---|---|
type | Filtrera type string | Yes | Consumer-declared expected export type |
Manifest-level validation
CLI and server reject invalid requires declarations, including:
requires.moduleskey resolves to a local module in this same app.requires.graphfield/edge overlaps with graph contributions this app already provides viaregistryEntries.requires.graphfieldtypeis outside the supported graph field type set.requires.modulesexporttypestrings are not parseable Filtrera types.relatedNodereferences a node not resolvable in the composite context.
At activation, consumer components compile against real producer source from active apps. If declared and real module export types diverge, standard Filtrera type diagnostics are produced.