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

Open
#759 1 comment 1 reaction 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
go

Research direction

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.

Written by the indexing model from the issue text.

Description

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).

Dominant language
Go
Stars
18.7k
Forks
7k
Avg merge
10h 57m
Merged PRs (30d)
494

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from BaaRai/ARTEX

All issues in BaaRai/ARTEX

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.