Skip to content

fix(config): remove --api-key flag from omni config init - #65

Merged
dspangen merged 1 commit into
mainfrom
remove-config-init-api-key-flag
Jun 26, 2026
Merged

fix(config): remove --api-key flag from omni config init#65
dspangen merged 1 commit into
mainfrom
remove-config-init-api-key-flag

Conversation

@dspangen

@dspangen dspangen commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Summary

Follow-up to #63, which added an --api-key flag to omni config init for non-interactive setup. Accepting a secret as a command-line argument leaks it into shell history and process listings — and from there into anything that scrapes those, including agentic tooling that can forward the token to LLM providers. This removes the --api-key flag and always reads the key from a hidden prompt instead.

The non-secret flags from #63 (--name, --endpoint, --auth) are kept, so the primary motivation — one-command non-interactive OAuth setup — still works.

🤖 Generated with Claude Code

PR #63 added an --api-key flag for non-interactive setup. Accepting a
secret on the command line leaks it into shell history and process
listings (and from there into anything scraping them, including agentic
tooling). Drop the flag and always read the key from a hidden prompt.

The non-secret --name, --endpoint, and --auth flags remain, so the
primary motivation — one-command non-interactive OAuth setup — still
works. For api-key auth the key is now always read via term.ReadPassword,
even when --auth api-key is supplied non-interactively.

Removes the two tests that exercised the deleted flag.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EfZEjYSR3cRVTHgifwJYjK
@dspangen
dspangen requested a review from n8agrin June 25, 2026 20:04
@dspangen
dspangen merged commit 02d0006 into main Jun 26, 2026
2 checks passed
@dspangen
dspangen deleted the remove-config-init-api-key-flag branch June 26, 2026 13:48
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