You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Revert "fix: resolve RPC URLs per-chain via RPC_<chainId> env vars (#672)"
This reverts commit 577e509.
* chore: bump Lambda VERSION env vars to force redeploy of reverted code
Set each handler's VERSION one above current main so the reverted
(RPC_PREFIX_URL) Lambda code is picked up on deploy.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* feat: send x-internal-service-secret header on all RPC requests (#674)
* feat: send x-internal-service-secret header on all RPC requests
Add the `x-internal-service-secret` header (sourced from the new
RPC_HEADER_SECRET env var) to RPC_HEADERS in lib/util/constants.ts, which
is the single header object used at every StaticJsonRpcProvider
construction site (check-order-status, gs-reaper, EventWatcherMap,
shared providers). The header is omitted when RPC_HEADER_SECRET is unset
(local dev / unit tests).
Wire RPC_HEADER_SECRET through the CDK stacks (bin/app.ts): beta/prod
Lambda env vars from the gouda-service-rpc-urls-2 secret, the integ-test
e2e build, and the local dev stack. Kept out of the jsonRpcUrls CfnOutput
so the secret is not exposed in CloudFormation outputs.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore: source integ-test RPC_PREFIX_URL from the production RPC secret
Pull RPC_PREFIX_URL from gouda-service-rpc-urls-2:RPC_PREFIX_URL in the
integ-test build so the e2e tests hit the same internal RPC endpoint and
carry a matching RPC_HEADER_SECRET, instead of the separate
all/gouda-service/integ-test/rpc secret.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* test: use await import instead of require in rpc-headers test
Avoids the @typescript-eslint/no-var-requires lint error flagged in
review. Dynamic import + jest.resetModules() re-evaluates the module so
the RPC_HEADER_SECRET branch is still exercised per case.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
-`RPC_<chainId>` - Per-chain RPC URL (e.g. `RPC_1`, `RPC_130`, `RPC_8453`). `getRpcUrl(chainId)` in `lib/Config.ts` reads `process.env[\`RPC_${chainId}\`]`. One variable required per chain in `SUPPORTED_CHAINS` (`lib/util/chain.ts`).
45
+
-`RPC_PREFIX_URL` - Base RPC URL; `getRpcUrl(chainId)` in `lib/Config.ts` appends `/<chainId>`.
46
+
-`RPC_HEADER_SECRET` - Value sent as the `x-internal-service-secret` header on all RPC requests (see `RPC_HEADERS` in `lib/util/constants.ts`). Omitted when unset.
0 commit comments