feat(cli): accept a bearer token for gateway authentication

Aberta
#5,981 0 comentários 0 reações 0 responsáveis Ver no GitHub

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
3/5
Tempo estimado
1-2 dias
Facilidade para iniciantes
35/100
Tipo de issue
Funcionalidade
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
kubernetes, rust
Domínio
authentication, cli

Direção de pesquisa

Start with how the CLI selects a gateway and what gateway add stores, since the issue says neither a global flag nor an environment variable currently accepts a bearer token. The payload names no source files, so locate the existing auth handling first. Done means a non-interactive client can pass a token through a flag or environment variable (or a file path) without writing it into the CLI config. The flag-versus-env design is not settled, so confirm it with maintainers before coding.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

state:triage-needed

The CLI can't authenticate to a gateway that requires a bearer token unless that token comes from an interactive sign-in.

Current behavior

In v0.1.10, neither a global flag, an environment variable, nor gateway add accepts a bearer token, so a client that already holds one (for example, a Kubernetes service account token) can't use the CLI.

Request

Accept a bearer token for the selected gateway through a flag or an environment variable (for example, reading it from a file path), so a non-interactive client can authenticate without writing the token into the CLI's own config.

Use

NemoClaw bundles the pinned OpenShell CLI and runs it against the user's deployment (nemoclaw osh). Its managed Kubernetes and OpenShift gateways authenticate with a bearer token, so nemoclaw osh refuses them today (NVIDIA/NemoClaw#14880).

Linguagem predominante
Rust
Estrelas
21.5k
Forks
2.1k
Métricas de merge de PRs
Nenhum PR com merge em 30d

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de NVIDIA/OpenShell

Todas as issues de NVIDIA/OpenShell

Issues semelhantes

Mais issues de Rust

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.