Skip to content

Support ${VAR} env var resolution in RPC URLs#311

Merged
ejacquier merged 3 commits intomainfrom
DEVSVCS-2535/secret-rpc
Mar 16, 2026
Merged

Support ${VAR} env var resolution in RPC URLs#311
ejacquier merged 3 commits intomainfrom
DEVSVCS-2535/secret-rpc

Conversation

@ejacquier
Copy link
Contributor

Summary

  • Allow ${VAR_NAME} syntax in RPC URLs in project.yaml that resolves from environment variables (loaded from .env or shell), keeping
    secrets out of version control
  • Resolve env vars in all RPC URL paths: loadWorkflowSettings, GetRpcUrlSettings, and GetExperimentalChains
  • Add redacted RPC URL logging in verbose mode for debugging (https://rpc.example.com/***)

Usage

  # project.yaml (committed)
  staging-settings:
    rpcs:
      - chain-name: ethereum-testnet-sepolia
        url: https://rpc.example.com/${CRE_SECRET_RPC_SEPOLIA}
# .env (gitignored)
 CRE_SECRET_RPC_SEPOLIA=my-secret-api-key

@ejacquier ejacquier requested a review from a team as a code owner March 13, 2026 15:13
@github-actions
Copy link

👋 ejacquier, thanks for creating this pull request!

To help reviewers, please consider creating future PRs as drafts first. This allows you to self-review and make any final changes before notifying the team.

Once you're ready, you can mark it as "Ready for review" to request feedback. Thanks!

@ejacquier ejacquier added this pull request to the merge queue Mar 16, 2026
Merged via the queue into main with commit 799e684 Mar 16, 2026
21 checks passed
@ejacquier ejacquier deleted the DEVSVCS-2535/secret-rpc branch March 16, 2026 19:20
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.

2 participants