Skip to content

refactor: rename Aidbox creds to AIDBOX_CLIENT_ID / AIDBOX_CLIENT_SECRET#9

Merged
ipasechnikov merged 1 commit into
mainfrom
aidbox-client-creds
Jul 7, 2026
Merged

refactor: rename Aidbox creds to AIDBOX_CLIENT_ID / AIDBOX_CLIENT_SECRET#9
ipasechnikov merged 1 commit into
mainfrom
aidbox-client-creds

Conversation

@ipasechnikov

Copy link
Copy Markdown
Collaborator

Matches the engine's renamed Aidbox credential env vars, shipped in interbox 1.4.0.

What

  • Sender now authenticates as user: env("AIDBOX_CLIENT_ID", "root") with password: env("AIDBOX_CLIENT_SECRET") — so a scoped, least-privilege Aidbox client can replace root.
  • Renamed the compose env keys (AIDBOX_SECRETAIDBOX_CLIENT_SECRET, + optional AIDBOX_CLIENT_ID passthrough) and .env.example.

Why

env() gained an optional default in 1.4.0 (env(name, fallback)), so AIDBOX_CLIENT_ID defaults to root when unset — back-compatible with existing single-client setups. Names now match Aidbox's own BOX_ROOT_CLIENT_SECRET + the OAuth client_id/client_secret convention.

⚠️ Breaking (deploy config)

AIDBOX_SECRETAIDBOX_CLIENT_SECRET. Deployments must update the env var. Pairs with interbox 1.4.0 (already released) and the forthcoming helm-chart update.

Testing

  • bun run typecheck clean against the resolved SDK 1.4.0 (verifies the 2-arg env()).

Runs on interbox engine 1.4.0.
🤖 Generated with Claude Code

Match the engine's renamed env vars (interbox 1.4.0). The aidbox sender now
authenticates as env("AIDBOX_CLIENT_ID", "root") with env("AIDBOX_CLIENT_SECRET"),
so a scoped least-privilege Aidbox client can replace root. Renamed the compose
env keys and .env.example to match.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@ipasechnikov ipasechnikov merged commit f2096bc into main Jul 7, 2026
2 checks passed
@ipasechnikov ipasechnikov deleted the aidbox-client-creds branch July 7, 2026 13:17
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.

1 participant