Skip to content

Repo clone: per-host PAT scoping for multi-repo sessions #189

Description

@gatof81

Follow-up to #188.

Blocked by

Problem

#188 ships a single per-session PAT routed through a git credential helper that answers any host. If a session clones two private repos on different hosts (e.g. one on github.com and one on a self-hosted GitLab), the user can only supply one token; the second clone gets the wrong creds.

Proposal

Replace the single-PAT shape with a list of per-host PATs:

auth: {
  pats: [
    { host: "github.com",       ciphertext, iv, tag },
    { host: "gitlab.internal",  ciphertext, iv, tag }
  ]
}

Out of scope

  • SSH multi-key (one SSH key per session is fine for v1; revisit if needed).
  • OAuth / GitHub App.

Acceptance

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions