A Composer deploy's child process runs on an access token it cannot refresh

Đang mở
#308 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ó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
68/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript
Lĩnh vực
authentication, cli

Hướng nghiên cứu

Start with packages/cli-engine/src/execution/spawn.ts and trace how credentials: "child" passes tokens and how the needs check refreshes them before Composer deploy and destroy handlers run. Confirm the behavior for a command that outlives the access token, then verify that both child commands can continue after token expiry without losing authentication.

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

Mô tả

Commands that declare credentials: "child" (Composer deploy and destroy) hand the child an access token only, never the refresh token (spawnToken in packages/cli-engine/src/execution/spawn.ts). The needs check refreshes the token before the handler runs if it has less than 5 minutes left, but a deploy that runs longer than the token's remaining lifetime fails mid-run.

Recorded in the prisma-cli-v8 project ledger, which is being deleted at close-out: https://github.com/prisma/prisma-cli/blob/4356b361adf7044bae59aa0bc70340eda89fdad6/.drive/projects/prisma-cli-v8/deferred.md#L177

🤖 Generated with Claude Code

Ngôn ngữ chính
TypeScript
Star
25
Fork
4
Merge trung bình
18 giờ 22 phút
Pull request đã merge (30 ngày)
34

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 prisma/prisma-cli

Tất cả issue của prisma/prisma-cli

Issue tương tự

Thêm issue về TypeScript

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.