mirror of
https://github.com/louislam/uptime-kuma.git
synced 2026-03-02 22:57:00 -05:00
Opsgenie EU endpoint is not valid #2496
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#2496
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 @szydell on GitHub (Aug 19, 2023).
⚠️ Please verify that this bug has NOT been raised before.
🛡️ Security Policy
Description
Opsgenie can be notified using US or EU api endpoint.
It is possible to select EU in the settings, but when I want to 'Test' it it always finishes with the 403 error.
In logs there is information that it does not matter what instance I choose, it is always trying to connect to url: 'https://api.opsgenie.com/v2/alerts'.
👟 Reproduction steps
In Opsgenie notification settings set the endpoint to US, Apply, and run 'Test'. Verify logs.
Change endpoint do EU, Apply, and run 'Test' again. Verify logs
👀 Expected behavior
When picking an EU endpoint in the Opsgenie notification, uptime-kuma should connect to the https://api.eu.opsgenie.com/v2/alerts url.
😓 Actual Behavior
When picking an EU endpoint in the Opsgenie notification, uptime-kuma still connects to the US endpoint (https://api.opsgenie.com/v2/alerts).picking
🐻 Uptime-Kuma Version
1.23.0
💻 Operating System and Arch
Oracle Linux Server release 9.2, aarch64
🌐 Browser
Firefox 115.0.2
🐋 Docker Version
Podman 4.4.1
🟩 NodeJS Version
16.20.2
📝 Relevant log output
@CommanderStorm commented on GitHub (Aug 19, 2023):
I don't see anything immediately wrong with this code (I am going to reproduce this at home):
github.com/louislam/uptime-kuma@9564550d5f/server/notification-providers/opsgenie.js (L22-L43)@CommanderStorm commented on GitHub (Aug 19, 2023):
Ah noticed the issue:
notification.opsgenieRegion: 'us'andnotification.opsgenieRegion: 'eu'is set by the frontend here:github.com/louislam/uptime-kuma@8945316ce6/src/components/notifications/Opsgenie.vue (L4-L11)