Repository navigation
docs: update the Cloud Registry pages for rc2 - #120
Conversation
Move the operator page of the Cloud Registry to v1.0.0rc2 and the UI to v1.0.0-rc2: versions, chart, images, verification commands, links and "Last checked against". Add the upgrade from 1.0.0rc1 with a fresh database (registry first, then the UI), the new settings (service info import and sync, notifications, kept invitations, the UI's login and access dialog settings, outgoing connections), and the changed checks. Extend the older upgrade paths to rc2. Drop the "coming with 1.0.0-rc2" notes from "Using the Cloud Registry", pin its links to the UI's docs to v1.0.0-rc2, and recommend importing in the onboarding steps. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Reviewer's GuideDocumentationUpdate the registry and UI release references, versions, chart and image commands, and documentation links for rc2.
Document the fresh-database upgrade from 1.0.0rc1, retain the older upgrade paths, and explain rollback and API changes.
Describe rc2 configuration and deployment considerations, including import and sync, notifications, invitations, egress, login, and UI settings.
Update installation steps and post-install checks for rc2, including service types, registry listing, camelCase fields, imports, notifications, and encoded slashes.
Mark the user guide as checked against rc2, remove prerelease notices, and pin its UI documentation links to the deployed release.
Recommend importing a TES service's public service info with sync enabled during onboarding.
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Documentation build overview
|
Linked issuesChecked at commit 1de1ffe #119 docs: update the Cloud Registry pages for rc2 · 5 of 5 met
|
There was a problem hiding this comment.
Hey - I've found 7 issues
Prompt for AI Agents
Please address the comments from this code review:
## Individual Comments
### Comment 1
<location path="docs/operators/cloud-registry.md" line_range="172" />
<code_context>
+
+5. **Empty the database:** scale the app to 0 replicas, wait until its pods
+ are gone, and drop the database `serviceStore`, as the [chart's
+ notes][cr-chart-1.0.0rc2] show. Dropping the database keeps its users,
+ so the Secret with the MongoDB credentials stays valid:
+
</code_context>
<issue_to_address>
**Upgrade removes the app database user**
When the documented upgrade procedure drops `serviceStore`, mongoDB removes users associated with a dropped database, so dropping `serviceStore` deletes the app user whose authentication database is `serviceStore`; keeping the Secret does not recreate that user, and the upgraded registry cannot authenticate to MongoDB.
Use a database-reset procedure that preserves the app user, or recreate the app user with its required roles after dropping `serviceStore`.
</issue_to_address>
### Comment 2
<location path="docs/operators/cloud-registry.md" line_range="177-182" />
<code_context>
+
+ ```bash
+ kubectl scale deploy/cloud-registry --replicas=0 -n <namespace>
+ kubectl wait --for=delete pod -n <namespace> --timeout=120s \
+ -l app.kubernetes.io/instance=cloud-registry,app.kubernetes.io/component=app
+ kubectl exec deploy/cloud-registry-mongodb -n <namespace> -- sh -c 'mongosh serviceStore --quiet \
+ -u "$MONGO_INITDB_ROOT_USERNAME" -p "$MONGO_INITDB_ROOT_PASSWORD" \
+ --authenticationDatabase admin --eval "db.dropDatabase()"'
+ ```
+
+6. **Values file:** nothing must change. It gives no
</code_context>
<issue_to_address>
**Failed pod wait still drops database**
When the app pod has not terminated before the wait times out and the command block is run as a shell script, `kubectl wait` returns nonzero, but the shell continues to `db.dropDatabase()` while an old app pod is still running; writes in the old format can leave data that makes rc2 refuse startup, leaving the registry unavailable.
Make the commands fail fast and abort unless the wait confirms that all app pods are gone.
</issue_to_address>
### Comment 3
<location path="docs/operators/cloud-registry.md" line_range="161" />
<code_context>
+
+ ```bash
+ kubectl create job --from=cronjob/cloud-registry-backup backup-before-1.0.0rc2 -n <namespace>
+ kubectl logs job/backup-before-1.0.0rc2 -n <namespace> --all-containers
+ ```
+
</code_context>
<issue_to_address>
**Upgrade proceeds without a complete backup**
When the backup Job is still dumping or uploading, `kubectl logs` returns before the Job finishes, so the operator can drop `serviceStore` before the dump or upload succeeds and has a confirmed backup for rollback.
Wait for the backup Job to complete successfully and verify the uploaded dump before proceeding.
</issue_to_address>
### Comment 4
<location path="docs/operators/cloud-registry.md" line_range="156" />
<code_context>
+ ```
+
+3. **Back up the database of 1.0.0rc1** (see [Backups](#backups)), e.g.,
+ with a dump by the CronJob, and check that it arrived. Going back to
+ 1.0.0rc1 needs its database as it was:
+
</code_context>
<issue_to_address>
**Rollback backup misses registry writes**
When registry writes occur during the CronJob dump or between the dump and stopping the app, the CronJob dump has no point-in-time consistency, so restoring it can omit or mix writes and fail to return the registry to its pre-upgrade state.
Quiesce registry writes before starting the dump and keep them stopped until the backup is complete.
</issue_to_address>
### Comment 5
<location path="docs/operators/cloud-registry.md" line_range="141" />
<code_context>
+ issuer in `LOGIN_PROVIDERS` and `LOGIN_REDIRECT_URI` must be `https`
+ URLs, as they are in [Settings](#settings); the front end refuses to
+ start otherwise.
+2. **Export what is registered**, as a reference for registering it again
+ (the lists are public). Roles and invitations aren't public, so owners
+ share their services again after the upgrade:
</code_context>
<issue_to_address>
**Changes after export disappear**
When users or API clients write after the public lists are exported and before the app is stopped, the export omits those changes, and dropping `serviceStore` loses them without a re-registration reference.
Stop registry writes before exporting, or repeat the export after writes have been stopped and before dropping `serviceStore`.
Also at `docs/operators/cloud-registry.md:146`, `docs/operators/cloud-registry.md:165`, `docs/operators/cloud-registry.md:176`.
</issue_to_address>
### Comment 6
<location path="docs/operators/cloud-registry.md" line_range="142" />
<code_context>
+ URLs, as they are in [Settings](#settings); the front end refuses to
+ start otherwise.
+2. **Export what is registered**, as a reference for registering it again
+ (the lists are public). Roles and invitations aren't public, so owners
+ share their services again after the upgrade:
+
</code_context>
<issue_to_address>
**Pending registrations lack recovery references**
When the registry contains pending services or service types, the unauthenticated public exports omit pending records, so the reference files do not capture them; step 10 only asks operators of exported services to register again, and dropping `serviceStore` loses the pending records.
Export pending services and service types through an authorized method and include them in the recovery instructions before dropping `serviceStore`.
Also at `docs/operators/cloud-registry.md:147`, `docs/operators/cloud-registry.md:149`.
</issue_to_address>
### Comment 7
<location path="docs/operators/cloud-registry.md" line_range="180" />
<code_context>
+ kubectl wait --for=delete pod -n <namespace> --timeout=120s \
+ -l app.kubernetes.io/instance=cloud-registry,app.kubernetes.io/component=app
+ kubectl exec deploy/cloud-registry-mongodb -n <namespace> -- sh -c 'mongosh serviceStore --quiet \
+ -u "$MONGO_INITDB_ROOT_USERNAME" -p "$MONGO_INITDB_ROOT_PASSWORD" \
+ --authenticationDatabase admin --eval "db.dropDatabase()"'
+ ```
</code_context>
<issue_to_address>
**MongoDB password exposed in process arguments**
When an actor with process-inspection access to the MongoDB container observes the command while it runs, `mongosh` receives the MongoDB root password as the value of `-p`, so anyone able to inspect process arguments in the MongoDB container can read the credential while the command runs.
Pass the password through a protected temporary config file or another mechanism that does not place it in process arguments.
</issue_to_address>Sourcery assessment
Approval pending. 7 findings to address first.
Blocking findings: docs/operators/cloud-registry.md:172, docs/operators/cloud-registry.md:182, docs/operators/cloud-registry.md:161, docs/operators/cloud-registry.md:156, docs/operators/cloud-registry.md:141, and 2 more
Reorder the upgrade from 1.0.0rc1: stop the front end, export, stop the app, then back up, so that the backup holds everything. Wait for the backup job to complete, drop the database only if no pod of the app runs, and export the pending services and types from GET /approvals, which the public lists leave out (review by Sourcery). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_011FSoqMpmDCfbACLj3uy6xV
Record the maintainer's decisions for the deployment: keep keep_expired_days at 30 and the UI's access dialog defaults; leave the egress NetworkPolicy off for now, with what it restricts, why it stays off on the first deployment on de.NBI's cluster and how to enable it; list the registry itself as a regular installation and upgrade step, with how to do it and a check. Pin the UI docs link in packages.md to v1.0.0-rc2. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_011FSoqMpmDCfbACLj3uy6xV
Summary
Moves the Cloud Registry pages to Cloud Registry v1.0.0rc2 (chart
cloud-registry-1.0.0-rc2.tgz) and Cloud Registry UI v1.0.0-rc2, which the deployment moves to with a fresh database.docs/operators/cloud-registry.md:v1.0.0rc2) and the UI's docs (v1.0.0-rc2); FOCA's NetworkPolicy peers link tochart-v0.4.0(the chart is on foca-common 0.4.0).serviceStore(as the chart's notes show), values file unchanged (why), outgoing connections,helm upgrade, UI image, register again; API/log changes for scripts and alerts; going back.keep_expired_days), the egress NetworkPolicy (off for now), encoded slashes at the API's ingress, the UI's post-logout redirect URI,httpslogin settings,NEXT_PUBLIC_ACCESS_PAGE_SIZEandNEXT_PUBLIC_INVITATION_LABEL_REQUIRED, HSTS and timeouts.registrationRules,adminAvailable),serviceInfoSync, the startup warning about organization fields is gone in rc2, import/bell and encoded-slash checks.docs/operators/using-cloud-registry.md: the "coming with 1.0.0-rc2" notes go away (released now), replaced by a "Last checked against" note. Links to the UI's docs are now pinned to the deployed version,v1.0.0-rc2, notlatest(decision by uniqueg: links from this repo to the UI's docs are pinned to the deployed version).using-cloud-registry-ui.md(from #117) already pins them.docs/operators/onboarding.md: step 3 recommends importing from the service info, with sync on, as "Using the Cloud Registry" does.The page keeps the
<digest>placeholder for the UI image, as before. For reference,docker buildx imagetools inspectgivessha256:6aac3de13efd7c85649c3285046ece8f43988d70444f1470683ee00aa789bbabforcloud-registry-ui:1.0.0-rc2.Closes #119
Light lane: docs only.
Verification
python scripts/check_names.py: passesmkdocs build --strict: builds without warningspytest: 25 passed, 100% coveragev1.0.0rc2,v1.0.0-rc2) resolve, with their anchors (checked with a script). The FOCAchart-v0.4.0link: the headingNetworkPolicy peersexists in that file.gh attestation verifypasses forcloud-registry-1.0.0-rc2.tgzandoci://docker.io/elixircloud/cloud-registry:1.0.0rc2(source refrefs/tags/v1.0.0rc2), and for the UI image by digest (source refrefs/tags/v1.0.0-rc2).end_session_endpointandclient_secret_post, as the page says.origin/main(with docs: add a Cloud Registry UI user page #117) without conflicts; the checks above ran after the merge.CI passed, Docs, Test, PR title, CodeQL, Read the Docs, Sourcery). On 7a2d457, Sourcery opened no new threads. After 7a2d457, the checks,mkdocs build --strictand the link check of the new links (/service-info/listingin the registry's API docs and in the UI's user guide) ran again.GET /approvals). Declined 2 with reasons in their threads:dropDatabase()keeps the database's users (MongoDB docs, chart notes), and the root password inmongosharguments is expanded inside the MongoDB container, whose processes have it in their environment anyway.Decisions (from the maintainer)
Applied in 7a2d457:
keep_expired_days: keep the default, 30 days. The page states it as the deployment's choice.egressNetworkPolicy: stays off in the values file. The new subsection "The app's outgoing connections" explains what the policy would restrict, why the deployment leaves it off for now (chart default; first deployment on de.NBI's cluster; needs a network plugin that enforces NetworkPolicies, and exact rules for DNS, MongoDB, LS Login and public port 443 for importing service info), and how to enable it later, with the values keys and checks. The facts come from the chart's README and values at v1.0.0rc2.NEXT_PUBLIC_INVITATION_LABEL_REQUIRED=trueandNEXT_PUBLIC_ACCESS_PAGE_SIZE=5.PUT /service-info/listingin admin mode), what the entry is, and why it can be refused. Check 11 verifies the entry and its verification.Also in 7a2d457:
docs/partners-and-developers/packages.mdnow links the UI docs atv1.0.0-rc2instead oflatest, like the other UI links.🤖 Generated with Claude Code
https://claude.ai/code/session_011FSoqMpmDCfbACLj3uy6xV