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

Offen
#308 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
68/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
typescript
Bereich
authentication, cli

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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

Vorherrschende Sprache
TypeScript
Sterne
25
Forks
4
Ø Merge
18 Std. 22 Min.
Gemergte PRs (30 T.)
34

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus prisma/prisma-cli

Alle Issues in prisma/prisma-cli

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.