Repository navigation
docs: add the upgrade path from 0.3.0 - #368
Conversation
Start the upgrade guide with a checklist for upgrades from 0.3.0 and move the older material under "From versions before 0.3.0". State the change of the default routing and how to keep distance routing with a derived image (once the foca-plugins releases support FOCA 0.19). Also fix the docs findings of the 0.4.0 pre-release review: plugins are fully trusted code, registry entries share proTES' token, what provenance records hold (SecretStr), the public backend list in the service info, what GET /plugins lists, the loop detection condition, outdated FOCA versions, the keep_group_subjects warning, and that name_prefix matches the submitted name. Closes #362 Closes #363 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Reviewer's GuideThis documentation-only PR adds the complete upgrade path from proTES 0.3.0 to 0.4.0, including FOCA 0.19, plugin-based routing, backend and database migrations, API/library changes, and compatibility constraints. It also documents newly identified security, privacy, and operational caveats and refreshes deployment/API examples and release requirements. Flow diagram for the proTES 0.3.0 to 0.4.0 upgrade pathflowchart TD
A[proTES 0.3.0 deployment] --> B[Deploy matching 0.4.0 image and Helm chart]
B --> C[Replace custom.middlewares with plugins]
C --> D[Migrate TES configuration to custom.tes.backends]
D --> E[Update access-control rules]
E --> F[Grant MongoDB createIndex and add new collections]
F --> G[Review client and library API changes]
G --> H[proTES 0.4.0 on FOCA 0.19]
Flow diagram for routing choices after the 0.4.0 upgradeflowchart LR
A[Task] --> B{Configured routing}
B --> C[foca.routing.ordered]
C --> D[Backends in custom.tes.backends order]
B --> E[Distance and random plugins]
E --> F[Derived image with FOCA 0.19-compatible plugin releases]
F --> G[GeoIP database for distance routing]
D --> H[Next backend on rejection]
G --> H
File-Level Changes
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## dev #368 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 23 23
Lines 2234 2234
=========================================
Hits 2234 2234 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Hey - I've reviewed your changes and they look great!
Linked issues
#362 docs: add the upgrade path from 0.3.0 · 5 of 5 met
| # | Requirement | Status | Notes |
|---|---|---|---|
| 1 | Put the required upgrades from 0.3.0 in a checklist at the top of the guide. | ✅ Met | The checklist covers the image and chart, middleware-to-plugin changes, routing, TES backends, access-control rules, database collections and permissions, client changes, and library API changes. |
| 2 | Move the older upgrade material under a section for versions before 0.3.0. | ✅ Met | The guide introduces “From versions before 0.3.0” and places the earlier upgrade material beneath it. |
| 3 | Explain the routing change and how to keep distance routing with a derived image. | ✅ Met | The guide describes the ordered failover default and the derived-image setup, including the GeoIP database needed by default. |
| 4 | Correct the wording about publication of the foca-plugins routing plugins. | ✅ Met | The docs state that version 0.1.0 supports FOCA 0.18 only, is incompatible with this release’s FOCA 0.19 image, and point to the issue tracking compatible releases; examples use versions above 0.1.0. |
| 5 | Pass mkdocs build --strict. |
✅ Met | The PR description reports that mkdocs build --strict passed. |
#363 docs: fix 0.4.0 review findings in the docs · 9 of 9 met
| # | Requirement | Status | Notes |
|---|---|---|---|
| 1 | Document that plugins are fully trusted in-process code and recommend reviewed, hash-pinned plugins. | ✅ Met | The docs explain that plugins can access proTES credentials, tokens, and the database; API limits guard against mistakes, and operators should review and hash-pin plugins. |
| 2 | Document the shared client-credentials token exposure for registry-verified TES instances. | ✅ Met | docs/access-control.md explains the default client_credentials behavior, lack of a per-instance audience, and the trust required in registry administrators. |
| 3 | Qualify the provenance personal-data claim and document the SecretStr requirement. |
✅ Met | docs/operations.md explains that plugin parameters and annotations are recorded, and requires secret parameters to use pydantic.SecretStr. |
| 4 | Warn that public service info lists all TES instances and document the opt-out. | ✅ Met | docs/configuration.md warns that unauthenticated service info exposes TES instance details and that hiding backends also hides gateway. |
| 5 | Clarify that GET /plugins lists the default pipeline only for callers who may choose pipelines. |
✅ Met | docs/api.md and docs/plugins.md describe the conditional listing and its relevant configuration. |
| 6 | Document the condition required for loop detection. | ✅ Met | docs/upgrading.md states that server.public_url or plugins.gateway_id must be set. |
| 7 | Update the outdated FOCA-version documentation in the chart schema and README. | ✅ Met | The schema comment and chart README are updated for the FOCA 0.19 release. |
| 8 | Document that the keep_group_subjects startup warning is harmless for proTES. |
✅ Met | docs/access-control.md explains the warning and links to the FOCA issue. |
| 9 | Document that name_prefix matches the submitted task name. |
✅ Met | docs/api.md says the filter uses the submitted name before plugins may rename it. |
Sourcery assessment
Approved.
Summary
Docs findings of the 0.4.0 pre-release review (M2 and the docs lows).
Upgrade guide (M2, #362):
docs/upgrading.mdstarts with "To version 0.4.0", a checklist for upgrades from 0.3.0 (image and chart on FOCA 0.19,custom.middlewaresrefused, the routing default,custom.tes.backends, the new rulesusers-list-plugins/users-get-plugins/owners-get-provenance/admins-get-provenance, the new collections and thecreateIndexright, the droppedmiddlewarescollection, client-visible changes, library API changes), followed by the sections new in 0.4.0. Everything older is under "From versions before 0.3.0" (heading forms thattests/test_version_mentions.pyallows; old anchors kept).foca.routing.ordered; how to keep distance routing with a derived image and the foca-plugins plugins (incl. the GeoIP database the distance plugin needs by default).foca-plugin-tes-routing-distance0.1.0 andfoca-plugin-generic-routing-random0.1.0 are published on PyPI, but requirefoca>=0.18.0,<0.19, so they can't be installed into 0.4.0 images (FOCA 0.19). The docs say so and point to build: support FOCA 0.19 foca-plugins#32; examples pin>0.1.0. "Not published yet" wording is fixed indocs/plugin-images.md,docs/plugins.mdand thevalues.yamlexample.server.public_urlorplugins.gateway_id).Docs lows (#363):
docs/plugins.md,docs/access-control.md): they can read proTES' credentials; the API limits guard against mistakes only.client_credentials: every registry-verified TES instance gets proTES' token, without per-instance audience (docs/access-control.md).SecretStr(docs/operations.md).docs/configuration.md).GET /pluginslists plugins and the default pipeline only for callers who may choose pipelines (docs/plugins.md,docs/api.md).deployment/values.schema.json($comment) anddeployment/README.md.keep_group_subjectsstartup warning is documented as harmless (FOCA side: fix: group-subject warning, listing media type foca#577).name_prefixmatches the name as submitted (docs/api.md).Code lows are tracked in #364, design questions in #366; the CI pip pin belongs to #336.
Closes #362
Closes #363
Light lane: docs and comments only (Markdown, a YAML comment in
values.yaml, the$commentof the values schema); no behaviour change. Diff reviewed myself.Verification
mkdocs build --strict: passed.pytest -k "version_mentions or chart_readme or config_examples or docs_hooks or chart": 200 passed, 174 skipped (Helm chart tests: nohelmlocally; CI runs them).pre-commit run --files <changed files>: passed.CI passed, incl. Chart, Docs, smoke test, tests); re-run after mergingdev.Not touched
CITATION.cff,docs/releases/0.4.0.md, the release verification commands indocs/operations.md,LAST_RELEASE_PROTES(M1, release-prep PR),.github/workflows/, the default routing.🤖 Generated with Claude Code
Summary by Sourcery
Provide comprehensive documentation for upgrading proTES deployments to 0.4.0 and clarify the associated security, routing, plugin, and deployment requirements.
Enhancements:
Deployment:
Documentation: