github opsmill/infrahub infrahub-v1.5.0b2
Infrahub - v1.5.0b2 (Beta)

pre-releaseone day ago

⚠ !!! WARNING This third beta version of Infrahub v1.5.0 does not support upgrading an existing production environments yet. It is supposed to be used for testing purposes only !!!

We're excited to announce the latest version of Infrahub, v1.5.0!

This release delivers major enhancements focused on data lifecycle management, significant performance gains, and operational maturity.

We've made extensive architectural refactors across the board: HFIDs and Profiles are now computed at write time for faster reads, and the display_label property has been modernized to use Jinja2 templating, supporting relationships for richer context.

For automation, we introduced controls to disable generator runs during CI/merge events to eliminate redundancy. We also delivered a crucial new Backup & Restore Tool to orchestrate consistent recovery procedures across Neo4j, PostgreSQL, and artifact storage (initially supporting Docker Compose).

Finally, we've ensured Webhooks are more consistent by aligning custom webhook data formats with standard events, and improved overall efficiency via memory optimizations in multi-branch setups.

Upgrading from earlier versions

Due to the changes implemented for display_labels, human friendly IDs and profiles a data migration is required as part of the upgrade process. A new parameter to the upgrade command has been added and the correct way to run the upgrade is now to use:

infrahub upgrade --rebase-branches

Main changes

Disable generator in Infrahub's CI pipeline and after a branch merge operation

To provide a cleaner experience when setting up event-based generators, we've introduced the capability to selectively disable generators during specific lifecycle events: CI pipeline execution and branch merge operations.

Previously, generators could be triggered multiple times, leading to redundant processing: once by their configured event trigger rules, again during the Proposed Change (CI) phase, and finally after merging into the main branch.

You can now prevent this overlap by optionally disabling generator execution on a per-generator basis directly within your repository configuration file, .infrahub.yml. This ensures your automation runs only when you explicitly intend it to, giving you finer control over when your generation logic executes.

Benefit: Eliminates redundant generator runs

Requirement: This feature requires using version 1.15.0 or newer of the Infrahub Python SDK.

New Infrahub Backup and Restore tool

We are introducing a new tool to ease the backup and restore process of Infrahub.

Infrahub stores critical state for your infrastructure in multiple systems: the Neo4j graph database, the PostgreSQL database that powers the task manager, and external artifact storage. If any piece is lost or corrupted, you can end up with drifted configurations, orphaned tasks, or a completely unusable deployment. Regulatory requirements and business continuity plans often demand auditable recovery procedures, so "having some dumps around" is rarely enough—you need consistent, verifiable recovery points.

The Infrahub Backup & Restore Tool orchestrates backup and restore workflows across deployment targets. It coordinates quiescing and snapshotting services, pulls data out with the right credentials, and packages everything so restores are deterministic. During restore, the tool brings services back in dependency order, reapplies data, and captures logs so you can prove the operation succeeded.

Installation instructions for the infrahub-backup tool can be found in the documentation.

At this stage the tool only support Docker Compose based deployments, in the future we will be adding support for other deployment methods, such as Kubernetes.

Refactor HFID of objects

We’ve refactored how HFIDs are handled internally to improve performance and scalability.

Previously, HFIDs were computed on-the-fly at read time and were not stored in the database. On objects with many relationships, this could lead to slower queries and higher CPU usage.

With this release, Infrahub now computes the HFID at write time (on create and update) and persists it in the database. Reads no longer need to derive HFIDs dynamically, resulting in faster object retrieval and more predictable query performance.

Refactor the display_labels of objects

We’ve modernized how object display labels are defined and resolved, adding support for templating and relationships.
Previously, display_labels were evaluated dynamically at read time, which impacted query performance at scale and prevented us from supporting relationships.

What’s new:

  • Computed at write time: display_label is now computed on create/update and stored, improving read performance.
  • Templating with Jinja2: define display_label using the same Jinja2 syntax available for computed attributes, including first-level relationships.
  • Simple single-attribute shorthand remains supported, e.g. attribute__value
  • For multi-field labels, use Jinja2: {{ relationship__attribute__value }}-{{ attribute__value }}

Deprecation and migration:

  • The display_labels property is deprecated in favor of display_label.
  • Infrahub automatically migrates existing schema nodes:
    • display_labels: ["name__value"]display_label: name__value
    • display_labels: ["type__value", "name__value"]display_label: {{ type__value }} {{ name__value }}

You can review the result on each schema node’s detail page (Menu > Object Management > Schemas).

Required action after migration:

Update your schema files to use the new display_label property and remove deprecated display_labels after verifying the automatic migration.

