28 Commits
Author SHA1 Message Date
Nuwan Goonasekera 17cd7bd36b Document the cloud object store template type
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.
2026-09-13 19:15:25 +05:30
mvdbeek 7cc9dcd9f3 Make file source form alerts template configurable 2026-07-13 16:02:14 +02:00
mvdbeek 334f66d52f Add GitHub repository file source (fsspec, OAuth2 BYOS template)
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.
2026-07-13 16:02:14 +02:00
benjamin b7896c13a6 docs: fix typos 2026-06-14 13:18:21 +00:00
PlushZ c30d30f386 fixes after review 2026-04-09 17:20:51 +10:00
PlushZ def4897043 remove mocking and add integration test instead, extend docs 2026-04-07 19:53:18 +10:00
PlushZ abfbf02517 add full-access drive mode, template and tests 2026-04-05 16:06:42 +10:00
PlushZ 5341612687 Add OneDrive file source 2026-04-05 12:04:50 +10:00
davelopez 71df52c74c Clarifies rules for template variable requirements in docs 2026-02-11 10:04:11 +01:00
davelopez 0a1df430ed Fix docs format
Removes extra spaces after comment symbols in config docs
2026-02-11 10:04:10 +01:00
Matthias Bernt 56391f903d also update doc references 2026-01-20 21:47:49 +01:00
mvdbeek 48c7bfe463 Various fixes around ascp file source
- 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.
2025-12-01 15:17:34 +01:00
Danielle Callan 04c5b460af fix ascp fsspec import and improve related docs 2025-11-25 16:44:18 -05:00
Danielle Callan 8d984a22a8 simplify ssh key management for ascp plugin 2025-11-25 09:33:30 -05:00
Danielle Callan 2268ca292f docs ascp plugin 2025-11-24 18:40:42 -05:00
davelopez 45d5bc3da6 Refactors template variable validation to use tool_util validators 2025-10-30 15:08:21 +01:00
davelopez 5eb0aa5792 Adds documentation for template variable validators 2025-10-30 15:08:21 +01:00
José Manuel Domínguez 10de12c5f1 Implement file source to integrate Galaxy with RSpace
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/
2025-05-09 12:04:46 +02:00
davelopez 87d5773f2c Add Zenodo file source template documentation 2025-02-19 10:36:33 +01:00
David LópezandJosé Manuel Domínguez c896a28a95 Apply suggestions from code review
Co-authored-by: José Manuel Domínguez <43052541+kysrpex@users.noreply.github.com>
2025-02-17 13:44:24 +01:00
davelopez 61f9ebf34f Add InvenioRDM file source configuration documentation and templates 2025-02-17 13:44:19 +01:00
José Manuel Domínguez 2f4ac83cd5 Update eLabFTW file source template docs
Include the template itself and a screenshot of the form generated by the template in the docs, just like it is done for the other templates.
2025-02-17 13:10:32 +01:00
José Manuel Domínguez 1417037509 eLabFTW file source from file source templates
Support user-defined file sources based on `eLabFTWFilesSource`. Add a file source template for eLabFTW and the required documentation.
2025-02-13 15:33:56 +01:00
John Chilton edc5bc2a8f Allow oauth2 file sources with Dropbox initial implementation. 2024-10-14 15:16:41 +02:00
Sanjay Kumar Srikakulam 22791a8d43 Add WebDAV as user file source
Adds WebDAV example template, configuration and updates the docs, and the file source model along with the client API schema
2024-10-10 10:40:58 +00:00
John Chilton b598bff3e0 Big warning box about distributed object stores being required. 2024-05-20 12:19:01 -04:00
John Chilton 29ea0ba522 Implement many PR comments around Vue stuff and docs. 2024-05-20 12:19:01 -04:00
John Chilton f95da89b3d Implement file source templates 2024-05-20 12:18:47 -04:00