A request with no X-Amz-Target and no Authorization gets MissingAuthenticationToken, where DynamoDB answers UnknownOperationException

Aperta Adatta ai principianti
#1,287 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 5 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
84/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
rust

Direzione di ricerca

Leggi extract_operation in crates/server/src/request_helpers.rs e il test unitario missing_target_no_auth_returns_missing_auth_token. Confronta il commento nel codice e il test con la risposta DynamoDB misurata in questa issue. Il lavoro è terminato quando il commento e il test riflettono il comportamento segnalato di UnknownOperationException per una richiesta priva di entrambi gli header.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Amazon DynamoDB answers a POST with no X-Amz-Target header and no Authorization header with UnknownOperationException and no message. ExtendDB answers MissingAuthenticationToken.

Measured in us-east-1 on 21 Nov 2026 with a POST to / with the Content-Type application/x-amz-json-1.0, the body {"Limit": 1}, and neither header. The request went out twice and got the same answer both times. The ExtendDB column is SQLite at f0170bde8.

Part of the answer DynamoDB ExtendDB
Status 400 400
Body {"__type":"com.amazon.coral.service#UnknownOperationException"} {"__type":"com.amazon.coral.service#MissingAuthenticationToken","message":"Missing Authentication Token"}
X-Amz-Crc32 1368724161 2747205903

extract_operation in crates/server/src/request_helpers.rs (lines 21 to 30) answers MissingAuthenticationToken when the request has neither header, and UnknownOperationException when it has an Authorization header but no X-Amz-Target. Its comment says that DynamoDB answers MissingAuthenticationToken when the auth headers are absent too. The measurement above contradicts that sentence. The unit test missing_target_no_auth_returns_missing_auth_token pins the current answer.

The fix for #1075 changes ExtendDB's body for this request to the new type and message of that error. It does not change which error this request gets.

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

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.