Today, in some places in the UI, we are using the HFID of objects to display them with useful context. This was mostly done to overcome the restriction of not supporting relationships in the display_label. In a future release we will use the display_label for this instead.

Refactor profiles

Profiles have been reworked for performance and future flexibility.
Previously, attribute values derived from profiles were resolved dynamically at read time, which could impact performance at scale. With 1.5.0b0:

  • Attribute values influenced by profiles are now computed and stored at write time (create/update object or profile).
  • Reads no longer have to compute derived values, improving query performance and predictability.
  • This refactor lays groundwork to expand profile capabilities, such as adding relationships to profiles in future versions of Infrahub.

Memory optimizations

We reduced the memory footprint of the GraphQL schema in multi-branch setups:

  • Branches that use the exact same schema now share the same in-memory GraphQL schema.
  • Individual GraphQL types can be shared across schema versions across branches where compatible.

This lowers memory consumption and improves runtime efficiency.

Webhook improvements

Aligned the format of custom webhooks with the schema of standard webhooks

The format of the event data that custom webhooks receive in a Python transform, is now aligned with the format of events in standard webhooks. This allows users of custom webhooks to have access to the same data as standard webhooks.

An example of the format of the event data:

{
    'data': {
        'kind': 'BuiltinTag',
        'action': 'created',
        'fields': ['name', 'description'],
        'node_id': '1869ad37-fb84-8958-58d8-1746970be2f5',
        'changelog': {
            'node_id': '1869ad37-fb84-8958-58d8-1746970be2f5',
            'node_kind': 'BuiltinTag',
            'attributes': {
                'name': {'kind': 'Text', 'name': 'name', 'value': 'Green', 'properties': {'is_visible': {'name': 'is_visible', 'value': True, 'value_type': 'Boolean', 'value_previous': None, 'value_update_status': 'added'}, 'is_protected': {'name': 'is_protected', 'value': False, 'value_type': 'Boolean', 'value_previous': None, 'value_update_status': 'added'}}, 'value_previous': None, 'value_update_status': 'added'},
                'description': {'kind': 'Text', 'name': 'description', 'value': None, 'properties': {'is_visible': {'name': 'is_visible', 'value': True, 'value_type': 'Boolean', 'value_previous': None, 'value_update_status': 'added'}, 'is_protected': {'name': 'is_protected', 'value': False, 'value_type': 'Boolean', 'value_previous': None, 'value_update_status': 'added'}}, 'value_previous': None, 'value_update_status': 'unchanged'}
            },
            'display_label': 'Green',
            'relationships': {}
        }
    },
    'id': 'fe0172b4-8b69-4597-b0f5-17294de85882',
    'branch': 'main',
    'account_id': '1869ab9e-873b-1908-58d0-1746a8ed315d',
    'occured_at': '2025-09-29 06:33:05.523563+00:00',
    'event': 'infrahub.node.created'
}

⚠ !!! *WARNING this is a breaking change, existing Python transforms for custom webhooks will need to be adapted to handle this new format.

Artifact definition name has been added to the webhook payload for artifact events

For artifact events, the webhook payload now includes the artifact definition name.

Events affected:

  • infrahub.artifact.created
  • infrahub.artifact.updated

This makes it easier to interpret artifacts in downstream systems without additional API queries and simplifies integration with configuration deployment frameworks.

Web interface improvements

  • Bulk select objects in list view — select multiple rows to apply bulk actions more efficiently.
  • Better navigation for large diffs — improvements to the branch and proposed change diff views help you navigate big changes faster.
  • Task list: direct access to related nodes — from each task, you can jump directly to the related nodes for quicker investigation.

Convert between object types

You can now convert an object from one schema type to another without recreating it. This is especially useful when evolving objects as their type changes—for example, transforming a Layer 2 interface into a Layer 3 interface on a device.

Conversion of object type is available via: GraphQL API, Infrahub Python SDK and the Web interface

To streamline conversions, Infrahub proposes a field mapping that aligns attributes and relationships from the source type to the destination type. You can review and adjust the suggestions and provide values for any fields where no suggestion is available.

The following query has been added to the GraphQL API:

  • FieldsMappingTypeConversion returns suggested mapping between source and destination types

The following mutations have been added to the GraphQL API:

  • ConvertObjectType converts an object using the provided mapping

The following methods have been added to the Infrahub Python SDK:

  • convert_object_type converts an object using the provided mapping

Convert Object Type

SDK improvements

Version 1.5.0b2 of Infrahub requires the usage of infrahub-sdk version v1.15.0b0, which has been published to PyPi.

