`wrangler pages deploy .vercel/output/static` replaces the whole live
site, and nothing between the build and that upload ever looked inside
the directory. next-on-pages is fail-closed against its own crash, not
against exiting 0 with an empty or half-written output — that would have
been published as-is and blanked status.openshopgraph.org through a
fully green run. A status page that is silently empty is the one outage
nothing else here reports.
scripts/verify-pages-output.sh asserts the worker entrypoint, the routes
manifest, at least one client chunk, and a floor of 20 files (a correct
build of main measures 49). deploy.yml runs it directly after the build,
so a broken build stops the job before `terraform apply` — production is
never touched.
Co-authored-by: OSG Agent <agent@openshopgraph.org>
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
workflow_dispatch on deploy.yml accepts any ref. The `main-protection`
ruleset governs pushes to main, not workflow runs, so a dispatch from any
side branch ran terraform apply + wrangler pages deploy against production
with CLOUDFLARE_API_TOKEN — unreviewed, no status check, no approval.
Binds the job to the `production` environment (deployment_branch_policy:
`main` only, no required reviewers, so pushes to main deploy exactly as
before). A job bound to it is refused before its first step.
Verhaltensbeweis in diesem Repo, beide Richtungen, ohne echten Deploy
(Probe-Branch trug eine entkernte deploy.yml — faellt die Sperre aus,
deployt sie NICHTS):
A) policy=[main] -> run 30597988048 failure, 0 Steps,
'Branch "probe/env-gate" is not allowed to deploy to production
due to environment protection rules.'
B) policy=[main,probe/env-gate] -> run 30598014821 success, 3 Steps,
'PROBE_RAN ref=refs/heads/probe/env-gate'
Policy danach auf [main] zurueckgesetzt, Probe-Branch geloescht.
Co-authored-by: k55f97 <konradefroehlich@gmail.com>
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
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>
All 456 of 456 latency samples in the live state come from LHR — a single
run-length entry per monitor, no second value. One vantage point cannot tell
"the service is down" from "the route from this one colo is down".
Adds exactly one second-region monitor (website_enam, worker://enam) with
checkProxyFallback: true, and makes the measured check location visible on
the page instead of hiding it in a hover-only chart tooltip.
checkProxyFallback is mandatory, not cosmetic: without it monitor.ts:397-400
records a failure of the PROBE as up:false / "Unknown check proxy error", so
a probe outage would be published as a service outage.
Co-authored-by: Test User <test@example.com>
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
Lieferkette: alle acht `uses:`-Referenzen im Repo standen auf VERSCHIEBBAREN
Tags. Ein Tag ist keine Zusage — wer ihn umhaengt, fuehrt Code in unserem Lauf
aus. Beleg, dass das kein Theoriefall ist: `actions/checkout@v3` wurde am
2026-07-16 auf einen neuen Commit umgehaengt (v3.7.0), zwei Wochen vor diesem
Commit. Derselbe Hebel gilt fuer jeden anderen Tag hier.
Gewicht je Workflow:
* deploy.yml — laeuft auf `push: main` und traegt CLOUDFLARE_API_TOKEN im
Lauf. Hier holt eine untergeschobene Action den Cloudflare-Token.
* ci.yml — laeuft auf `pull_request`, Token `contents: read`, keine Secrets.
Geringerer Schaden, gleiche Massnahme.
* issue_translate.yml — siehe unten, entfernt.
Alle SHAs gegen das jeweilige Upstream-Repo aufgeloest (`gh api
repos/<r>/git/ref/tags/<tag>`), nicht abgeschrieben; der Kommentar nennt die
exakte Version, auf die der SHA zeigt (nicht nur die Major-Linie):
actions/checkout v4 -> 11d5960a (v4.4.0)
actions/checkout v3 -> a37ce912 (v3.7.0)
actions/setup-node v4 -> 49933ea5 (v4.4.0)
actions/setup-node v3 -> 3235b876 (v3.9.1)
hashicorp/setup-terraform v2.0.3 -> 633666f6 (v2.0.3)
ENTFERNT statt gepinnt: .github/workflows/issue_translate.yml
Der Workflow zog die Fremd-Action usthe/issues-translate-action@v2.7
(-> b41f55dd, letzter Commit 2022-10-18, seit ueber drei Jahren unbewegt).
Ausloeser waren `issues: opened` und `issue_comment: created`. Zwei Befunde:
1. Issues sind in diesem Repo ABGESCHALTET (has_issues=false) — der
`issues`-Ausloeser kann gar nicht feuern.
2. `issue_comment` feuert auch auf PR-Kommentaren. Das Repo ist OEFFENTLICH,
also konnte JEDER GitHub-Nutzer mit einem Kommentar einen Lauf starten,
der diese Fremd-Action an einem beweglichen Tag nachlaedt.
Nutzen dem gegenueber: null. Die Statusseite ist ausschliesslich englisch und
hat einen einzigen Mitarbeiter — es gibt nichts zu uebersetzen. Ein Bot, der
nur Angriffsflaeche und keinen Nutzen hat, wird nicht gepinnt, sondern
abgeschaltet.
Verhalten sonst unveraendert: keine Versionsspruenge (v3 bleibt v3), die
Job-Namen `build` und `lint` — die Pflichtchecks des Regelwerks — bleiben
gleich. Beide Workflows nach der Aenderung als YAML geparst.
Co-authored-by: Test User <test@example.com>
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
* fix(incidents): /incidents never received the incident data (P0 false statement)
/incidents got pageProps = [monitors] (2910 B) while / got
[compactedStateStr, monitors] (13119 B). The page therefore rendered only
the hand-written `maintenances` array from uptime.config.ts and, that being
empty, printed "No incidents in this month" — next to a 99.95 % uptime
figure computed from the very outages it was hiding.
Measured against the live state of 2026-07-30 16:45 UTC: 14 recorded
incidents in 2026-07 (8x api_health, 6x mcp), one of them still OPEN
(mcp, "Expected codes: [200,401,405,406], Got: 400"). The page showed zero.
Both halves are fixed, because only fixing the data path would turn the
next load failure back into a silent false statement:
- getServerSideProps now reads `state` from the store, like pages/index.tsx
does, and the page derives incidents from it (util/incidents.ts).
Exposure is unchanged: compactedStateStr is already public on /, and the
monitor list stays limited to id+name (see 377a596).
- NoIncidents gained a `noData` variant, so "we could not look" (no monitor
state at all) no longer renders as "there were no incidents".
Details of the derivation:
- reads the compacted columns directly instead of uncompact(), which would
also decode the much larger latency series this page never renders;
- counts an incident for a month when it OVERLAPS it, so an outage across a
month boundary or a still-open one cannot vanish from the current month;
- skips the worker's zero-length 'dummy' seed record (worker/src/index.ts:51),
which stores the monitoring start time and is not an outage;
- keeps history of monitors that were removed from the config, under their
raw id — silently dropping records is the failure being fixed here.
scripts/check-incidents-datapath.ts reproduces the red/green against a real
captured state:
npx tsx scripts/check-incidents-datapath.ts live-state.json 2026-07
-> incidents rendered: 14 (structurally 0 before this change)
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
* fix(header): mobile nav overflowed the 56px header and the 360px viewport
Measured on the live page with Chromium:
390px nav group Rect -4.5 .. 60.5 (65px tall) against header 0 .. 56
-> "Incidents" clipped top and bottom
360px document scrollWidth 371 vs clientWidth 360 -> 11px page overflow
One cause for both. The mobile nav renders `link.highlight ||
link.link.startsWith('/')`, which includes the 150px "openshopgraph.org"
entry — whose href is byte-identical to the href of the wordmark on the left
(verified in the DOM: brand href === link href). Wordmark plus two links does
not fit at 360-390px, so the Group wrapped to two 30px rows plus a 5px gap =
65px of content in a header with a *fixed* 56px height, which cannot contain
it and therefore clips it.
- Header.tsx drops nav links that point where the wordmark already points.
The link is not lost; it is the wordmark.
- Header.module.css uses min-height instead of height on .header/.inner, so
the next long label makes the header grow instead of silently cutting its
content off. The Group keeps its default wrapping on purpose: contained
vertical growth beats horizontal page overflow.
Re-measured on the live DOM with exactly this combination applied:
360px overflow 0px, nav 13 .. 43 inside header 0 .. 57
390px overflow 0px, nav 13 .. 43 inside header 0 .. 57
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
* chore(config): prepare multi-region checks, deliberately left disabled
Requested as "prepare, do not roll out", so this commit adds no active
monitor: only a documented, commented-out block in uptime.config.ts.
Correcting the finding while preparing it: the single vantage point is real,
but it is not Frankfurt. Decoded from the live state of 2026-07-30, all 435
latency samples (145 per monitor, the 12h window) carry loc "LHR" — London.
No monitor sets `checkProxy`, so checks run in whichever colo the cron worker
happens to be scheduled in.
Also correcting the shape of the work: `checkProxy` is one value per monitor,
not a list (worker/src/monitor.ts:361-400). Multiple regions therefore mean
one monitor entry per region — still configuration, but it multiplies the
checks per minute and adds a row to the public page for each region, which is
why this is an owner decision rather than a switch to flip.
The block records the two transports ('worker://<DurableObjectLocationHint>'
and 'globalping://') and the one trap worth knowing before enabling: without
`checkProxyFallback: true` a failing probe is stored as up:false with
"Unknown check proxy error", i.e. a probe outage gets published as a service
outage.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
---------
Co-authored-by: Test User <test@example.com>
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
Bisher gab es in diesem Repo KEINE Pull-Request-CI: deploy.yml laeuft nur
'on push: main'. Ein kaputter Build fiel damit erstmals auf, waehrend er
schon nach status.openshopgraph.org deployte.
Neu: .github/workflows/ci.yml mit zwei Jobs auf jedem PR und jedem
main-Push:
build — npm ci, next build, plus wrangler --dry-run fuer worker/
lint — next lint
Runner: ubuntu-latest, bewusst anders als openshopgraph/openshopgraph2.
Dieses Repo ist OEFFENTLICH (Fork von lyc8503/UptimeFlare); ein
self-hosted Runner wuerde ungepruefte Fork-PR-Befehle auf dem Mac mini
ausfuehren. Der Kostengrund fuer self-hosted entfaellt hier, weil
Actions-Minuten fuer oeffentliche Repos kostenlos sind.
prettier --check ist absichtlich NICHT im Gate: 14 Dateien in main sind
unformatiert, der Check waere sofort rot und wuerde jeden PR blockieren.
Co-authored-by: k55f97 <konradefroehlich@gmail.com>
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
Owner 2026-07-13 (status.claude.com reference): the small centred check-icon
left a large empty band above it and read weaker than claude.com's
full-width status banner. Replace icon+giant-title with a horizontal
coloured banner (green ok / red down / amber partial), reduce container top
margin xl->md. next build green.
Co-authored-by: Test User <test@example.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Owner direction (status.claude.com reference): fixed 30-day window, bars
share full row width (flex), legend '30 days ago — {uptime}% uptime —
Today' with per-window uptime computed from the same day loop; locale
keys for en/de/fr/zh-CN/zh-TW. Replaces the variable start-based window
(two prior iterations read as broken/empty). next build green.
Co-authored-by: Test User <test@example.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
montiorStartTime comes from incident[0]; monitors with a clean history
have none, the day-count bound became NaN and the loop never ran (owner
screenshot 17:17, bars vanished). Finite-check with 30-slot fallback.
Co-authored-by: Test User <test@example.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Owner mobile screenshot 2026-07-13: 90-day window with ~2 days of history
rendered ~88 grey no-data bars + 2 green — read as broken, not new. The
day loop now starts at max(29, days since monitor start) instead of a
fixed 89, so leading no-data days before monitoring began are skipped
(min 30 slots keeps the row substantial). next build green.
Co-authored-by: Test User <test@example.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
PR#4 ("taller & thinner day bars") merged 22:31 but targeted the wrong base
(feat/status-design-feedback, already merged to main at 22:15) instead of
main, so its commit never reached main and uptimeflare deployed PR#3's 32px
bars. This re-applies the 4-line DetailBar change onto main so the owner's
"Tagesbalken könnten höher sein" ask goes live: height 32->42px, width
7->6px, side margins 1->1.5px (tall-thin claude.com proportion).
Co-authored-by: Test User <test@example.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Owner design feedback (reference: status.claude.com):
- Per-monitor uptime % now prominent: Martian Mono, tabular-nums, 15px
(.osg-uptime); UptimeFlare already computes/shows the number, so this
is styling only — no config flag exists or is needed.
- Day-history bars 20px -> 32px tall, radius 3px (solid, uniform row).
- ONE healthy tone: util/color.ts is now binary (ok / down / no-data)
via CSS vars --osg-ok/--osg-down/--osg-nodata mapped to the main
site's --ok token (light #1f7a4d / dark #4caf82). Removed all
yellow/orange/light-green gradations, incl. MonitorList partial-down
orange. Only the (unused) scheduled-maintenance triangle keeps its
distinct maintenance color.
- Favicon: ship the exact SVG openshopgraph.org serves (/favicon.svg),
set pageConfig.favicon, delete UptimeFlare default favicon.png.
Verified: npx @cloudflare/next-on-pages build; page chunk contains
osg-uptime / height:"32px" / var(--osg-ok); no old hue literals remain;
CSS bundle defines --osg-ok for both schemes.
Co-authored-by: Test User <test@example.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Re-theme the UptimeFlare fork's chrome (surfaces, borders, type, header
wordmark, footer line) to the openshopgraph.org design tokens, sourced
from openshopgraph-frontend-v2 src/styles/site-tokens.css. Monitor set,
check logic and page title/links config are untouched.
- Copy the site's self-hosted Cabinet Grotesk / Switzer / Martian Mono
woff2 faces (~124 KB) into public/fonts and remap Mantine's CSS
variables (--mantine-font-family[-headings/-monospace]) to the same
stacks; drop the next/font/google Inter import (font-CDN-free, same
rule as the main site's CSP).
- Remap Mantine surface/text/border variables per color scheme
(--mantine-color-body/text/white/dark-6/dark-4/anchor/dimmed,
--mantine-primary-color-filled) to --paper/--ink/--card/--hair from
site-tokens.css; keeps following prefers-color-scheme via Mantine's
existing defaultColorScheme="auto" script, matching the main site's
light/dark behavior. Semantic monitor-state colors (green/red icons)
are left alone on purpose.
- Bump --mantine-radius-{sm,md,lg} to the main site's softer values.
- Replace the generic UptimeFlare <Image> logo in Header.tsx with the
OSG two-dot wordmark (same glyph as BaseLayout.astro's .top-brand
mark), linking to https://openshopgraph.org.
- Set pageConfig.customFooter to a one-line footer matching the main
site's "Verified data, not ads." tone instead of the stock UptimeFlare
attribution line.
Co-authored-by: Test User <test@example.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
The DO migration (new_tag=v1) may only be applied once. The old
durable-object-namespace detection wrongly reported 'migration needed'
even though the namespace already existed at tag v1, so Terraform
re-sent the v1 migration on an already-migrated worker and Cloudflare
rejected the apply with 412 / code 10079. Gate migration on
worker-script existence instead.
Co-authored-by: Test User <test@example.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
* Update token usage in sync workflow
* sync: fallback to PAT_TOKEN secret when override-token is empty
Explain briefly:
UI input field doesn’t evaluate ${{ secrets.* }}, users may paste it and it becomes a literal string.
Add fallback to secrets.PAT_TOKEN to make workflow_dispatch easier and safer.
* More detailed desc
---------
Co-authored-by: lyc8503 <me@lyc8503.net>
Globalping rejects measurementOptions.ipVersion when the measurement target is an IP address.
Add an IP-target guard so ipVersion is only sent for domain targets, preventing validation errors when checking IP:port monitors.
The API for status is showing CORS issue: "Response body is not available to scripts (Reason: CORS Missing Allow Origin)" when using from other domain/localhost. To solve this ,CORS header is added. It also possible to specify allowed domain in Env Var in cloudflare and call them directly.