mirror of
https://github.com/louislam/uptime-kuma.git
synced 2026-03-02 22:57:00 -05:00
API keys and creating a monitor #2503
Labels
No labels
A:accessibility
A:api
A:cert-expiry
A:core
A:dashboard
A:deployment
A:documentation
A:domain expiry
A:incidents
A:maintenance
A:metrics
A:monitor
A:notifications
A:reports
A:settings
A:status-page
A:ui/ux
A:user-management
Stale
ai-slop
blocked
blocked-upstream
bug
cannot-reproduce
dependencies
discussion
duplicate
feature-request
feature-request
good first issue
hacktoberfest
help
help wanted
house keeping
invalid
invalid-format
invalid-format
question
releaseblocker 🚨
security
spam
type:enhance-existing
type:new
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/uptime-kuma#2503
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @anthonyra on GitHub (Aug 21, 2023).
⚠️ Please verify that this bug has NOT been raised before.
🛡️ Security Policy
📝 Describe your problem
It appears that the socket.io API can be used to create monitors. Based on the wrapper here https://github.com/lucasheld/uptime-kuma-api/tree/master however I'm not sure if this falls under the scope of what the API keys can authorize?
Since I'm not sure if the socket.io API is considered one of the "secured HTTP APIs" as described in https://github.com/louislam/uptime-kuma/wiki/API-Keys or not...
I'm currently trying to install monitors with
ansible-pullso the credentials could in theory be accessible on local storage of the host. I'd much rather it be the API key vs the admin user:password or JWT representing that same user.📝 Error Message(s) or Log
No response
🐻 Uptime-Kuma Version
1.23.0
💻 Operating System and Arch
Ubuntu 22.04.2 LTS
🌐 Browser
Mozilla Firefox 116.0.3 (64-bit)
🐋 Docker Version
not using docker
🟩 NodeJS Version
18.17.1
@Computroniks commented on GitHub (Aug 21, 2023):
API keys currently only cover the Prometheus /metrics endpoint
@anthonyra commented on GitHub (Aug 21, 2023):
Ahh is there a chance for there to be support on the socket.io side?
@CommanderStorm commented on GitHub (Aug 21, 2023):
No, not in the immediate term, because this would invalidate
=> Allowing more access to api keys requires a permission system.
=> see #128 and #118 for plans to get there.
If you want to help with this feature, here is our contribution guide:
https://github.com/louislam/uptime-kuma/blob/master/CONTRIBUTING.md
@github-actions[bot] commented on GitHub (Nov 19, 2023):
We are clearing up our old issues and your ticket has been open for 3 months with no activity. Remove stale label or comment or this will be closed in 2 days.
@github-actions[bot] commented on GitHub (Nov 21, 2023):
This issue was closed because it has been stalled for 2 days with no activity.