Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

feat(proxy): preserve typed dynamic token-grant failures across the sandbox boundary

Đang mở
#3,319 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

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
35/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ệ
rust

Hướng nghiên cứu

Bắt đầu bằng cách lần theo đường dẫn lỗi cấp token động qua Supervisor, Gateway, sandbox response và trusted control-plane API. Rà soát token-service contract đã cấu hình và các ranh giới telemetry hiện có, sau đó sử dụng acceptance criteria để xác định các ánh xạ xác định, redaction, correlation và fail-closed behavior. Bổ sung độ bao phủ unit và end-to-end cho các status cases được liệt kê, đồng thời bảo đảm trusted client chỉ nhận được phân loại ổn định đã được tài liệu hóa.

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

Mô tả

area:providers area:supervisor state:validated topic:l7

Summary

Preserve safe, structured dynamic token-grant failure classifications across the Supervisor proxy boundary instead of collapsing every token acquisition failure into an opaque 502 Bad Gateway.

Problem

During an integration POC with an external token service, an outbound request matched its provider policy and initiated the configured dynamic token grant. The upstream token service returned 401 Unauthorized, but the sandbox caller received only a generic 502 Bad Gateway.

This fail-closed behavior correctly prevented the request from reaching the destination without a credential. However, the trusted application/control plane could not distinguish an actionable authorization condition, such as a missing or revoked provider authorization, from invalid workload identity, token-service outage, timeout, or malformed configuration.

The sandbox must not receive raw token-service errors, token-service internals, authorization URLs, credentials, or identity details. A trusted caller still needs a stable classification so it can initiate the appropriate recovery flow.

Requested behavior

  • Define a stable, sanitized error taxonomy for dynamic token-grant failures.
  • Preserve a recognized token-service condition such as provider_authorization_required through the Supervisor/Gateway status or trusted control-plane API.
  • Continue returning a non-sensitive, fail-closed error to the sandbox request.
  • Distinguish at least:
    • provider/user authorization required;
    • workload identity or assertion rejected;
    • provider/token-grant configuration error;
    • upstream timeout or unavailable service;
    • unclassified upstream failure.
  • Include a correlation ID that lets operators join the sandbox denial, Supervisor event, Gateway event, and token-service event without exposing tokens.
  • Do not infer provider_authorization_required from every upstream 401; only propagate an explicitly recognized, authenticated contract from the configured token service.

Acceptance criteria

  • A token service's authenticated, typed provider_authorization_required response is available to an authorized trusted control-plane client using a documented stable code.
  • The sandbox response and sandbox-visible logs contain no token-service response body, authorization URL, bearer token, JWT-SVID, or provider secret.
  • An invalid/expired JWT-SVID remains distinguishable from provider authorization required in trusted telemetry.
  • 401, 403, 409, 429, timeout, and 5xx token-service cases have deterministic documented mappings.
  • The enterprise request is never forwarded when token resolution fails.
  • Unit and end-to-end tests cover the mappings, redaction, correlation, and fail-closed behavior.

Observed POC behavior

The proxy returned 502 while trusted OpenShell logs showed that the intermediate provider token exchange failed with upstream 401 Unauthorized. This RFE requests an error contract; it does not request exposing the raw upstream response to the agent.

Ngôn ngữ chính
Rust
Star
8.7k
Fork
1.3k
Merge trung bình
2 ngày 8 giờ
Pull request đã merge (30 ngày)
271

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

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 NVIDIA/OpenShell

Tất cả issue của NVIDIA/OpenShell

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.