TagResource and ListTagsOfResource accept a stream ARN for a stream that does not exist

Aperta
#452 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 4 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

What ExtendDB does

validate_resource_arn in crates/engine/src/tagging.rs checks only that the table named in a stream ARN exists. TagResource on table/<name>/stream/<label> succeeds for a label the table never had and stores the tags under that ARN, and ListTagsOfResource returns them. ListTagsOfResource on table/<name>/stream/* returns 200.

What DynamoDB does

Measured on 2026-10-22: TagResource and ListTagsOfResource on a stream ARN with a label the table never had return ResourceNotFoundException "Requested resource not found: ResourceArn: not found". On table/<name>/stream/* and table/*/stream/<label> they return ValidationException "Invalid StreamArn".

Effect

Tags can be stored and listed for a stream that does not exist. DynamoDB does not evaluate stream tags for authorization, and with #419 ExtendDB does not either, so no IAM decision depends on them.

Suggested fix

Resolve the label against the table's streams before storing or listing tags. Return ResourceNotFoundException with the service's message for an unknown label, and ValidationException "Invalid StreamArn" for a wildcard table name or label. The answer for a disabled stream's label was not measured.

Lingua principale
Rust
Stelle
517
Fork
60
Merge medio
4g 19h
PR unite (30g)
50

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di ExtendDB/extenddb

Tutte le issue di ExtendDB/extenddb

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.