[Feature]: Allow manifest actions to send HTTP headers, so engines behind authentication can be managed
Mantenedores costumam responder em até 5 dias
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 5/5
- Tempo estimado
- Mais de uma semana
- Facilidade para iniciantes
- 45/100
Direção de pesquisa
Comece pela definição em Go de ActionHTTP e rastreie o caminho de execução da solicitação da action; em seguida, examine como são tratados as configurações por engine, runtime.env e os erros de solicitação. Defina a origem do secret e o comportamento de redação antes de implementar os headers; considera-se concluído quando uma action autenticada em um servidor local é bem-sucedida, a mesma solicitação sem seu header retorna 401 e os valores dos headers estão ausentes dos logs de falha.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Area
Engine or model management
User problem
ActionHTTP in the engine manifest schema carries only a method, a path and a body schema:
type ActionHTTP struct {
Method string `json:"method"`
Path string `json:"path"`
BodySchema json.RawMessage `json:"body_schema,omitempty"`
}
There is no way to send a request header, so any engine whose API requires authentication cannot be driven by a manifest at all. This is not an edge case — an engine that binds a loopback port and expects a bearer token is a normal shape, and it is the shape you get whenever a local engine also supports remote access.
The concrete example I ran into is Unsloth Studio. Its /api/health is open, so PAIR's readiness and health probes work fine and the engine looks perfectly manageable. But /v1/models returns:
HTTP 401 {"error":{"message":"Not authenticated","type":"authentication_error"}}
so list_models, loaded_models and every model operation fail. The engine can be started and monitored but not used, which is arguably worse than not supporting it at all, because the failure appears only after it looks healthy.
The same applies to vLLM started with --api-key, to SGLang behind a token, and to any engine reached through an authenticating proxy.
Desired outcome
An optional headers map on ActionHTTP, so a manifest can declare what an action needs to send:
"list_models": {
"http": {
"method": "GET",
"path": "/v1/models",
"headers": { "Authorization": "Bearer {api_key}" }
},
"result": { "array": "data", "field": "id" }
}
That implies a way to supply the secret, which is the part worth designing rather than assuming. Some options, roughly in order of how much they widen the trust surface:
- a new
{api_key}-style placeholder resolved from the existing per-engine settings the user already edits in the app, alongside the persisted port override - resolution from the engine's environment, reusing
runtime.envso the value lives where the engine's other configuration already lives - a literal string in the manifest, which is simplest but puts a credential in a file users copy around, so probably worth refusing outright
Alternatives considered
An adapter process that holds the credential and presents an unauthenticated loopback surface to PAIR. This works — it is what I did — but it means every authenticated engine needs a sidecar to be manageable, and the credential ends up in a second place rather than in PAIR's own settings.
Skipping affected engines entirely is the current behavior, and it fails late rather than clearly: health probes pass, so the engine presents as healthy while every model action returns 401.
Compatibility and security implications
Additive and backward compatible: headers absent means today's behavior exactly, and existing manifests are unaffected.
The security consideration is where the secret comes from, not the header mechanism. A literal in the manifest would be the easy path and the wrong one, since manifests are user-editable files that get shared and pasted into issues. Sourcing from per-engine settings or runtime.env keeps the credential in the same places PAIR already treats as configuration. Redaction in logs would want checking too, since action URLs and errors are logged and a header value should never follow them there.
Scoping the feature to actions only, rather than to the readiness and health probes, would also keep the blast radius small — probes generally hit unauthenticated endpoints anyway, as the Unsloth case shows.
Validation approach
A manifest declaring a header against a local server that requires it, asserting the action succeeds and that the same action without the header returns 401. Plus a redaction test asserting the header value does not appear in logs on the failure path.
Happy to test against real engines on DGX Spark hardware if that is useful — the Unsloth Studio case above is reproducible on any machine with Studio installed.
- Linguagem predominante
- Go
- Estrelas
- 1.6k
- Forks
- 266
- Merge médio
- 3d 15h
- PRs com merge (30d)
- 23
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de NVIDIA/Personal-AI-Router
-
enhancement
Dificuldade 4/5 Mais de uma semana Facilidade para iniciantes 12/100
NVIDIA/Personal-AI-Router#162 ·
Mantenedores costumam responder em até 5 dias
-
enhancement
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 25/100
NVIDIA/Personal-AI-Router#154 · 1 comentário ·
Mantenedores costumam responder em até 5 dias
-
[Feature]: [Ollama] Alert the user about model pull failuresTalvez já em andamento @ckelseynv assumiu há 2 dias. Abertaenhancement
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 56/100
NVIDIA/Personal-AI-Router#152 · 1 comentário · 1 responsável ·
Mantenedores costumam responder em até 5 dias
-
[Bug]: /v1/responses bypasses model-owner filtering in the Ollama proxyTalvez já em andamento @ilaigold assumiu há 3 dias. Aberta
Dificuldade 3/5 Meio dia Facilidade para iniciantes 84/100
NVIDIA/Personal-AI-Router#146 ·
Mantenedores costumam responder em até 5 dias
-
Make model download cancellation asynchronousTalvez já em andamento @ckelseynv assumiu há 19 dias. Abertaenhancement
NVIDIA/Personal-AI-Router#115 · 1 responsável ·
Mantenedores costumam responder em até 5 dias
Todas as issues de NVIDIA/Personal-AI-Router
Issues semelhantes
-
product/backlog
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
TencentBlueKing/bk-nodemgr#3645 ·
Mantenedores costumam responder em até 1 dia
-
docs(prompt): filer socket fragment hardcodes an issue-intent cap of 8 that Chore runs overrideAbertaagent-butler-finding chore
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
jordansmall/spindrift#5128 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 84/100
Mantenedores costumam responder em até 2 dias
-
License GOtome under Apache 2.0 instead of AGPL-3.0Talvez já em andamento @praetorianer777 assumiu hoje. Abertaarea:workflow documentation
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 84/100
praetorianer777/GoTome#212 ·
Mantenedores costumam responder em até 1 dia
-
ci: pin Go version in Build and Unit Test workflows (>=1.26.6 floats to 1.27.2 and breaks golangci-lint)Talvez já em andamento @leninmehedy assumiu hoje. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 87/100
hashgraph/solo-weaver#1255 ·
Mantenedores costumam responder em até 1 dia