Repository navigation
chore: prepare release 0.5.0 - #253
Merged
Merged
Conversation
Set the version and date in CITATION.cff for release 0.5.0 (#249). Co-Authored-By: Claude Opus 5.5 <[email protected]>
The workflow was renamed in #234, so releases after 0.4.0 are signed by release.yml; 0.4.0 keeps release.yaml (#249). Co-Authored-By: Claude Opus 5.5 <[email protected]>
Draft the curated notes, with TODO placeholders for #245, #246 and #247, and link them from the changelog and the nav. Reword a line of the upgrade steps that hard-coded the release version (#249). Co-Authored-By: Claude Opus 5.5 <[email protected]>
Reviewer's GuidePrepares the 0.5.0 release by updating citation metadata, adding curated release notes and navigation links, documenting the renamed release signer workflow, and expanding upgrade and access-control guidance for the new service-type and authentication behavior. Sequence diagram for authenticated public readssequenceDiagram
participant Client
participant Registry
participant IdentityProvider
Client->>Registry: GET /services with optional bearer token
Registry->>IdentityProvider: validate_token()
alt valid token
IdentityProvider-->>Registry: authenticated identity
Registry-->>Client: 200 visible services and pending resources
else invalid or expired token
IdentityProvider-->>Registry: invalid_token
Registry-->>Client: 401 Unauthorized
else provider unavailable
IdentityProvider-->>Registry: validation failure
Registry-->>Client: 200 anonymous view
end
File-Level Changes
Assessment against linked issues
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Release notes and upgrade steps for #246 (PR #254): the limit of unused types per user, rate limits, and the new indexes and pending flags that the app sets up on startup (#249). Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## dev #253 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 17 17
Lines 1757 1757
=========================================
Hits 1757 1757 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Replace the TODO for #245 in the release notes: public reads accept an optional token and apply the user's visibility rules, invalid tokens get 401, an unavailable identity provider means anonymous, and pending services can't be verified. Add the upgrade step for overlays with their own x-bearerInfoFunc, and a paragraph on optional tokens to the access control docs. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Replace the TODO for #247 in the release notes with a Features bullet: 409 responses have a stable code that tells them apart, listed in the spec as an extensible enum (ConflictError). No upgrade step: detail texts and status codes are unchanged, the member is additive. Co-Authored-By: Claude Opus 5.5 <[email protected]>
uniqueg
marked this pull request as ready for review
October 26, 2026 16:22
There was a problem hiding this comment.
Hey - I've found 5 issues
Prompt for AI Agents
Please address the comments from this code review:
## Individual Comments
### Comment 1
<location path="docs/releases/0.5.0.md" line_range="58-61" />
<code_context>
+ clients whether the current user may add types (`may_add_service_types`)
+ and whether their new types are pending (`service_types_pending`) (#235,
+ #241; #238, #244)
+- Service types: users other than admins may add at most
+ `custom.access_control.max_unused_service_types` types that no service has
+ (default `10`, `null` for no limit, `0` for admins only), in every mode;
+ further types are rejected (`409 Conflict`). Pending services carry an
+ internal, indexed flag, so that reads don't grow with the number of pending
+ types; the app creates the new indexes and reconciles the flags on startup.
</code_context>
<issue_to_address>
**Concurrent additions exceed type limit**
When multiple requests from one non-admin user add distinct unused types while the count is below the configured limit, `check_unused_types()` reads the same under-limit count before either request stores its type, so concurrent `POST /services/types` or service registrations both pass and leave the user above the documented maximum.
Make the unused-type count check and type insertion atomic for each user.
Also at `docs/upgrading.md:31-34`.
</issue_to_address>
### Comment 2
<location path="docs/access-control.md" line_range="27-32" />
<code_context>
-d @service.json
```
+Public reads accept an optional token: with one, they apply the user's
+visibility rules (e.g., they show the user's
+[pending](api.md#pending-approvals) types and services). Invalid or expired
+tokens are rejected as below; if the token can't be validated for other
+reasons (e.g., the identity provider is unavailable), the request is treated
+as anonymous (see the [API](api.md)).
+
Requests without a valid token are rejected with `401 Unauthorized` and a
</code_context>
<issue_to_address>
**Service info ignores invalid tokens**
When a client sends an invalid token to `GET /service-info`, when a client sends an invalid token to `GET /service-info`, FOCA serves the response without `check_read_token` validating it, so the client gets service info rather than the promised `401` and may not log in again.
Limit the paragraph's token behavior to the public registry reads that validate optional tokens, explicitly excluding `GET /service-info`.
</issue_to_address>
### Comment 3
<location path="docs/releases/0.5.0.md" line_range="53-54" />
<code_context>
+ stored types), and `moderated` any authenticated user, but the types of
+ users other than admins, and the services that have them, are pending until
+ an admin approves them (`PUT /services/types/approval`). Pending types and
+ services are only shown to admins and to the users who added them or have a
+ role on them; `GET /approvals` lists those a user may see. `GET /me` tells
+ clients whether the current user may add types (`may_add_service_types`)
+ and whether their new types are pending (`service_types_pending`) (#235,
</code_context>
<issue_to_address>
**Role holders appear to see pending types**
When a user has a role on a pending service but did not add its pending type, a user with a role on a pending service can see that service but does not thereby see its pending type in `GET /services/types` or `GET /approvals`. The combined wording obscures these different visibility rules and misleads clients about which pending types they can discover.
Document type visibility and service visibility separately: admins see all; other users see types they added and services they have a role on.
</issue_to_address>
### Comment 4
<location path="docs/access-control.md" line_range="32" />
<code_context>
+[pending](api.md#pending-approvals) types and services). Invalid or expired
+tokens are rejected as below; if the token can't be validated for other
+reasons (e.g., the identity provider is unavailable), the request is treated
+as anonymous (see the [API](api.md)).
+
Requests without a valid token are rejected with `401 Unauthorized` and a
</code_context>
<issue_to_address>
**Anonymous reads appear to require login**
When a reader interprets the authentication guidance as applying to public reads, the following blanket statement that requests without a valid token are rejected contradicts this paragraph: callers may conclude that tokenless public reads return `401` and unnecessarily require authentication.
Qualify the rejection statement to apply to operations that require authentication, while clarifying that public reads without a token remain anonymous.
</issue_to_address>
### Comment 5
<location path="docs/upgrading.md" line_range="36" />
<code_context>
+ types](configuration.md#service-types)); change the limit in the same
+ rollout if needed, and rate-limit `POST /services/types` and `POST
+ /services` at the ingress (see [Rate limits](deployment.md#rate-limits)).
+5. Overlays that set their own `x-bearerInfoFunc` (in
+ `api.specs.registry.add_security_fields`) keep working, but each token
+ sent with a public read is then validated twice. The base config now
</code_context>
<issue_to_address>
**Valid tokens are not validated twice**
When an overlay keeps a custom `x-bearerInfoFunc` that successfully validates a valid token sent with a public read, `check_read_token` skips fallback validation when Connexion supplies `token_info`, so the guide's twice-validated claim is false for these tokens and gives operators an incorrect expectation about identity-provider load or prompts them to remove a working override.
Qualify the guidance to explain that fallback validation is skipped when Connexion supplies `token_info`.
Also at `docs/upgrading.md:38-39`.
</issue_to_address>Sourcery assessment
Approval pending. 1 finding to address first.
Blocking findings: docs/releases/0.5.0.md:61
Address Sourcery's review of #253: name the public reads that accept optional tokens (not GET /service-info), limit the 401 rule to operations that require login, tell type and service visibility of pending entries apart, and say that only tokens rejected by an overlay's own x-bearerInfoFunc are validated twice. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Prepares release 0.5.0. #245, #246 and #247 are merged (PRs #255, #254,
#258) and in the notes. #252 (dot segments as principals) stays out
of 0.5.0: dev is frozen for the release.
CITATION.cff: version 0.5.0, date 2026-10-26 (scripts/citation.py set).Update the date if the release happens later.
docs/releases/0.5.0.md: curated notes in the agreed format (intro withthe link to the upgrade steps, then Breaking changes, Features, Fixes,
Documentation, Maintenance). As for 0.4.0, the file holds only the curated
part: the release workflow appends
## Commits(GitHub's generated notes)and the Full Changelog line (
scripts/release_notes.py body).docs/operations.md: the signer identities of releases after 0.4.0 userelease.yml(renamed in ci: align workflow and job names #234); the note says that 0.4.0 was signed byrelease.yaml.docs/upgrading.md: one line hard-coded "since 0.5.0", whichtest_release_version_not_hard_codedrejects once the version is 0.5.0;reworded in the page's "Previously, ..." style.
Before merging
TODObullets are replaced (noTODOleft; release readinesspasses).
2026-10-26 (17 PRs, fix: publish releases after uploading assets #219 to feat: tell conflicts apart by code #258): all covered.
docs/upgrading.mdneeds no step for feat: tell 409 conflicts apart #247: thecodemember isadditive, and the status codes and
detailtexts are unchanged.CITATION.cffif the release happens after2026-10-26.
Verification
Local, on the branch head:
release_version.py outputs v0.5.0(version 0.5.0,chart 0.5.0, prerelease true),
citation.py check 0.5.0,release_notes.py require 0.5.0andcheck docs/releases/0.5.0.md,check_release_pins.py,chart_readme.pyon a copy of the chart README(links switch to v0.5.0),
release_version.py latest(true with v0.5.0among the tags) and
previous(v0.4.0),release_notes.py bodywith thegenerated notes since v0.4.0,
release_assets.py state(none): all pass.package/lint (no helm locally), image build/push, Trivy, attestations,
cosign, the
releaseenvironment, immutable-release behaviour, Zenodo.release.yml changed since 0.4.0 (fix: publish releases after uploading assets #219, ci: start notes at the first release #225, ci: align workflow and job names #234, docs: close the 0.5.0 review gaps #251), so a fork dry
run with a test tag is advisable before tagging; steps are prepared.
pre-commit run --all-files: passed.coverage run -m pytest: all passed, coverage 100%; Helm tests skipped(helm not installed locally; CI runs them).
mkdocs build --strict: passed.release_notes.py require 0.5.0andcheck docs/releases/0.5.0.md,citation.py check 0.5.0,the version-mention, version, citation and docs-hook tests (218 passed),
mkdocs build --strict: all pass. CI on 91cce10: all checks passed(CI passed, Release readiness, Docs, Read the Docs).
Light lane: docs, release notes and version metadata only; I reviewed the
diff myself.
Declined review findings
limit: a known, documented trade-off (docstring of
check_unused_types(), configuration page), bounded by the rate limitsthat the notes and upgrade steps ask for; not changed for 0.5.0.
Other Sourcery findings (4 low, wording of tokens, visibility and
x-bearerInfoFunc) are fixed in 78a4e00.Open questions
None.
Closes #249
🤖 Generated with Claude Code