Skip to content

Question: Why do we have a --experimental-policy? #1283

Closed

Description

@avivkeller

In the NodeJS threat model, it asserts that certain code, including dynamically loaded dependencies, is inherently trusted. However, despite this trust, there exists a permissions policy. Why is such a policy necessary if the code is already deemed trustworthy according to the threat model?

Activity

  1. targos commented on Apr 18, 2024

    @targos
    Member

    What I understood about it is that you trust the code at some point and you make a policy to ensure that in the future you are not running a different (modified, untrusted) version of that initial code.

  2. RafaelGSS commented on Apr 18, 2024

    @RafaelGSS
    Member

    Note that this feature was developed before our threat model. AFAIK it's not a security mitigation for all supply-chain-attack vectors, but a seatbelt. It does work well except for its many edge cases.

  3. avivkeller commented on Apr 18, 2024

    @avivkeller
    MemberAuthor

    It does work well except for its many edge cases.

    IMO If there are any edge cases, then it doesn't really work well, so I agree with nodejs/node#52575's proposal to remove it.

  4. RafaelGSS commented on Apr 18, 2024

    @RafaelGSS
    Member

    Closing in favour of nodejs/node#52575

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions