opserver / Opserver

Stack Exchange's Monitoring System
https://opserver.github.io/Opserver/
MIT License
4.51k stars 828 forks source link

Elastic search settings #296

Open hayriozler opened 6 years ago

hayriozler commented 6 years ago

Hi guys, I would like to monitor elastic cluster with this great tool, unfortunately elastic is configured basic authentication but I could not see any option in elastic settings file, how can I configure our elastic cluster. you can see the my ElasticSettings.json file as below, #

{
    "clusters": [
        {
            "name": "Test Cluster",
            "refreshIntervalSeconds": 10,
            "nodes": [
                "xxxxx-d-01",
                "xxxxx-d-02"
            ]
        },
        {
            "name": "Test Logstash",
            "refreshIntervalSeconds": 20,
            "nodes": [
                "xxxxx-l-01",
                "xxxxx-l-02"
            ]
        }
    ]
}
NickCraver commented 6 years ago

We don't currently support basic authentication to Elastic (I honestly didn't even know this was a thing) - I'm hesitant to add another plaintext version though...I want to get on ASP.NET Core with Opserver and provide secure credential storage in settings people expect.

dwdii commented 6 years ago

I recently added support for basic authentication (a la X-Pack), as well as optionally ignoring HTTPS certificate validation errors (I'm using a self-signed cert) in my fork. See my updated ElasticSettings.example.json for details. Admittedly, the password is not in secure credential storage. Maybe that change will come next...

hugos99 commented 4 years ago

Any update on this issue?