Skip to content

docs: update the Cloud Registry pages for rc2 - #120

Merged
uniqueg merged 4 commits into
mainfrom
docs/119-cloud-registry-rc2
Nov 10, 2026
Merged

uniqueg merged 4 commits into
mainfrom
docs/119-cloud-registry-rc2

Conversation

@uniqueg

@uniqueg uniqueg commented Nov 10, 2026 •

Copy link
Copy Markdown
Member

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:

  • Versions, chart, images, verification commands, "Last checked against", and all links to the registry's docs (v1.0.0rc2) and the UI's docs (v1.0.0-rc2); FOCA's NetworkPolicy peers link to chart-v0.4.0 (the chart is on foca-common 0.4.0).
  • New section Upgrading from 1.0.0rc1: fresh database, no migration; registry first, then the UI, with the UI stopped during the registry upgrade (UI 1.0.0-rc2 doesn't work with registry 1.0.0rc1). Steps: register the post-logout redirect URI with LS Login, export the public lists, back up, stop the UI, drop 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.
  • The older paths (0.4.0 → 0.5.0 → 0.6.0 → 1.0.0rc1) stay, with a note that 1.0.0rc2 needs a fresh database from any earlier version.
  • New settings of rc2, all on their defaults (the values file sets nothing new, so it still works for 1.0.0rc1): Service info import and sync, Notifications, kept invitations (keep_expired_days), the egress NetworkPolicy (off for now), encoded slashes at the API's ingress, the UI's post-logout redirect URI, https login settings, NEXT_PUBLIC_ACCESS_PAGE_SIZE and NEXT_PUBLIC_INVITATION_LABEL_REQUIRED, HSTS and timeouts.
  • Installation: add service types after the fresh install, then list the registry itself.
  • Checks: camelCase names (registrationRules, adminAvailable), serviceInfoSync, the startup warning about organization fields is gone in rc2, import/bell and encoded-slash checks.
  • Wording: "leaked secret" and "attack surface" rephrased.

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, not latest (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 inspect gives sha256:6aac3de13efd7c85649c3285046ece8f43988d70444f1470683ee00aa789bbab for cloud-registry-ui:1.0.0-rc2.

Closes #119

Light lane: docs only.

Verification

  • python scripts/check_names.py: passes
  • mkdocs build --strict: builds without warnings
  • pytest: 25 passed, 100% coverage
  • External links of the three changed pages, anchors included: all registry and UI doc links (v1.0.0rc2, v1.0.0-rc2) resolve, with their anchors (checked with a script). The FOCA chart-v0.4.0 link: the heading NetworkPolicy peers exists in that file.
  • The verification commands of the page, run against the release: gh attestation verify passes for cloud-registry-1.0.0-rc2.tgz and oci://docker.io/elixircloud/cloud-registry:1.0.0rc2 (source ref refs/tags/v1.0.0rc2), and for the UI image by digest (source ref refs/tags/v1.0.0-rc2).
  • LS Login's discovery document lists an end_session_endpoint and client_secret_post, as the page says.
  • Merged origin/main (with docs: add a Cloud Registry UI user page #117) without conflicts; the checks above ran after the merge.
  • CI on 1de1ffe and on 7a2d457: all checks pass (CI passed, Docs, Test, PR title, CodeQL, Read the Docs, Sourcery). On 7a2d457, Sourcery opened no new threads. After 7a2d457, the checks, mkdocs build --strict and the link check of the new links (/service-info/listing in the registry's API docs and in the UI's user guide) ran again.
  • Sourcery's review: 7 threads. Fixed 5 in 1de1ffe (the upgrade now stops the front end, exports, stops the app, backs up, waits for the backup job, and drops the database only if no app pod runs; pending services and types are exported from GET /approvals). Declined 2 with reasons in their threads: dropDatabase() keeps the database's users (MongoDB docs, chart notes), and the root password in mongosh arguments is expanded inside the MongoDB container, whose processes have it in their environment anyway.

Decisions (from the maintainer)

Applied in 7a2d457:

  1. keep_expired_days: keep the default, 30 days. The page states it as the deployment's choice.
  2. 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.
  3. UI defaults: keep NEXT_PUBLIC_INVITATION_LABEL_REQUIRED=true and NEXT_PUBLIC_ACCESS_PAGE_SIZE=5.
  4. Self-entry: admins list the registry among its own services. This is now a regular step: Installation step 7, and upgrade step 12. The new section "Listing the registry itself" covers how to do it (front end, or PUT /service-info/listing in 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.md now links the UI docs at v1.0.0-rc2 instead of latest, like the other UI links.

🤖 Generated with Claude Code

https://claude.ai/code/session_011FSoqMpmDCfbACLj3uy6xV

uniqueg and others added 2 commits November 10, 2026 14:37
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]>
@uniqueg uniqueg self-assigned this Nov 10, 2026
@sourcery-ai

sourcery-ai Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Reviewer's Guide

Documentation

Update the registry and UI release references, versions, chart and image commands, and documentation links for rc2.

  • docs/operators/cloud-registry.md L24-39, L428-440, L1779-1854 (+1 small edits)
  • docs/partners-and-developers/packages.md L36

Document the fresh-database upgrade from 1.0.0rc1, retain the older upgrade paths, and explain rollback and API changes.

  • docs/operators/cloud-registry.md L107-276, L375-378, L1754-1759 (+1 small edits)

Describe rc2 configuration and deployment considerations, including import and sync, notifications, invitations, egress, login, and UI settings.

  • docs/operators/cloud-registry.md L678-726, L1002-1055, L1255-1271 (+13 small edits)

Update installation steps and post-install checks for rc2, including service types, registry listing, camelCase fields, imports, notifications, and encoded slashes.

  • docs/operators/cloud-registry.md L1119-1162, L1470-1481, L1521-1532 (+8 small edits)

Mark the user guide as checked against rc2, remove prerelease notices, and pin its UI documentation links to the deployed release.

  • docs/operators/using-cloud-registry.md L12-16, L116 (removed lines), L149-150

Recommend importing a TES service's public service info with sync enabled during onboarding.

  • docs/operators/onboarding.md L66-70

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

@read-the-docs-community

read-the-docs-community Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

Documentation build overview

📚 elixir-on-cloud-docs | 🛠️ Build #35786506 | 📁 Comparing 7a2d457 against latest (18ad0c8)

  🔍 Preview build  

3 files changed
± operators/cloud-registry/index.html
± operators/onboarding/index.html
± operators/using-cloud-registry/index.html

@uniqueg
uniqueg marked this pull request as ready for review November 10, 2026 13:40
@sourcery-ai

sourcery-ai Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Linked issues

Checked at commit 1de1ffe

#119 docs: update the Cloud Registry pages for rc2 · 5 of 5 met

# Requirement Status Notes
1 Update versions, chart, images and digests to Cloud Registry 1.0.0rc2 and Cloud Registry UI 1.0.0-rc2. ✅ Met The chart, image tags and verification commands use rc2; the UI image remains pinned by digest using the documented <digest> placeholder.
2 Document installation with a fresh database and the steps from 1.0.0rc1, upgrading the registry before the UI. ✅ Met The page explains that the fresh install starts empty and adds an rc1 upgrade procedure covering the database reset, registry-first upgrade and subsequent UI deployment.
3 Document the new settings of both releases, with the values for this deployment. ✅ Met The page covers the rc2 registry and UI settings and states which defaults apply because the deployment's values file does not set them.
4 Update “Last checked against” and link to the release notes and upgrade guides. ✅ Met The operator and usage pages identify rc2 as the checked release, and the operator page links to the rc2 release notes and upgrade guidance.
5 Update “Using the Cloud Registry” and other pages that name versions or describe behaviour changed in rc2. ✅ Met The usage page removes the unreleased notices and pins UI documentation links to rc2; onboarding now recommends service-info import with sync enabled.

@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 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


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

Comment thread docs/operators/cloud-registry.md Resolved
Comment thread docs/operators/cloud-registry.md Resolved
Comment thread docs/operators/cloud-registry.md Resolved
Comment thread docs/operators/cloud-registry.md Resolved
Comment thread docs/operators/cloud-registry.md Resolved
Comment thread docs/operators/cloud-registry.md Resolved
Comment thread docs/operators/cloud-registry.md Resolved
uniqueg and others added 2 commits November 10, 2026 14:47
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
@uniqueg
uniqueg merged commit 0ea20dd into main Nov 10, 2026
14 of 17 checks passed
@uniqueg
uniqueg deleted the docs/119-cloud-registry-rc2 branch November 10, 2026 14:32
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 the Cloud Registry pages for rc2

1 participant