endojs / endo

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

fix(compartment-mapper/policy): do not allow "resources" to be an array #1751

Closed boneskull closed 1 year ago

boneskull commented 1 year ago

closes: #1750

Description

Security Considerations

No

Scaling Considerations

No

Documentation Considerations

I am working on some sort of proper type declaration or schema for policies, so this will be forthcoming.

Testing Considerations

There may be more things in assertPolicy() that I missed, but I at least wanted to cover the things I changed.

Upgrade Considerations

Any policies currently in use which have a resources prop that is an Array will break.