Skip to content

docs: update Cloud Registry deployment notes - #51

Merged
uniqueg merged 4 commits into
mainfrom
docs/cloud-registry-0.4.0
Oct 24, 2026
Merged

uniqueg merged 4 commits into
mainfrom
docs/cloud-registry-0.4.0

Conversation

@uniqueg

@uniqueg uniqueg commented Oct 24, 2026 •

Copy link
Copy Markdown
Member

Summary

Replaces the outdated Cloud Registry page (it described the old chart,
cloned from the repository and edited in place) with deployment notes for
the ELIXIR On-Cloud deployment (https://registry.elixir-on.cloud/) of
Cloud Registry v0.4.0. The page is an addendum: it links the v0.4.0
deployment docs and the upgrade guide ("From versions before 0.4.0")
instead of copying them, and adds what is specific to this deployment:

  • one-time replacement of the old deployment: fresh install with an empty
    database, and why (the old deployment trusted tokens of any issuer);
    export of GET /services first; how the old release served TLS;
  • the pinned chart version (release asset URL), no latest/dev images;
  • MongoDB 7.0, and the kernel check before moving to MongoDB 8.x;
  • LS Login: issuer, scopes (eduperson_entitlement), group claim via user
    info, admin group mapping, and how to check groups via the user info
    endpoint;
  • audience = the front ends' client IDs, and how to obtain them;
  • API URL and base path (/ga4gh/registry/v1), and exposing only that path;
  • NetworkPolicy peers;
  • a values file example, installation, checks after installing, upgrades,
    uninstalling.

The page is public, so it contains no secrets, tokens, passwords,
internal addresses or client IDs; it explains how to look them up.

Also: the [elixir-cloud-registry] reference now points to the new
registry, and the TES onboarding text on the Services page says how to
register.

Generic points found missing upstream went into the Cloud Registry docs
(elixir-cloud-aai/cloud-registry#222, merged in #223), which the page links.

Verification

  • mkdocs build (mkdocs-material, as in the deploy workflow): builds
    without warnings; anchors, admonitions, code block titles and reference
    links render.
  • All links checked (HTTP 200, anchors present on the v0.4.0 docs); values,
    keys and commands checked against the v0.4.0 tag of cloud-registry
    (deployment/README.md, values.yaml, docs/, the startup log line)
    and LS Login's discovery document.
  • Reviews: adversarial and quality reviewers, 2 rounds; all findings fixed
    except those below.
  • Sourcery: 3 findings (credentials in process listings, retained
    PersistentVolumes, namespace creation), all fixed in 339edfd; the
    changed kubectl create secret --from-env-file=<(...) (client dry run)
    and curl -H @- commands were tested.
  • The repository runs no checks on pull requests (its workflows run on
    pushes to main only). Merging to main deploys the site (GitHub
    Pages workflow).

Declined review findings

  • List the production client IDs: declined, the maintainer decided that
    the public page explains how to obtain them instead.
  • Drop the Secret creation command (copied from upstream): kept for
    reproducibility; it cites the upstream section and the Secret's keys.
  • Follow the old Synopsis/Installation/Usage/Destroy template: the page
    keeps its own structure, which fits an addendum; it has an Uninstalling
    section now.
  • Name the deployment's real ingress controller: unknown here; the page
    shows how to find it and uses neutral placeholders.

Open questions

None.

Closes #50

🤖 Generated with Claude Code

Replace the outdated Cloud Registry page (old chart from the
repository) with notes for the ELIXIR On-Cloud deployment of v0.4.0,
as an addendum to the Cloud Registry docs: fresh database and why,
pinned chart version, LS Login issuer, scopes, group claim and admin
group, audience, API URL, MongoDB version and kernel check, and
NetworkPolicy peers. No secrets: explains how to look values up.

Closes #50

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@sourcery-ai

sourcery-ai Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

Reviewer's Guide

The PR converts Cloud Registry documentation from an outdated chart-editing walkthrough into a detailed, public-safe addendum for the pinned ELIXIR On-Cloud v0.4.0 deployment, covering migration, identity and authorization, networking, installation, validation, upgrades, and uninstalling, while updating related service-registration links and instructions.

Sequence diagram for Cloud Registry v0.4.0 deployment replacement

sequenceDiagram
    participant Operator
    participant OldRegistry
    participant Kubernetes
    participant NewRegistry
    participant ServiceOwner

    Operator->>OldRegistry: GET /services
    OldRegistry-->>Operator: services-before-0.4.0.json
    Operator->>Kubernetes: helm uninstall <release>
    Kubernetes-->>Operator: Old release and MongoDB data removed
    Operator->>Kubernetes: helm install cloud-registry cloud-registry-0.4.0.tgz
    Kubernetes->>NewRegistry: Start v0.4.0 with empty database
    NewRegistry-->>Operator: Deployment ready
    ServiceOwner->>NewRegistry: Register service
    NewRegistry-->>ServiceOwner: Service owned by registrant
Loading

Sequence diagram for LS Login authorization of Cloud Registry writes

sequenceDiagram
    actor User
    participant Frontend
    participant LSLogin
    participant CloudRegistry

    User->>Frontend: Log in
    Frontend->>LSLogin: Request openid profile eduperson_entitlement
    LSLogin-->>Frontend: Access token
    Frontend->>CloudRegistry: Request with Bearer token
    CloudRegistry->>LSLogin: Fetch user info
    LSLogin-->>CloudRegistry: name and eduperson_entitlement
    CloudRegistry-->>Frontend: Authorized response
Loading

Flow diagram for Cloud Registry deployment validation

flowchart TD
    Secret[Create MongoDB credentials Secret]
    Install[Install pinned v0.4.0 Helm chart]
    Ready[Check deployment rollout]
    ServiceInfo[GET /service-info]
    PublicRead[GET /services]
    AuthCheck[Verify unauthenticated POST returns 401]
    AdminCheck[Verify admin group and GET /me]
    TestService[Register and delete a test service]

    Secret --> Install
    Install --> Ready
    Ready --> ServiceInfo
    ServiceInfo --> PublicRead
    PublicRead --> AuthCheck
    AuthCheck --> AdminCheck
    AdminCheck --> TestService
Loading

File-Level Changes

Change Details Files
Replaced the legacy Cloud Registry deployment page with version-pinned ELIXIR On-Cloud v0.4.0 deployment and operations guidance.
  • Linked upstream v0.4.0 deployment, upgrade, configuration, access-control, operations, and release documentation instead of duplicating generic content.
  • Documented the one-time migration from the pre-0.4.0 deployment, including service export, TLS inspection, fresh installation, and data trust rationale.
  • Added pinned Helm chart/image guidance, MongoDB version and kernel requirements, and upgrade/rollback constraints.
  • Documented LS Login issuer, scopes, user-info group claims, admin mapping, audience configuration, and credential-safe troubleshooting.
  • Added deployment values, ingress/API exposure, NetworkPolicy, installation, post-install checks, upgrades, and uninstall procedures.
docs/services/cloudregistry.md
Updated service-registration guidance and the canonical Cloud Registry link to target the new public deployment.
  • Changed TES onboarding instructions from contacting maintainers only to registering services in Cloud Registry and notifying maintainers.
  • Pointed the shared Cloud Registry reference at registry.elixir-on.cloud.
docs/services/index.md
includes/references.md

Assessment against linked issues

Issue Objective Addressed Explanation
https://github.com/elixir-cloud-aai/elixir-cloud-aai.github.io/issues/50 Replace the obsolete Cloud Registry deployment page with public, deployment-specific notes for ELIXIR On-Cloud, linking to the v0.4.0 deployment and upgrade documentation rather than copying it. ✅
https://github.com/elixir-cloud-aai/elixir-cloud-aai.github.io/issues/50 Document the requested deployment details: a fresh empty-database install, pinned chart/image, LS Login configuration and admin mapping, audience lookup, API URL and base path, MongoDB 7.0 and kernel checks before MongoDB 8.x, and NetworkPolicy peers—without exposing secrets or internal addresses. ✅
https://github.com/elixir-cloud-aai/elixir-cloud-aai.github.io/issues/50 Ensure the updated documentation builds and its links and commands match Cloud Registry v0.4.0. ✅

Possibly linked issues


Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

uniqueg and others added 2 commits October 24, 2026 04:42
- Use reference links for the Cloud Registry docs, with a note on the
  version the page was last checked against.
- Separate the one-time replacement of the old deployment; fail the
  export on errors, record how the old release serves TLS, and say
  that uninstalling deletes the old volume.
- Set TLS in the values file, flag the audience placeholder, disable
  the Route with the Ingress, and use neutral NetworkPolicy peers.
- Keep tokens out of the shell history, check the exact admin log
  line, link GET /me, and add uninstalling.
- Point the registry reference and the TES registration text to the
  new registry.

Refs #50

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Use the live ELIXIR On-Cloud website as the organization URL in the
service info, and link the generic notes on moving image tags and
node kernels now in the Cloud Registry docs
(elixir-cloud-aai/cloud-registry#223).

Refs #50

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@uniqueg
uniqueg marked this pull request as ready for review October 24, 2026 03:06

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've found 3 issues

Prompt for AI Agents
Please address the comments from this code review:

## Individual Comments

### Comment 1
<location path="docs/services/cloudregistry.md" line_range="299-301" />
<code_context>
+    ```bash
+    kubectl create secret generic cloud-registry-mongodb-credentials -n <namespace> \
+      --from-literal=root-username=root \
+      --from-literal=root-password="$(openssl rand -hex 24)" \
+      --from-literal=username=cloud-registry \
+      --from-literal=password="$(openssl rand -hex 24)"
+    ```

</code_context>
<issue_to_address>
**MongoDB credentials leak through process listings**

When the commands run where local users or process-monitoring tools can inspect process arguments, `curl` receives the expanded token and `kubectl` receives the generated MongoDB passwords as command-line arguments, exposing reusable credentials to process-list readers.

Pass credentials through a mechanism that does not expose them in process arguments.

Also at `docs/services/cloudregistry.md:176-177`, `docs/services/cloudregistry.md:355-356`.
</issue_to_address>

### Comment 2
<location path="docs/services/cloudregistry.md" line_range="76-77" />
<code_context>
-- Install [Helm][helm-install]
-- Clone the [Cloud-registry repository](https://github.com/elixir-cloud-aai/cloud-registry/)
+3. Find and uninstall the old release. Uninstalling deletes its MongoDB
+   volume (the claim `mongodb`) and the data; check that the claim is gone,
+   and delete it by hand if it isn't:

-    ```sh
</code_context>
<issue_to_address>
**Deleted claim leaves data recoverable**

When the bound PersistentVolume uses a `Retain` reclaim policy, deleting the PVC leaves the PersistentVolume and backing disk data in place, despite the instructions saying the MongoDB data is deleted, so operators can still recover it.

Clarify that deleting the PVC does not erase retained storage and instruct operators to delete the PersistentVolume and backing storage when the data must be removed.

Also at `docs/services/cloudregistry.md:385-388`.
</issue_to_address>

### Comment 3
<location path="docs/services/cloudregistry.md" line_range="297" />
<code_context>

-- `templates/mongo-deploy.yaml`
+    ```bash
+    kubectl create secret generic cloud-registry-mongodb-credentials -n <namespace> \
+      --from-literal=root-username=root \
+      --from-literal=root-password="$(openssl rand -hex 24)" \
</code_context>
<issue_to_address>
**Fresh installation stops before Helm**

When the target namespace does not already exist, `kubectl create secret ... -n <namespace>` returns a namespace-not-found error, so the documented procedure stops before Helm installs the registry.

Create the target namespace before creating the secret.
</issue_to_address>

Sourcery assessment

Needs a human reviewer. 3 findings to address first, and operators following the replacement steps uninstall the old release and delete its MongoDB volume, permanently removing the stored records; exporting the public service list does not preserve all database state. Reverting the documentation cannot restore that data.

Blocking findings: docs/services/cloudregistry.md:301, docs/services/cloudregistry.md:77, docs/services/cloudregistry.md:297


Sourcery is free for open source - if you like our reviews please consider sharing them ✨

Comment thread docs/services/cloudregistry.md Resolved
Comment thread docs/services/cloudregistry.md Resolved
Comment thread docs/services/cloudregistry.md Resolved
Pass the bearer token to curl and the generated MongoDB passwords to
kubectl via standard input and a file descriptor instead of arguments,
create the namespace before the Secret, and mention retained
PersistentVolumes when deleting data.

Refs #50

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@uniqueg
uniqueg merged commit 96b3e3b into main Oct 24, 2026
1 check passed
@uniqueg
uniqueg deleted the docs/cloud-registry-0.4.0 branch October 24, 2026 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs: update Cloud Registry deployment notes

1 participant