Skip to content

fix: include propagation problems in tag policy pass/fail check [PIP-456] - #23

Merged
drewblas merged 1 commit into
mainfrom
fix/pip-456-propagation-problems-ignored
Mar 31, 2026
Merged

fix: include propagation problems in tag policy pass/fail check [PIP-456]#23
drewblas merged 1 commit into
mainfrom
fix/pip-456-propagation-problems-ignored

Conversation

@drewblas

@drewblas drewblas commented Mar 31, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Resources with all required tags but misconfigured tag propagation (e.g. aws_ecs_service with propagate_tags=null) were silently classified as passing a tagging policy
  • The one-line fix adds len(resourceResult.propagationProblems) == 0 to the pass/fail condition in evaluateResourceAgainstPolicy

Test plan

  • Existing TestEvaluateAgainstResources_PropagationProblems updated and passing
  • New TestEvaluateAgainstResources_ECSServicePropagationProblems regression test passing
  • Full go test ./... passes
  • go vet ./... clean

@drewblas
drewblas requested a review from liamg March 31, 2026 12:59
…456]

Resources with all required tags present but misconfigured tag
propagation (e.g. ECS service with propagate_tags=null) were
incorrectly classified as passing. The pass/fail condition now also
checks for propagation problems.
@drewblas
drewblas force-pushed the fix/pip-456-propagation-problems-ignored branch from d94c065 to 62eed9f Compare March 31, 2026 13:01
@drewblas
drewblas merged commit 6c178c8 into main Mar 31, 2026
2 checks passed
@drewblas
drewblas deleted the fix/pip-456-propagation-problems-ignored branch March 31, 2026 16:13
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.

2 participants