Skip to main content
← Back to list
01Issue
FeatureClosedSwamp CLI
AssigneesNone

Relationships

#1428 aws-sm: namespace annotation labels with swamp:label: prefix

Opened by stack72 · 7/27/2026

putAnnotation writes labels as bare AWS tags (e.g. Key=env, Value=prod) with no swamp-specific prefix. This makes them indistinguishable from tags the user set directly in AWS.

Consequences:

  • deleteAnnotation (after #1406 fix) cannot clean up labels it wrote — they survive deletion because deleteAnnotation only removes swamp:-prefixed tags
  • readAnnotationFields treats ALL non-aws: tags as labels, so user-managed tags appear as annotation labels even if swamp didn't write them

Proposed fix: putAnnotation should write labels as swamp🏷️ tags. readAnnotationFields should read swamp🏷️* tags as labels (and optionally still read bare tags for back-compat migration). deleteAnnotation already handles swamp:* cleanup.

This is a breaking change that needs a migration path for existing label tags. Consider:

  1. Read both bare and swamp🏷️ prefixed tags as labels (back-compat read)
  2. Write new labels with swamp🏷️ prefix
  3. On putAnnotation, migrate existing bare labels to prefixed form
  4. deleteAnnotation already cleans up swamp:* tags, so prefixed labels get cleaned up automatically

Filed from #1406 review feedback.

02Bog Flow
OPENTRIAGEDIN PROGRESSCLOSED

Closed

7/27/2026, 1:57:40 PM

No activity in this phase yet.

03Sludge Pulse

Sign in to post a ripple.