Repository navigation
v8.6.11
Some IAM environments forbid quicksight:TagResource /
UntagResource (governance-tag-only-by-other-system). Pre-v8.6.11
the deploy pipeline always passed Tags=[…] on every Create*
call, so a no-tag IAM principal couldn't deploy at all.
New config knob tagging_enabled: bool = True (defaults to the
existing tagged behavior). Setting tagging_enabled: false:
Config.tags()returnsNoneinstead of the tag list. The
dataclass field assignmentTags=cfg.tags()resolves to
Noneand_strip_nonesdrops the field from the AWS JSON
entirely. Net effect: noTagskwarg on theCreate*boto3
calls; the IAM principal doesn't needTag*Resource.json cleanfalls back to ID-prefix matching against
cfg.resource_prefix(since the tag check is bypassed).
resource_prefixbecomes mandatory in this mode — without
either tags or a prefix scope the cleaner refuses to run.
Why this is unwise (per-page warning)
Tag-based isolation is the only protection against ID-collision
sweeps. With tagging off, a hand-built dashboard whose ID happens
to start with <resource_prefix>- would be eligible for deletion.
Concurrent deploys with the same prefix can't be told apart.
Reference page docs/reference/disable-tagging.md lays out the
full risk surface, mitigations (highly-unique prefix, mandatory
--dry-run first), and migration story for re-enabling tagging
later (the tag check is fail-CLOSED so previously-untagged
resources stay invisible to the post-flip cleaner).
Tests
tests/unit/test_config_loader.py— 4 new cases:
tagging_enableddefaults to True, allowlists into
_CONFIG_ALLOWED_KEYS, returnsNonefromcfg.tags()
when False, populates the full tag list when True, rejects
non-bool values.tests/json/test_cleanup.py— 3 new cases:
_collect_stalematches by ID prefix when tagging is off,
still respects theexpectedset (live deploys stay safe),
and refuses to run withoutresource_prefix(no scope at
all = no sweep).