meichthys / uptime_kuma

Uptime Kuma HACS integration
110 stars 23 forks source link

Make credentials optional #21

Closed dougmaitelli closed 1 year ago

dougmaitelli commented 1 year ago

I use a reverse proxy to secure all my services, but I also have a separate private virtual network between these services that allow them to communicate directly to each other.

With that in mind, my Uptime-Kuma does not have authentication enabled, and when consumed from HA it would not have credentials.

meichthys commented 1 year ago

Have you tried leaving the credentials blank? I don't think it will work currently.

dougmaitelli commented 1 year ago

Yes, the fields are mandatory on the UI.

meichthys commented 1 year ago

v2.0.2 should be available on the HACS store now. Hopefully this helps!

meichthys commented 1 year ago

@dougmaitelli

Note: This will only work if you have a way to disable authentication for the /metrics endpoint in Uptimekuma By default, the /metrics endpoint will remain behind authentication even after disabling authentication in the UptimeKuma settings!

There was an attempt to address the issue here, but in my testing it doesn't seem to work. YMMV tho!

dougmaitelli commented 1 year ago

@meichthys I am able to access /metrics on my uptime-kuma with credentials disabled. I will test the new version and let you know. Thanks!