Code Monkey home page Code Monkey logo

Comments (4)

Synzvato avatar Synzvato commented on May 11, 2024

Hi, thanks for sharing your thoughts!

While I like the idea, it does not appear to be possible to maintain self-updating whitelists. RequestPolicy does allow users to import domains from a file, but this does not allow for pushing updates to clients. It's also not possible to remove old (obsolete) whitelist entries once imported.

This might help users with strict policies with the initial set-up:

[origins]
[destinations]
ajax.googleapis.com
ajax.aspnetcdn.com
ajax.microsoft.com
cdnjs.cloudflare.com
code.jquery.com
cdn.jsdelivr.net
yandex.st
libs.baidu.com
lib.sinaapp.com
upcdn.b0.upaiyun.com
[origins-to-destinations]

Am I missing something with regards to maintenance?

from decentraleyes.

stewie avatar stewie commented on May 11, 2024

Respectfully, the proposed RP whitelist seems like an insecure (too trusting) approach.
I realize that might be the only approach available though, because can't guarantee which request observer will get first dibs.

When DE's "retrieve and cache missing" option is enabled, I would hope DE would raise an infobar announcing "page is requesting a not-yet-cached item from a recognized CDN. Allow/Deny". Upon 'Allow' buttonclick, DE would retrieve and permacache the item then trigger a page reload. It's reasonable to expect this will be a seldom-occurring interruption.

http://www.jsdelivr.com/about
For this CDN in particular, I'm hesitant to carte blanche "allow any missing".
http://blog.jsdelivr.com/
"A big focus was made on our combination feature. You can now visually create your combined URLs using the "Collection" functionality"
http://www.jsdelivr.com/free-open-source-cdn/javascript-cdn
"There are no popularity restrictions and all kinds of files are allowed, including JavaScript libraries, jQuery plugins, CSS frameworks, fonts and more."

Ultimately, after extended surfing, the local DE permacache could accumulate the entirety of
https://github.com/jsdelivr/jsdelivr/tree/master/files

https://github.com/jsdelivr/jsdelivr/archive/master.zip
1.6Gb zipfile
extracted contents: 123,500+ files, 5.0Gb files on disk
ouch
(and, does the jsdeliver "combinations, collections" feature introduce further permutations?)

from decentraleyes.

Synzvato avatar Synzvato commented on May 11, 2024

@stewie Thanks for weighing in.

Respectfully, the proposed RP whitelist seems like an insecure (too trusting) approach.

Note that you can block requests for any missing resources from preferences, and then whitelist any domains of websites that break without the expected libraries. So, adding the CDN domains to your RequestPolicy whitelist does not necessarily mean allowing all requests for missing resources.

from decentraleyes.

Synzvato avatar Synzvato commented on May 11, 2024

Closing this issue for now (since there now is a static RequestPolicy whitelist). I will be sure to re-open this issue if anyone has a strategy for continued maintenance.

from decentraleyes.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.