Repository navigation
fix(ci): never print the alarm webhook's response into Actions logs - #267
Merged
Merged
Conversation
Every "Notify on failure" step posted with curl -fsS, which prints the response body. ntfy's response names the topic, so today's data_health alert test wrote the topic into a public Actions log; anyone who knows an ntfy topic can read or post to it. All 14 alert curls now discard the body with -o /dev/null. A test fails if any curl that posts to ALARM_WEBHOOK_URL omits it or turns on verbose output. The topic itself still needs rotating; that is outside the repo. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
NickAltstein
added a commit
that referenced
this pull request
Nov 24, 2026
This PR now carries only the change that turns off automatic git deploys. It stays unmerged until the ntfy topic is rotated, the forced deploy-hook test has passed with automatic deploys still on, and the alert test has reached the phone. The webhook fix ships first, in #267. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Split out of #266 so the security fix can merge without waiting for the deploy-hook test.
Why
Every "Notify on failure" step posted with
curl -fsS, which prints the response body into the job log. ntfy's response names the topic, so today'sdata_healthalert test wrote the topic into a public Actions log. Other runs where "Notify on failure" fired today likely did too. On a public ntfy topic the name is the only credential: anyone who has it can read alerts or send fake ones.What changed
-o /dev/null.tests/test_alarm_webhook_logging.pyfails if any curl that posts toALARM_WEBHOOK_URLomits it or turns on verbose output (-v,--verbose,--trace*). It passes with the fix and fails on the old lines.feed_age.py,deploy_gate.py,check_live_feed.py,api/schedules/_core.mjs) already read and discard the response.Not in this PR
Rotating the topic, which happens outside the repo:
Authorizationheader. Nothing echoes headers: no-v, noset -x.Update
ALARM_WEBHOOK_URLin every place it lives:deploy-gateenvironment, if set there;Once rotated, the old logs only reveal a dead topic.
Testing
pytest tests/test_alarm_webhook_logging.py: 3 passed.pytest tests --ignore=tests/ledger: 822 passed, 3 skipped.🤖 Generated with Claude Code