Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
solick opened this issue May 1, 2024 · 4 comments
Closed
Labels
area:api concearning the api or automation area:core issues describing changes to the core of uptime kuma help security

Comments

@solick
Copy link

solick commented May 1, 2024

📑 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

@solick solick added the feature-request Request for new features to be added label May 1, 2024
@CommanderStorm CommanderStorm added help security area:api concearning the api or automation area:core issues describing changes to the core of uptime kuma and removed feature-request Request for new features to be added labels May 1, 2024
@CommanderStorm
Copy link
Collaborator

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

@solick
Copy link
Author

solick commented May 2, 2024

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.

@CommanderStorm
Copy link
Collaborator

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

@CommanderStorm
Copy link
Collaborator

CommanderStorm commented May 16, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:api concearning the api or automation area:core issues describing changes to the core of uptime kuma help security
Projects
None yet
Development

No branches or pull requests

2 participants