Module Federation Access/Security #644
-
Hi, I haven't seen much discussion related to security and access considerations when using Module Federation, so I thought I'd start one here. As an example scenario: say you have a long living host with remote components on it, and other hosts consume from it. Is there any consideration to how to control access to the remote components? E.g. someone starts their own improper host to consume from the remote. My thoughts here are to build in some kind of token auth within components so even if they are exposed and someone starts an improper host using the same config, the code isn't useful without authenticating with a service first. Any other thoughts along these lines? Is there prior art in the Webpack domain that I'm missing that would be applicable? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
I get it, but is this really a concern? I could consume your code at any point regardless of if its a federated module. That's just how the web works. |
Beta Was this translation helpful? Give feedback.
I get it, but is this really a concern? I could consume your code at any point regardless of if its a federated module. That's just how the web works.