Skip to content

Release: TurnstileKeysCheck health check - #141

Merged
StanBarrows merged 3 commits into
productionfrom
main
Oct 31, 2026
Merged

StanBarrows merged 3 commits into
productionfrom
main

Conversation

@StanBarrows

Copy link
Copy Markdown
Contributor

Summary

  • New health check TurnstileKeysCheck (same as codebar-ag/laravel-start#139), registered after PostmarkTokenCheck.
  • Hourly siteverify call with a dummy token: valid secret → invalid-input-response, wrong secret → invalid-input-secret.
  • Fails on: rejected secret, secret without site key (widget cannot render → every submit rejected), Cloudflare unreachable, test keys in production. Warns on site key without secret. Ok when Turnstile is not configured.
  • Shows up in Oh Dear application health after the next production deploy.

Test plan

  • TurnstileKeysCheckTest + provider tests locally, Larastan, Pint
  • Live secret verified against Cloudflare (invalid-input-response)
  • CI

🤖 Generated with Claude Code

Sebastian BURGIN-FIX (ext) and others added 3 commits October 30, 2026 08:07
Verifies the Turnstile keys hourly so a broken form is caught before
visitors run into it. Sends a dummy token to siteverify: a valid secret
answers invalid-input-response, a wrong one invalid-input-secret.

Fails when the secret is rejected, when a secret is set without a site
key (the widget cannot render, every submit is rejected), when Cloudflare
is unreachable (the form rule rejects then too) and when production runs
on test keys. Warns when a site key has no secret (forms unprotected).
Reports ok when Turnstile is not configured. Same check as
codebar-ag/laravel-start#139, registered after PostmarkTokenCheck.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Schedule check read its heartbeat from the default cache store, which
Cache::flush(), cache:clear and optimize:clear (deploy command) wipe; on
Redis that empties the whole Redis database, on the database driver the
whole cache table. Oh Dear then reports "The schedule did not run yet"
until the next hourly beat. The heartbeat now lives in a dedicated
"health" store backed by the health_cache table, which nothing flushes.
Same fix as codebar-ag/web.thejungledog b04f83e8.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Level 10 analyses tests/: use the typed runArtisan() wrapper instead of
$this->artisan() and narrow the registered check before calling run().

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@StanBarrows
StanBarrows merged commit cfc35b9 into production Oct 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant