endojs / endo

Endo is a distributed secure JavaScript sandbox, based on SES
Apache License 2.0
815 stars 71 forks source link

taming shims could be applied multiple times #150

Closed warner closed 4 years ago

warner commented 5 years ago

When one SES Realm creates another one, they don't coordinate on the taming shims, so we might end up applying the shims multiple times. This gets worse if we have very deeply nested realms.

We sketched out a design to avoid this (known as SES.powers, named after the object that would keep a bitmap or set of remaining untamed power, which would be populated by the parent SES realm and gets smaller with each new layer of attenuation), but decided not to implement it, because:

This issue exists just to capture our thoughts on this.. we can probably close it.

jfparadis commented 4 years ago

Shims are no longer handled by SES itself. Closing.