w3c / dpub-pwp-ucr

Use Cases and Requirements for (Packaged) Web Publications
https://w3c.github.io/dpub-pwp-ucr/
Other
11 stars 19 forks source link

Escalating trust #217

Closed francofaa closed 5 years ago

francofaa commented 5 years ago

User agents may provide a method for escalating trust for a specific publication. Some publications may require additional capabilities (for example, access to camera or geolocation) that a user agent might normally not enable. Today, some platform and UA vendors offer methods for otherwise untrusted local scripts to become trusted and regain API privileges, a similar ability needs to exist for publications as well.

Unsure whether this is redundant for the web.

(@BigBlueHat , @iherman, @bdugas)

iherman commented 5 years ago

Yes, it does sound redundant as a use case, this is how the Web operates...

BigBlueHat commented 5 years ago

Yes, it does sound redundant as a use case, this is how the Web operates...

Well, it's how standalone browser's implementing JavaScript work, but what about reading systems built with Web views (or not) in mobile apps?

Also, are these permission requests simply part of the HTML-based content containing JavaScript which asks for the permissions? or is there some other manifest-level thing needed like what is used in Browser Extensions (which is notably an "up-front" request to do things vs. various "as-needed" requests).

But perhaps these questions change the nature of the use case from "user agents may provide..." to "publications may request escalated trust"--which seems necessary for scripting in packaged publications (for example).

francofaa commented 5 years ago

Opened 219 for moving use case starting "Luke has written another book..." to a more relevant requirement.

Moreover, I argue that the language "Today, some platform and UA vendors offer methods for otherwise untrusted local scripts to become trusted and regain API privileges, a similar ability needs to exist for publications as well" is sufficient to indicate that we acknowledge that this technology already exists on the web.

The matter of whether script trust escalation belongs in the manifest does not need to reside in the UCR, so I am closing this issue.

iherman commented 5 years ago

This issue was discussed in a meeting.