This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
Consider a declarative API to describe XCM barrier conditions #4276
Labels
T6-XCM
This PR/Issue is related to XCM.
Currently, the way we set up XCM barriers is done in a very procedural and imperative manner:
polkadot/xcm/xcm-builder/src/barriers.rs
Lines 53 to 92 in 903c6f2
Since we've already have cases where a misconfigured barrier condition has led to privilege escalation attacks, it is therefore prudent to consider whether this should be the way in which we manage the complexity involved in configuring the barrier.
Due to the security implications, we can even begin to think of the barrier as the firewall, the first line of defense against malicious actors, and so barrier conditions should:
One of the suggestions made by @apopiak was to have an API that resembles something like the following:
Files:
xcm/xcm-builder/src/barriers.rs
,xcm/src/v3/mod.rs
The text was updated successfully, but these errors were encountered: