Skip to content

fix(cli): hide CORA_BASE_URL, CORA_MODEL and CORA_PROVIDER values in --help - #704

Merged
ajianaz merged 1 commit into
developfrom
fix/687-hide-env-values-in-help
Oct 27, 2026
Merged

ajianaz merged 1 commit into
developfrom
fix/687-hide-env-values-in-help

Conversation

@ajianaz

@ajianaz ajianaz commented Oct 27, 2026

Copy link
Copy Markdown
Collaborator

What

--help no longer prints the values of CORA_BASE_URL, CORA_MODEL and CORA_PROVIDER (clap hide_env_values), like the API key and GitHub token already.

Why

A base URL can carry credentials (user:pass@host, ?key=...) and the other two name internal deployments; --help output ends up in logs, CI output and screenshots. Closes #687.

Testing

  • New test: CORA_BASE_URL=https://u:[email protected]/v1?key=..., CORA_MODEL and CORA_PROVIDER never appear in --help, review --help or scan --help.
  • fmt, clippy -D warnings and the full suite pass.

@ajianaz
ajianaz merged commit 4b48baf into develop Oct 27, 2026
13 checks passed
ajianaz added a commit that referenced this pull request Oct 27, 2026
…--help (#704)

## What

`--help` no longer prints the values of `CORA_BASE_URL`, `CORA_MODEL`
and `CORA_PROVIDER` (clap `hide_env_values`), like the API key and
GitHub token already.

## Why

A base URL can carry credentials (`user:pass@host`, `?key=...`) and the
other two name internal deployments; `--help` output ends up in logs, CI
output and screenshots. Closes #687.

## Testing

- New test: `CORA_BASE_URL=https://u:[email protected]/v1?key=...`,
`CORA_MODEL` and `CORA_PROVIDER` never appear in `--help`, `review
--help` or `scan --help`.
- fmt, clippy -D warnings and the full suite pass.

Signed-off-by: ajianaz <[email protected]>
Co-authored-by: ajianaz <[email protected]>
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.

hardening(cli): --help still prints [env: CORA_BASE_URL=...]; redact credentials in URL-valued env defaults

1 participant