Skip to content

relay: the production config keeps prod's CAF_LIMITS - #2214

Merged
AbirAbbas merged 2 commits into
devfrom
fix/relay-prod-keeps-caf-limits
Nov 2, 2026
Merged

AbirAbbas merged 2 commits into
devfrom
fix/relay-prod-keeps-caf-limits

Conversation

@AbirAbbas

Copy link
Copy Markdown
Collaborator

Summary

The live production relay Worker (caf-fabric) runs with
CAF_LIMITS={"globalNewIdentitiesPerDay":10000,"globalStoreBytes":1099511627776}, set when it was deployed by hand. scripts/relay-wrangler-config.sh production emitted no CAF_LIMITS, so the first CI deploy to production (once RELAY_DEPLOY_PRODUCTION is true) would have removed both deployment-wide brakes: limits.js treats a missing value as no cap.

The production channel now emits exactly the live value. Staging and dev emit none, as before.

Changes Made

  • scripts/relay-wrangler-config.sh: per-channel caf_limits, written into [vars] for production only (also replaces a CAF_LIMITS line if the base wrangler.toml ever gains one)
  • scripts/relay-wrangler-config_test.sh: production carries the exact value; staging and dev carry none

No relay code and no binary change. The config generator runs only in the release workflow's relay job.

Test Plan

  • bash scripts/relay-wrangler-config_test.sh passes, as do relay-deploy_test.sh and relay-fingerprint_test.sh (the make test-tooling relay checks)
  • The generated production config validated with wrangler deploy --dry-run; its bindings match the live production Worker plus the two machine-door rate limits from fix(relay): harden the machine doors #2073 put on the hosted relay #2076
  • CI green on the head

🤖 Generated with Claude Code

AbirAbbas and others added 2 commits November 2, 2026 12:36
The live production relay (caf-fabric) runs with
CAF_LIMITS={"globalNewIdentitiesPerDay":10000,"globalStoreBytes":1099511627776},
set when it was deployed by hand. The generated production config had no
CAF_LIMITS, so the first CI deploy to production would have removed both
deployment-wide brakes. The production channel now emits exactly that value;
staging and dev emit none, as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@AbirAbbas
AbirAbbas merged commit 1fe2e8c into dev Nov 2, 2026
6 checks passed
@AbirAbbas
AbirAbbas deleted the fix/relay-prod-keeps-caf-limits branch November 2, 2026 18:32
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