-
Notifications
You must be signed in to change notification settings - Fork 352
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for wildcards in packet filter (#1931)
* Add filter match support * Implement AsRef<str> for PortId and ChannelId * Fix Deserialize validation for filters * Implement regex support * Add FIXME * Fix clippy errors * Fix regex validation * Refactoring and renaming * Update config.toml * Add unclog entry * Add documentation for `PacketFilter` and associated types. * Fix deserialize impl for FilterPatterns * Rename filter_match.rs to filter_pattern.rs * Add `FromStr` and remove `Into<String>` for `ics04_channel::Version` * Parse channel `Version` directly in `create channel` command * Use `Version` instead of `String` in `Channel::new` * Add `ChannelVersionOverride` trait to override the channel version in integration tests * Fix warning * WIP: Write an integration test that creates a ICA channel * Add facility to modify genesis file * Rename some things * Add packet filtering snippet to relayer config example. * Add test for deserializing packet filter policy * Add packet filter policy serialization test. * Fix serialize_packet_filter_policy test * Cleanup config tests * Fix TOML serialization of ChannelFilters and FilterPattern * Rename some methods * Move filter-related code into its own module * Uncomment packet filter policy in relayer example config * Fix link in doc comment * Remove some unnecessary clones * Add test for iter_exact and impl PartialEq for Wildcard * Get iter_exact test passing * Add allow and deny filter tests * Disable ICA filter test * Rename `spec` to `filters` * Update `regex` crate to v1.5.5 * Update lockfiles * Revert "Add facility to modify genesis file" This reverts commit dd803a9. * Comment out ICA filter test * Add `ChannelFilters::new` * Add working ICA filter integration test * Add test for when ICA channels are disallowed * Apply the channel filter to channel handshakes as well * Enable ICA filter test on CI * Update Nix path to icad * Refactor ICA test * Add changelog entry * Extend ICA filter test with ICA transfer * Add facility for modifying the genesis file * Modify genesis file to allow MsgSend messages over ICA * Cleanup * Add comments * Re-enable ordered channel test * Remove top-level unrelated file * Use `CHAIN_COMMAND_PATH` env variable to run the test with icad instead of gaiad without having to hard code the path * Move ICA driver methods into their own module as functions * Change signature of `assert_eventual_wallet_amount` to take wallet address * Add some doc comments * Rename `ica-filter` test feature and module to `ica` * Remove duplicate changelog entry * Add back missing file Co-authored-by: Sean Chen <[email protected]> Co-authored-by: Romain Ruetschi <[email protected]> Co-authored-by: Soares Chen <[email protected]>
- Loading branch information
1 parent
1481a16
commit bc989c3
Showing
42 changed files
with
1,264 additions
and
183 deletions.
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
.changelog/unreleased/features/ibc-relayer/1927-packet-filtering-wildcards.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
- Add support for wildcards in port and channel identifiers in the packet filter configuration, | ||
which enable operators to filter ICA channels based on the port prefix | ||
([#1927](https://github.com/informalsystems/ibc-rs/issues/1927)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.