-
Notifications
You must be signed in to change notification settings - Fork 71
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
elasticsearch-search-source won't let me define basic authentication #1056
Comments
I don't think this is right project to ask: if it's related to camel-quarkus you should open an issue there in the issue tracker on Github. If it's a problem at Camel level you should open an issue at https://issues.apache.org/jira/browse/CAMEL By the way it's not a bug. You need to set the user and password at component level. This means you cannot append user and password to endpoint URI. Instead you should either define:
in your application properties file. Or you should create a component and use it directly like this snippet: This issue doesn't report the version you're using. By the way the solution should be what I wrote. For sure this is not something related to Kamelets. I'm going to close this. |
Thank you for your replay, nevertheless, if |
I need a bit more information: what are you using? And how are you using? You shouldn't specify the user and password as URI parameter, because they are not parameters of endpoint. They work only at component level. But please give some more context, a snippet of code, what you are using and how and all the used version. Otherwise it's impossible to answer |
On the elasticsearch-search-source kamelet:
The |
That's wrong. It should be defined on the bean. Thanks for reporting, now I'm getting the problem. |
We are about to release 0.9.1 for releasing camel-k 1.10.1, I will include the fix for this. Sorry for not understanding immediately the question. |
No problem thanks for coping with this issue with me. |
I'm sorry I didn't get from the beginning. |
While trying to set the basic authentication (user, password) I got the error
Unknown parameters=[{password=xxxxxx, user=xxxxxx}]
I think the bug is really on Camel repository but I can't open an issue there.The reason I think it's a bug there is that the documentation says that
user
andpassword
are options but when I try to define a route directly (without using the kamelet),elasticsearch-rest://clusterName?password=xxxxxx&user=xxxxxx
gives me the same error.I've tried to debug the problem and notice that on
ElasticsearchEndpointConfigurer.java
theuser
andpassword
are not present on the switches cases, all other options are, but maybe this is on purpose since these are the only ones with@Metadata(secret = true)
onElasticsearchComponent.java
.Also, if
ElasticsearchEndpoint
class@UriEndpoint
annotation had the flaglenientProperties = true
, it would skip the validation where the error originates, but dunno if it would then configure theuser
andpassword
options with the correct value.Or maybe it's just me that is missing something and can't get this to work on camel-quarkus.
The text was updated successfully, but these errors were encountered: