Would you accept Workload Identity Federation support for Anthropic-format profiles?
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 25/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- go
- Ambito
- authentication
Direzione di ricerca
Start with llm/anthropic.go, server/server_mgmt.go, server/server.go, and agent/bedrock_gateway.go to compare Anthropic authentication and the existing HTTP transport approach. The issue outlines profile fields, token exchange, endpoint restrictions, and tests, but leaves design choices open. Done means agreeing on an approach and implementing WIF support with profile persistence, safe token handling, and the listed tests.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
The need
ARTEX authenticates an Anthropic profile only with a static API key. Operators whose policy forbids static keys cannot use it against the Claude API. That includes Anthropic's Cyber Verification Program (CVP): its security requirements say, for the first-party API, "Static or long-lived API keys are not permitted", already for Red Team and Specialized Access, and for Defense Access from December 15, 2026. Workload Identity Federation (WIF) is Anthropic's replacement: a workload presents a JWT from the organization's own identity provider and gets an access token that expires in minutes to hours.
The reason applies beyond CVP: a static key in a penetration testing tool sits (encrypted) in the database and its backups and outlives the engagement. With WIF, ARTEX would store no secret, only IDs and a token file path.
Current behavior
- Norma's Anthropic provider (
llm/anthropic.go, v0.4.13) sendsx-api-key; it has no bearer token, token exchange or refresh. ARTEX's model list fetch (server/server_mgmt.go) and connection test (testLLM,server/server.go) sendx-api-keytoo. - Pasting a minted token as the API key does not work: it goes out as
x-api-keyinstead ofAuthorization: Bearer, and it expires. - A token-refreshing reverse proxy in front of ARTEX would leave a local endpoint that uses the model without a credential, and agent processes can "reach the loopback API and the database if the network allows it" (SECURITY.md).
Rough shape, if you want it
- Where the token handling lives: (A) ARTEX only, one PR: a
RoundTripperon the HTTP client ARTEX already passes to Norma swapsx-api-keyforAuthorization: Bearer, asagent/bedrock_gateway.godoes; or (B) an optional token source on Norma'sllm.Configfirst, then ARTEX. Norma has issues turned off, so I'm asking about both here. - Profile: an auth mode on Anthropic-format profiles,
api_key(unchanged default) orworkload_identitywith the federation rule, organization, optional service account and workspace IDs, and the identity token file path. Stored in the profile, no vendor preset or vendor environment variables, per CONTRIBUTING. - Safety: route binding does not protect a profile with nothing secret to re-enter, so an operator-set server flag (like
ARTEX_LLM_PRIVATE_ENDPOINTS) would pin the allowed base URL and token directory. The access token stays in memory, each identity token is exchanged once (WIF rejects a reusedjti), and neither reaches agent processes, logs or error messages. - Tests: a schema migration, a profile save/load test, unit tests against a fake token endpoint, and an opt-in live test like
server/intercept_live_test.go.
I'd leave the details (token caching, restart behavior, file permissions) for the PR discussion.
Questions
- Do you want WIF support in ARTEX at all?
- If so, option A or B?
- An auth mode with extra fields on the profile, or a separate credential record?
Out of scope
The bedrock-gateway format, and Claude through cloud platforms (Bedrock, Vertex, Foundry).
Environment
Checked against ARTEX main at 6479ed7 (2026-12-01), which builds against github.com/BaaRai/Norma v0.4.13 (a replace of Autumn-27/norma).
- Lingua principale
- Go
- Stelle
- 18.7k
- Fork
- 7k
- Merge medio
- 10h 57m
- PR unite (30g)
- 494
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di BaaRai/ARTEX
-
bug P2
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
BaaRai/ARTEX#981 · 2 commenti · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
bug P2
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
BaaRai/ARTEX#980 · 2 commenti · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
bug P2
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
BaaRai/ARTEX#812 · 2 commenti · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
question
Difficoltà 4/5 1-2 giorni Idoneità per principianti 35/100
BaaRai/ARTEX#983 · 4 commenti · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
bug P2
Difficoltà 3/5 1-2 giorni Idoneità per principianti 20/100
BaaRai/ARTEX#977 · 2 commenti · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di BaaRai/ARTEX
Issue simili
-
BUG: Backend Docker build fails due to Go version mismatchForse già presa @Aakriti0207 l’ha presa oggi. Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 93/100
gittuf/visualizer#203 ·
I maintainer di solito rispondono entro 2 giorni
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
I maintainer di solito rispondono entro 3 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 79/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
-
agent:ready
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
turbot/flowpipe#1162 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno