Read the API key from INBUXA_MIGRATE_API_KEY #22

Merged
jcoffey-dev merged 1 commits from feat/api-key-env into main 2026-10-26 21:55:34 +00:00
Owner

--auth-bearer now reads $INBUXA_MIGRATE_API_KEY, the term inbuxa-cli, the console and the docs use. $INBUXA_MIGRATE_TOKEN still works, and when both are set the API key wins.

  • secret::resolve_any tries a list of variables in order; resolve keeps its signature.
  • Help text and the prompt say "API key or bearer token", since --auth-bearer also carries OAuth tokens for IMAP and EWS.
  • README and CHANGELOG (Unreleased) updated; a test covers the precedence.

cargo fmt --check, cargo clippy --all-targets and cargo test --locked pass locally.

Fixes #21

`--auth-bearer` now reads `$INBUXA_MIGRATE_API_KEY`, the term inbuxa-cli, the console and the docs use. `$INBUXA_MIGRATE_TOKEN` still works, and when both are set the API key wins. - `secret::resolve_any` tries a list of variables in order; `resolve` keeps its signature. - Help text and the prompt say "API key or bearer token", since `--auth-bearer` also carries OAuth tokens for IMAP and EWS. - README and CHANGELOG (Unreleased) updated; a test covers the precedence. `cargo fmt --check`, `cargo clippy --all-targets` and `cargo test --locked` pass locally. Fixes #21
jcoffey-dev added 1 commit 2026-10-26 21:51:23 +00:00
Read the API key from INBUXA_MIGRATE_API_KEY
ci / test (pull_request) Skipped
github/ci (branch) GitHub Actions
ci / github (pull_request) Successful in 3m31s
ci / announce (pull_request) Skipped
3f36b07146
inbuxa-cli, the console and the docs call the credential an API key.
--auth-bearer now reads $INBUXA_MIGRATE_API_KEY first and still falls
back to $INBUXA_MIGRATE_TOKEN, so existing scripts keep working.

Fixes #21
jcoffey-dev merged commit 6a45de81c5 into main 2026-10-26 21:55:34 +00:00
jcoffey-dev deleted branch feat/api-key-env 2026-10-26 21:55:34 +00:00
Sign in to join this conversation.