Webhooks automatically notify external systems about image-related events. Streamlined run task reviews offer meaningful context on HCP Packer run task evaluations.
HCP Packer is a powerful tool for tracking, governing, and managing image artifacts across multi-cloud environments. Today at HashiConf, we are introducing two new features for HCP Packer: project-level webhooks and streamlined run task reviews.
Project-level webhooks allow users to notify external systems about specific HCP Packer events using automation. Streamlined run task reviews provide meaningful context on run task evaluations for the HCP Packer run task on HashiCorp Terraform Cloud, building on the new functionality released in September. These two additions help organizations improve the efficiency and security of image-related workflows across their multi-cloud infrastructure estate.
A webhook is a method of automating the exchange between two applications in real time. It allows one system to send data to another as soon as a specific event occurs. Webhooks are integrated into many applications, such as Terraform Cloud, where they are often used to automate business processes.
Before the addition of project-level webhooks, after completing an action in HCP Packer users had to manually orchestrate external workflows to ensure consistency across their infrastructure estate. For example, if a user revoked an image version, they then needed to manually delete the image in the cloud provider. The inability to hook HCP Packer into their existing automation pipelines added complexity to their image management workflows, opened organizations to security risks caused by human errors, and slowed deployment speed.
HCP Packer users can now configure webhooks at the project level, allowing them to implement automation when interacting with the HashiCorp Cloud Platform (HCP). Webhooks can be used to trigger custom automation in response to image lifecycle events such as:
Example workflows include initiating functional tests via Terraform Cloud after publishing a new image version, setting a deprecation date or tag in the cloud provider when an artifact is revoked, and sending notifications to stakeholders when these events take place.
These automation workflows can be set up and edited directly in HCP:
Project-level webhooks have two chief benefits in HCP Packer:
See a demo of webhooks in this video:
Terraform Cloud and HCP Packer let users tightly integrate their image management and provisioning workflows through the use of a golden image pipeline. One component of this is the Terraform Cloud run task for HCP Packer, which helps prevent the deployment of non-approved images in two ways:
Previously, Terraform Cloud users would receive HCP Packer run task evaluation information via a callback request that included only a brief message on the run task event. Users often had trouble with HCP Packer run task failures, because they lacked visibility into which resources were specifically affected, the details of the failure, and actionable guidance for remediation in warning and failure messages. Terraform Cloud addressed this issue through the addition of streamlined run task reviews, which provides comprehensive details in-app. At release, however, this functionality was not yet supported for the HCP Packer run task.
Users can now easily check their image compliance and get actionable guidance without having to leave Terraform Cloud. Practitioners can see a list view of run task evaluations for HCP Packer to identify warnings and failures for image-related events per resource. From there they can access the critical information needed to remediate image issues such as addressing revoked versions, untracked images, and more.
From the list view, users can click into run task warnings and failures to see additional details and remediation guidance.
Streamlined run task reviews have two chief benefits in HCP Packer:
To get started with webhooks and streamlined run task reviews for HCP Packer, please refer to the documentation:
Or get started with HCP Packer for free to track and manage artifacts across all your cloud environments.
You can now see the Packer Community Edition version and plugin versions associated with each artifact in HCP Packer.
Do cloud right with The Infrastructure Cloud from HashiCorp. Unlock developer potential while controlling cloud costs and risk.
Webhooks for HCP Packer automatically notify external systems about image-related events.