louislam / uptime-kuma

A fancy self-hosted monitoring tool

Home Page:https://uptime.kuma.pet

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Version on all footers on all pages and API endpoint to fetch the version

solick opened this issue ยท comments

๐Ÿ“‘ I have found these related issues/pull requests

The the version of the current instance cannot be fetched from the instance. Neither from the Dashboard or status pages eg in the footer, nor from an api endpoint.

๐Ÿท๏ธ Feature Request Type

API / automation options

๐Ÿ”– Feature description

Show the version of the instance in all footers of uptime numa.
provide an api endpoint to fetch the version for update check from third party tools

โœ”๏ธ Solution

Show the version of the instance in all footers of uptime numa.
provide an api endpoint to fetch the version for update check from third party tools

โ“ Alternatives

No response

๐Ÿ“ Additional Context

No response

What is your actual usecase for this?
We currently don't have a footer, what are expecting?

Users have previously requested this to NOT be the case. In 1.23.0, we have removed this.
See #3374 (comment):

โฌ†๏ธ Security Fixes
#3421 Hardening: Avoid exposing the Uptime Kuma version to the public

Note

We do show a warning if you are running an outdated version (unless you disabled this).
The version is shown in /settings/about.
image

Note

we currently use the "info" socketio event. This event is send AFTER login. See #3421

There are two use cases.

  1. I would like to see the version in the first page (after login) in my dashboard. Not clicking 2 times to see it.
  2. I want to fetch the version from the API (also with API key, not public) to make automatic checks of the version and if updates are available for notification. I personally donยดt got often to the dashboard I use the notification to mattermost. Therefore I do not see the update available notification on the dashboard. nor do I see if it's a major or minor update (based on the version number). I have a script which fetches those information from all my services I am hosting and check on regular bases the version and if there is a new update available. I want to do this also for Uptime Kuma.

would like to see the version in the first page (after login) in my dashboard

In that case the banner seems suficcient to me => activate it (the default is on)

Our first draft at a non-socket.io API is tracked in #118 and this work has been done #3854

I think for your usecase, using the socker.io api should be fine if you just want to have a script => no need to wait for v2.1

FYI:
You can enter yourself to get notified for releases in github.

See
image

I think this resolves all your remaining usecases => closing as resolved