New to Kestra?
Use blueprints to kickstart your first workflows.
Audits SPIRE Server metrics to detect SPIFFE workload attestation failures and SVID minting errors, alerting SecOps on Slack.
Automates continuous health and security surveillance of SPIRE (SPIFFE Runtime Environment) zero-trust workload identity infrastructure. Audits SPIRE Server Prometheus metrics to detect failed workload attestations, node verification timeouts, and X.509 SVID minting errors before microservice mutual TLS handshakes collapse.
flowchart TD
A[periodic_spire_audit Schedule Trigger] --> B[scan_spire_attestation_metrics Python Script]
B --> C[evaluate_spire_error_threshold Flowable If]
C -- Attestation Errors Exceeded --> D[notify_slack_zero_trust_ops Slack Webhook]
C -- Identity Minting Nominal --> E[log_nominal_spire_state Core Log]
D --> F[emit_audit_manifest Debug Return]
E --> F
periodic_spire_audit): Automated cron scheduler driving regular surveillance cycles across zero-trust clusters.scan_spire_attestation_metrics): Dockerized Python runtime querying SPIRE Server Prometheus endpoints with network timeout safeguards.evaluate_spire_error_threshold): Conditional branching logic isolating operational degradation from normal minting cycles.notify_slack_zero_trust_ops): Webhook notification providing immediate incident visibility to identity security engineers.emit_audit_manifest): Standardized compliance record outputting full telemetry state for enterprise archives.| Name | Type | Default | Description |
|---|---|---|---|
spire_server_metrics_url |
STRING |
http://spire-server.spire.svc.cluster.local:8088/metrics |
Base HTTP URL exposing Prometheus metrics for the SPIRE Server cluster. |
trust_domain |
STRING |
prod.enterprise.internal |
Configured SPIFFE trust domain identifier hosting cryptographic workload identities. |
max_attestation_errors |
INT |
5 |
Maximum allowable workload attestation failures within the audit period before alerting. |
lookback_minutes |
INT |
15 |
Time window in minutes across which SPIRE SVID minting and attestation metrics are evaluated. |
alert_on_failure |
BOOL |
true |
Toggle whether Slack alerts are dispatched upon detecting elevated workload attestation failures. |
{{ outputs.scan_spire_attestation_metrics.vars.total_attestation_failures }}: Total number of failed attestation attempts across workloads and nodes.{{ outputs.scan_spire_attestation_metrics.vars.workload_errors }}: Count of workload attestation failures caused by unmatched selectors or agent errors.{{ outputs.scan_spire_attestation_metrics.vars.svid_mint_errors }}: Number of X.509 SVID generation and signing errors encountered by the server.{{ outputs.scan_spire_attestation_metrics.vars.is_alerting }}: Boolean flag indicating whether observed failures breached configured tolerance limits.{{ outputs.scan_spire_attestation_metrics.vars.audit_timestamp }}: ISO-8601 UTC timestamp recording exact time of sentinel verification.telemetry { Prometheus { port = 8088 } } in server configuration).SLACK_WEBHOOK_URL: Vault secret containing authenticated webhook endpoint for security alerts.SLACK_WEBHOOK_URL.company.security namespace.spire_server_metrics_url with your internal SPIRE Server service endpoint.periodic_spire_audit trigger to establish automated continuous surveillance.telemetry block is configured in spire-server.conf.