-
Notifications
You must be signed in to change notification settings - Fork 121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Connectors fails to authenticate to operate: Target host not specified #933
Comments
I think I may have figured it out. it appears #662 changed the configuration properties, and adding these env vars helped: + - CAMUNDA_CLIENT_MODE=simple
+ - CAMUNDA_CLIENT_AUTH_USERNAME=demo
+ - CAMUNDA_CLIENT_AUTH_PASSWORD=demo
+ - CAMUNDA_CLIENT_OPERATE_BASE_URL=http://operate:8080
+ - CAMUNDA_CLIENT_TASKLIST_BASE_URL=http://tasklist:8080
|
I'll try to get back to this topic tomorrow. I want to leave the github issues open for now until I get this patched up downstream (compose and maybe helm). |
With the changes from #662 there is only 1 property to add: + CAMUNDA_OPERATE_CLIENT_BASEURL=http://operate:8080 Other than that, the settings for the oidc connection could be off a bit more. For |
@jonathanlukas that parameter has been around since 2022. After #662 , that parameter no longer works in 8.4.9 of connectors in docker-compose-core.yaml : Lines 87 to 92 in ef37537
The new parameter is |
When you say that you got it working locally, this kinda just sounds like you weren't able to reproduce my bug. Did you make a code change to make it work? or are you claiming that it always worked despite my bug report? |
Using the latest 8.4 connectors-bundle works when adding this one env property :) no bug, just a messy config |
Ok, but adding that env property Was your test setup an intellij / java-only install method ? |
After discussing on a call with @jonathanlukas , we learned that I was improperly testing the recommended workaround by not having both
and
set at the same time. (in addition to the CSRF variable). So we have 2 configuration syntax's , the old way (using However, at this point, the only affected environment appears to be connectors 8.4.9 through connectors 8.4.11 with docker-compose on stable/8.4. newer compose files don't have this issue for some unknown reason. If we find other environments that are broken for this reason, we can come back to this issue and re-assess whether we should migrate to the new configuration syntax or if an additional code-change should be added. |
Describe the bug
In #928 , I described an issue where I could not use the docker compose deployment method on the latest 8.4 release of connectors. This issue is quite similar, but with a different stacktrace.
I think the patch @jonathanlukas supplied in
#928 (comment)
was helpful at getting around the first stacktrace, but this I feel is different.
Things that I've tried with no luck:
CAMUNDA_OPERATE_CSRFPREVENTIONENABLED=false
andCAMUNDA_TASKLIST_CSRFPREVENTIONENABLED=false
environment variables in operate and tasklist respectivelyHowever, the error remains:
Caused by: org.apache.hc.core5.http.ProtocolException: Target host is not specified
I suspect that it's not even trying to send an http request, because when I view the connectors pod in wireshark, I see no http requests.
To Reproduce
Expected behavior
Log/Stacktrace
Full Stacktrace
Environment:
The text was updated successfully, but these errors were encountered: