Add basic authentication for token_grant credentials

Offen
#5,952 1 Kommentar 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
25/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
git, github, rust

Rechercherichtung

Start by locating the token_grant credential handling in the Rust codebase and reading how the existing bearer and raw-header auth styles are modelled and applied to outbound requests. The profile schema needs a username field alongside the new auth_style: basic, so check where profiles are parsed and validated before touching the injection path. Done means a token grant with basic auth produces a correctly base64-encoded Authorization: Basic header that GitHub's git endpoint and the GitHub CLI accept.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

state:triage-needed
User Story

I use OpenShell sandboxes for engineers and with SPIRE and want Git to fetch with a per-sandbox GitHub App token

Problem Statement

At the moment token_grant injects bearer or a raw header but GitHub git endpoint accepts only Basic

Impact / Why This Matters

Without this feature there is no good way to handle dynamic gh repo access with proper identity

Proposed Design

Add auth_style: basic for token grants, with a user name field in the profile

Acceptance Criteria
  • Token can be used by Github CLI
Alternatives Considered

n/a

Agent Investigation

No response

Checklist
  • I've reviewed existing issues and the published docs
  • This is a design proposal, not a "please build this" request
Vorherrschende Sprache
Rust
Sterne
21.5k
Forks
2.1k
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

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 NVIDIA/OpenShell

Alle Issues in NVIDIA/OpenShell

Ähnliche Issues

Weitere Issues zu Rust

Neue Issues direkt in Ihr Postfach

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