Skip to content

Update cloud relay runtimes, providers and security checks - #31753

Merged
nwparker merged 3 commits into
mainfrom
nwparker/relay-sec
Oct 22, 2026
Merged

nwparker merged 3 commits into
mainfrom
nwparker/relay-sec

Conversation

@nwparker

@nwparker nwparker commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 6 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​11 $\color{#cf222e}{\Huge{\mathbf{−}}}$​10 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​1
Prod 35 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​1616 $\color{#cf222e}{\Huge{\mathbf{−}}}$​448 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​1168

Update the Cloud relay workspace and deployment inputs to current supported releases as of 2026-10-21. Package-only audits were clean, but scanning the actual runtime images and downloaded Terraform providers exposed vulnerable bundled tools, an old SQL proxy, and stale host images.

  • Upgrade Cloud dependencies/tooling, adapt Zod 4 and TypeScript 7, pin Node/Google CLI/Terraform bases by digest, and remove unused runtime package managers and SDK components.
  • Update the official SQL proxy, Terraform providers/workflows and COS 121 security patch pins. Preserve instance-template disk defaults across the Google provider upgrade.
  • Add dependency audits, runtime image scans, nonroot/tool smoke checks, full JSON/CycloneDX artifacts and provider inventories to Cloud Verify. Exclude nested caches, state and environment files from Docker contexts.

Scan results: relay 12 → 0, push 0, proxy 109 → 3, providers 241 → 49, broker 1 unfixed UNKNOWN. pnpm audit and independent OSV scans report 0 findings across 174 packages; Gitleaks and Semgrep report 0 findings.

The stack still has upstream findings: the latest official proxy embeds a vulnerable Go runtime and stale CA package; the latest signed provider binaries have 49 package/advisory instances. Full details are in the dated review and finding inventory. Only the two exact proxy rebuild findings receive CI exceptions, expiring 2026-11-04; provider scanning is explicitly report-only. No severity-wide suppressions or claims of a clean live fleet. Govulncheck binary symbol analysis additionally records which affected Go code is linked into the exact executables.

Validation:

  • Cloud build/typecheck passed. Relay: 1,249 unit tests passed (1 existing skip), all 217 PostgreSQL tests passed on a fresh database in isolation. Other packages: 561 passed; Cloud pretests/runner: 233 passed; deployment scripts: 889 passed; secret-history workflow tests: 2 passed. Earlier runs exposed load-sensitive contention checks and retained database fixtures; no assertions/timeouts were weakened.
  • Actual amd64 Docker builds, nonroot runtime imports, broker gcloud checksum fallback and backend-free Terraform initialization/validation.
  • Terraform signed provider checksums for Linux/macOS/Windows; source/configuration scans; workflow parsing/lint and existing secret-history contract tests.
  • All eight Cloud Verify jobs passed on commit bac62fad1d8 before the final rebase. The final CI artifacts exactly match the checked-in finding inventory, and the dependency audit is clean. Repository CI also passed: all five unit-test shards, static analysis/typechecking, relay integration, macOS/Windows packaging, and the aggregate PR gate. Main now includes the two inherited repository-check fixes, so the final rebase drops our redundant fixes. Range-diff confirms both Cloud commits are unchanged. The aggregate repository gate passed on rebased head c4be0db47ab; all eight Cloud Verify jobs also passed on that head.

Not deployed. GCP authentication has expired, so live inventory and state-backed plans could not be verified. Before rollout, recheck upstream proxy/provider releases, review staging/production plans for the Google provider 6→8 migration and COS replacements, then use the existing staged drain/fencing process.

@coderabbitai

coderabbitai Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 8a176c71-8b73-4eab-9f61-9f86a066a2a8
📥 Commits

Reviewing files that changed from the base of the PR and between 9738dc6 and e666337.

⛔ Files ignored due to path filters: 1
  • cloud/pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing: 40
  • .github/workflows/cloud-deploy-relay-asia-topology.yml
  • .github/workflows/cloud-deploy-relay-staging.yml
  • .github/workflows/cloud-operate-relay-asia-admission.yml
  • .github/workflows/cloud-prove-relay-staging-capacity.yml
  • .github/workflows/cloud-recover-relay-staging-c4-image.yml
  • .github/workflows/cloud-verify.yml
  • cloud/.dockerignore
  • cloud/README.md
  • cloud/apps/push/Dockerfile
  • cloud/apps/push/package.json
  • cloud/apps/relay-fence-broker/Dockerfile
  • cloud/apps/relay-fence-broker/package.json
  • cloud/apps/relay-fence-broker/requirements.txt
  • cloud/apps/relay-ops/package.json
  • cloud/apps/relay-ops/src/monitoring-snapshot.ts
  • cloud/apps/relay/Dockerfile
  • cloud/apps/relay/package.json
  • cloud/apps/relay/src/activity-lease-reader-census.test.ts
  • cloud/apps/relay/src/assignment-reserve-mode-census.test.ts
  • cloud/apps/relay/src/cell-flags.ts
  • cloud/apps/relay/src/floating-promise-census.test.ts
  • cloud/apps/relay/src/shadow-seat-directory.ts
  • cloud/dev/scripts/prepare-relay-asia-topology-input.mjs
  • cloud/dev/scripts/prepare-relay-asia-topology-input.test.mjs
  • cloud/dev/scripts/relay-production-identity-boundaries.test.mjs
  • cloud/dev/scripts/relay-staging-c4-refresh-workflow.test.mjs
  • cloud/docs/relay-security-2026-10-21.md
  • cloud/infra/terraform/.terraform.lock.hcl
  • cloud/infra/terraform/environments/production.tfvars
  • cloud/infra/terraform/environments/staging.tfvars
  • cloud/infra/terraform/relay-gce-cells.tf
  • cloud/infra/terraform/variables.tf
  • cloud/infra/terraform/versions.tf
  • cloud/package.json
  • cloud/packages/postgres-schema/package.json
  • cloud/packages/push-contract/package.json
  • cloud/packages/relay-contract/package.json
  • cloud/security/cloud-sql-proxy.trivyignore.yaml
  • cloud/security/findings-2026-10-21.json
  • cloud/tsconfig.base.json

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.

📝 Walkthrough

The changes add cloud dependency, container, and Terraform provider scans, update container build definitions and selected dependencies, and document scan findings and validation. Terraform tooling and provider versions change, and staging and production cell configurations use an updated COS image. TypeScript dependencies, compiler settings, and selected schema declarations also change.

Priority: ⚪ Pending latest changes

Merge Risk: ⚪ Minimal · up to e6663

No identified issue blocks merging. Review live inventory and state-backed Terraform plans before deployment.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Description check Warning The description gives a detailed and relevant summary of the changes, security findings, limitations, and validation. However, it does not follow the required template structure and does not provide t… Restructure the description using all required headings. Add an actual issue reference in the Fixes # section, or explain the applicable maintainer exception. Add N/A with a reason under Visual Proof if there is no visual or interaction…
Passed Passed checks: 4 passed
Check name Status Explanation
Title check Passed The title clearly summarizes the primary changes to Cloud relay runtimes, providers, and security checks.
Docstring Coverage Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 10 files. (30 skipped: …
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 10 files. (30 skipped: 30 unsupported.)

Full details: Description check

Explanation

The description gives a detailed and relevant summary of the changes, security findings, limitations, and validation. However, it does not follow the required template structure and does not provide the required linked issue, Visual Proof statement, completed Testing and Checklist sections, or Agent skill upstream boundary response.

Resolution

Restructure the description using all required headings. Add an actual issue reference in the Fixes # section, or explain the applicable maintainer exception. Add N/A with a reason under Visual Proof if there is no visual or interaction change. Complete the Testing, AI Disclosure, Review, Agent skill upstream boundary, Notes, and Checklist sections, including the required checkbox responses.

✨ Finishing Touches: 💡 1
🛠️ Fix failing CI checks: 💡
  • Commit to this branch
  • Create a new PR
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@nwparker
nwparker merged commit 5c5f9a2 into main Oct 22, 2026
29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant