Skip to content

chore: prepare release 0.5.0 - #253

Merged
uniqueg merged 10 commits into
devfrom
chore/release-0.5.0
Oct 26, 2026
Merged

uniqueg merged 10 commits into
devfrom
chore/release-0.5.0

Conversation

@uniqueg

@uniqueg uniqueg commented Oct 26, 2026 •

Copy link
Copy Markdown
Member

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 with
    the 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).
  • Linked from the changelog and the nav.
  • docs/operations.md: the signer identities of releases after 0.4.0 use
    release.yml (renamed in ci: align workflow and job names #234); the note says that 0.4.0 was signed by
    release.yaml.
  • docs/upgrading.md: one line hard-coded "since 0.5.0", which
    test_release_version_not_hard_coded rejects once the version is 0.5.0;
    reworded in the page's "Previously, ..." style.

Before merging

Verification

Local, on the branch head:

  • Release scripts: 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.0 and check docs/releases/0.5.0.md,
    check_release_pins.py, chart_readme.py on a copy of the chart README
    (links switch to v0.5.0), release_version.py latest (true with v0.5.0
    among the tags) and previous (v0.4.0), release_notes.py body with the
    generated notes since v0.4.0, release_assets.py state (none): all pass.
  • Not covered locally: tag signature and CI-run API checks, Helm
    package/lint (no helm locally), image build/push, Trivy, attestations,
    cosign, the release environment, 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.
  • After merging dev (feat: tell conflicts apart by code #258) and the feat: tell 409 conflicts apart #247 bullet: release_notes.py require 0.5.0 and check 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

  • Sourcery (medium), concurrent additions can exceed the unused-types
    limit: a known, documented trade-off (docstring of
    check_unused_types(), configuration page), bounded by the rate limits
    that 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

uniqueg and others added 3 commits October 26, 2026 03:15
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]>
@sourcery-ai

sourcery-ai Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Reviewer's Guide

Prepares 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 reads

sequenceDiagram
    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
Loading

File-Level Changes

Change Details Files
Adds the curated 0.5.0 release notes covering user-facing breaking changes, new service-type and access-control capabilities, fixes, documentation, and maintenance work.
  • Documents service-type persistence, moderation modes, limits, pending visibility, optional-token public reads, conflict codes, timestamp and environment behavior, and upgrade requirements.
  • Separates curated notes from generated commit notes and links the release from the changelog and documentation navigation.
docs/releases/0.5.0.md
docs/changelog.md
mkdocs.yml
Updates release and artifact verification documentation for the renamed release workflow.
  • Changes release signer workflow references from release.yaml to release.yml for releases after 0.4.0.
  • Retains an explicit verification exception for the 0.4.0 release signed by release.yaml.
docs/operations.md
Refreshes upgrade guidance for 0.5.0 behavior and configuration changes.
  • Adds rollout steps for unused service-type limits, ingress rate limiting, and bearer-token validation overlays.
  • Documents startup index and pending-state reconciliation and removes a hard-coded release-version reference.
docs/upgrading.md
Aligns access-control documentation with optional bearer-token behavior on public reads.
  • Explains visibility-aware reads for valid tokens and anonymous fallback when token validation is unavailable.
  • Documents rejection behavior for invalid or expired tokens.
docs/access-control.md
Bumps release metadata to version 0.5.0 and the planned release date.
  • Updates the citation version and date for the release.
CITATION.cff

Assessment against linked issues

Issue Objective Addressed Explanation
#249 Set the 0.5.0 version and release date in CITATION.cff. ✅
#249 Add curated 0.5.0 release notes in the agreed format and link them from the changelog and MkDocs navigation. ✅
#249 Document the specified breaking changes and satisfy the release checks and CI acceptance criteria. ✅

Possibly linked issues

  • chore: prepare release 0.5.0 #249: The PR implements the issue’s requested 0.5.0 metadata, release notes, changelog and navigation links, and release checks.
  • #unknown: The PR includes the requested 0.4.0 signing clarification, upgrade-doc updates, release notes, and release-readiness checks, directly addressing the issue’s 0.5.0 review gaps.

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

uniqueg and others added 2 commits October 26, 2026 11:48
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

codecov Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (79fd370) to head (78a4e00).

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

uniqueg and others added 4 commits October 26, 2026 13:48
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
uniqueg marked this pull request as ready for review October 26, 2026 16:22

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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


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

Comment thread docs/releases/0.5.0.md Resolved
Comment thread docs/access-control.md Resolved
Comment thread docs/releases/0.5.0.md Resolved
Comment thread docs/access-control.md Resolved
Comment thread docs/upgrading.md Resolved
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]>
@uniqueg
uniqueg merged commit 2700ed5 into dev Oct 26, 2026
19 checks passed
@uniqueg
uniqueg deleted the chore/release-0.5.0 branch October 26, 2026 18:44
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.

chore: prepare release 0.5.0

1 participant