-
Notifications
You must be signed in to change notification settings - Fork 0
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
Require authentication to create Via links #74
Comments
One possible implementation for this:
At the point of creating a link using the form in via the URL could be saved in a database of allowed URL that can be served without referrer. Using the form could only be allowed to only authenticated users. |
An easier way to do this might be to only allow Via links to pages that have at least one annotation in the h DB (a question that's conveniently answerable by h's badge endpoint). That way, in order to generate a new Via link, you need to sign up for a Hypothesis account, verify your email, and create an annotation on the page. Unauthenticated users trying to follow a Via link to an unannotated page could be presented with a page along the lines of After all, we don't really need to allow unauthenticated users to proxy unannotated pages through Via, do we? |
@seanh Your idea is quite intriguing.
I think there might be a chicken and egg situation here in which a user (who maybe isn't using the extension, e.g.) wants to be able to annotate a page in the first place. That is: the use case in which Via is providing the actual annotation mechanism for someone... |
I think the suggestion actually improves this situation. Given a unauthenticated user going to an unannotated page in Via:
I'd say that's a significant improvement to the experience of an unauthenticated user trying to annotate an as-yet unannotated page in Via, even regardless of the security benefits |
This is probably less important as a result of the idea of allow listing, which serves as a first line of defence. We should revisit this once we've done that |
I'm gonna close this issue as I think the decision to move public Via to an allow-list changes this fundamentally. I've opened another issue that's sort of a remix of this idea in the context of an allow-list: Allow authenticated users to bypass the allow-list |
Also added another new issue that tries to capture @lyzadanger 's original idea here a bit better, in the context of an allow-list: Allow certain users to create "blessed" Via links that bypass the allow-list |
It might not slow people down too much, but we could track the origins of malign links and potentially disable them, or have a few other levers at our disposal.
The text was updated successfully, but these errors were encountered: