Skip to content

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

Description

@wmadden-electric

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:

- **Nothing bounds a child run to the token it was given.** A

🤖 Generated with Claude Code

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions