Files
Kamino/changelogs/fragments/221-ufw-base-rule-comment.yml
T
Defame1297 592b779ad8 fix(ufw): refuse a single quote in a base rule comment
The ufw module wraps the comment in single quotes without escaping, so a
quote in a ufw_rules comment failed the rules loop part-way, after earlier
rules had already changed. validate.yml now refuses it before any change.

Only the single quote is refused: backslash, non-ASCII and surrounding
whitespace work for base rules, which are never read back as tags.
Delete entries are skipped, as their comment is never sent.

Refs: #221
Assisted-by: Claude Code
2026-12-06 21:35:05 +00:00

7 lines
354 B
YAML

---
bugfixes:
- >-
ufw - A single quote in the ``comment`` of a ``ufw_rules`` entry is now refused before anything changes. The
ufw module cannot pass it to ufw, so the play failed while applying the rules, after earlier rules of the list
had been changed. The comment of an entry with ``delete: true`` is not checked, as it is never sent.