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

Vaultwarden Password Vault Health, Clock Sync, and Registration Policy Sentinel

Audit Vaultwarden password vault health, validate server clock sync and signup security policies, classify operational posture, and alert Slack via Kestra.

Categories
BusinessInfrastructure

Continuously audits self-hosted Vaultwarden password vault instances by probing web server liveness endpoints, auditing API clock synchronization timestamps, validating public registration security policies, classifying operational posture, and dispatching real-time incident escalation alerts to Slack.

This blueprint was created by Mohit Jeswani.

How it works

  1. probe_alive_endpoint (io.kestra.plugin.core.http.Request) queries /alive to verify that the Vaultwarden Rust web server process is responsive and accepting HTTP requests.
  2. probe_api_alive_endpoint (io.kestra.plugin.core.http.Request) queries /api/alive to extract the server's UTC ISO timestamp, validating that the API engine is operational and that clock drift does not cause TOTP or WebAuthn cryptographic failures.
  3. probe_vault_config (io.kestra.plugin.core.http.Request) queries /api/config to verify that public vault configuration metadata is accessible and that the signups_allowed setting matches corporate security policy.
  4. classify_vault_posture (io.kestra.plugin.core.debug.Return) evaluates endpoint response codes and JSON attributes using a declarative Pebble expression:
    • Classifies as INSTANCE_UNREACHABLE if endpoints cannot be reached over the network.
    • Classifies as API_ENGINE_UNHEALTHY if /alive or /api/alive return non-200 status codes.
    • Classifies as VAULT_CONFIG_UNAVAILABLE if /api/config fails (indicates configuration lock or database migration issues).
    • Classifies as SIGNUPS_POLICY_VIOLATION if enforce_signups_disabled is true and signups_allowed is true (exposes corporate vaults to unauthorized registrations).
    • Classifies as HEALTHY_COMPLIANT when all probes succeed and registration policies are enforced.
  5. route_by_posture (io.kestra.plugin.core.flow.Switch) routes execution based on the classification:
    • HEALTHY_COMPLIANT: Logs successful audit confirmation with server time and configuration attributes.
    • SIGNUPS_POLICY_VIOLATION: Dispatches an urgent security incident alert to Slack notifying SecOps that public registrations are enabled.
    • VAULT_CONFIG_UNAVAILABLE: Alerts Slack that vault configuration is failing.
    • API_ENGINE_UNHEALTHY / INSTANCE_UNREACHABLE: Dispatches critical outage notifications warning that all employees and CI/CD pipelines are locked out of credential vaults.
  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 enterprise password vaults without relying on employee lockout reports.
  • Active enforcement of vault registration policies to prevent unauthorized external account creation.
  • Server clock synchronization auditing to safeguard against TOTP verification and session expiration failures.
  • Contextual Slack alerts detailing exact endpoint failure codes, server timestamps, and target hostnames.
  • Auditable execution history satisfying SOC2, ISO27001, and NIST 800-63B credential and secret management controls.

Who it's for

  • Security Operations (SecOps) teams enforcing password manager access policies and sign-up controls.
  • Platform Engineers and SREs responsible for uptime and reliability of self-hosted credential backbones.
  • IT Administrators managing Bitwarden and Vaultwarden deployments across enterprise environments.

Why orchestrate this with Kestra

Password vault outages are catastrophic Sev-0 incidents that prevent engineers from accessing cloud consoles, database credentials, and production SSH keys. Simple TCP port checks only confirm that port 80 is listening; they cannot detect whether the SQLite/PostgreSQL backend is locked or whether unauthorized public signups have been accidentally enabled. 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 Vaultwarden instance (Docker container or Kubernetes pod).
  • An incoming Slack webhook URL for incident notifications.

Secrets

  • SLACK_WEBHOOK_URL: Incoming Slack webhook URL used by alert_signups_violation_slack, alert_config_unavailable_slack, alert_api_unhealthy_slack, alert_unreachable_slack, and alert_flow_failure.

Quick start

  1. Configure SLACK_WEBHOOK_URL in your Kestra namespace secrets.
  2. Start a local Vaultwarden instance using Docker:
    docker run -d --name vaultwarden -e SIGNUPS_ALLOWED=false -p 8080:80 vaultwarden/server:latest
    
  3. Import this blueprint into Kestra and click Execute with default inputs (vaultwarden_host: "localhost", vaultwarden_port: 8080).
  4. Confirm that classify_vault_posture classifies HEALTHY_COMPLIANT and inspect the structured telemetry in audit_summary.
  5. Enable the hourly_canary schedule to automate continuous password vault monitoring.

How to extend

  • Add automated backup verification by checking S3 or local volume snapshot timestamps using io.kestra.plugin.aws.s3.List.
  • Integrate PagerDuty or Opsgenie alerts for out-of-hours on-call paging during INSTANCE_UNREACHABLE or SIGNUPS_POLICY_VIOLATION incidents.
  • Expand multi-vault monitoring by looping over an array of internal Vaultwarden mirror instances using io.kestra.plugin.core.flow.ForEach.

Links

See How

New to Kestra?

Use blueprints to kickstart your first workflows.