TeskaLabs / seacat-auth

SeaCat Auth provides authentication, authorization, identity management, session management and other access control features.
GNU General Public License v3.0
11 stars 6 forks source link

Load Kibana Batman configuration from "elasticsearch" section #326

Closed language-shprt closed 7 months ago

language-shprt commented 7 months ago

Summary

Context

Elasticsearch configuration should be unified across all services.

We want to use [elasticsearch] section for this, but also keep the solution backward compatible.

Possible config sections:

[batman:elk]

or

[batman:kibana]

or

[batman:kibana]
[elasticsearch]

or

[batman:elk]
[elasticsearch]

=>

The way it is done now [batman:kibana]or [batman:elk] should always be in the configs to initialize KibanaIntegration. Do we want to keep this (discuss / correct?): https://github.com/TeskaLabs/seacat-auth/blob/main/seacatauth/batman/service.py#L31-L35

=>

Possible supported configurations (multiline url is supported now for ES):

url=https://localhost:9200/ 
    https://localhost:9200/ 
    https://localhost:9200/

url=https://localhost:9200;localhost:9200;localhost:9200

url=https://localhost:9200/ https://localhost:9200/ https://localhost:9200/

# username=
# password=
api_key=
cafile=