Skip to content

chore(rag): drop unused GITHUB_TOKEN/RAGBIO_API_KEY build args + github_token secret - #64

Merged
man4ish merged 2 commits into
mainfrom
chore/rag-drop-unused-github-secret-build-args
Aug 30, 2026
Merged

chore(rag): drop unused GITHUB_TOKEN/RAGBIO_API_KEY build args + github_token secret#64
man4ish merged 2 commits into
mainfrom
chore/rag-drop-unused-github-secret-build-args

Conversation

@man4ish

@man4ish man4ish commented Aug 28, 2026

Copy link
Copy Markdown
Collaborator

The rag service's build config (args: GITHUB_TOKEN/RAGBIO_API_KEY, secrets: github_token) has been dead weight since omnibioai-rag@9dcddce ("Complete @man4ish -> @OmniBioAI package scope migration ... gitignore .npmrc to prevent committing GitHub token", 2026-07-25). The current Dockerfile resolves @omnibioai/ui and the pinned omnibioai-iam-client/omnibioai-usage-client entirely from local build-context sources, specifically so no GitHub credential is needed at build time — its own comments say so directly. Grepped: zero references to GITHUB_TOKEN, RAGBIO_API_KEY, or GHCR_PULL_TOKEN in the Dockerfile.

Harmless as dead config (unused build ARGs are silently ignored), so it never broke anything — just unnecessarily modeled a GitHub-scoped secret as something this build stage should see. RAGBIO_API_KEY stays wired at runtime via the existing environment: block (unchanged) — this only drops the build-time copy, which is the one that risks getting baked into image layers.

Surfaced while investigating #63 (gitleaks findings): one of the 7 flagged secrets was exactly this pattern — a real RAGBIO_API_KEY value committed to .env history. This doesn't retroactively fix that history, but stops the compose file from modeling this key as build-time input, which the Dockerfile itself has agreed with for a month already.

Verified: docker compose config --quiet passes, docker compose build rag succeeds.

🤖 Generated with Claude Code

man4ish and others added 2 commits August 27, 2026 20:28
…ub_token secret

The rag service's build config here (args: GITHUB_TOKEN/RAGBIO_API_KEY,
secrets: github_token) has been dead weight since
omnibioai-rag@9dcddce ("Complete @man4ish -> @OmniBioAI package scope
migration ... gitignore .npmrc to prevent committing GitHub token",
2026-07-25) -- over a month ago. The current Dockerfile resolves
@omnibioai/ui and the pinned omnibioai-iam-client/omnibioai-usage-client
entirely from local build-context sources (COPY'd in from the monorepo,
package.json/pyproject.toml rewritten via sed to point at file:/// paths)
specifically so no GitHub credential is needed at build time -- its own
comments say so directly ("so a GitHub credential is not needed", "this
build requires no GitHub secret"). Grepped the Dockerfile: zero
references to GITHUB_TOKEN, RAGBIO_API_KEY, or GHCR_PULL_TOKEN.

Harmless as dead config (Docker silently ignores unused build ARGs), so
this never broke anything -- just unnecessarily passed a GitHub-scoped
secret into a build stage that no longer consumes it. RAGBIO_API_KEY
stays wired at RUNTIME via the existing environment: block further down
in this same service definition (unchanged) -- this only removes the
build-time copy, which is the one that would otherwise get baked into
image layers.

Surfaced while investigating gitleaks findings from #63: one of the 7
flagged secrets was exactly this pattern (a real RAGBIO_API_KEY value
committed to .env history) -- this doesn't retroactively fix that
history, but stops the compose file from modeling this key as something
a build stage should ever see, which the build stage itself has agreed
with for a month already.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01C6Wp4gDKCTsLWm4MzL7YWq
@man4ish
man4ish merged commit a96d888 into main Aug 30, 2026
1 check failed
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