-
Notifications
You must be signed in to change notification settings - Fork 114
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
Allow loading html from file uri #209
Conversation
I added some specs for this change. |
@abrom I would love to get your thoughts on this PR 😊 |
hey @jkowens, sorry I have been busy. At first look this appears ok, but I do have some pretty serious concerns about what this might mean for system security. ie if someone was able to upload a file, then using the middleware convert the content of that file to a pdf, they could just upload a file with I get the use-case you're going for here, but it likely needs extra steps to be involved to isolate it from mechanisms that would allow exfil. i.e an opt-in setting that can't be set via any of the dynamic means, and at the same time makes it painfully clear that absolutely control over the file URI being rendered is required Thoughts? |
@abrom ah yes, I didn't consider the middleware usage. Would a config option to |
@abrom I tweaked the PR based on your feedback 👍 |
hey @jkowens I'm really sorry for the delay in getting back to this.. It has been a hectic few months for me. 😢 I think the changes you've made are headed in the right direction, but the risk of system exfiltration is still high as the middleware and this option will happily (but unsafely) coexist. I've created a commit to address this, but you appear to have opted to disable upstream developers from pushing to your fork. I'll attach them as a diff instead.
|
Thanks for the patch @abrom! I've applied it and pushed up the commit. |
Add specs to test the middleware error behaviour
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice one @jkowens thanks for your patience in getting this over the line 😄
Released in v1.1.9 |
Hi all. I have issue when using Node 18.7.1. Puppeteer 23.0.1 and grover 1.1.9 |
That appears to be very much an unrelated issue @tthanhphung. See #252 which was addressed and fixed by v1.1.10 |
Puppeteer can load HTML from the local file system.