HCP Packer webhooks now generally available

Webhooks for HCP Packer automatically notify external systems about image-related events.

Today we are excited to announce the general availability of HCP Packer’s webhooks, first introduced at HashiConf in October 2023, which let users notify external systems about specific image events using automation. HCP Packer is a powerful tool that provides image lifecycle management at scale across any cloud and on-premises environment. The addition of webhooks helps organizations further streamline and secure image-related workflows across their multi-cloud infrastructure estate.

Previously, when a user completed specific actions in HCP Packer, they then needed to manually orchestrate various external workflows to achieve consistency across their infrastructure. For example, if a user revoked an artifact version, they would need to delete the image in the cloud provider and communicate this update to the appropriate team members. These manual steps added further complexity to image management workflows and opened organizations to security risks caused by human errors.

»Webhooks for HCP Packer

A webhook is a lightweight, event-driven communication that allows two applications to send data to one another as soon as a specific event occurs. With the introduction of webhooks for HCP Packer, users can now implement automation when interacting with the HashiCorp Cloud Platform (HCP) for image lifecycle events such as:

  • Creation, completion, and deletion
  • Revocation and restoration
  • Scheduling and canceling a scheduled revocation
  • Assignment to a channel
Webhooks for HCP Packer let you integrate automation into your existing infrastructure pipelines.

The webhook handler shown here adds last-mile automation into your existing infrastructure pipelines.

These automation workflows can be set up and edited directly in HCP:

Create automation hooks for your image-related workflows.

Webhooks list dashboard

Example workflows include initiating functional tests via HashiCorp Terraform Cloud after publishing a new image version, deleting the image or template in the cloud provider when the corresponding artifact version is deleted, and sending notifications to stakeholders when these events occur.

Create automation hooks for your image-related workflows.

Dashboards let you define triggering events and view details on recent deliveries.

»Webhook benefits

Webhooks bring two key benefits to HCP Packer:

  • Workflow automation: Webhooks let you automate processes triggered by specific events to reduce manual effort and increase velocity when integrating with existing external pipelines and Terraform Cloud.
  • Enhanced security: Through automation, organizations can mitigate the risk of human errors such as missed notifications and forgotten image management tasks that could lead to outdated and insecure images being left deployed.

»Summary and resources

To learn more about using webhooks for HCP Packer, please refer to the documentation and demo video:

Get started with HCP Packer for free to track and manage artifacts across all your cloud environments.

Sign up for the latest HashiCorp news

By submitting this form, you acknowledge and agree that HashiCorp will process your personal information in accordance with the Privacy Policy.