Files
floci/docs/services
Priamo Germosen fe03f90e5e fix(iam): read the bucket tag keys S3, S3 Tables and S3 Vectors name after a type (#9937)
The Service Reference gives S3's bucket and object s3:BucketTag/${TagKey}, which "Filters access by the tags associated
with the bucket", S3 Tables' table bucket and table s3tables:TableBucketTag/${TagKey}, S3 Vectors' vector bucket and
index s3vectors:VectorBucketTag/${TagKey}, and S3's access point s3:AccessPointTag/${TagKey}. The generator read
resource-tag keys only as <namespace>:ResourceTag/ and RDS's <namespace>:<type>-tag/, so none of them was read and a
condition on one never matched.

A key named after its own type, <namespace>:<Type>Tag/ (condition key names are not case-sensitive), now joins that
type's resourceTagKeys as RDS's do: the bucket's s3:BucketTag/. One named after another type whose resource path the
type's continues goes into a new containerTagKeys section, with that type's format in the type's variables
(parent_format, as tagParents builds a parent's): an S3 object's s3:BucketTag/ reads its bucket's tags, an S3 Tables
table's s3tables:TableBucketTag/ its table bucket's and an S3 Vectors index's s3vectors:VectorBucketTag/ its vector
bucket's, while their aws:ResourceTag/ keeps the table's and the index's own. The S3 User Guide says so of each: the S3
Tables key "acts on the tags applied to the table bucket that contains that table", the S3 Vectors key "references tags
associated with the vector bucket containing that index, while the aws:ResourceTag/tag-key will reference the tags of
the index itself", and s3:BucketTag is "applicable only after ABAC is enabled on your bucket", which S3's reader already
holds to. s3:BucketTag on an access point's object, whose ARN names no bucket, is not read. --check validates each entry
against the formats, --verify against the reference; the table changes in those entries alone.

IamConditionContextResolver.resourceTags adds the container keys, read from the stored tags of the container's ARN, and
S3's bucket policy checks read them with the bucket's ABAC tags: a request's own and a copy's of its source (CopyObject,
UploadPartCopy), which read no bucket tags before, aws:ResourceTag included. Floci does not model S3 access points, so
their s3:AccessPointTag and aws:ResourceTag read nothing, as before.

The Service Reference now gives athena:GetQueryResultStream the workgroup type, which the IAM data drift gate this
change runs reads: the table is synced, and no request member names the workgroup. docs/services/iam.md no longer lists
s3:GetBucketTagging, s3:DeleteBucket and DeleteBucketTagging as reading the bucket's tags apart, which #9920 removed.

S3BucketTagIamEnforcementIntegrationTest runs each of its checks with aws:ResourceTag/team and s3:BucketTag/team, a
cross-account copy among them; S3TablesIamIntegrationTest and S3VectorsIamIntegrationTest check that an allow on the
bucket's team reads that bucket and a table or index of it tagged otherwise, and refuses another bucket and its table or
index tagged with the team; IamConditionContextResolverTest that a table's two keys hold its bucket's and its own tags;
RequestResourceMembersTest the section's parse, lookup and refusals; test_regen_iam_request_resources.py the reading,
the vendored entries and the validation.
2026-12-01 18:11:34 -04:00
..