Three independently developed changes, merged and re-verified rather than
taken on trust.
1) Alert channel (Pushover, worker/src/pushover.ts). The fork's only built-in
channel reads its credentials from the committed config, which is unusable
in a PUBLIC repo, so outages notified nobody. Sent as a second channel from
inside formatAndNotify, so skipNotificationIds, maintenance windows and
gracePeriod gate it exactly as they gated the webhook. Fail-closed AND loud:
without the secrets every dropped alert logs [ALERT-CHANNEL-BROKEN].
2) Probe drift (worker/src/probe.ts). checkProxyFallback silently degrades a
two-region page to a one-region page: the fallback keeps checkLocation at
the local colo, up stays true, nothing is reported. doMonitor now returns
fromConfiguredRegion and a finding is raised after 15 runs without an answer
from the configured region.
3) Least privilege (.github/workflows/deploy.yml). The job carries
CLOUDFLARE_API_TOKEN and runs terraform apply while its GITHUB_TOKEN scope
was inherited from a repo setting. Pinned to contents: read, top-level.
MERGE RESOLUTION — the only real conflict was semantic, not textual: (2) could
only send its finding over notification.webhook, and (1) establishes that this
webhook stays unset for good because its credentials would have to be
committed. Combined unchanged, the drift finding would have reached nobody. The
finding is therefore sent over the same Pushover channel, but labelled as
neither UP nor DOWN and at normal priority — a moved vantage point is an
operations fact, not a user-visible outage, and must not bypass quiet hours.
No user-visible change to the public status page.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
`notification.webhook` was commented out, so no monitor — including the
newly added second check region — reported an outage anywhere. The status
page watched production while its own failure was visible to nobody unless
a human happened to look.
The fork ships exactly ONE notification path, `notification.webhook`
(worker/src/util.ts:83 `webhookNotify`), and it reads its credentials from
the COMMITTED config object. This repository is public, so a Pushover app
token cannot live there — which is why the block stayed commented out.
This adds a second dispatch inside the same `formatAndNotify`, sending the
identical formatted message to Pushover with credentials from Worker SECRET
bindings (worker/src/pushover.ts). Same account and endpoint the Mac mini
already alerts through, so no new account and no new vendor.
Gating is unchanged: skipNotificationIds, maintenance windows and the
3-minute grace period gate Pushover exactly as they gated the webhook.
FAIL-CLOSED, not silent: without the secrets every dropped alert logs
`[ALERT-CHANNEL-BROKEN] … missing Worker secret(s) …` as an error naming
what is missing and how to fix it, so an unnotifiable outage is itself
visible in Workers Logs.
Secrets are bound in deploy.tf, not via `wrangler secret put`: the
`bindings` list is authoritative and would drop anything not declared there
on the next apply. deploy.yml passes them as TF_VAR_*; when the repository
secrets are unset the apply still succeeds with the bindings omitted.
OWNER ACTION REQUIRED: set repository secrets PUSHOVER_TOKEN and
PUSHOVER_USER on k55f97/osg-status. Until then the channel is wired but
loud-broken by design.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
checkProxyFallback: true is correct — a probe outage must not be published
as a service outage. But it makes the probe outage itself invisible:
monitor.ts:399-410 falls back to a local re-check, checkLocation keeps the
local colo, and nothing anywhere says the configured region has stopped
answering. A Durable Object that never comes back degrades a two-region
page to a one-region page in total silence.
Adds the missing comparison: configured region vs. the region the run
actually came from, persisted as state.probeOkAt (a timestamp, not a run
counter — the state is only written on change or after the write cooldown).
After 15 consecutive runs from outside the configured region the worker logs
every run and notifies once; once more on recovery. Nothing new on the public
page: "our probe moved" is an operations fact, not user-relevant status.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
* Add basic webhook option to workerConfig.notification as alternative to apprise
* Add uptime.config.ts example for webhook option
* Removed trailing commas from newly added types for consistency
* Add ability to customize webhook body
* use template
---------
Co-authored-by: lyc8503 <me@lyc8503.net>
* fix: allow partial callbacks in config types
* fix: allow non-async callback functions in config types
* fix: specify type of monitor argument in callback type
* fix: use generics type for env argument in callback type
* feat: move types
* feat: add maintenance alert
* feat: move to config/base class to have fallback values on missing exports
* fix: wrong import for types
* Revert "fix: wrong import for types"
This reverts commit ca2b2e3a68.
* Revert "feat: move to config/base class to have fallback values on missing exports"
This reverts commit 9932ea2590.
* fix: imports
* chore: formatting
* fix: handle filtering for global status
* fix: pass props
* fix: ignore active maintenances when sending notifications
* fix: mark as warning when monitor is in maintenance
* fix: title width & warning icon
* fix: remove accordeons again
* alert config/style changes, worker code improve
* update example config
* update example config
* set monitors to be optional
---------
Co-authored-by: lyc8503 <me@lyc8503.net>