Skip to content

security: remove hard-coded API key from benchmark scripts#121

Open
antojoseph wants to merge 1 commit into
masterfrom
security/f001-remove-hardcoded-api-key
Open

security: remove hard-coded API key from benchmark scripts#121
antojoseph wants to merge 1 commit into
masterfrom
security/f001-remove-hardcoded-api-key

Conversation

@antojoseph
Copy link
Copy Markdown

Summary

  • Removes live eigeninference-... API key hard-coded in scripts/benchmark-models.py and scripts/benchmark-light.py
  • Key is now read from DARKBLOOM_API_KEY environment variable; script exits immediately if unset
  • DARKBLOOM_API_URL can optionally override the base URL

Impact

Any user with read access to the repo could authenticate as a live service account. The key grants access to backend APIs.

The committed key should be revoked immediately regardless of this PR.

Test plan

  • Revoke the committed key in the Darkbloom dashboard / API key management
  • Run DARKBLOOM_API_KEY=<new-key> python3 scripts/benchmark-models.py to verify it works
  • Run python3 scripts/benchmark-models.py with no env var set and verify it exits with an error message

Replace the committed live API key with DARKBLOOM_API_KEY env var lookup.
Script exits immediately if the variable is unset to prevent silent failures.
@vercel
Copy link
Copy Markdown

vercel Bot commented May 4, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
d-inference Ready Ready Preview May 4, 2026 2:46am
d-inference-console-ui-dev Ready Ready Preview May 4, 2026 2:46am
d-inference-landing Ready Ready Preview May 4, 2026 2:46am

Request Review

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