-
Notifications
You must be signed in to change notification settings - Fork 143
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
Revision browser, file downloads broken when read-access is restricted #1965
Comments
iodide-project#1965) Even read-only operations need an authentication credential on the internal server
Revision browser is being worked on in #1966. @jezdez, if you wanted to try working on the file endpoints that would be cool. It might be a little tricky: we normally download files via a fetch cell (example: https://alpha.iodide.io/notebooks/759/), so we'd need to find a way to automatically add the iodide credentials for resources fetched on the current domain. We may also need to update the iodide file api (https://iodide-project.github.io/docs/api/), though hopefully that will be a little easier. |
iodide-project#1965) Even read-only operations need an authentication credential on the internal server
iodide-project#1965) Even read-only operations need an authentication credential on the internal server
iodide-project#1965) Even read-only operations need an authentication credential on the internal server
So it turns out we were already passing file requests (relative ones at least) through to the main editor cell, with authentication credentials:
Verified that this (along with iodide.file.load) works fine on the internal server here: https://stage.iodide.nonprod.dataops.mozgcp.net/notebooks/74/ I think we can close this out as done. |
Yay @wlach! |
With @jezdez's PR #1926 landed and various fixes, read access to some previously open endpoints is now locked down on Mozilla's internal instance -- in particular file fetches (for resources uploaded to the iodide server) and the revision browser no longer work.
One of those "obvious in retrospect" things. I have a PR to fix the revision browser pending, but how to handle files (which may be referenced via a fetch cell) requires some more thought.
/cc @robotblake @hamilton
The text was updated successfully, but these errors were encountered: