Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent access to Java classes from JS #2015

Open
plata opened this issue Jun 22, 2019 · 5 comments
Open

Prevent access to Java classes from JS #2015

plata opened this issue Jun 22, 2019 · 5 comments

Comments

@plata
Copy link
Collaborator

plata commented Jun 22, 2019

All functionality used in Javascript shall be implemented as a Bean such that we have a well defined API.

@madoar
Copy link
Collaborator

madoar commented Jun 22, 2019

Examples:

  • ProcessBuilder
  • Filesystem access

@plata
Copy link
Collaborator Author

plata commented Jun 22, 2019

@qparis do you know how this white listing could be done? For our API we have @Safe but what about the normal Java classes.

@qparis
Copy link
Member

qparis commented Jun 22, 2019

Maybe Context#allowHostClassLookup

@plata
Copy link
Collaborator Author

plata commented Jun 23, 2019

Could you do a proof of concept (for me it's not quite clear currently)?

@qparis
Copy link
Member

qparis commented Jun 23, 2019

See PR #2018

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

No branches or pull requests

3 participants