A request with no Authorization header gets the type `MissingAuthenticationToken` and the message "Missing Authentication Token", where DynamoDB sends `MissingAuthenticationTokenException`

Đang mở Phù hợp với người mới
#1,075 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 5 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
78/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
rust
Lĩnh vực
backend-api-design

Hướng nghiên cứu

Bắt đầu với BuiltinAuthProvider::authenticate trong crates/auth/src/lib.rs, sau đó kiểm tra DynamoDbError::MissingAuthenticationToken trong crates/core/src/error/mod.rs và mục tương ứng trong docs/troubleshooting.md. Cập nhật kiểu lỗi và thông báo để khớp với phản hồi của DynamoDB, đồng thời cập nhật nội dung khắc phục sự cố. Hoàn tất khi phản hồi khớp với phần thân DynamoDB được báo cáo và tài liệu thống nhất với phản hồi đó.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

A request with no Authorization header gets an error from ExtendDB whose type and message differ from those of Amazon DynamoDB. Both answer 400.

Measured in us-east-1 on 17 Nov 2026. Each request went out twice and got the same answer both times. Each request is an unsigned ListTables with the body {"Limit": 1} and the X-Amz-Target DynamoDB_20120810.ListTables:

Content-Type DynamoDB ExtendDB at origin/main 381c8c78a
application/x-amz-json-1.0 400, {"__type":"com.amazon.coral.service#MissingAuthenticationTokenException","message":"Request is missing Authentication Token"} 400, {"__type":"com.amazon.coral.service#MissingAuthenticationToken","message":"Missing Authentication Token"}
application/json the same body, in application/json the same body as the row above

The X-Amz-Crc32 of the DynamoDB answer is 2088342776 in both rows.

BuiltinAuthProvider::authenticate (crates/auth/src/lib.rs) builds the message Missing Authentication Token. DynamoDbError::MissingAuthenticationToken takes the type name MissingAuthenticationToken in crates/core/src/error/mod.rs (line 222). docs/troubleshooting.md (line 304) gives a third text for this error.

Proposed change: give this error the type MissingAuthenticationTokenException and the message Request is missing Authentication Token, and update the troubleshooting entry.

Ngôn ngữ chính
Rust
Star
517
Fork
60
Merge trung bình
5 ngày 14 giờ
Pull request đã merge (30 ngày)
124

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của ExtendDB/extenddb

Tất cả issue của ExtendDB/extenddb

Issue tương tự

Thêm issue về Rust

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.