|
| 1 | +# Orbit V6 Slice 6C Gate 5 Live OAuth Report |
| 2 | + |
| 3 | +Date: 2026-07-18 |
| 4 | +Starting main SHA: `ac41aef69e8b5bbcc0304374619f19cf369156a4` |
| 5 | +Gate 4 final backup ID: `019f6e6f-8aff-77ad-aa99-8bd7a51f9ba8` |
| 6 | + |
| 7 | +## 1. Scope and final result |
| 8 | + |
| 9 | +Gate 5 initially authorized a separate live GitHub OAuth App only after the |
| 10 | +existing dark-launch credential pair was proven recoverable from approved |
| 11 | +production secret custody. That first custody prerequisite did not pass, so |
| 12 | +the first execution stopped fail-closed as `BLOCKED`. |
| 13 | + |
| 14 | +The production macOS Keychain service contains the Gate 4 backup encryption |
| 15 | +entry, but it does not contain either dark-launch GitHub OAuth client entry. |
| 16 | +Cloudflare has the two expected Worker secret bindings, but Worker secrets are |
| 17 | +write-only and cannot serve as recoverable rollback custody. The documented |
| 18 | +fail-closed rule was therefore applied before any live App, live secret, or |
| 19 | +token-endpoint probe was created. |
| 20 | + |
| 21 | +No GitHub OAuth App, secret, Worker, OAuth, DNS, Pages, D1, KV, R2, custom |
| 22 | +domain, route, or live-traffic mutation was performed during that first |
| 23 | +attempt. |
| 24 | + |
| 25 | +The user then explicitly authorized creation of one additional dark-launch |
| 26 | +client secret as a recoverable rollback credential while preserving the old |
| 27 | +working secret. Gate 5 resumed on the same branch and completed without any |
| 28 | +Worker, traffic, DNS, Pages, or production-data change. |
| 29 | + |
| 30 | +**Final Gate 5 result: `PASS`.** |
| 31 | + |
| 32 | +## 2. Preflight |
| 33 | + |
| 34 | +Preflight completed before the custody decision: |
| 35 | + |
| 36 | +- local `main` and `origin/main` were equal at the expected starting SHA and |
| 37 | + the worktree was clean; |
| 38 | +- Gate 1 through Gate 4 reports were present on `main`; |
| 39 | +- Gate 4 backup |
| 40 | + `019f6e6f-8aff-77ad-aa99-8bd7a51f9ba8` remained directly readable from |
| 41 | + private R2 at 58,253 bytes with encrypted SHA-256 |
| 42 | + `cc3221a7fff29cb00f223bc7e42894b1235545469977dde41172f836c24835f1`; |
| 43 | +- parent delegation remained only the Cloudflare pair; |
| 44 | +- the parent still published one exact DS with Key Tag 2371, Algorithm 13, |
| 45 | + Digest Type 2, and digest SHA-256 proof |
| 46 | + `6d2799936dba95fcd8423f1e4ccff2dec6daa5dacbc13ef25eefcc59ee2e8bc6`; |
| 47 | +- Cloudflare remained on the Free plan and reported DNSSEC protected; |
| 48 | +- Cloudflare, Google, and Quad9 returned validating `AD` answers; |
| 49 | +- `orbit.sametbasbug.dev` remained a CNAME to |
| 50 | + `sametbasbug.github.io.`; |
| 51 | +- Orbit `/` returned HTTP 200 from `server: GitHub.com`, while `/healthz` |
| 52 | + returned the expected GitHub Pages HTTP 404; |
| 53 | +- production Worker version |
| 54 | + `01384034-5584-4181-8763-b31e3aecf95e` remained at 100 percent on the |
| 55 | + Workers.dev dark-launch surface; |
| 56 | +- `/healthz` retained `X-Robots-Tag: noindex, nofollow, noarchive`; |
| 57 | +- the latest Pages deployment remained run `29387967237`, source SHA |
| 58 | + `35ad75abbe0708b873e768b2d361f8b6a1d08182`; and |
| 59 | +- production D1, KV, backup R2, and media R2 content baselines remained |
| 60 | + consistent with Gate 4 except for one explained scheduled daily backup. |
| 61 | + |
| 62 | +The scheduled backup began at `2026-07-18T03:17:08.932Z`, before Gate 5 |
| 63 | +execution. It explains `backup_runs` increasing from 3 to 4 and the private |
| 64 | +backup bucket increasing from 3 to 4 objects. It was produced by the already |
| 65 | +configured daily cron, not by Gate 5. User data counts did not change. |
| 66 | + |
| 67 | +## 3. Existing dark-launch App at the initial attempt |
| 68 | + |
| 69 | +The GitHub OAuth Apps list contained exactly the existing dark-launch and |
| 70 | +staging Apps. There was no App named exactly `Orbit Production`, so no |
| 71 | +duplicate or unexpected live App existed. |
| 72 | + |
| 73 | +The existing dark-launch App was checked without editing it: |
| 74 | + |
| 75 | +| Field | Evidence | |
| 76 | +| --- | --- | |
| 77 | +| App name | `Orbit Production Dark Launch` | |
| 78 | +| Settings ID | `3733923` | |
| 79 | +| Owner | same expected GitHub personal account | |
| 80 | +| Homepage | `https://orbit-v6-production.samett33710.workers.dev` | |
| 81 | +| Callback | `https://orbit-v6-production.samett33710.workers.dev/v1/auth/github/callback` | |
| 82 | +| Device Flow | disabled | |
| 83 | +| Client secret count | 1 | |
| 84 | + |
| 85 | +No dark-launch App field or secret was changed. |
| 86 | + |
| 87 | +## 4. Initial custody audit and blocker |
| 88 | + |
| 89 | +The approved production Keychain convention was discovered without reading or |
| 90 | +printing any stored value: |
| 91 | + |
| 92 | +- custody provider: macOS Keychain; |
| 93 | +- service: `production.orbit.sametbasbug`; |
| 94 | +- present account: `backup-encryption-v1`; |
| 95 | +- missing account: `GITHUB_OAUTH_CLIENT_ID`; |
| 96 | +- missing account: `GITHUB_OAUTH_CLIENT_SECRET`. |
| 97 | + |
| 98 | +The user Keychain search list contained only the normal login keychain. A |
| 99 | +metadata-only inventory found no other production Orbit/GitHub OAuth client |
| 100 | +entry. Staging entries existed under the isolated staging service and were not |
| 101 | +read, copied, or treated as production credentials. |
| 102 | + |
| 103 | +The production Worker secret inventory did contain |
| 104 | +`GITHUB_OAUTH_CLIENT_ID` and `GITHUB_OAUTH_CLIENT_SECRET`, alongside the seven |
| 105 | +other expected confidential bindings. The inventory had 9 names and the |
| 106 | +sorted name/type digest was |
| 107 | +`3f0dfad8433bd2eed551eaace0131e07d253818718e9bdfe4db7ca17791992b1`. |
| 108 | +Cloudflare does not permit reading Worker secret values back, so those |
| 109 | +bindings prove deployment presence but not rollback recoverability. |
| 110 | + |
| 111 | +Because the dark client pair could not be recovered from approved custody, |
| 112 | +Gate 5 explicitly prohibited: |
| 113 | + |
| 114 | +- generating a new dark secret; |
| 115 | +- deleting the existing dark secret; |
| 116 | +- changing Worker secrets; |
| 117 | +- creating the live OAuth App; and |
| 118 | +- continuing to either invalid-code probe. |
| 119 | + |
| 120 | +The execution stopped at that boundary. |
| 121 | + |
| 122 | +## 5. State at the initial fail-closed stop |
| 123 | + |
| 124 | +The planned live App values remain: |
| 125 | + |
| 126 | +- name: `Orbit Production`; |
| 127 | +- homepage: `https://orbit.sametbasbug.dev`; |
| 128 | +- callback: `https://orbit.sametbasbug.dev/v1/auth/github/callback`; |
| 129 | +- description: empty; |
| 130 | +- Device Flow: disabled. |
| 131 | + |
| 132 | +No live OAuth App was registered, so there is no live settings ID, client ID |
| 133 | +proof, client secret, or live custody entry. No live or dark token-endpoint |
| 134 | +probe was sent. Consequently: |
| 135 | + |
| 136 | +- no authorization request or consent screen was started; |
| 137 | +- no authorization code was generated or stored; |
| 138 | +- no access token was generated; |
| 139 | +- no production session or OAuth identity was created; and |
| 140 | +- there was no `incorrect_client_credentials`, `redirect_uri_mismatch`, or |
| 141 | + `bad_verification_code` result to claim. |
| 142 | + |
| 143 | +## 6. Non-mutation evidence at the initial stop |
| 144 | + |
| 145 | +Final checks matched the preflight: |
| 146 | + |
| 147 | +- Worker deployment version and traffic percentage were unchanged; |
| 148 | +- no Worker version upload or deployment occurred; |
| 149 | +- Worker secret name/type inventory remained exact with the same SHA-256; |
| 150 | +- no `wrangler secret put` or version-secret command was run; |
| 151 | +- the Worker remained Workers.dev-only and dark launch; |
| 152 | +- no live custom domain or route was added; |
| 153 | +- the GitHub OAuth Apps list still contained no `Orbit Production` App; |
| 154 | +- the dark-launch App retained its exact name, owner, homepage, callback, |
| 155 | + Device Flow state, and one-secret count; |
| 156 | +- Orbit DNS remained the GitHub Pages CNAME; |
| 157 | +- Orbit `/` remained HTTP 200 from GitHub Pages and `/healthz` remained the |
| 158 | + Pages HTTP 404; |
| 159 | +- DNS delegation, DNSSEC, and parent DS remained exact; |
| 160 | +- the Pages workflow run and deployment artifact remained unchanged; |
| 161 | +- production D1 remained at 1 account, 1 auth identity, 4 agents, 6 projects, |
| 162 | + 4 topics, 13 records, 13 revisions, 3 sessions, 0 credentials, 4 backup |
| 163 | + runs, and 0 media assets, with zero foreign-key violations; |
| 164 | +- cache KV remained present and was not written; |
| 165 | +- backup R2 remained at the four preflight objects and media R2 remained |
| 166 | + empty; |
| 167 | +- the Gate 4 final backup remained directly readable with its exact encrypted |
| 168 | + SHA-256; and |
| 169 | +- no paid feature was enabled. |
| 170 | + |
| 171 | +The Cloudflare secret-list API does not expose per-secret modification |
| 172 | +timestamps. Non-mutation evidence therefore uses the unchanged secret |
| 173 | +name/type digest, unchanged serving deployment/version, and the fact that no |
| 174 | +secret mutation command or control-plane action was performed. |
| 175 | + |
| 176 | +## 7. Explicit continuation authorization |
| 177 | + |
| 178 | +After the initial blocker, the user explicitly authorized exactly one |
| 179 | +additional client secret on the existing `Orbit Production Dark Launch` App. |
| 180 | +The authorization required the old working secret to remain present and |
| 181 | +forbade any Worker secret/config deployment. |
| 182 | + |
| 183 | +Before generating it, the GitHub UI confirmed additive behavior: the existing |
| 184 | +secret could not be deleted until another secret existed. It did not present a |
| 185 | +replacement or automatic-revocation warning. One new secret was generated, |
| 186 | +and the App's secret count moved from 1 to 2. The old secret remained listed |
| 187 | +and retained its prior last-used evidence. |
| 188 | + |
| 189 | +The dark App's name, owner, homepage, callback, and Device Flow setting all |
| 190 | +remained exact. Its settings ID remained `3733923`. |
| 191 | + |
| 192 | +## 8. Dark rollback credential custody and probe |
| 193 | + |
| 194 | +The new rollback pair was stored in macOS Keychain under service |
| 195 | +`production.orbit.sametbasbug` using two distinct accounts: |
| 196 | + |
| 197 | +- `GITHUB_OAUTH_DARK_CLIENT_ID`; and |
| 198 | +- `GITHUB_OAUTH_DARK_CLIENT_SECRET`. |
| 199 | + |
| 200 | +Both entries were retrieved and verified as non-empty without displaying |
| 201 | +their values. The dark Client ID matched the GitHub settings page; its |
| 202 | +secret-free SHA-256 proof is |
| 203 | +`348b087d7270ffcdc6a2d39741d795e754ee97b288c2f5f80e5bf356894efc8f`. |
| 204 | + |
| 205 | +The new dark credential pair was used for exactly one server-side token |
| 206 | +exchange probe with a cryptographically random invalid code and the exact |
| 207 | +Workers.dev callback. GitHub returned `bad_verification_code`; it did not |
| 208 | +return `incorrect_client_credentials`, an access token, or success. |
| 209 | + |
| 210 | +The new credential was retained only as rollback custody. It was not uploaded |
| 211 | +to the production Worker, and the existing old dark secret was not revoked, |
| 212 | +deleted, or changed. |
| 213 | + |
| 214 | +## 9. Live OAuth App and custody |
| 215 | + |
| 216 | +A separate GitHub OAuth App was created with the following exact state: |
| 217 | + |
| 218 | +| Field | Evidence | |
| 219 | +| --- | --- | |
| 220 | +| App name | `Orbit Production` | |
| 221 | +| Settings ID | `3736304` | |
| 222 | +| Owner | same GitHub personal account as the dark-launch App | |
| 223 | +| Homepage | `https://orbit.sametbasbug.dev` | |
| 224 | +| Callback | `https://orbit.sametbasbug.dev/v1/auth/github/callback` | |
| 225 | +| Callback count | 1 | |
| 226 | +| Description | empty | |
| 227 | +| Device Flow | disabled | |
| 228 | +| Client secret count | 1 | |
| 229 | +| Authorized users | 0 | |
| 230 | + |
| 231 | +The live pair was stored in the same Keychain service using separate accounts: |
| 232 | + |
| 233 | +- `GITHUB_OAUTH_LIVE_CLIENT_ID`; and |
| 234 | +- `GITHUB_OAUTH_LIVE_CLIENT_SECRET`. |
| 235 | + |
| 236 | +Both live entries were recoverable and non-empty, did not overwrite either |
| 237 | +dark entry, and the Client ID matched the settings page. Its secret-free |
| 238 | +SHA-256 proof is |
| 239 | +`6289621dd6613a54ae7b508f946dff1b777e5da02c51ac956e4119d4a8f49b96`. |
| 240 | + |
| 241 | +The live pair was used for exactly one server-side invalid-code probe with the |
| 242 | +exact live callback. GitHub returned `bad_verification_code`; it did not return |
| 243 | +`incorrect_client_credentials`, an access token, or success. No authorization |
| 244 | +or consent flow was started, and no authorization code, token, OAuth identity, |
| 245 | +or production session was created. |
| 246 | + |
| 247 | +## 10. Secret handling and cleanup |
| 248 | + |
| 249 | +The two newly generated secrets were moved directly from their one-time |
| 250 | +GitHub display into Keychain custody. Neither secret was written to a shell |
| 251 | +argument, environment dump, normal file, screenshot, report, Git object, or |
| 252 | +application log. The temporary pasteboard was cleared after each transfer. |
| 253 | + |
| 254 | +All four Keychain accounts were independently verified present and |
| 255 | +recoverable. The temporary signed local custody helper and its directory were |
| 256 | +removed after the final probes, no helper process remained, and the clipboard |
| 257 | +was empty. Invalid probe codes and request bodies were kept only in process |
| 258 | +memory and were not retained. |
| 259 | + |
| 260 | +## 11. Final non-mutation evidence |
| 261 | + |
| 262 | +Final checks after both probes established: |
| 263 | + |
| 264 | +- production Worker version |
| 265 | + `01384034-5584-4181-8763-b31e3aecf95e` remained at 100 percent; |
| 266 | +- no Worker upload, deployment, secret update, or configuration promotion |
| 267 | + occurred; |
| 268 | +- the Worker secret name/type inventory retained exact SHA-256 |
| 269 | + `3f0dfad8433bd2eed551eaace0131e07d253818718e9bdfe4db7ca17791992b1`; |
| 270 | +- the Worker remained Workers.dev-only and dark launch; its Domains page |
| 271 | + showed only the Workers.dev URL and `No custom domains`; |
| 272 | +- Orbit DNS remained a CNAME to `sametbasbug.github.io.`; |
| 273 | +- Orbit `/` remained HTTP 200 from `server: GitHub.com`, while `/healthz` |
| 274 | + remained the GitHub Pages HTTP 404; |
| 275 | +- Cloudflare delegation, DNSSEC validation, and the single parent DS remained |
| 276 | + exact; |
| 277 | +- the latest Pages workflow run and deployment artifact remained unchanged; |
| 278 | +- production D1 remained at 1 account, 1 auth identity, 4 agents, 6 projects, |
| 279 | + 4 topics, 13 records, 13 revisions, 3 sessions, 0 credentials, 4 backup |
| 280 | + runs, and 0 media assets, with zero foreign-key violations; |
| 281 | +- no new OAuth identity or session was created; |
| 282 | +- cache KV remained present and unchanged; |
| 283 | +- backup R2 remained at four objects and media R2 remained empty; |
| 284 | +- Gate 4 backup `019f6e6f-8aff-77ad-aa99-8bd7a51f9ba8` remained directly |
| 285 | + readable with encrypted SHA-256 |
| 286 | + `cc3221a7fff29cb00f223bc7e42894b1235545469977dde41172f836c24835f1`; |
| 287 | + and |
| 288 | +- no paid feature was enabled. |
| 289 | + |
| 290 | +The only authorized control-plane changes were the additional dark rollback |
| 291 | +secret and the new live OAuth App plus its single secret. Neither credential |
| 292 | +pair was installed on the Worker. |
| 293 | + |
| 294 | +## 12. Remaining gates |
| 295 | + |
| 296 | +Gate 6 and Gate 7 remain separately gated. This `PASS` does not authorize |
| 297 | +Worker secret installation, live configuration deployment, custom-domain |
| 298 | +attachment, Orbit DNS cutover, real live OAuth login/callback testing, or |
| 299 | +GitHub Pages retirement. |
0 commit comments