Skip to content

feat: add isolated IB_GATEWAY_PAPER_TARGETS_JSON support - #223

Merged
Pigbibi merged 1 commit into
mainfrom
feat/isolated-paper-targets-secret
Nov 28, 2026
Merged

Pigbibi merged 1 commit into
mainfrom
feat/isolated-paper-targets-secret

Conversation

@Pigbibi

@Pigbibi Pigbibi commented Nov 28, 2026 •

Copy link
Copy Markdown
Collaborator

AI assistance

Antigravity AI assistant helped author and test the isolated paper target secret workflow support.

What changed

  • Updated .github/workflows/main.yml (select-targets and resolve-target) to accept an optional IB_GATEWAY_PAPER_TARGETS_JSON repository secret in addition to IB_GATEWAY_TARGETS_JSON.
  • Enforced fail-closed validation on IB_GATEWAY_PAPER_TARGETS_JSON: compact single-line JSON, strict mode == "paper" on every entry, and rejection of duplicate target names across live and paper secrets.
  • Updated README.md, added tests/test_paper_targets_json.py (5 unit tests), and wired it into .github/workflows/ci.yml.

How verified

  • bash tests/test_workflow_shared_config.sh: passed
  • bash tests/test_read_only_vm_metadata_diagnostic.sh: passed
  • bash tests/test_docker_compose_ports.sh: passed
  • python3 -m unittest discover -s tests -p 'test_paper_targets_json.py' -v: 5/5 passed
  • CI (test, Documentation check, Gitleaks, Commit message convention, GitGuardian Security Checks): passed on PR feat: add isolated IB_GATEWAY_PAPER_TARGETS_JSON support #223 head (docker-build running).

Why

Allows adding and rotating isolated paper IB Gateway targets (mode: "paper") without touching or risk-overwriting the write-only live IB_GATEWAY_TARGETS_JSON secret.

Risk

Medium/Low governance tier (touches .github/workflows/main.yml, .github/workflows/ci.yml, README.md, and tests/test_paper_targets_json.py). Existing IB_GATEWAY_TARGETS_JSON targets retain exact indices and fail-closed checks; paper targets are appended strictly after live targets and rejected unless mode == "paper".

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 28, 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-28T17:55:28.558413Z d0a6d60 PR opened
🔒 Security Review ✅ Completed 2026-11-28T17:57:39.211966Z d0a6d60 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 owner-approved Owner approval for high-risk PRs. AI agents must never apply this label. label Nov 28, 2026
@Pigbibi
Pigbibi merged commit 291cc61 into main Nov 28, 2026
15 of 17 checks passed
@Pigbibi
Pigbibi deleted the feat/isolated-paper-targets-secret branch November 28, 2026 18:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

owner-approved Owner approval for high-risk PRs. AI agents must never apply this label.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant