Skip to content

docs(changelog): complète les entrées 2.9.1 pour les 27 fixes depuis … - #302

Merged
traoreera merged 1 commit into
mainfrom
fix/changelog-2.9.1
Oct 15, 2026
Merged

traoreera merged 1 commit into
mainfrom
fix/changelog-2.9.1

Conversation

@traoreera

@traoreera traoreera commented Oct 15, 2026 •

Copy link
Copy Markdown
Owner

…v2.9.0

Couvre : search_path PostgreSQL fail-closed, tenants réservés refusés, verrou distribué avec jeton de propriétaire, routes reload/load, pool_reset_on_return, allowed_callers restauré, warning , CI PostgreSQL réel. Convertit [Unreleased] en [2.9.1] - 2026-10-15.

Summary by Sourcery

Complete the 2.9.1 changelog with fixes for tenant isolation, IPC routing and authorization, scheduler locking, database pooling, and related reliability issues.

Bug Fixes:

  • Correct tenant isolation across PostgreSQL, cache, scheduler, and nested IPC calls, including fail-closed handling for invalid or unsupported tenant configurations.
  • Reject reserved tenant identifiers at the middleware boundary.
  • Prevent distributed scheduler locks from being released by non-owners and restore lock renewal during long-running jobs.
  • Restore reachability of IPC load and reload routes.
  • Apply connection pool reset settings correctly and restore manifest-based IPC caller permissions.
  • Restore readable warnings for missing environment variables and compatibility for the deprecated RouterIn alias.

CI:

  • Run tenant-isolation integration tests against a real PostgreSQL 16 service.

Documentation:

  • Publish the completed 2.9.1 changelog release entry dated 2026-10-15.

…v2.9.0

Couvre : search_path PostgreSQL fail-closed, tenants réservés refusés,
verrou distribué avec jeton de propriétaire, routes reload/load,
pool_reset_on_return, allowed_callers restauré, warning ,
CI PostgreSQL réel. Convertit [Unreleased] en [2.9.1] - 2026-10-15.
@sourcery-ai

sourcery-ai Bot commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor
Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

Converts the changelog’s Unreleased section into a dated 2.9.1 release entry and consolidates the implementation details for 27 fixes, emphasizing tenant isolation, PostgreSQL validation, IPC behavior, scheduler locking, routing, pool reset configuration, warnings, and real PostgreSQL CI coverage.

Sequence diagram for fail-closed PostgreSQL tenant isolation

sequenceDiagram
    participant Request
    participant TenantMiddleware
    participant TenantAwareDB
    participant PostgreSQL

    Request->>TenantMiddleware: validate tenant header or subdomain
    alt invalid reserved tenant
        TenantMiddleware-->>Request: 400 invalid_tenant
    else valid tenant
        TenantMiddleware->>TenantAwareDB: after_begin
        TenantAwareDB->>PostgreSQL: set_config
        TenantAwareDB->>PostgreSQL: re-read search_path
        alt search_path not persisted
            TenantAwareDB-->>Request: RuntimeError
        else search_path persisted
            TenantAwareDB-->>Request: tenant-isolated transaction
        end
    end
Loading

Sequence diagram for owner-token scheduler locking

sequenceDiagram
    participant Scheduler
    participant Redis
    participant Job

    Scheduler->>Redis: SET NX PX
    alt lock acquired
        Scheduler->>Job: run
        loop while job runs
            Scheduler->>Redis: renew TTL
        end
        Scheduler->>Redis: compare-and-delete Lua script
    else lock unavailable
        Scheduler-->>Job: skip execution
    end
Loading

Flow diagram for restored IPC route matching

flowchart TD
    Request["POST /ipc/{plugin}/reload or /load"] --> SpecificRoute[reload or load route]
    SpecificRoute --> PluginLifecycle[plugin lifecycle operation]
    OtherRequest[Other plugin IPC call] --> CatchAll[call_plugin route]
Loading

File-Level Changes

Change Details Files
Documents the 2.9.1 tenant-isolation and PostgreSQL fail-closed fixes.
  • Records transaction-scoped PostgreSQL search_path configuration with validation, reapplication, verification, and dialect-specific behavior.
  • Documents rejection of reserved tenant identifiers and early HTTP validation.
  • Adds coverage for tenant propagation, tenant-bound scheduler and cache operations, and real PostgreSQL CI integration.
doc/changelog.md
Documents IPC authorization, routing, and plugin compatibility corrections.
  • Describes propagation of root tenancy settings and restoration of manifest allowed_callers handling.
  • Records restored reload/load route reachability, RouterIn compatibility, and current-tenant propagation for nested calls.
doc/changelog.md
Documents distributed locking, database pool configuration, and environment-warning fixes.
  • Captures owner-token locking with compare-and-delete release and TTL renewal.
  • Records native pool_reset_on_return handling and the corrected structured warning for missing environment variables.
doc/changelog.md

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

@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Oct 15, 2026
@github-actions

Copy link
Copy Markdown
Contributor

@traoreera
traoreera merged commit 468de95 into main Oct 15, 2026
25 checks passed

@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 reviewed your changes and they look great!

Sourcery assessment

Approved.


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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant