Request icon
OutputValues icon
Switch icon
Log icon
SlackIncomingWebhook icon
Schedule icon

Verdaccio Private NPM Registry and Uplink Cache Sentinel

Audit Verdaccio private npm registry health, validate storage engine readiness and upstream package uplink cache proxying, and alert Slack via Kestra.

Categories
BusinessInfrastructure

Continuously audits private Verdaccio npm registries and artifact mirrors by probing web server liveness endpoints, validating local package storage backend readiness, verifying upstream uplink cache proxying (e.g., npmjs.org), classifying operational health, and dispatching real-time incident escalation alerts to Slack.

This blueprint was created by Mohit Jeswani.

How it works

  1. probe_registry_ping (io.kestra.plugin.core.http.Request) queries /-/ping to verify that the Verdaccio Node.js web server process is responsive and accepting client requests.
  2. probe_storage_engine (io.kestra.plugin.core.http.Request) queries /-/verdaccio/ping to verify that the underlying local storage backend, package database, and filesystem permissions are operational and accepting package reads/writes.
  3. probe_uplink_package (io.kestra.plugin.core.http.Request) queries metadata for a configurable canary_package (defaults to express) to verify that upstream uplink proxying to public registries (e.g., https://registry.npmjs.org/) and cached metadata lookups are functioning.
  4. classify_registry_posture (io.kestra.plugin.core.output.OutputValues) evaluates endpoint HTTP codes and JSON status attributes using a declarative Pebble expression:
    • Classifies as REGISTRY_UNREACHABLE if endpoints cannot be reached over the network.
    • Classifies as REGISTRY_DEGRADED if the basic /-/ping endpoint returns non-200.
    • Classifies as STORAGE_ENGINE_DEGRADED if /-/verdaccio/ping returns non-200 or reports an unready storage state.
    • Classifies as UPLINK_PROXY_OFFLINE if canary package resolution fails, indicating that upstream proxying to public registries is broken while the local server remains up.
    • Classifies as HEALTHY_COMPLIANT when all probes succeed.
  5. route_by_posture (io.kestra.plugin.core.flow.Switch) routes execution based on the classification:
    • HEALTHY_COMPLIANT: Logs successful audit confirmation with endpoint response codes.
    • UPLINK_PROXY_OFFLINE: Dispatches an urgent Slack alert warning that upstream proxying is failing and CI/CD npm builds will be impacted.
    • STORAGE_ENGINE_DEGRADED: Alerts Slack that package storage is read-only or corrupted.
    • REGISTRY_DEGRADED / REGISTRY_UNREACHABLE: Alerts on total service outage.
  6. audit_summary (io.kestra.plugin.core.output.OutputValues) exports structured metrics capturing endpoint HTTP status codes and operational posture for compliance logging.
  7. errors sends a priority failure notification to Slack if unhandled workflow execution errors occur.

What you get

  • Automated, continuous validation of critical private npm registries without relying on developer error reports.
  • Early warning of upstream uplink proxy failures and DNS stalls before CI/CD pipelines break across the organization.
  • Instant detection of filesystem disk-full errors and storage engine corruptions blocking package publishing.
  • Contextual Slack alerts detailing exact endpoint failure codes and target hostnames.
  • Auditable execution history satisfying SOC2 and ISO27001 software supply chain and CI/CD availability controls.

Who it's for

  • Platform Engineers and DevOps teams maintaining private npm registries and artifact caching proxies.
  • Build and Release Engineers ensuring continuous availability of package dependencies for CI/CD runners.
  • Site Reliability Engineers (SREs) monitoring developer productivity infrastructure and internal developer platforms (IDP).

Why orchestrate this with Kestra

A silent uplink failure in a private npm registry can halt hundreds of continuous integration pipelines simultaneously when developers merge pull requests. Simple TCP port checks only confirm that port 4873 is listening; they cannot test whether Verdaccio can successfully reach upstream registries or write to its storage engine. Kestra orchestrates multi-stage HTTP inspection, declarative Pebble classification, failure escalation to Slack, and centralized compliance audit trails in a single workflow.

Prerequisites

  • A running Verdaccio instance (Docker container or Kubernetes deployment).
  • An incoming Slack webhook URL for incident notifications.

Secrets

  • SLACK_WEBHOOK_URL: Incoming Slack webhook URL used by alert_uplink_offline_slack, alert_storage_degraded_slack, alert_registry_degraded_slack, alert_unreachable_slack, and alert_flow_failure.

Quick start

  1. Configure SLACK_WEBHOOK_URL in your Kestra namespace secrets.
  2. Start a local Verdaccio instance using Docker:
    docker run -d --name verdaccio -p 4873:4873 verdaccio/verdaccio:latest
    
  3. Import this blueprint into Kestra and click Execute with default inputs (verdaccio_host: "localhost").
  4. Confirm that classify_registry_posture classifies HEALTHY_COMPLIANT and inspect the structured telemetry in audit_summary.
  5. Enable the hourly_canary schedule to automate continuous npm registry and uplink cache monitoring.

How to extend

  • Add authenticated private package verification by supplying a Verdaccio npm token in request authorization headers.
  • Integrate PagerDuty or Opsgenie alerts for out-of-hours on-call paging during UPLINK_PROXY_OFFLINE or STORAGE_ENGINE_DEGRADED incidents.
  • Expand multi-registry monitoring by looping over an array of internal Verdaccio mirror instances using io.kestra.plugin.core.flow.Loop.

Links

See How

New to Kestra?

Use blueprints to kickstart your first workflows.