feat(cli): accept mTLS client certificate files through flags or environment variables

Offen
#5,982 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

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

Rechercherichtung

The CLI reads mTLS material only from gateways/NAME/mtls/ under its config directory, and the add command and global flags do not take certificate paths. Start from the code that resolves that directory and where gateway add and the global flags/env vars are parsed. Done means certificate, key and CA paths can be given via flags or env vars and used without copying files into the config layout.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

state:triage-needed

The CLI reads an mTLS gateway's client certificate, key, and CA only from gateways/NAME/mtls/ in its config directory.

Current behavior

In v0.1.10, neither gateway add nor a global flag or environment variable accepts certificate file paths, so a client must place files in the CLI's internal config layout to use mTLS.

Request

Accept the client certificate, key, and CA bundle paths through flags or environment variables (alongside the existing gateway endpoint and workspace variables), so a client can use certificates it already has without writing into the CLI's config directory.

Use

NemoClaw runs the pinned OpenShell CLI against the user's deployment with a private config directory (nemoclaw osh, NVIDIA/NemoClaw#14855). For mTLS gateways it currently links the deployment's certificates into gateways/NAME/mtls/, which relies on that layout. With file inputs, it would pass the paths directly.

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.