Skip to content

Playbook templates: repair four broken templates and tidy their tags - #282

Open
penhouetp wants to merge 1 commit into
mainfrom
fix/broken-playbook-templates
Open

penhouetp wants to merge 1 commit into
mainfrom
fix/broken-playbook-templates

Conversation

@penhouetp

Copy link
Copy Markdown
Contributor

What this fixes

Found while checking every template against the platform's own template validation and the production branch of automation-library.

Template Problem Effect for customers Fix
cascade_alert_status_on_harfang No uuid The platform refuses it: it never appeared in the editor since it was merged Add a uuid and a description
create_jira_ticket_on_alert Reads node.18, which does not exist Every run fails on the status check, after the ticket is created; no comment is posted Read the HTTP request from node.34; add a description and the Notifications and Jira tags
CrowdSec_alert_enrichment The "Not Found" branch reads node.1, which does not exist That branch fails Read the IP from node.10.events[0]["source.ip"], as the request does
VirusTotal_Enrichement Output spelt "Webtuation" while the case is "Webutation", and {% endif %}} renders true1} The Webutation branch never runs Fix both
disable_user_accounts_in_microsoft_entra_id Lower case tags Duplicate tags in the template picker filter Capitalise them
create_incident_on_cortex_xsoar No vendor tag Not found when filtering on XSOAR Add the XSOAR tag

uuids of existing templates are unchanged, so the platform updates them in place.

Tested

All 41 templates load with the platform's template validation after these changes. The only remaining finding is AbuseIPDB (node.9), fixed by #166.

The CI check added in #281 does not run on this branch (it is not on main yet); it passes on these files locally.

🤖 Generated with Claude Code

- cascade_alert_status_on_harfang: add the missing uuid. Without it the
  platform refuses the template, so it never appeared in the editor. Add its
  description.
- create_jira_ticket_on_alert: read the HTTP request from node 34, not from
  node 18, which does not exist: every run failed on the status check after
  creating the ticket. Add its description and the Notifications and Jira tags.
- CrowdSec_alert_enrichment: the "Not Found" branch read node 1, which does not
  exist. Read the IP from the events of node 10, as the request does.
- VirusTotal_Enrichement: the "Webutation is defined" branch never ran. Its
  output was spelt "Webtuation", and the condition rendered "true1}" because of
  an extra brace.
- disable_user_accounts_in_microsoft_entra_id: capitalise the tags, which the
  template picker filters on.
- create_incident_on_cortex_xsoar: add the XSOAR tag.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant