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

Aperta
#66 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
15/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
github-actions
Ambito
ci-cd, security

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

#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

Lingua principale
TypeScript
Stelle
0
Fork
0
Merge medio
1h 39m
PR unite (30g)
84

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di promplate/code-review

Tutte le issue di promplate/code-review

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.