Neo4j Index Population Failure Recovery Guard
Find Neo4j indexes left FAILED or stuck POPULATING, alert Slack, drop and recreate each one from its own definition, wait for population, then verify every index is ONLINE.
Audit Authentik SSO identity provider health, monitor outpost connectivity, classify authentication cluster availability, and alert Slack via Kestra.
Continuously audits Authentik identity and access management (IAM) platforms by probing core REST endpoints, validating outpost instances (Proxy, LDAP, RADIUS), classifying authentication cluster health, and routing incident alerts to Slack.
probe_authentik_version queries the /api/v3/admin/version/ endpoint using an API bearer token to verify Authentik core responsiveness and software release status.probe_authentik_outposts queries /api/v3/outposts/instances/ to discover all deployed outpost integrations, extracting active instance counts and protocol types.probe_authentik_system queries /api/v3/admin/system/ to retrieve backend diagnostics including PostgreSQL latency and Redis task queue responsiveness.classify_outpost_status evaluates response codes and registered instance totals through a Pebble conditional expression, classifying status into HEALTHY, WARNING, PROBE_FAILED, or CORE_UNREACHABLE.route_by_outpost_status branches workflow execution based on the classification:HEALTHY: Logs current Authentik version, active outpost counts, and system status.WARNING: Dispatches a Slack notification warning operations teams that deployed outposts have fallen below the expected threshold.PROBE_FAILED: Alerts engineers that the API token lacks required read permissions for outpost objects.CORE_UNREACHABLE: Dispatches an incident alert notifying on-call engineers that the Authentik core server is completely unreachable.log_audit_summary records structured outputs capturing cluster health and outpost counts for audit compliance.errors captures unexpected task exceptions and posts a high-priority incident notice to Slack.Identity providers like Authentik are mission-critical: an outage in core services or disconnected outposts immediately halts employee logins and automated API access across an organization. Relying on manual checks or isolated shell cron jobs creates blind spots and lacks durable execution tracking. Kestra provides declarative, auditable orchestration with centralized secret management, robust HTTP probing, dynamic status classification, and immediate failure alerting.
/api/v3/ endpoints.AUTHENTIK_API_TOKEN: Authentik bearer token used to authenticate REST API requests against administrative endpoints.SLACK_WEBHOOK: Incoming Slack webhook URL used by alert_warning_slack, alert_probe_failed_slack, alert_unreachable_slack, and the errors handler.AUTHENTIK_API_TOKEN and SLACK_WEBHOOK as secrets within your Kestra namespace.docker run -d --name authentik -p 9000:9000 ghcr.io/goauthentik/server:latest server
authentik_host: "localhost" or "authentik" to verify connectivity and outpost discovery.every_15_minutes trigger to automate continuous background monitoring./api/v3/outposts/instances/{pk}/health/ to inspect individual outpost heartbeat timestamps (last_seen) and flag stale instances./api/v3/events/events/.