Skip to content

Commit f2096bc

Browse files
ipasechnikovclaude
andauthored
refactor: rename Aidbox creds to AIDBOX_CLIENT_ID / AIDBOX_CLIENT_SECRET (#9)
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 0eb3d89 commit f2096bc

3 files changed

Lines changed: 10 additions & 5 deletions

File tree

.env.example

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,11 @@ INTERBOX_LICENSE=
1515
# value so Aidbox starts in activation mode instead of crashing. Or paste a free
1616
# dev license JWT from the Aidbox portal here to skip the in-dashboard step.
1717
AIDBOX_LICENSE=
18-
# Shared secret for the root client (any value; keep it consistent).
19-
AIDBOX_SECRET=secret
18+
# The Aidbox Client interbox authenticates as. CLIENT_ID is optional — the sender
19+
# defaults to `root`; set a scoped client for least privilege. SECRET must match the
20+
# Client's secret in Aidbox (BOX_ROOT_CLIENT_SECRET for the default root client).
21+
# AIDBOX_CLIENT_ID=root
22+
AIDBOX_CLIENT_SECRET=secret
2023

2124
# ── Dashboard assistant (Claude Code over ACP) ───────────────────────────────
2225
# Optional — leave blank and the dashboard still works, the assistant just can't

docker-compose.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,9 @@ services:
7474
INTERBOX_WORKSPACE_POLL_MS: "2000" # snappy hot reload in dev
7575
# Pipeline sender target.
7676
AIDBOX_URL: http://aidbox:8080
77-
AIDBOX_SECRET: ${AIDBOX_SECRET:-secret}
77+
# Client interbox authenticates as — id defaults to root; set a scoped one for least privilege.
78+
AIDBOX_CLIENT_ID: ${AIDBOX_CLIENT_ID:-root}
79+
AIDBOX_CLIENT_SECRET: ${AIDBOX_CLIENT_SECRET:-secret}
7880
# License: env activation (or use the dashboard's activation screen instead).
7981
INTERBOX_LICENSE: ${INTERBOX_LICENSE:-}
8082
# Dashboard assistant (Claude Code over ACP) auth — pick ONE (all blank = the
@@ -123,7 +125,7 @@ services:
123125
environment:
124126
AIDBOX_LICENSE: ${AIDBOX_LICENSE}
125127
BOX_ADMIN_PASSWORD: admin
126-
BOX_ROOT_CLIENT_SECRET: ${AIDBOX_SECRET:-secret}
128+
BOX_ROOT_CLIENT_SECRET: ${AIDBOX_CLIENT_SECRET:-secret}
127129
BOX_BOOTSTRAP_FHIR_PACKAGES: hl7.fhir.r4.core#4.0.1
128130
BOX_FHIR_SCHEMA_VALIDATION: "true"
129131
BOX_FHIR_COMPLIANT_MODE: "true"

src/pipelines/hl7-to-aidbox/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ pipeline("hl7-to-aidbox")
2020
.sender(
2121
aidboxSender({
2222
url: env("AIDBOX_URL"),
23-
auth: { kind: "basic", user: "root", password: env("AIDBOX_SECRET") },
23+
auth: { kind: "basic", user: env("AIDBOX_CLIENT_ID", "root"), password: env("AIDBOX_CLIENT_SECRET") },
2424
}),
2525
);

0 commit comments

Comments
 (0)