Repository navigation
docs: install the released CLI 0.1.0 - #200
Conversation
The CLI guide and tutorial install ga4gh-cli 0.1.0 from the release binaries with a SHA256SUMS check; the guide also covers the container image and the source build at v0.1.0. Drop the notes that the CLI has no releases or binaries, replace "What's coming" with the 0.1.0 commands that the page doesn't cover, and describe how the page was tested with 0.1.0. Closes #196 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_011FSoqN5w1v5t1QRTKU7ad5
Reviewer's GuideDocumentationUpdate the CLI guide to document release 0.1.0, its binary, container and source installation paths, and the commands and testing status the page does not cover.
Revise the first-run tutorial to install and verify the 0.1.0 binary and update its prerequisites and verification notes accordingly.
Update the researcher index prerequisites to reflect binary or container installation rather than building from source.
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
The guide's configuration file has mode 600, so the image's default UID 10001 can't read it. Run the container with --user instead. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_011FSoqN5w1v5t1QRTKU7ad5
Linked issuesChecked at commit b27370c #196 docs: install the released CLI 0.1.0 · 4 of 4 met
|
There was a problem hiding this comment.
Hey - I've found 5 issues
Prompt for AI Agents
Please address the comments from this code review:
## Individual Comments
### Comment 1
<location path="docs/researchers/cli.md" line_range="50-51" />
<code_context>
+target=x86_64-unknown-linux-gnu
+archive="ga4gh-cli-$version-$target.tar.gz"
+base="https://github.com/ga4gh/ga4gh-sdk/releases/download/v$version"
+curl --fail --location --remote-name "$base/$archive"
+curl --fail --location --remote-name "$base/SHA256SUMS"
+sha256sum --check --ignore-missing SHA256SUMS &&
+ tar -xzf "$archive" &&
</code_context>
<issue_to_address>
**Stale files can install malware**
When a local attacker can place a matching archive and checksum in the working directory and the release downloads fail, the current directory contains an attacker-planted archive and matching `SHA256SUMS`, and the downloads fail, `curl` errors do not stop either block; the local checksum then passes and the script installs and runs the planted CLI.
Make both downloads fail the chain (or download into a fresh temporary directory and verify the downloaded files before extracting or running them).
Also at `docs/researchers/tutorial-cli.md:70-71`.
</issue_to_address>
### Comment 2
<location path="docs/researchers/cli.md" line_range="52" />
<code_context>
+base="https://github.com/ga4gh/ga4gh-sdk/releases/download/v$version"
+curl --fail --location --remote-name "$base/$archive"
+curl --fail --location --remote-name "$base/SHA256SUMS"
+sha256sum --check --ignore-missing SHA256SUMS &&
+ tar -xzf "$archive" &&
+ mkdir -p ~/.local/bin &&
</code_context>
<issue_to_address>
**Unverified CLI archive gets installed**
When the checksum manifest omits or renames the selected archive's entry, `sha256sum --check --ignore-missing` succeeds without checking the archive, and the Linux grep pipelines also pass no matching entry to the checker; the following commands then extract and install the archive without verifying it.
Require a matching checksum entry for the selected archive before checking it, and stop unless that checksum passes.
Also at `docs/researchers/cli.md:66`, `docs/researchers/tutorial-cli.md:72`.
</issue_to_address>
### Comment 3
<location path="docs/researchers/cli.md" line_range="82-83" />
<code_context>
+
+The Linux binaries need glibc 2.34 or newer (for example Ubuntu 22.04,
+Debian 12 or RHEL 9), OpenSSL 3 and CA certificates. The binaries aren't
+signed, so macOS may block them until you remove the quarantine attribute
+with `xattr -d com.apple.quarantine ga4gh-cli`. The SDK's
+[installation guide][sdk-install] also shows how to check the build
+provenance of the archive with the GitHub CLI.
</code_context>
<issue_to_address>
**Unsigned binaries bypass Gatekeeper**
When a macOS user encounters the quarantine block and follows the documented workaround, the macOS user follows the `xattr` instruction, the command removes quarantine from the unsigned CLI, allowing it to run without Gatekeeper’s quarantine checks. The checksum file comes from the same release endpoint as the archive, so a compromised release can replace both; provenance checking is only mentioned as an optional further step.
Require verification of the release build provenance before advising users to remove quarantine, or distribute signed and notarized macOS binaries.
Also at `docs/researchers/tutorial-cli.md:80-81`.
</issue_to_address>
### Comment 4
<location path="docs/researchers/cli.md" line_range="83" />
<code_context>
+The Linux binaries need glibc 2.34 or newer (for example Ubuntu 22.04,
+Debian 12 or RHEL 9), OpenSSL 3 and CA certificates. The binaries aren't
+signed, so macOS may block them until you remove the quarantine attribute
+with `xattr -d com.apple.quarantine ga4gh-cli`. The SDK's
+[installation guide][sdk-install] also shows how to check the build
+provenance of the archive with the GitHub CLI.
</code_context>
<issue_to_address>
**Quarantine workaround targets the wrong file**
When a macOS user follows the workaround after the install steps have moved the executable, `xattr -d com.apple.quarantine ga4gh-cli` looks for the executable in the current directory, but the install steps moved it to `~/.local/bin/ga4gh-cli`; the command fails to remove quarantine and macOS continues to block the installed CLI.
Point the `xattr` command at the installed executable in `~/.local/bin`.
</issue_to_address>
### Comment 5
<location path="docs/researchers/cli.md" line_range="50-51" />
<code_context>
+target=x86_64-unknown-linux-gnu
+archive="ga4gh-cli-$version-$target.tar.gz"
+base="https://github.com/ga4gh/ga4gh-sdk/releases/download/v$version"
+curl --fail --location --remote-name "$base/$archive"
+curl --fail --location --remote-name "$base/SHA256SUMS"
+sha256sum --check --ignore-missing SHA256SUMS &&
+ tar -xzf "$archive" &&
</code_context>
<issue_to_address>
**Existing files are overwritten and deleted**
When the install block is run from a directory containing `SHA256SUMS`, the release archive, or the named extraction directory, `curl --remote-name` truncates same-named files in the caller’s current directory. In the tutorial, the final `rm -r` also deletes `SHA256SUMS` and the extracted directory, so following the steps from a directory containing those files destroys unrelated data.
Download and extract in a newly created temporary directory, and clean up only that directory after a successful install.
Also at `docs/researchers/tutorial-cli.md:70-71`, `docs/researchers/tutorial-cli.md:77`.
</issue_to_address>Sourcery assessment
Approval pending. 5 findings to address first.
Blocking findings: docs/researchers/cli.md:51, docs/researchers/cli.md:52, docs/researchers/cli.md:83, docs/researchers/cli.md:83, docs/researchers/cli.md:51
Download into a new temporary folder, chain every step, require the archive's line in SHA256SUMS, and delete only the temporary folder. Point xattr at the installed binary, and check the build provenance before removing the macOS quarantine. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_011FSoqN5w1v5t1QRTKU7ad5
Summary
Moves the CLI guide and tutorial from the source build at commit
af0e021to the released ga4gh-cli 0.1.0:docs/researchers/cli.md: the intro names release 0.1.0 (a prerelease) instead of "no releases yet", and the "can't do yet: no binaries" warning is gone. "Install" now has three ways: the release binary with aSHA256SUMScheck (platform table, glibc/OpenSSL notes, macOS and Windows hints), the container imageghcr.io/ga4gh/ga4gh-cli:0.1.0, and the source build atv0.1.0. The login step says that 0.1.0 can also log in withga4gh-cli login(device flow), which the page doesn't cover yet. "What's coming" (binaries, image, TES files, login) is replaced by "What this page doesn't cover", which links the SDK's 0.1.0 docs fortes files/log/save,login/logout,service-infoandworkflow. "How this page was tested" and "Where to go next" describe 0.1.0.docs/researchers/tutorial-cli.md: step 2 downloads and checks the binary instead of building with Rust; prerequisites, duration and the test note follow.docs/researchers/index.md: the requirements column no longer asks for Git and Rust.Closes #196
Verification
HOME: checksumOK,ga4gh-cli --versionprintsga4gh-cli 0.1.0, and the tutorial's block leaves its folder empty. With a corruptedSHA256SUMS, the chained commands stop and nothing is installed.--help, and ran thetes,wesanddrscommands against a local mock service: paths, token sending (also toservice-info), profiles (--profilebefore and after the command,GA4GH_CLI_PROFILE), the exit codes and the quoted error messages (Environment variable 'LS_LOGIN_TOKEN' is not set; …,Profile 'nope' not found; …,Configuration file must contain a 'WES' object,Failed to parse JSON,Invalid TES task,401 Unauthorized,… Check that base_path is the TES API root, the--allresume checkpoint).trscommands of the guide against WorkflowHub (workflow 3, version 1, including--zip).elixir-on.cloud) didn't answer during testing (TLS connection closed), so theregistrycommands weren't re-run with 0.1.0; the page says so. Their code differs fromaf0e021only in an error message for invalid answers.HOMEand working directory come from its registry config (Docker wasn't available); thedocker runcommand wasn't run. The macOSshasumand Windows hints weren't run.DOCS_REGISTRY_OFFLINE=1 mkdocs build --strict: no warnings (offline, because the registry hook couldn't reach the registry);scripts/check_names.pyandpytest(356 passed, 100% coverage) pass.--user "$(id -u):$(id -g)", because the guide's configuration file has mode 600 and the image's default UID is 10001.Docs(and the Read the Docs build) fail on every PR right now, also on unrelated branches, because the registry hook can't reachhttps://elixir-on.cloud/ga4gh/registry/v1/services(TLS handshake timeout). The offline strict build passes; re-run CI once the registry answers.last_verifiedstaysnull: the pages weren't checked against deployed services.Light lane: docs-only.
🤖 Generated with Claude Code
https://claude.ai/code/session_011FSoqN5w1v5t1QRTKU7ad5
Summary by Sourcery
Update the researcher CLI documentation and tutorial to use and describe the released ga4gh CLI 0.1.0.
New Features:
Enhancements:
Documentation: