fix: 🐛 wire trusted_msps only when the provider is a BSP (#458)

This is to better align the behaviour of the node with StorageHub's
configurations, otherwise a MSP could pass `--trusted-msps` and use that
functionality only intended for BSPs
This commit is contained in:
Tobi Demeco 2026-02-25 13:35:13 -03:00 committed by GitHub
parent 873a886df4
commit f0f99aee6f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1221,6 +1221,13 @@ where
trusted_msps,
..
}) => {
// Only BSP nodes can have trusted MSPs
let trusted_msps = if *provider_type == ProviderType::Bsp {
trusted_msps.clone()
} else {
Vec::new()
};
// Setup file transfer service with trusted MSPs config
builder
.with_file_transfer(