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

Abierto Apto para principiantes
#1,287 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 5 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
84/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
rust

Línea de trabajo

Lee extract_operation en crates/server/src/request_helpers.rs y la prueba unitaria missing_target_no_auth_returns_missing_auth_token. Compara el comentario del código y la prueba con la respuesta de DynamoDB medida en este issue. La tarea estará terminada cuando el comentario y la prueba reflejen el comportamiento reportado de UnknownOperationException para una solicitud sin ninguno de los dos encabezados.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Rust
Estrellas
517
Forks
60
Merge medio
4 d 23 h
PR fusionados (30 d)
134

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de ExtendDB/extenddb

Todos los issues de ExtendDB/extenddb

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.