sql icon indicating copy to clipboard operation
sql copied to clipboard

[FEATURE]Set additional params to server

Open fokot opened this issue 3 years ago • 5 comments

Is your feature request related to a problem? We want JDBC driver to work with multitenant Opensearch and use api key distinguish between tenants.

What solution would you like? We need one custom parameter to be sent in every request to the server and we will have multitenant (access rights) proxy before Opensearch. Is it possible now? How? When I set custom parameter in jdbc url I do not see it being sent to the server.

What alternatives have you considered? Using some other parameter e.g. user. But I couldn't see it sent to the server even when I set it up in jdbc params after port or as user. Or we can use context-path it is working.

fokot avatar Aug 12 '22 15:08 fokot

@fokot Thanks for reporting the issue! Will look into the code but I guess currently JDBC may just ignore custom parameter. I wonder what kind of parameter you want to pass to OpenSearch API? Thanks

dai-chen avatar Aug 15 '22 20:08 dai-chen

Note: This is relevant for ODBC driver as well.

Yury-Fridlyand avatar Aug 15 '22 22:08 Yury-Fridlyand

Previous request from community: https://github.com/opendistro-for-elasticsearch/sql/issues/693

Probably we should think about add support for this.

dai-chen avatar Aug 15 '22 22:08 dai-chen

We want to pass apiKey for authorisation so the request will go via our proxy server. We have multi tenant OpenSearch.

fokot avatar Aug 31 '22 08:08 fokot

We want to pass apiKey for authorisation so the request will go via our proxy server. We have multi tenant OpenSearch.

Thanks for the info! Will evaluate if we can support this.

dai-chen avatar Aug 31 '22 15:08 dai-chen