Replies: 1 comment 1 reply
-
[Adding here one more policy example, from a conversation with a relayer operator.] P5: Allow/deny relaying of IBC datagrams based on the connection identifier. An example syntax to extend the current (v0.11.0) policy and fulfil P5 (while maintaining backwards compatibility) could be: [chains.connection_filter]
policy = 'deny'
list = [
['connection-0'],
] I'm wondering what should happen if there is a conflict between |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This is a pre-RFC meant to gather requirements for the upcoming policy-based relaying implementation in Hermes.
Call To Action
Please read the document below and comment on this discussion thread with other types of relaying policies or any other kind of requirements.
Based on the replies to this discussion, we will put together a proper RFC for discussing various potential implementations.
Summary
Allow operators to define policies which control which IBC datagrams will be relayed by Hermes.
Motivation
As Hermes was being deployed, internally and by external entities, their respective operators manifested the need for being able to filter which IBC datagrams Hermes should relay in order to protect themselves from substantial costs due to blindly relaying (and paying for) every single IBC datagram emitted by the various chains the relayer was connected to.
At the moment, we have identified the following filters (hereafter policies):
Current State
As of Hermes v0.6.1, the relayer can already be configured in a somewhat ad-hoc way to filter the datagrams to relay based on policies P1, P2a, and P2b.
At the moment, policies P1 and P2 cannot be enabled or disabled independently of each other, and policies P2a and P2b are exclusive .
Moreover, policy P1 is hard-coded into Hermes, and operators cannot change the value of the trust threshold that is enforced, nor can they supply their own list of trust thresholds to allow.
Policies P2a and P2b are defined in the relayer configuration file in TOML:
Policies P3 and P4 are under consideration, and might be supported in a ad-hoc way until Hermes implements the present RFC.
Beta Was this translation helpful? Give feedback.
All reactions