Skip to content

Fall back to FREQUENZ_API_{KEY,SECRET} in the CLI - #336

Merged
cwasicki merged 1 commit into
frequenz-floss:v0.x.xfrom
cwasicki:creds
Nov 2, 2026
Merged

cwasicki merged 1 commit into
frequenz-floss:v0.x.xfrom
cwasicki:creds

Conversation

@cwasicki

Copy link
Copy Markdown
Contributor

Lets the CLI reuse the generic Frequenz credentials that other tools already read. The fallback applies only when neither key nor secret is given and then takes both, so a key and secret from different sources are never combined.

@github-actions github-actions Bot added part:docs Affects the documentation part:tests Affects the unit, integration and performance (benchmarks) tests labels Oct 30, 2026
@cwasicki

Copy link
Copy Markdown
Contributor Author

CI failures will be fixed with #335

@cwasicki
cwasicki force-pushed the creds branch 2 times, most recently from f488df4 to 9ab6d8c Compare November 2, 2026 13:01
@cwasicki
cwasicki requested a review from Marenz November 2, 2026 13:01
@Marenz

Marenz commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

needs rebase

Marenz
Marenz previously approved these changes Nov 2, 2026
Lets the CLI reuse the generic Frequenz credentials that other tools
already read. The fallback applies only when neither key nor secret is
given and then takes both, so a key and secret from different sources are
never combined.

Signed-off-by: cwasicki <126617870+cwasicki@users.noreply.github.com>

@Marenz Marenz left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: with only FREQUENZ_API_SECRET set and no flags, the error says "--sign_secret was given without --auth_key", though no flag was given. Maybe "no auth key: a sign secret was given without an auth key"?

@cwasicki
cwasicki added this pull request to the merge queue Nov 2, 2026
Merged via the queue into frequenz-floss:v0.x.x with commit 15c32e5 Nov 2, 2026
9 checks passed
@cwasicki
cwasicki deleted the creds branch November 2, 2026 14:01
@cwasicki

cwasicki commented Nov 2, 2026

Copy link
Copy Markdown
Contributor Author

Nit: with only FREQUENZ_API_SECRET set and no flags, the error says "--sign_secret was given without --auth_key", though no flag was given. Maybe "no auth key: a sign secret was given without an auth key"?

Fixed here: #344

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

part:docs Affects the documentation part:tests Affects the unit, integration and performance (benchmarks) tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants