How to connect to Elasticsearch 7 with authentication

17 views
Skip to first unread message

Frédéric Brégier

unread,
Dec 16, 2021, 10:14:22 AM12/16/21
to ZomboDB
Hi,
I'm currently trying to setup an environment mixing PostgreSQL and Elasticsearch (7).
I'm facing an issue on how to give access to the Elasticsearch from PostgreSQL.

The Elasticsearch installation uses Basic authentication:

"header":{"WWW-Authenticate":["Basic realm=\"security\" charset=\"UTF-8\"","Bearer
realm=\"security\""]}}]

But in the definition of the index through PostgreSQL/ZomboDB I only have the possibility to give the URL, not the user/pwd. So obviously the Elasticsearch access is refused.

How can I setup this?

Thanks,
Frederic

Frédéric Brégier

unread,
Dec 16, 2021, 10:35:12 AM12/16/21
to ZomboDB
Stupid I am: it is enough to specify the user/password within the URL...
Sorry
;-)

Reply all
Reply to author
Forward
0 new messages