Skip to content

Introducing Audit Hooks to Node.js #626

@vdeturckheim

Description

@vdeturckheim

Last year, Python introduced audit hooks to the language.

In short, this is an API allowing users to:

  • subscribe to certain actions (for instance, file system access)
  • prevent certain calls (for instance, preventing accessing a file)
  • add userland hooks (we could have some in DB libraries for instance)

Another bonus is that we could add a hook to eval and finally provide a good way to monitor its usage.

I remember that Microsoft team was intereted in having such an API (I understand they drove the effort in Python).

For reference, the Python spec is here https://www.python.org/dev/peps/pep-0578/

Is there any strong opinions on that topic?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions