Title: github-backup(deploy): normal flow silently falls back to the pre-secrets upload as rollback target when the configured-live re-read is empty (#3510 residual) · Issue #6507 · developing-today/code · GitHub
Open Graph Title: github-backup(deploy): normal flow silently falls back to the pre-secrets upload as rollback target when the configured-live re-read is empty (#3510 residual) · Issue #6507 · developing-today/code
X Title: github-backup(deploy): normal flow silently falls back to the pre-secrets upload as rollback target when the configured-live re-read is empty (#3510 residual) · Issue #6507 · developing-today/code
Description: Finding PR #3510 (fix for #3475) made the github-backup deploy script advertise the final configured live version as the rollback target instead of the pre-secrets upload — but the new code silently falls back to that same pre-secrets up...
Open Graph Description: Finding PR #3510 (fix for #3475) made the github-backup deploy script advertise the final configured live version as the rollback target instead of the pre-secrets upload — but the new code silentl...
X Description: Finding PR #3510 (fix for #3475) made the github-backup deploy script advertise the final configured live version as the rollback target instead of the pre-secrets upload — but the new code silentl...
Opengraph URL: https://github.com/developing-today/code/issues/6507
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"github-backup(deploy): normal flow silently falls back to the pre-secrets upload as rollback target when the configured-live re-read is empty (#3510 residual)","articleBody":"## Finding\n\nPR #3510 (fix for #3475) made the github-backup deploy script advertise the final configured live version as the rollback target instead of the pre-secrets upload — but the new code silently falls back to that same pre-secrets upload whenever the post-provisioning re-read cannot name a live version:\n\n```js\n// infra/github-backup/worker/deploy.mjs, normal flow (current main 85c435ec6c59)\nconst configuredLive = liveVersionIds();\nconst liveId = configuredLive.join(\", \") || version.id;\nconsole.log(`live: ${WORKER_URL} at version ${liveId} (${tag})`);\n```\n\n`liveVersionIds()` (same file) swallows every failure into `[]`: a `deployments list` error, unparseable output, a non-array response, or a latest deployment with no version at `percentage === 100` all yield `[]`. In each of those cases the script exits 0 and prints `live: … at version \u003cuploaded id>` — the exact version #3475 established carries no `DRAIN_BEARER` / `GITHUB_WEBHOOK_SECRET` bindings and must never be used as a rollback target. The `note: uploaded version … was superseded …` warning is also suppressed in this branch (it only prints when `liveId !== version.id`), so nothing in the run's own summary tells the operator the advertised target is unverified.\n\n## Evidence\n\n- PR #3510: MERGED 2026-11-01T10:56:11Z, merge commit `f5f612871e` (verified ancestor of current main `85c435ec6c59950f59b773776785ee78046ab69c`, compare behind_by 0). Its stated contract: \"the version to advertise — and the only sound rollback target — is the final configured live version, re-read after provisioning, not the pre-secrets upload.\"\n- Current main, `infra/github-backup/worker/deploy.mjs:181-182`: `const configuredLive = liveVersionIds(); const liveId = configuredLive.join(\", \") || version.id;`\n- Current main, same file, `liveVersionIds()`: `catch { return []; }` around the whole read/parse, plus `Array.isArray(parsed) ? parsed : []` and a `percentage === 100` filter — three distinct empty-result paths, none distinguished from \"genuinely no live version\".\n- The regression suite added by PR #3510 (`infra/github-backup/tests/test_deploy_rollback_version.py`) stubs `deployments list` to always report the recorded live version; no case exercises an empty, split-percentage, or failing deployments read after `setWorkerSecrets()`, so this fallback is untested.\n- Dedupe: searches this run for `liveVersionIds`, `configuredLive`, \"github-backup deploy.mjs rollback target\", and \"3475\" (open) found no issue tracking this fallback; the only hit is #3475 itself (CLOSED, the issue PR #3510 fixed).\n\n## Why it matters\n\nThe `live:` line is the record an operator later rolls back from. When the re-read fails, the script should fail loudly — instead it re-creates the #3475 hazard in precisely the failure mode (a Cloudflare read going wrong mid-deploy) where nobody is likely to hand-check the raw deployments dump printed earlier by `reportLive()`.\n\n## Acceptance criteria\n\n- [ ] When the post-provisioning re-read cannot determine a configured live version (empty result, no 100% version, read/parse failure), the normal deploy flow does NOT advertise the uploaded version as the live/rollback target: it either fails non-zero naming the problem, or prints an explicit \"rollback target UNKNOWN — do not use the uploaded version\" warning.\n- [ ] The happy path is unchanged: a determinable configured live version is advertised, with the superseded-upload note when it differs from the upload.\n- [ ] A stubbed regression case in `infra/github-backup/tests/` covers the empty/no-100% deployments-list response after secret provisioning and pins the new behavior.\n- [ ] Issue #3475 remains closed; the `--deploy-version` verify-before-deploy path from PR #3510 is untouched.\n\nFound by the pr-diff-review job, run 2026-11-06 05:24 CST, batch PRs #3492–#3522.\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-11-06T11:34:24Z","url":"https://github.com/developing-today/code/issues/6507"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:8585a33d-25ce-f86f-fd53-798e76d46654 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A8A2:3373A3:4C38698:667D164:6B0732F8 |
| html-safe-nonce | 23cc26518e7dbeac7e02dc9629b73c5769fc347e8b4574af98cf2ca66aecbf75 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOEEyOjMzNzNBMzo0QzM4Njk4OjY2N0QxNjQ6NkIwNzMyRjgiLCJ2aXNpdG9yX2lkIjoiNjAxMDQ3NjU5NDU3MjI5NTYwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | fe99bbb448a1067818425524023b0581d645ea8a36c769fd709095b7e1aaf4e3 |
| hovercard-subject-tag | issue:6241911447 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/developing-today/code/6507/issue_layout |
| twitter:image | https://opengraph.githubassets.com/bf9d8ac45639779e62560067d6a5fa5108c5e69ad4276ad7ff4ae465476c4c40/developing-today/code/issues/6507 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/bf9d8ac45639779e62560067d6a5fa5108c5e69ad4276ad7ff4ae465476c4c40/developing-today/code/issues/6507 |
| og:image:alt | Finding PR #3510 (fix for #3475) made the github-backup deploy script advertise the final configured live version as the rollback target instead of the pre-secrets upload — but the new code silentl... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dezren39 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 2a60952cad7efb2604ea85e500208f51c1ec1943aa260ac605c13eb46a1ed83b |
| turbo-cache-control | no-preview |
| go-import | github.com/developing-today/code git https://github.com/developing-today/code.git |
| octolytics-dimension-user_id | 26439447 |
| octolytics-dimension-user_login | developing-today |
| octolytics-dimension-repository_id | 627308783 |
| octolytics-dimension-repository_nwo | developing-today/code |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 627308783 |
| octolytics-dimension-repository_network_root_nwo | developing-today/code |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 345c27626db08417fdfc84278a4415ae9a48d8f3 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width