Adds the admin-facing section for cloud templates alongside the other
types, generates its two schema diagrams, and notes that the template
surface is deliberately narrower than the global object store config.
Add a `github` file source plugin backed by fsspec's built-in GithubFileSystem,
usable as a user-instantiated "Bring Your Own Storage" template. Each instance
exposes a single repository (org/repo at a branch or commit) for browsing and
download; users create one instance per repository. Optional write support commits
uploaded files to the branch via the GitHub Contents API with an automatic commit
message (gated by `writable`).
Authentication uses Galaxy's OAuth2 flow (Dropbox-style): an admin registers a
GitHub App and provides its client id/secret; each user authorizes Galaxy and the
per-user refresh token is stored in the vault. The access token is sent to GitHub
as a Bearer credential via a WritableGithubFileSystem `kw` override.
Supporting GitHub required a few framework changes to the shared OAuth2 code:
- OAuth2 token requests always send `Accept: application/json` so GitHub's token
endpoint returns JSON (it otherwise returns form-encoded data). This is correct for
every provider per RFC 6749, so it is sent universally rather than per-provider.
- `read_oauth2_info_from_configuration` now expands only the oauth2 client fields, so
a template whose configuration references user variables (org/repo) can be read at
authorize time before those variables are collected.
- The oauth2 refresh flow now persists a rotated refresh token when the provider
returns one. GitHub rotates and invalidates the refresh token on every use; other
providers omit it and are unaffected.
- The create-instance UI treats `github` as an OAuth2 type so it triggers the
authorization redirect.
Registers the `github` OAuth2 template type, ships a production example, and
documents the GitHub App setup in admin/data.md. No new dependency: fsspec is core
and ships the github implementation.
- Add an ascp handler to the frontend, so users can paste ascp:// urls
- Add ssh key passphrase config option, without this downloads hang
waiting for password
- Bypass is_dir / is_file checks, they'll always fail. We assume files
for now.
- Implement top-level get_file. `_get_file` would require implementing
`get_info` which doesn't really make sense for this file source.
This commit implements a FilesSource that interacts with an RSpace [1] instance and includes a file source template so that users can define their own file sources based on it.
RSpace is an electronic lab notebook
(ELN) designed for documenting, managing and sharing scientific data. The central concepts in RSpace are the Workspace,
the Inventory and the Gallery.
The Workspace's role is organizing and managing research activities. It allows creating documents, folders and research
notebooks [2]. The Inventory is a tool to keep track of laboratory resources, such as reagents, samples and equipment
[3]. The Gallery is where any research data represented as files is stored [4].
The FilesSource implemented by this module accesses the Gallery of an RSpace instance. The Gallery is organized in
categories (e.g. Images, Audio, Documents, Chemistry), where each category is itself a tree structure with folders and
files just like a regular filesystem, although there is a key difference: categories and their subfolders can only
contain files of certain types (e.g. jpeg, bmp, png, etc. for the Images category).
This implementation is based on the rspace-client-python` library [5], which provides a PyFilesystem2 [6] interface
to interact with RSpace's Gallery (available as `GalleryFilesystem` in the rspace_client.eln.fs` module). It
consists just of a minimal wrapper (based on the base `PyFilesystem2FilesSource` provided by Galaxy) around the
`GalleryFilesystem` class.
References:
- [1] https://www.researchspace.com/
- [2] https://documentation.researchspace.com/article/bzgr8ea9e3-the-workspace
- [3] https://documentation.researchspace.com/category/zpizk20kgx-inventory
- [4] https://documentation.researchspace.com/article/sl6mo1i9do-the-gallery
- [5] https://github.com/rspace-os/rspace-client-python
- [6] https://docs.pyfilesystem.org/