Skip to content

iam: aws:TagKeys is populated nowhere, so ForAllValues:StringEquals on it cannot be satisfied #690

Closed

Description

@scttfrdmn

Scoped out of #674 in writing, because a reader will ask.

aws:TagKeys is populated nowhere in the emulator. Three of AWS's own documented DeleteTags policy examples use ForAllValues:StringEquals on it, and aws:TagKeys is the standard way to write "may only manage these tag keys" — the companion to the aws:RequestTag/<key> support #674 added for direct tagging calls.

The semantics are the reason this is not a one-liner: ForAllValues is vacuously true for an absent key, so an unpopulated aws:TagKeys currently makes such a statement allow rather than deny. Populating it changes decisions in both directions and needs the set-operator qualifiers (ForAllValues, ForAnyValue) to be correct, not just the key.

Acceptance criteria

  • aws:TagKeys is populated from every request that carries tags — the TagSpecification.N.Tag.M.Key walk and the Tag.N.Key form addRequestTags already handles for ec2, plus the other services' tagging shapes.
  • ForAllValues: and ForAnyValue: qualifiers are verified to evaluate correctly against a multi-valued context key, including the absent-key case.
  • AWS's three documented DeleteTags examples are reproduced as tests and reach the answer AWS's own text describes.
  • CHANGELOG.md states that a statement previously vacuously satisfied may now deny.

Activity

  1. added this to the v0.106.0 milestone on Aug 20, 2026
  2. added
    type: bug
    area: iam
    on Aug 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: iamarea: taggingtype: bug

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions