-
Notifications
You must be signed in to change notification settings - Fork 12
Add regression test for lockdown in UI #100
Comments
I’ve not seen this failure mode before. This looks a bit like WebPack may be translating the lockdown arrow function to a I’m not sure what changed that would cause this, but we did change |
^ PR to revert. I propose we leave this ticket open until there's also a test that would have caught this in CI. |
@samsiegart is there a test now that would have failed upon 3ccf09b ? |
Ah no, sorry I closed this too hastily combing through my backlog. |
Why are we still using WebPack? How can we stop? |
https://github.com/facebook/create-react-app includes webpack. We could look into using react without webpack, but that would be unorthodox, and maybe not an example that other devs would want to follow. Does it matter that much that we use it as long as we don't transform ses? |
This error demonstrates that we are transforming ses. But even if we were not, it does matter. How much it matters depends on how much we care about what threats. For example, for supply chain attacks against our UI, it will eventually matter a lot. But only once we have other tooling in place (multiple compartments, lavamoat, ...) that can mitigate those supply chain attacks. For our immediate goals, once it no longer transforms ses, we can live with the rest for now. But we should formulate a plan for how to write more defensive ui code over time. For that goal, we cannot have unvetted bundlers transforming any code written to be defensive. |
Understood, and yes I did in fact manage to fix this error by circumventing the transform for ses (see linked PR) |
@samsiegart is this still relevant / needed? |
It's low priority imo. We probably need to set up webdriver tests to verify this behavior. |
okay, moving to MN-1.1 |
We need some sort of test in CI that will break if lockdown breaks in the UI, based on the original issue below:
=============== ORIGINAL ISSUE ===============
Commit: 3ccf09b
Repro steps:
Open UI and get a blank page and the following in the console:
The text was updated successfully, but these errors were encountered: