messaging: operator queue and attempt reads over HTTP, and retry and settle under a named person

Đang mở
#2,736 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 1 ngày

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

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
15/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
node.js, python, rust
Lĩnh vực
api, backend, security

Hướng nghiên cứu

Start in crates/registry-messaging/src/http.rs to see how the existing get, cancel and receipt routes are wired, then read crates/registry-messaging/src/dispatch.rs for the queue, attempt and audit code that currently uses the fixed operator-tool actor. The issue sets the shape but not the endpoint names, paging fields or access profile, so confirm those against the convention used by the other products' operator routes before writing anything. Done means read routes for queue-by-state-and-age and per-message attempts, the retry and settle actions audited under the named person, matching Rust/Node/Python client methods, and security review notes in the pull request.

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

Mô tả

Messaging offers get and cancel for one message over HTTP. Everything else an operator does to the queue is a messagingctl command on the host.

Today

  • HTTP routes: submit, get one message, cancel, receipt, preview, provider callback (crates/registry-messaging/src/http.rs).
  • Listing the queue, retrying and settling are CLI only. Their audit records carry the fixed actor operator-tool (crates/registry-messaging/src/dispatch.rs), not a named person.
  • No metric gives the age of the oldest queued message.

Ask

Read routes:

  • The dispatch queue by state and age.
  • The attempt history of one message.

Actions, after the reads:

  • Retry and settle over HTTP, audited under the named person.

Shape

These routes follow the same shape as the other products' operator routes. It is a convention, not a shared contract:

  • A list of held or failed work with state, age and cursor paging, plus a detail read.
  • Actions only after the reads ship. Each action takes one item at a time, with a reason and an idempotency key. The product's own access profile authorises it for a named person's token, and the audit records it under that person.
  • Maintained client methods (Rust, and the Node and Python facades) in the same change.
  • An operator disclosure profile. The routes return identifiers, states, ages and failure classes, not record content or personal data.
  • Security review notes in the pull request, because each route widens what an operator token can read or change.
Ngôn ngữ chính
Rust
Star
2
Fork
0
Merge trung bình
9 giờ 48 phút
Pull request đã merge (30 ngày)
151

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 registrystack/registry-stack

Tất cả issue của registrystack/registry-stack

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.