Closed SvenWoltmann closed 2 years ago
/cc @michalszynkiewicz
I could finally get this running with the help of this comment: https://github.com/quarkusio/quarkus/issues/12968#issuecomment-950851206
If I add this to my application properties:
quarkus.rest-client."user-api-rest-client".url=http://overwrite-me
Then I can overwrite the setting with this environment variable:
QUARKUS_REST_CLIENT__USER_API_REST_CLIENT__URL
Is it intended to be like this?
Is it intended to be like this?
No. Unfortunately, one big change we did on the REST Client config broke a few things. I'm sorry for the inconvenience. We will have a look.
Describe the bug
I have the following REST client:
I used to configure it via the following environment variable (as we can only use uppercase characters and underscores in our environment):
This worked perfectly fine up to Quarkus 2.3.1.
In Quarkus 2.4.0 + 2.4.1, I get the following error message (I've added line breaks for better readability):
First of all, there's an error in that message, it should be "quarkus.rest-client", not "quarkus.rest-config" (see https://quarkus.io/guides/rest-client#create-the-configuration).
But that's not the issue here.
As per the documentation, all these configuration keys work fine (in a test environment):
However, as I said before, in our production environment, I can use only uppercase and underscore.
But all these keys do not work:
Expected behavior
Uppercase/underscore environment variables - such as the following ones - should be usable for REST client configuration:
Actual behavior
None of the following uppercase/underscore environment variables are usable for REST client configuration:
How to Reproduce?
Output of
uname -a
orver
Linux debian 4.19.0-16-amd64 #1 SMP Debian 4.19.181-1 (2021-03-19) x86_64 GNU/Linux
Output of
java -version
openjdk version "16.0.1" 2021-04-20
GraalVM version (if different from Java)
No response
Quarkus version or git rev
2.4.0, 2.4.1
Build tool (ie. output of
mvnw --version
orgradlew --version
)Apache Maven 3.6.3
Additional information
No response