New to Kestra?
Use blueprints to kickstart your first workflows.
Audits Dex identity provider metrics to detect SAML connector authentication errors and signature faults, alerting IAM teams on Slack.
Automates continuous health and security surveillance of Dex identity provider (IdP) authentication connectors. Audits Prometheus login telemetry to detect SAML 2.0 assertion signature mismatches, expired identity provider signing certificates, and elevated user login failure spikes across enterprise single sign-on (SSO) infrastructure.
flowchart TD
A[periodic_dex_audit Schedule Trigger] --> B[scan_dex_auth_metrics Python Script]
B --> C[evaluate_auth_error_threshold Flowable If]
C -- Failure Rate Breached --> D[notify_slack_iam_ops Slack Webhook]
C -- Authentication Nominal --> E[log_nominal_dex_state Core Log]
D --> F[emit_audit_manifest Debug Return]
E --> F
periodic_dex_audit): Automated cron trigger executing regular surveillance sweeps across identity provider instances.scan_dex_auth_metrics): Dockerized Python runtime interrogating Dex Prometheus metrics with connection timeout protections.evaluate_auth_error_threshold): Conditional branching logic separating transient single-user password errors from systematic IdP failures.notify_slack_iam_ops): Formatted Slack webhook message delivering actionable telemetry and remediation runbooks.emit_audit_manifest): Standardized JSON output recording exact run parameters for compliance and audit reporting.kubectl via Dex OIDC gateways.| Name | Type | Default | Description |
|---|---|---|---|
dex_metrics_url |
STRING |
http://dex.auth.svc.cluster.local:5558/metrics |
Base HTTP URL exposing Prometheus metrics for the Dex identity provider service. |
connector_id |
STRING |
okta-saml-enterprise |
Identifier of the configured Dex SAML 2.0 connector under surveillance. |
max_auth_failure_rate |
FLOAT |
5.0 |
Maximum allowable percentage of failed SAML authentications within the audit window before alerting. |
lookback_minutes |
INT |
15 |
Time duration in minutes across which Dex authentication metrics are evaluated. |
alert_on_failure |
BOOL |
true |
Toggle whether Slack alerts are dispatched upon detecting elevated SAML authentication failures. |
{{ outputs.scan_dex_auth_metrics.vars.failure_rate_percent }}: Percentage of total login attempts that resulted in authentication failures.{{ outputs.scan_dex_auth_metrics.vars.failed_logins_count }}: Cumulative count of rejected login attempts during the polling window.{{ outputs.scan_dex_auth_metrics.vars.successful_logins_count }}: Total number of successful authentications recorded by the connector.{{ outputs.scan_dex_auth_metrics.vars.is_alerting }}: Boolean flag indicating whether observed failure rates breached tolerance ceilings.{{ outputs.scan_dex_auth_metrics.vars.audit_timestamp }}: ISO-8601 UTC timestamp recording exact time of sentinel verification.telemetry: { http: 0.0.0.0:5558 }).SLACK_WEBHOOK_URL: Enterprise secret string containing the authenticated Slack webhook endpoint.SLACK_WEBHOOK_URL secret within the target Kestra namespace.company.security namespace.dex_metrics_url with your internal Dex service DNS name.periodic_dex_audit trigger to establish automated continuous surveillance.config.yaml; verify telemetry.http is bound to 0.0.0.0:5558.