Skip to content

chore(env): canonicalize TANGLE_API_KEY (drop legacy TANGLE_ROUTER_*)#16

Merged
drewstone merged 1 commit into
masterfrom
chore/canonicalize-tangle-api-key-tangle-website
May 14, 2026
Merged

chore(env): canonicalize TANGLE_API_KEY (drop legacy TANGLE_ROUTER_*)#16
drewstone merged 1 commit into
masterfrom
chore/canonicalize-tangle-api-key-tangle-website

Conversation

@tangletools

Copy link
Copy Markdown
Contributor

Renames legacy TANGLE_ROUTER_API_KEY and TANGLE_ROUTER_USER_KEY to canonical TANGLE_API_KEY across this repo (env templates, shell scripts, GitHub Actions workflows, docs, code). Matches agent-state.env after the 2026-05-14 rename.

Canonical going forward: TANGLE_API_KEY — operator key for every Tangle product (router + sandbox + evals + blueprint-agent + agent-builder + audits). Platform now supports unscoped (multi-product) keys via tangle-admin create-key NAME --product all.

Companion: agent-state.env TANGLE_API_KEY rotated to the new unscoped operator key; GitHub Actions secret TANGLE_API_KEY set in this repo (replacing the never-set legacy name).

TANGLE_ROUTER_API_KEY and TANGLE_ROUTER_USER_KEY removed from
agent-state.env on 2026-05-14. Both legacy names pointed at the
same router operator key (sk-tan-HBMRou…); the canonical going
forward is TANGLE_API_KEY (router operator) + TANGLE_SANDBOX_API_KEY
(sandbox-scoped, minted via tangle-admin key-for sandbox).

Migration sweep across consumer repos: 56 canonical files (excluding
artifact JSONs in scripts/experiments/results/). All references to
TANGLE_ROUTER_API_KEY and TANGLE_ROUTER_USER_KEY in code, env
templates, shell scripts, GitHub Actions workflows, and docs now
read TANGLE_API_KEY. Redundant fallback chains collapsed where the
sed produced consecutive identical clauses.

Per the tcloud platform, API keys are single-product (router OR
sandbox OR evals OR blueprint-agent), not multi-scope — one key
per product surface is the canonical model. The old proliferation
of router-key aliases was confusion-driven, not architectural.
@tangletools

Copy link
Copy Markdown
Contributor Author

🔍 Reviewing 1516c961

Pass Status ETA
Kimi Code K2.6 Running ~5-15 min
opencode DeepSeek v4 Pro Running ~5-15 min

Agent review running. Reads the actual code. This comment updates in place.

tangletools · #16 · model: kimi-for-coding · started 2026-05-14T10:34:03Z

@drewstone drewstone merged commit 24be600 into master May 14, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants