Skip to content

fix: add missing ipfsNodeURL parameter in IExecDataProtectorModule#533

Closed
abbesBenayache wants to merge 1 commit intomainfrom
fix/add-missing-ipfs-node-url-main
Closed

fix: add missing ipfsNodeURL parameter in IExecDataProtectorModule#533
abbesBenayache wants to merge 1 commit intomainfrom
fix/add-missing-ipfs-node-url-main

Conversation

@abbesBenayache
Copy link
Contributor

This fix ensures that custom IPFS node URLs (e.g., local IPFS for testing) are properly passed to the internal IExec instance.

Without this fix, tests using local IPFS (like Docker Compose setups) fail with connection timeouts to production IPFS nodes because the IExec instance was using default chain IPFS URLs instead of the custom configured ones.

Changes:

  • Added ipfsNodeURL: ipfsNode to the IExec constructor options
  • This parameter was already extracted from config but never used
  • ipfsGatewayURL was already being passed, making this a missing piece

Impact:

  • ✅ Tests with local IPFS now work correctly
  • ✅ Custom IPFS configurations are properly respected
  • ✅ No regression for production (spread operator still allows override)
  • ✅ Consistent with ipfsGatewayURL handling

This fix ensures that custom IPFS node URLs (e.g., local IPFS for testing)
are properly passed to the internal IExec instance.

Without this fix, tests using local IPFS (like Docker Compose setups)
fail with connection timeouts to production IPFS nodes because the IExec
instance was using default chain IPFS URLs instead of the custom configured ones.

Changes:
- Added ipfsNodeURL: ipfsNode to the IExec constructor options
- This parameter was already extracted from config but never used
- ipfsGatewayURL was already being passed, making this a missing piece

Impact:
- ✅ Tests with local IPFS now work correctly
- ✅ Custom IPFS configurations are properly respected
- ✅ No regression for production (spread operator still allows override)
- ✅ Consistent with ipfsGatewayURL handling
@PierreJeanjacquot
Copy link
Member

Current version of iexec@8.21.0 does not use ipfsNodeURL option
see implementation: https://github.com/iExecBlockchainComputing/iexec-sdk/blob/v8.21.0/src/lib/IExecConfig.js

this option will likely be added in bulk processing (PR still in draft iExecBlockchainComputing/iexec-sdk#463)

@PierreJeanjacquot
Copy link
Member

@abbesBenayache fix reported in bulk processing PR c4a9357

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