Diff based on timestamp

  • create_diff — manually create a diff between two timestamps on a branch.
  • get_diff_summary now accepts start/end timestamps to retrieve that diff.

Object type conversion

new convert_object_type method — converts an object to a different type using field mappings.

Clearing attribute/relationships of objects

You can clear the value of an optional attribute and a cardinality one relationship of an object via the SDK.

Support for object file range expansion

Object templates support range expansion on string attributes to generate multiple similar objects more easily (e.g., device interfaces).

Deprecations

Graphql mutations

IPPrefixPoolGetResource and IPAddressPoolGetResource have been deprecated in favor of InfrahubIPPrefixPoolGetResource and InfrahubIPAddressPoolGetResource. The deprecated mutations will be removed in a future release. Please update your integrations accordingly.

SDK

In the SDK client the raise_for_error attribute has been deprecated for the following methods:

  • execute_graphql
  • query_gql_query
  • get_diff_summary
  • allocate_next_ip_address
  • allocate_next_ip_prefix

Migrate to try/except for handling errors raised by these methods. The deprecated attribute will be removed in a future release.

Full changelog

Added

  • Clean up deadlocks at set intervals controlled by the INFRAHUB_CACHE_CLEAN_UP_DEADLOCKS_INTERVAL_MINS environment variable with a default value of 15 mins (#1290)

  • Generate order_weight for generic templates (#7157)

  • Added new error message for git connection error (#7392)

    • Added a "Select All" checkbox on list views that selects all rows currently loaded on the page.
    • Select multiple rows at once by holding Shift and clicking.
  • Add InfrahubRecomputeComputedAttribute GraphQL mutation to trigger computed attribute re-computation on all nodes of a given kind or a subset of nodes given their IDs

  • Add support for updating existing Profiles when the associated node or generic schema is updated to change an attribute's optional or read-only value or when an attribute is added or removed

  • Added a 'warnings' attribute to the API payload for /api/schema/load and /api/schema/check, so that deprecation warnings could be returned for non critical schema violations.

  • Added the name of the artifact definition to the payload of artifact webhook events.

  • Added warnings to API endpoints /api/schema/check and /api/schema/load, as a way to notify schema developers when they use deprecated fields.

  • Allow objects to be converted to another type by mapping fields or defining custom values.

    • For attributes, values from the source object will appear in the target form when the attribute type matches between the source and target schemas.
    • For dropdowns and enums, if the set of options is identical in both schemas, the selected source value will appear in the target form; otherwise, no value will be shown.
    • For relationships, linked objects from the source will appear in the target form when the related object type matches between the source and target schemas.
  • Branches list page refreshed:

    • Improved layout for clearer grouping and labels
    • Better accessibility and full keyboard navigation
    • New: branch status is now displayed

    Branch details page:

    • Now shows all branch attributes for a complete view.
    • Added fields: description, status, schema changes, and sync with Git.

Changed

  • Add a new flow to apply migrations inside branches that will also set a graph_version property on branches after running. The upgrade process (via the provided command) is also updated with a new --rebase-branches flag to trigger branch rebases as part of the upgrade process. Also add the NEED_UPGRADE_REBASE branch status to identify branches that need the migrations flow to run.

Fixed

  • Prevent creation of relationships with state absent (#4302)

    • In a proposed change, within the diff tree, clicking the arrow now only expands/collapses the tree without also triggering the item itself (and vice versa).
    • Diff tree and list of changes can be scrolled separately

    (#5451)

  • Bugfix to allow updating the node kind to null when creating or updating a webhook (#6397)

  • Breaking change: The format of the data payload has been corrected for transform based webhooks so that they are consistend with standard webhooks as well as custom webhooks (without an attached transform). Due to this change any transforms attached to a webhook needs to be updated to account for the new format. (#6815)

  • Fixed an issue with resource pools allocating duplicate values on concurrent mutations. (#7254)

  • Prevent creation of attributes with state absent (#7353)

  • Prevent creation of nodes with state absent (#7354)

  • Fix bug in cypher query that could cause relationships in a large result set to be incorrectly set to null. By default, the nodes in the result set would need to collectively have over 5,000 relationships for the issue to appear.

  • Fixed incorrect data diff counter when viewing a branch or proposed changes

  • Improved 401 in UI: parallel queries now share a single refresh token call instead of each triggering their own.

  • Performance improvements thanks to more granular locking on mutations.

  • Resolved a problem that caused generator checks to fail when retrying requests

Housekeeping

  • Pin click version to 8.2.1.
  • Refactor Generator execution triggered by an action.

Don't miss a new infrahub release

NewReleases is sending notifications on new releases.