feat: Add optional localhost access for local development#1419
feat: Add optional localhost access for local development#1419cristiam86 merged 2 commits intomainfrom
Conversation
Enables developers to allow GenLayer contracts to make HTTP requests to localhost and internal hosts (e.g., local Anvil/Hardhat nodes). Usage: cp docker-compose.override.yml.example docker-compose.override.yml docker compose up -d Default behavior remains production-safe (no localhost access). Local dev requires explicit opt-in by copying the example file.
📝 WalkthroughWalkthroughThree new configuration example files and updated Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches🧪 Generate unit tests (beta)
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. Comment |
|
🎉 This PR is included in version 0.111.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Summary
Enables developers to allow GenLayer contracts to make HTTP requests to localhost and internal hosts (e.g., local Anvil/Hardhat nodes) during local development.
Key design decisions:
extra_hostsfor Linux compatibilityUsage
Files
docker-compose.override.yml.example- Template showing how to enable localhost accessconfig-overrides.example/genvm-module-web.yaml- GenVM config withalways_allow_hostspopulated.gitignore- Excludes user's local override files from version controlTest plan
host.docker.internal:8545(Anvil) after copying overrideSummary by CodeRabbit
Release Notes