Open mocenas opened 2 days ago
/cc @ebullient (cli), @maxandersen (cli)
Does that happen if you quote the value?
Does that happen if you quote the value?
Yes it does:
$: quarkus config encrypt --key="-qwi5grDHLU05KegUhfNNeA" "Joe Biden"
[ERROR] ❗ Expected parameter for option '--key' but found '-qwi5grDHLU05KegUhfNNeA'
$: quarkus config encrypt "--key=-qwi5grDHLU05KegUhfNNeA" "Joe Biden"
[ERROR] ❗ Expected parameter for option '--key' but found '-qwi5grDHLU05KegUhfNNeA'
Which os/shell are you using ?
Which os/shell are you using ?
linux/bash
Describe the bug
Using quarkus CLI to encrypt config fails, when manually specifying encryption key, starting with "-q". Like:
This doesn't happen if I change either dash or "q" to anything else.
Also this "unusable" key was automatically generated using
quarkus config encrypt whatever
. CLI printed outThe secret whatever was encrypted to ... with the generated encryption key (base64): -qwi5grDHLU05KegUhfNNeA
.Expected behavior
No response
Actual behavior
No response
How to Reproduce?
No response
Output of
uname -a
orver
No response
Output of
java -version
No response
Quarkus version or git rev
Quarkus cli 3.14.4
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
No response