Skip to content

fix(console): read the console origin from configuration - #765

Merged
Pigbibi merged 3 commits into
mainfrom
ccr-9b5ac466-zqt5sn
Nov 26, 2026
Merged

Pigbibi merged 3 commits into
mainfrom
ccr-9b5ac466-zqt5sn

Conversation

@Pigbibi

@Pigbibi Pigbibi commented Nov 26, 2026

Copy link
Copy Markdown
Collaborator

AI assistance

Claude Code wrote the change. Codex CLI reviewed it locally for three rounds; every P1 was fixed. The remaining P2/P3 items are listed under Risk.

What changed

The one-shot daily sync, the receiver-token probe and the V7 paper application transport had the retired console host pinned in source. They now read the console address from protected configuration:

  • Daily sync: the one-shot paper and live runs and the token probe read vars.RUNTIME_DAILY_SYNC_URL, using the existing strict validator. The variable is now mapped into:
    • the publish-runtime-daily-once.yml publish step;
    • the scheduled live projection step in execution-report-heartbeat.yml.
  • V7 paper application:
    • The origin comes from vars.QSL_CONTROL_PLANE_SYNC_URL. The hard-coded fallback is removed.
    • The origin must exactly equal a separately configured vars.QSL_CONSOLE_ORIGIN.
    • Redirects are refused.
    • The result callbacks run from a copy of the workflow revision's transport, so an older checked-out candidate cannot reject the configured origin.
  • docs/daily-runtime-projection.md describes the variables and their two formats.

A missing or inexact variable fails closed, and no token is sent.

How verified

  • uv run --no-sync ruff check --exclude external .: passed.
  • uv run --no-sync python -m pytest -q tests: 3518 passed, 1 skipped.
  • New tests cover:
    • rejection of inexact origins: credentials, port, path, query, fragment, case, whitespace, IP address and a mismatched approved origin;
    • the redirect refusal;
    • the workflow mappings.

Why

The console moved to another Cloudflare account. The pinned old host would send syncs to the retired deployment, and organisation rules require hostnames to come from configuration.

Risk

  • Touches workflows and token-carrying transport: R2. Needs Owner confirmation before merge.
  • Before merging, the Owner must set these Actions variables:
    • RUNTIME_DAILY_SYNC_URL: the full sync URL;
    • QSL_CONTROL_PLANE_SYNC_URL and QSL_CONSOLE_ORIGIN: the same bare origin.
  • Without them, those steps stop instead of sending.
  • No trading, risk or schedule change.
  • Follow-ups (P2 from local review):
    • the one-shot PAPER archival now also requires a valid sync URL;
    • vars.* values appear in Actions logs, which was already true for the PAPER heartbeat step.

Generated by Claude Code

Pigbibi and others added 3 commits November 26, 2026 07:31
The one-shot daily sync, its receiver-token probe and the V7 paper
application transport pinned the retired console host in source. Read
the origin from vars.RUNTIME_DAILY_SYNC_URL and
vars.QSL_CONTROL_PLANE_SYNC_URL instead, keep the strict https/host/path
validation, and fail closed when the variable is missing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011iHeYdZHqdsDyVsVxzUJLA
Map vars.RUNTIME_DAILY_SYNC_URL into the scheduled live projection step,
and run the paper application result callbacks from a copy of this
revision's transport so an older checked-out candidate cannot reject
the configured console origin.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011iHeYdZHqdsDyVsVxzUJLA
Require the paper application origin to match vars.QSL_CONSOLE_ORIGIN
exactly and refuse redirects before the token is sent. Document the
two console variables and their formats.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011iHeYdZHqdsDyVsVxzUJLA
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-26T07:49:53.447479Z 805e9c6 PR opened
🔒 Security Review ✅ Completed 2026-11-26T07:58:13.114699Z 805e9c6 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Pigbibi Pigbibi added the agent-approved An agent cleared this high-risk change on the current head; not an owner confirmation label Nov 26, 2026 — with Claude
@Pigbibi
Pigbibi merged commit 60e78be into main Nov 26, 2026
13 of 14 checks passed
@Pigbibi
Pigbibi deleted the ccr-9b5ac466-zqt5sn branch November 26, 2026 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent-approved An agent cleared this high-risk change on the current head; not an owner confirmation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant