Loop icon
Download icon
Get icon
Script icon
If icon
SlackIncomingWebhook icon
Set icon
Schedule icon

Get Slack Alerts Before Your Runtimes, Databases and Clusters Reach End of Life

Check the runtimes, databases and clusters you run against endoflife.date every week and alert each owner in Slack before a version loses support.

Categories
Infrastructure

End-of-life dates are published years in advance and still surprise teams: a managed database is force-upgraded, a cluster version is billed at extended-support prices, or a base image stops getting security patches. This blueprint keeps a list of the products and versions you run, checks them every week against endoflife.date (more than 400 products, public API, no key) and tells the owning team in Slack, three times at most per version: when the end-of-life date enters the warning window, when it enters the urgent window and when it is reached. Each alert names the recommended upgrade target.

How it works

For each entry in components (Loop, five at a time):

  1. fetch_releases downloads the release cycles of the product from endoflife.date.
  2. load_stage reads the version and stage already announced, from the Kestra KV store.
  3. evaluate finds the release cycle you run, computes the days left, sets the stage (ok, warning, urgent or eol) and picks the upgrade target: the newest maintained cycle, preferring LTS cycles for products that have them (Node.js, Ubuntu, Java and others).
  4. if_new_stage posts only when the stage is more severe than the one already announced. After an upgrade, the new version starts again from ok.
  5. alert_owner posts the dates, the owner, extended support when the vendor offers it, and the upgrade target. Every date comes from endoflife.date.
  6. remember_stage stores the announced stage, after the alert.

An unknown product or version fails only its own iteration; the errors branch reports it.

Prerequisites

  • A Slack Incoming Webhook. Nothing else: endoflife.date is free and needs no key.

Secrets

  • SLACK_WEBHOOK_URL: Slack Incoming Webhook URL for alerts and failures.

In the open-source edition, secrets are environment variables on the Kestra container, prefixed with SECRET_ and base64-encoded. See how to manage secrets.

Inputs

  • components (JSON): list of {"key", "product", "version", "owner", "where"} objects. product is the endoflife.date product id (the last part of https://endoflife.date/<product>, for example postgresql, nodejs, python, kubernetes, amazon-eks, redis, ubuntu). version is the release cycle exactly as endoflife.date names it (14, 3.10, 1.33), not a patch version. key names the KV entry eol_watch_<key>.
  • warning_days (INT, default 180) and urgent_days (INT, default 30): the two alert windows.

Quick start

  1. Add the Slack secret and replace components with what you run.
  2. Execute the flow. Each component already inside a window is announced once.
  3. Execute it again: nothing is posted until a component crosses into the next window.
  4. Enable every_monday.

To keep the list in one place, store it in the KV store and set the input default to {{ kv('eol_components') }}.

Outputs

  • {{ outputs.evaluate.vars }} per iteration: stage, days_left, eol_date, target and more.
  • KV entries eol_watch_<key>: the last announced version and stage per component.

Links

See How

New to Kestra?

Use blueprints to kickstart your first workflows.