Repository navigation
docs: update Cloud Registry deployment notes - #51
Conversation
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]>
Reviewer's GuideThe 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 replacementsequenceDiagram
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
Sequence diagram for LS Login authorization of Cloud Registry writessequenceDiagram
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
Flow diagram for Cloud Registry deployment validationflowchart 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
File-Level Changes
Assessment against linked issues
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
- 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]>
There was a problem hiding this comment.
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
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]>
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:
database, and why (the old deployment trusted tokens of any issuer);
export of
GET /servicesfirst; how the old release served TLS;latest/devimages;eduperson_entitlement), group claim via userinfo, admin group mapping, and how to check groups via the user info
endpoint;
/ga4gh/registry/v1), and exposing only that path;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 newregistry, 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): buildswithout warnings; anchors, admonitions, code block titles and reference
links render.
keys and commands checked against the
v0.4.0tag of cloud-registry(
deployment/README.md,values.yaml,docs/, the startup log line)and LS Login's discovery document.
except those below.
PersistentVolumes, namespace creation), all fixed in 339edfd; the
changed
kubectl create secret --from-env-file=<(...)(client dry run)and
curl -H @-commands were tested.pushes to
mainonly). Merging tomaindeploys the site (GitHubPages workflow).
Declined review findings
the public page explains how to obtain them instead.
reproducibility; it cites the upstream section and the Secret's keys.
keeps its own structure, which fits an addendum; it has an Uninstalling
section now.
shows how to find it and uses neutral placeholders.
Open questions
None.
Closes #50
🤖 Generated with Claude Code