Tools for creating and managing the temporary endpoints that take data contributions for the Bioconductor Hubs.
Each contribution gets its own short-lived, S3-compatible endpoint on Kubernetes. The contributor uploads to it; an admin scans and reviews the data, copies it to the Hubs' storage, and deletes the endpoint.
This page covers using the service. Maintainer documentation is in docs/:
| Page | Contents |
|---|---|
| Architecture | Components, workflows, state |
| Deployment | Setting up a cluster and the repository |
| Operations | Contribution lifecycle, health checks, credential rotation |
| Updating | Update procedures and cadence |
| Troubleshooting | Symptom, cause and fix |
| Security | Credentials, exposed services, reporting a vulnerability |
| Examples | Example values and a worked contribution |
| deploy/ | Kubernetes templates |
Manage endpoints with the GitHub Actions workflows.
- The following repository secrets must be configured by an administrator:
KUBECONFIG: Kubernetes configuration for cluster access
Two distinct types of secrets are used in this system:
-
User S3 Keys (
S3KEY_<USERNAME>):- One unique key per data submitter
- Used only for their specific endpoint
- Should be randomly generated for security
-
Admin Access Password (
ADMINPASS_<GITHUB-USERNAME>):- One password per administrator
- Used for ALL RStudio instances launched by that admin
- Should be a secure, memorable password you'll reuse
- Same password works on any endpoint you examine
Generate a random key for each data submitter:
openssl rand -hex 32Add the generated key as a GitHub secret:
- Name it
S3KEY_<USERNAME>(e.g.,S3KEY_DATAOWNER) - Share this random key securely with the data submitter
- They'll need it for S3 endpoint access
As an administrator:
- Choose a secure password you want to reuse
- Create a secret named
ADMINPASS_<GITHUB-USERNAME>- Where GITHUB-USERNAME is YOUR GitHub username in uppercase
- Example: GitHub user 'octocat' creates
ADMINPASS_OCTOCAT
- This will be your password for ALL RStudio instances you launch
- Username will always be
rstudio - Password will always be your ADMINPASS value
- Works on any rstudio endpoint when you run the launch workflow
- Username will always be
- Navigate to the "Actions" tab
- Select the "Create Hub Ingest Endpoint" workflow
- Click "Run workflow"
- Fill in the parameters:
- Username: The contributor's username (must match the
S3KEY_<USERNAME>secret) - Size: Storage size (e.g., "50Gi")
- Username: The contributor's username (must match the
- Click "Run workflow"
The workflow will:
- Create your endpoint with the specified storage
- Automatically test the endpoint by:
- Creating a test bucket
- Uploading a test file
- Retrieving the file
- Confirm the S3 credentials and endpoint are working properly
These tools are for administrators to examine data that contributors have uploaded to their endpoints:
Note: The storage volume attaches to one node at a time, so the scan and RStudio stop the contributor's S3 gateway first, and an upload in progress at that moment fails. Run them only after the contributor has finished uploading. To bring the endpoint back, see docs/operations.md.
Run a virus scan on a contributor's uploaded data:
- Navigate to the "Actions" tab
- Select the "Scan Data for Viruses" workflow
- Enter the contributor's username
- Click "Run workflow"
The scan results are shown in the workflow log, between separator lines:
- Click on the Job
- Expand "Run virus scan"
- Find and investigate "Virus Scan Report"
The workflow fails when ClamAV finds infected files or reports scan errors. In both cases the data is not cleared: do not open it in RStudio or promote it. See docs/troubleshooting.md.
Launch an RStudio instance to examine a contributor's data:
-
First, ensure you have set up your admin password:
- Secret name:
ADMINPASS_<GITHUB-USERNAME>where GITHUB-USERNAME is YOUR GitHub username in uppercase - Example: GitHub user 'octocat' needs secret
ADMINPASS_OCTOCAT
- Secret name:
-
Launch RStudio:
- Navigate to the "Actions" tab, select the "Launch RStudio Instance" workflow and click "Run workflow"
- Enter the CONTRIBUTOR'S username, and optionally the Bioconductor version of the image (
bioc_version), then click "Run workflow" - The workflow will use YOUR admin password for RStudio access
- Example: Admin 'octocat' examining contributor 'dataowner's data:
- Username parameter: dataowner
- RStudio password: Value from
ADMINPASS_OCTOCAT
-
Access RStudio:
- URL:
https://<contributor>-rstudio.hubsingest.bioconductor.org- Example:
https://dataowner-rstudio.hubsingest.bioconductor.org
- Example:
- Login with:
- Username: Always
rstudio - Password: Your
ADMINPASS_<GITHUB-USERNAME>value
- Username: Always
- URL:
- Navigate to the "Actions" tab
- Select the "Delete Hub Ingest Endpoint" workflow
- Click "Run workflow"
- Enter the contributor's username (or "ALL" to delete all endpoints)
- Click "Run workflow"
Note: Using "ALL" will delete all endpoints in the cluster (all namespaces ending with "-ns"). This is intended for administrators who need to clean up multiple endpoints at once. Use with caution as this action cannot be undone.
- Kubernetes configuration file (kubeconfig)
- Contact your Kubernetes administrator to obtain this file
- The file should be placed at
~/.kube/config - The configuration must have permissions to create namespaces and deploy resources
Note: The tools are installed in /usr/local/bin/hubsingest by default.
For another directory, pass BIOC_HUBSINGEST_PATH through sudo, which does
not keep exported variables: curl ... | sudo env BIOC_HUBSINGEST_PATH=<dir> bash.
For a directory you can write to, export the variable and run bash without
sudo. hubsingest reads the same variable to find its scripts, so keep it
exported whenever you run hubsingest.
curl https://raw.githubusercontent.com/Bioconductor/hubsingest/refs/heads/devel/install_hubsingest.sh | sudo bashThis script will:
- Create a directory for the tools (default: /usr/local/bin/hubsingest)
- Download the necessary scripts
- Make the main script runnable
- Provide instructions for updating your PATH
For those interested in the installation process, please examine the installation script.
hubsingest create_endpoint <username> <size> [<password>]Example:
# With auto-generated password
hubsingest create_endpoint testuser 50Gi
# With specific password
hubsingest create_endpoint testuser 50Gi myspecificpasswordAn auto-generated key is not printed. Read it from the endpoint's Secret:
kubectl get secret -n <username>-ns versitygw-credentials -o jsonpath='{.data.secret_key}' | base64 -dhubsingest delete_endpoint <username>Example:
hubsingest delete_endpoint testuserTo delete all endpoints at once (for administrators):
hubsingest delete_endpoint ALLWarning: The ALL option will delete all namespaces ending with "-ns" in the cluster. This is intended for administrative cleanup and should be used with caution as it cannot be undone.
To scan a contributor's data for viruses:
hubsingest scan_data <username>To launch an RStudio instance for examining data:
hubsingest launch_rstudio <username> <password> [bioc_version]Example:
hubsingest launch_rstudio dataowner mypassword 3.23The contribution is mounted at /home/rstudio/shareddata, and
rclone is installed for copying the reviewed data to the
Hubs' storage. RStudio stays reachable from the internet until the endpoint is
deleted; delete it when the review is finished.
After creating an endpoint, you can test it using the built-in test function or manually using the AWS CLI.
- AWS CLI installed (
awscommand available in your terminal) - Automatic testing:
kubectlaccess to the cluster; the test reads the secret key from the endpoint - Manual commands: the S3 access key (username) and secret key (password)
hubsingest test_endpoint <username>This will automatically:
- Create a test bucket
- Upload a test file
- Verify the file exists
- Clean up the test bucket
For manual testing or data upload, configure an AWS profile:
aws configure --profile hubsingestusername
# Enter your access key (username) when prompted
# Enter your secret key (password) when prompted
# Leave region blank (press Enter)
# Leave output format blank (press Enter)Include the profile and endpoint URL in each AWS CLI command:
aws --profile hubsingestusername --endpoint-url https://<username>.hubsingest.bioconductor.org s3 <command>Example commands:
# Make bucket and upload a file
aws --profile hubsingestusername --endpoint-url https://username.hubsingest.bioconductor.org s3 mb s3://mybucket
aws --profile hubsingestusername --endpoint-url https://username.hubsingest.bioconductor.org s3 cp myfile.txt s3://mybucket/
# List buckets
aws --profile hubsingestusername --endpoint-url https://username.hubsingest.bioconductor.org s3 ls
# Download a file
aws --profile hubsingestusername --endpoint-url https://username.hubsingest.bioconductor.org s3 cp s3://mybucket/myfile.txt ./