Would you accept Workload Identity Federation support for Anthropic-format profiles?

Aperta
#759 1 commento 1 reazione 0 assegnatari Vedi su GitHub

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

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

feature

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) sends x-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) send x-api-key too.
  • Pasting a minted token as the API key does not work: it goes out as x-api-key instead of Authorization: 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 RoundTripper on the HTTP client ARTEX already passes to Norma swaps x-api-key for Authorization: Bearer, as agent/bedrock_gateway.go does; or (B) an optional token source on Norma's llm.Config first, 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) or workload_identity with 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 reused jti), 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

  1. Do you want WIF support in ARTEX at all?
  2. If so, option A or B?
  3. 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

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di BaaRai/ARTEX

Tutte le issue di BaaRai/ARTEX

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.