Encrypt session artifacts with repository-scoped broker keys and expose broker configuration

Đang mở
#66 1 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ệ
github-actions
Lĩnh vực
ci-cd, security

Hướng nghiên cứu

Start with the snapshot upload step in action.yml (around lines 705-720) and the broker input declared near lines 19-21, then trace how .github/workflows/review.yml forwards that input. Design the encryption and key-retrieval flow with maintainers first, since the broker protocol and key rotation are undecided. Done means a synthetic secret round-trips through encrypted upload and restore without appearing in the uploaded bytes, and a failed key fetch never falls back to plaintext.

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

Mô tả

#57 stores full Codex conversations and tool output as downloadable Actions artifacts. These may contain API keys or other credentials, and GitHub log masking does not sanitize artifact contents. No credential exposure has been confirmed.

Proposed fix

  • Encrypt snapshots before upload and authenticate/decrypt them before extraction.
  • For zero-configuration use, let the existing broker validate GitHub OIDC and return a repository-specific key. Keep the master key server-side and support an optional consumer-managed key.
  • Forward a configurable broker input through the reusable workflow.
  • Keep keys out of logs, artifacts and the agent environment. Never fall back to plaintext when key retrieval fails.
  • Define key rotation and migration from existing plaintext snapshots, including their removal.

Verification

Test cross-event restore, repository isolation, wrong keys/tampering, upload failures, reruns and forked sessions. Failed operations must preserve the latest usable snapshot. A synthetic secret must round-trip without appearing in the uploaded bytes.

Current upload · Broker input · Reusable workflow

Ngôn ngữ chính
TypeScript
Star
0
Fork
0
Merge trung bình
1 giờ 39 phút
Pull request đã merge (30 ngày)
84

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

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

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 promplate/code-review

Tất cả issue của promplate/code-review

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.