Skip to content

chore(deps): bump the dev-dependencies group across 1 directory with 17 updates#24

Closed
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/pip/dev-dependencies-a826037d75
Closed

chore(deps): bump the dev-dependencies group across 1 directory with 17 updates#24
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/pip/dev-dependencies-a826037d75

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot Bot commented on behalf of github Jun 4, 2026

Updates the requirements on pydantic, starlette, uvicorn, python-multipart, sqlalchemy, fastapi, granian, redis, opentelemetry-api, opentelemetry-sdk, opentelemetry-instrumentation-starlette, pyjwt, click, pytest-asyncio, coverage, mypy and ruff to permit the latest version.
Updates pydantic to 2.13.4

Release notes

Sourced from pydantic's releases.

v2.13.4 2026-05-06

v2.13.4 (2026-05-06)

What's Changed

Packaging

Fixes

Full Changelog: pydantic/pydantic@v2.13.3...v2.13.4

Changelog

Sourced from pydantic's changelog.

v2.13.4 (2026-05-06)

GitHub release

What's Changed

Packaging

Fixes

v2.13.3 (2026-04-20)

GitHub release

What's Changed

Fixes

v2.13.2 (2026-04-17)

GitHub release

What's Changed

Fixes

  • Fix ValidationInfo.field_name missing with model_validate_json() by @​Viicos in #13084

v2.13.1 (2026-04-15)

GitHub release

What's Changed

Fixes

v2.13.0 (2026-04-13)

GitHub release

The highlights of the v2.13 release are available in the blog post.

... (truncated)

Commits
  • cf67d4b Fix linting
  • f0d8a21 Prepare release v2.13.4
  • 5e3fe1d Check for pydantic tag pattern in CI
  • 7f9edcc Document tagging conventions
  • b46a0c9 Adapt pydantic-core linker flags on macOS
  • 50629c8 Update to PyPy 7.3.22
  • 8522ebb Preserve RootModel core metadata
  • a37f3af Adapt MISSING sentinel test to work with unreleased typing_extensions ver...
  • 909259a Remove Logfire example in documentation
  • 2c4174c Bump libc from 0.2.155 to 0.2.185
  • See full diff in compare view

Updates starlette to 1.2.1

Release notes

Sourced from starlette's releases.

Version 1.2.1

What's Changed

New Contributors

Full Changelog: Kludex/starlette@1.2.0...1.2.1

Changelog

Sourced from starlette's changelog.

1.2.1 (May 31, 2026)

Fixed

  • Use httpx2 for type checking in the testclient module #3304.
  • Add assert error for requires() when the request parameter is not a Request type #3298.

1.2.0 (May 28, 2026)

Added

  • Support httpx2 in the test client #3291.

1.1.0 (May 23, 2026)

Added

  • Use "application/octet-stream" as the FileResponse media type fallback #3283.

Fixed

  • Only dispatch standard HTTP verbs in HTTPEndpoint #3286.
  • Reject absolute paths in StaticFiles.lookup_path #3287.

1.0.1 (May 21, 2026)

Fixed

  • Ignore malformed Host header when constructing request.url #3279.

1.0.0 (March 22, 2026)

Starlette 1.0 is here!

After nearly eight years since its creation, Starlette has reached its first stable release. Thank you to everyone who tested the release candidate and reported issues.

You can read more on the blog post.

Added

  • Track session access and modification in SessionMiddleware #3166.

Fixed

  • Handle websocket denial responses in StreamingResponse and FileResponse #3189.
  • Use bytearray for field accumulation in FormParser #3179.
  • Move parser.finalize() inside try/except in MultiPartParser.parse() #3153.

1.0.0rc1 (February 23, 2026)

... (truncated)

Commits
  • ef773fe Version 1.2.1 (#3306)
  • 3fc68a7 Add sponsors section to docs sidebar (#3305)
  • b053f7b chore(deps): bump the python-packages group across 1 directory with 6 updates...
  • 1478775 Add assert error for requires() when request param is not Request type (#3298)
  • 6576547 Describe disconnected-after-response behavior in test docstring (#3243)
  • 9cb1553 Use same module (httpx|httpx2) for type checking as for runtime (#3304)
  • 4060987 Version 1.2.0 (#3300)
  • 1e289ca Migrate docs deploy from Cloudflare Pages to Workers Static Assets (#3282)
  • 100f05a Add httpx2 as a dev dependency (#3295)
  • 508023b Support httpx2 in the test client (#3291)
  • Additional commits viewable in compare view

Updates uvicorn to 0.49.0

Release notes

Sourced from uvicorn's releases.

Version 0.49.0

What's Changed

Full Changelog: Kludex/uvicorn@0.48.0...0.49.0

Changelog

Sourced from uvicorn's changelog.

0.49.0 (June 3, 2026)

Changed

  • Bump httptools minimum version to 0.8.0 (#2962)
  • Consume duplicate forwarding headers in ProxyHeadersMiddleware (reverses the 0.48.0 behavior of ignoring them) (#2971)

0.48.0 (May 24, 2026)

Changed

  • Default ssl_ciphers to None and use OpenSSL defaults (#2940)

Fixed

  • Ignore duplicate forwarding headers in ProxyHeadersMiddleware (#2944)

0.47.0 (May 14, 2026)

Added

  • Add ssl_context_factory for custom SSLContext configuration (#2920)

Changed

  • Eagerly import the ASGI app in the parent process (#2919)

Fixed

  • Treat fd=0 as a valid file descriptor with reload/workers (#2927)

0.46.0 (April 23, 2026)

Added

  • Support ws_max_size in wsproto implementation (#2915)
  • Support ws_ping_interval and ws_ping_timeout in wsproto implementation (#2916)

Changed

  • Use bytearray for incoming WebSocket message buffer in websockets-sansio (#2917)

0.45.0 (April 21, 2026)

Added

  • Add --reset-contextvars flag to isolate ASGI request context (#2912)
  • Accept os.PathLike for log_config (#2905)
  • Accept log_level strings case-insensitively (#2907)

... (truncated)

Commits
  • 3ef2e3e Version 0.49.0 (#2973)
  • eeb64b1 Consume duplicate forwarding headers in ProxyHeadersMiddleware (#2971)
  • 630f4ac Make the watchfiles reload tests deterministic (#2972)
  • 9154922 chore(deps): bump the github-actions group across 1 directory with 6 updates ...
  • 739727a Migrate docs deploy from Cloudflare Pages to Workers (#2967)
  • be4a240 Gate docs preview deploy on Cloudflare token presence (#2966)
  • c489d7e Bump httptools minimum version to 0.8.0 (#2962)
  • 9f547bd Skip docs preview deploy for Dependabot PRs (#2961)
  • 44446b8 Migrate documentation from MkDocs Material to Zensical (#2959)
  • cfd659c Bump pymdown-extensions to 10.21.3 (#2958)
  • Additional commits viewable in compare view

Updates python-multipart to 0.0.30

Release notes

Sourced from python-multipart's releases.

Version 0.0.30

What's Changed

Full Changelog: Kludex/python-multipart@0.0.29...0.0.30

Changelog

Sourced from python-multipart's changelog.

0.0.30 (2026-05-31)

  • Parse application/x-www-form-urlencoded bodies per the WHATWG URL standard, treating only & as a field separator #290.
  • Ignore RFC 2231/5987 extended parameters (name*, filename*) in parse_options_header, keeping the plain parameter authoritative per RFC 7578 §4.2 #291.

0.0.29 (2026-05-17)

  • Handle malformed RFC 2231 continuations in parse_options_header #270.

0.0.28 (2026-05-10)

  • Speed up partial-boundary tail scan via bytes.find #281.
  • Cap multipart boundary length at 256 bytes #282.

0.0.27 (2026-04-27)

  • Add multipart header limits #267.
  • Pass parse offsets via constructors #268.

0.0.26 (2026-04-10)

  • Skip preamble before the first multipart boundary more efficiently #262.
  • Silently discard epilogue data after the closing multipart boundary #259.

0.0.25 (2026-04-10)

  • Add MIME content type info to File #143.
  • Handle CTE values case-insensitively #258.
  • Remove custom FormParser classes #257.
  • Add UPLOAD_DELETE_TMP to FormParser config #254.
  • Emit field_end for trailing bare field names on finalize #230.
  • Handle multipart headers case-insensitively #252.
  • Apply Apache-2.0 properly #247.

0.0.24 (2026-04-05)

  • Validate chunk_size in parse_form() #244.

0.0.23 (2026-04-05)

  • Remove unused trust_x_headers parameter and X-File-Name fallback #196.
  • Return processed length from QuerystringParser._internal_write #229.
  • Cleanup metadata dunders from __init__.py #227.

0.0.22 (2026-01-25)

  • Drop directory path from filename in File 9433f4b.

0.0.21 (2025-12-17)

... (truncated)

Commits

Updates sqlalchemy to 2.0.50

Release notes

Sourced from sqlalchemy's releases.

2.0.50

Released: May 24, 2026

orm

  • [orm] [bug] Fixed issue where using _orm.joinedload() with PropComparator.of_type() targeting a joined-table subclass combined with PropComparator.and_() referencing a column on that subclass would generate invalid SQL, where the subclass column was not adapted to the subquery alias. Pull request courtesy Joaquin Hui Gomez.

    References: #13203

  • [orm] [bug] Fixed issue where the presence of a SessionEvents.do_orm_execute() event hook would cause internal execution options such as yield_per and loader-specific state from the first orm_pre_session_exec pass to leak into the second pass, leading to errors when using relationship loaders such as selectinload() and immediateload(). The execution options passed to the second compilation pass are now based on the original options plus only the explicit updates made via ORMExecuteState.update_execution_options() within the event hook.

    References: #13301

  • [orm] [bug] Fixed issue where using _orm.with_polymorphic() on a leaf class (a subclass with no further descendants) or a non-inherited class would fail with an AttributeError when used in an ORM statement, due to _orm.configure_mappers() not being triggered implicitly. The fix ensures that AliasedInsp participates in the _post_inspect hook, triggering mapper configuration during ORM statement compilation.

    References: #13319

sql

  • [sql] [bug] Fixed issue where floor division (//) between a Float or Numeric numerator and an Integer denominator would omit the FLOOR() SQL wrapper on dialects where Dialect.div_is_floordiv is True (the default, including PostgreSQL and SQLite). FLOOR() is now applied if either the denominator or the numerator is a non-integer, so that expressions such as float_col // int_col render as FLOOR(float_col / int_col) instead of the incorrect float_col / int_col. Pull request courtesy r266-tech.

    References: #10528

postgresql

... (truncated)

Commits

Updates fastapi to 0.136.3

Release notes

Sourced from fastapi's releases.

0.136.3

Refactors

  • ♻️ Do not accept underscore headers when using convert_underscores=True (the default). PR #15589 by @​tiangolo.
Commits
  • 8206485 🔖 Release version 0.136.3
  • c910e01 📝 Update release notes
  • 063b5bf ♻️ Do not accept underscore headers when using convert_underscores=True (th...
  • 22b02e2 🔖 Release version 0.136.2
  • 3b252a2 📝 Update release notes
  • c7fb785 ♻️ Validate Server Sent Event fields to avoid applications from sending broke...
  • cb83b83 📝 Update release notes
  • 00f805c ✅ Update tests, don't double dispose the engine (#15587)
  • 3675137 📝 Update release notes
  • 7b57e42 📝 Document --entrypoint CLI option (#15464)
  • Additional commits viewable in compare view

Updates granian to 2.7.5

Release notes

Sourced from granian's releases.

Granian 2.7.5

Patch release

Changes since 2.7.4:

  • Fix a bug in IPC implementation causing crashes on shutdown (#847 by @​askedrelic)
  • Enhance proxy helpers implementation
  • Bump dependencies
Commits

Updates redis to 8.0.0

Release notes

Sourced from redis's releases.

8.0.0

Changes

🚀 Highlights

Async Cluster PubSub

This release introduces full asyncio Cluster PubSub support, bringing shard-channel capabilities (SSUBSCRIBE, SUNSUBSCRIBE, SPUBLISH) to the async RedisCluster client. The new ClusterPubSub class in redis.asyncio.cluster automatically routes shard-channel subscriptions to the correct cluster node based on key-slot hashing, manages per-node PubSub connections, and supports round-robin message retrieval across nodes. Users can create a cluster pubsub instance via RedisCluster.pubsub() and use ssubscribe(), sunsubscribe(), and get_sharded_message() just as they would with the sync cluster client.

Keyspace and subkey notifications

Redis Keyspace Notifications are now supported for standalone and cluster deployments in both sync and async modes. New classes — KeyspaceNotifications, ClusterKeyspaceNotifications, AsyncKeyspaceNotifications, and AsyncClusterKeyspaceNotifications — provide a high-level API for keyspace/keyevent subscriptions and subkey notification families: subkeyspace, subkeyevent, subkeyspaceitem, and subkeyspaceevent. Convenience methods like subscribe_keyspace(), subscribe_keyevent(), subscribe_subkeyspace(), subscribe_subkeyevent(), subscribe_subkeyspaceitem(), and subscribe_subkeyspaceevent() simplify common patterns, with channel classes for both key and subkey channels.

In cluster mode, subscriptions are managed across primary nodes because each node emits notifications only for keys it owns, with built-in topology-change handling. Sync run_in_thread() and async listen() workflows are supported.

Redis Array commands(https://redis.io/docs/latest/develop/data-types/arrays/)

redis-py now supports Redis Arrays, a preview Redis data type for sparse, index-addressable sequences of strings. New AR* command helpers cover indexed reads/writes, range scans, deletion, cursor-based insertion, ring-buffer writes, metadata, text search, and aggregation, including ARGET, ARSET, ARMGET, ARMSET, ARSCAN, ARGREP, ARRING, and AROP.

Type Hints Improvements (breaking changes)

The @overload pattern has been applied systematically across core commands (core.py), VectorSet commands, and module commands (Search, JSON, TimeSeries, Bloom filters) to provide distinct return types for sync and async clients. Previously, methods returned a combined ResponseT (i.e., Union[Awaitable[Any], Any]), which caused static analysis tools like mypy and Pyright to flag false positives. Now, sync clients see concrete return types (e.g., int, bool, list[str]) while async clients see Awaitable[...] wrappers. This is a breaking change for type-checking only—runtime behavior is unchanged, but code relying on the old union return types in type annotations may need updates. Two new protocol types, SyncClientProtocol and AsyncClientProtocol, are used in overload signatures to enable this distinction.

RESP3 by default with opt-in unified responses

redis-py 8.0.0 now uses RESP3 on the wire by default while preserving legacy RESP2-compatible Python response shapes for existing applications (#4052). Protocol-independent unified response shapes are available by setting legacy_responses=False, so affected commands return the same Python structure with RESP2 or RESP3.

Use protocol=2 to force RESP2 on the wire, protocol=3 to opt into native RESP3 response shapes, or legacy_responses=False to migrate to unified responses. See https://github.com/redis/redis-py/blob/HEAD/docs/unified_responses.rst and https://github.com/redis/redis-py/blob/HEAD/specs/unified_responses_migration_guide.md for the affected commands and migration details.

Connection and retry defaults

Default connection settings were updated: socket_timeout and socket_connect_timeout now default to 5 seconds, TCP keepalive is enabled by default, socket reads use a 32 KB buffer, connection pools default to max_connections=100, and retry defaults now use 10 attempts with exponential jitter backoff.

Note: socket_timeout can affect blocking commands such as BLPOP/BRPOP; if a command blocks longer than the client socket timeout, it may raise TimeoutError before the command timeout elapses (#2807).

🧪 Experimental Features

  • Added support for new array commands (#4055)

🚀 New Features

  • Support Cluster PubSub in asyncio (#3736)
  • Add Redis Keyspace Notifications Support for Redis Cluster (#3962)
  • Add random load balancing strategy which allows for use of the primary (#4027)
  • Add FPHA (floating-point homogeneous array) arg support to JSON.SET (#4011)
  • Added custom Claude command + XNACK command support (#4030)
  • Adding Time Series Multiple Aggregators support (#4035)
  • Adding support for new COUNT aggregator for some sorted set commands - ZINTER, ZINTERSTORE, ZUNION, ZUNIONSTORE (#4034)
  • Adding support for new INCREX command (#4067 #4077)
  • Add support for PubSub subscriptions with binary channel names and handlers (#4068)

... (truncated)

Commits
  • 733f80e Updates in default connection and retry settings (#4082)
  • a68a16c Updating Redis supported versions in README.md and lib version to 8.0.0
  • 43a41d3 Updating INCREX command arg - SATURATE now controls overflow behaviour (#4077)
  • 1496deb Preserve explicit None for client metadata config (#4081)
  • 57dc08c Avoid zero-timeout async reads in hiredis connections readiness checks and re...
  • cd54ddd fix(typing): correct type annotation for XReadResponse (#4046)
  • ab2d41f Add support for PubSub subscriptions with binary channel names and handlers (...
  • ef24dc9 Randomize cluster startup node order during topology refresh (#4060)
  • b604015 Add CLAUDE.md and /sync-claude-md skill for managing (#4066)
  • 2b8b4fc Fix flaky tests (#4071)
  • Additional commits viewable in compare view

Updates opentelemetry-api to 1.42.1

Changelog

Sourced from opentelemetry-api's changelog.

Version 1.42.1/0.63b1 (2026-05-21)

Fixed

  • Preserve the random trace ID flag when creating child spans instead of always setting the random trace id bit depending on the available trace id generator. (#5241)

Version 1.42.0/0.63b0 (2026-05-19)

Added

  • opentelemetry-api, opentelemetry-sdk: add support for 'random-trace-id' flags in W3C traceparent header trace flags. Implementations of IdGenerator that do randomly generate the 56 least significant bits, should also implement a is_trace_id_random methods that returns True. (#4854)
  • logs: add exception support to Logger emit and LogRecord attributes (#4908)
  • opentelemetry-exporter-otlp-proto-grpc: make retryable gRPC error codes configurable for gRPC exporters (#4917)
  • opentelemetry-sdk: Add create_logger_provider/configure_logger_provider to declarative file configuration, enabling LoggerProvider instantiation from config files without reading env vars (#4990)
  • opentelemetry-exporter-otlp-json-common: add 'opentelemetry-exporter-otlp-json-common' package for OTLP JSON exporters (#4996)
  • opentelemetry-sdk: Add service resource detector support to declarative file configuration via detection_development.detectors[].service (#5003)
  • opentelemetry-docker-tests: add docker-tests coverage of opentelemetry-exporter-otlp-proto-grpc and opentelemetry-exporter-otlp-proto-http metrics export (#5030)
  • Add registry keyword argument to PrometheusMetricReader to allow passing a custom Prometheus registry (#5055)
  • Add WeaverLiveCheck test util (#5088)
  • opentelemetry-sdk: add load_entry_point shared utility to declarative file configuration for loading plugins via entry points; refactor propagator loading to use it (#5093)
  • opentelemetry-sdk: add sampler plugin loading to declarative file configuration via the opentelemetry_sampler entry point group, matching the spec's PluginComponentProvider mechanism (#5095)

... (truncated)

Commits
  • 367e14d Prepare release 1.42.1/0.63b1 (#5243)
  • fd8e504 Preserve random trace ID flag for child spans (#5241) (#5242)
  • 013045e [release/v1.42.x-0.63bx] Prepare release 1.42.0/0.63b0 (#5225)
  • 1731583 ci: Enable GitHub Merge Queue support (#5209)
  • 7fab34d fix(config): allow deflate for OTLP HTTP exporters (#5075)
  • 0b690d2 ci: validate changelog fragment filenames (#5212)
  • d4fabb4 feat(config): exporter plugin loading via entry points for declarative config...
  • e19d346 feat(config): generic resource detector plugin loading for declarative config...
  • 1d69bd2 sdk/metrics: copy attributes dict to prevent post-recording mutation (#5106)
  • 990a611 feat(config): propagator plugin loading via entry points for declarative conf...
  • Additional commits viewable in compare view

Updates opentelemetry-sdk to 1.42.1

Changelog

Sourced from opentelemetry-sdk's changelog.

Version 1.42.1/0.63b1 (2026-05-21)

Fixed

  • Preserve the random trace ID flag when creating child spans instead of always setting the random trace id bit depending on the available trace id generator. (#5241)

Version 1.42.0/0.63b0 (2026-05-19)

Added

  • opentelemetry-api, opentelemetry-sdk: add support for 'random-trace-id' flags in W3C traceparent header trace flags. Implementations of IdGenerator that do randomly generate the 56 least significant bits, should also implement a is_trace_id_random methods that returns True. (#4854)
  • logs: add exception support to Logger emit and LogRecord attributes (#4908)
  • opentelemetry-exporter-otlp-proto-grpc: make retryable gRPC error codes configurable for gRPC exporters (#4917)
  • opentelemetry-sdk: Add create_logger_provider/configure_logger_provider to declarative file configuration, enabling LoggerProvider instantiation from config files without reading env vars (#4990)
  • opentelemetry-exporter-otlp-json-common: add 'opentelemetry-exporter-otlp-json-common' package for OTLP JSON exporters (#4996)
  • opentelemetry-sdk: Add service resource detector support to declarative file configuration via detection_development.detectors[].service (#5003)
  • opentelemetry-docker-tests: add docker-tests coverage of opentelemetry-exporter-otlp-proto-grpc and opentelemetry-exporter-otlp-proto-http metrics export (#5030)
  • Add registry keyword argument to PrometheusMetricReader to allow passing a custom Prometheus registry (#5055)
  • Add WeaverLiveCheck test util (#5088)
  • opentelemetry-sdk: add load_entry_point shared utility to declarative file configuration for loading plugins via entry points; refactor propagator loading to use it (#5093)
  • opentelemetry-sdk: add sampler plugin loading to declarative file configuration via the opentelemetry_sampler entry point group, matching the spec's PluginComponentProvider mechanism (#5095)

... (truncated)

Commits
  • 367e14d Prepare release 1.42.1/0.63b1 (#5243)
  • fd8e504 Preserve random trace ID flag for child spans (#5241) (#5242)
  • 013045e [release/v1.42.x-0.63bx] Prepare release 1.42.0/0.63b0 (#5225)
  • 1731583 ci: Enable GitHub Merge Queue support (#5209)
  • 7fab34d fix(config): allow deflate for OTLP HTTP exporters (#5075)
  • 0b690d2 ci: validate changelog fragment filenames (#5212)
  • d4fabb4 feat(config): exporter plugin loading via entry points for declarative config...
  • e19d346 feat(config): generic resource detector plugin loading for declarative config...
  • 1d69bd2 sdk/metrics: copy attributes dict to prevent post-recording mutation (#5106)
  • 990a611 feat(config): propagator plugin loading via entry points for declarative conf...
  • Additional commits viewable in compare view

Updates opentelemetry-instrumentation-starlette to 0.63b1

Changelog

Sourced from opentelemetry-instrumentation-starlette's changelog.

Version 1.42.1/0.63b1 (2026-05-21)

No significant changes.

Version 1.42.0/0.63b0 (2026-05-19)

Added

  • opentelemetry-exporter-richconsole: Add support for suppressing resource information (#3898)
  • opentelemetry-instrumentation: Add experimental metrics attributes Labeler utility (#4288)
  • opentelemetry-instrumentation-logging: Add OTEL_PYTHON_LOG_HANDLER_LEVEL and OTEL_PYTHON_LOG_FORMAT environment variables to configure the log level and formatter of the auto-instrumented LoggingHandler. (#4298)
  • opentelemetry-instrumentation-sqlite3: Add uninstrument, error status, suppress, and no-op tests (#4335)
  • Add BaggageLogProcessor to opentelemetry-processor-baggage (#4371)
  • opentelemetry-instrumentation-system-metrics: Add support for process.disk.io metric in system-metrics instrumentation (#4397)
  • opentelemetry-instrumentation: Register OTEL_SEMCONV_STABILITY_OPT_IN in environment_variables.py so opentelemetry-instrument exposes a --semconv_stability_opt_in CLI argument (#4438)
  • Expand AGENTS.md with instrumentation/GenAI guidance and add PR review instructions. (#4457)
  • opentelemetry-instrumentation: update auto-instrumentation to re-inject instrumentation path after init (#4469)
  • opentelemetry-instrumentation-dbapi: Add Database client operation duration and returned rows metrics (#4481)

Changed

  • Remove redundant pylint: disable=attribute-defined-outside-init comments and add rule to global .pylintrc disable list (#3839)
  • Bump pylint to 4.0.5 (#4244)
  • opentelemetry-instrumentation-logging: Use LogRecord.getMessage() to format and extract each log record's body text to more closely match the expected usage of the logging system. As a result, all OTel log record bodies

... (truncated)

Commits

Updates pyjwt to 2.13.0

Release notes

Sourced from pyjwt's releases.

2.13.0

PyJWT 2.13.0 — Security Release

This release bundles five security fixes plus three additional hardening / spec-compliance changes. We recommend all users upgrade.

Security

  • GHSA-xgmm-8j9v-c9wx — JWK JSON accepted as HMAC secret (algorithm confusion). HMACAlgorithm.prepare_key previously rejected PEM- and SSH-formatted asymmetric keys but did not catch a JWK passed as a raw JSON string. In a verifier configured with both symmetric and asymmetric algorithms in algorithms=[…] and a raw-JSON JWK as the key, an attacker could forge HS256 tokens using the JWK text as the HMAC secret. The guard has been extended to reject any JWK-shaped JSON. Reported by @​aradona91.

  • GHSA-jq35-7prp-9v3f — Algorithm allow-list bypass with PyJWK / PyJWKClient. When verifying with a PyJWK, the caller's algorithms=[…] allow-list was checked against the token header alg as a string only; actual verification used the algorithm bound to the PyJWK. An attacker who controlled a registered JWKS key could sign with one algorithm and advertise another on the header. PyJWT now requires the token header alg to match the PyJWK's algorithm before verification. Reported by @​sushi-gif.

  • GHSA-w7vc-732c-9m39 — DoS via base64 decode of unused payload segment when b64=false. For detached-payload JWS (b64=false), the compact-form payload segment was base64-decoded before being discarded in favor of the caller-supplied detached_payload. An attacker could inflate the unused segment to force CPU + memory cost without holding a vali...

    Description has been truncated

…17 updates

Updates the requirements on [pydantic](https://github.com/pydantic/pydantic), [starlette](https://github.com/Kludex/starlette), [uvicorn](https://github.com/Kludex/uvicorn), [python-multipart](https://github.com/Kludex/python-multipart), [sqlalchemy](https://github.com/sqlalchemy/sqlalchemy), [fastapi](https://github.com/fastapi/fastapi), [granian](https://github.com/emmett-framework/granian), [redis](https://github.com/redis/redis-py), [opentelemetry-api](https://github.com/open-telemetry/opentelemetry-python), [opentelemetry-sdk](https://github.com/open-telemetry/opentelemetry-python), [opentelemetry-instrumentation-starlette](https://github.com/open-telemetry/opentelemetry-python-contrib), [pyjwt](https://github.com/jpadilla/pyjwt), [click](https://github.com/pallets/click), [pytest-asyncio](https://github.com/pytest-dev/pytest-asyncio), [coverage](https://github.com/coveragepy/coveragepy), [mypy](https://github.com/python/mypy) and [ruff](https://github.com/astral-sh/ruff) to permit the latest version.

Updates `pydantic` to 2.13.4
- [Release notes](https://github.com/pydantic/pydantic/releases)
- [Changelog](https://github.com/pydantic/pydantic/blob/main/HISTORY.md)
- [Commits](pydantic/pydantic@v2.13.3...v2.13.4)

Updates `starlette` to 1.2.1
- [Release notes](https://github.com/Kludex/starlette/releases)
- [Changelog](https://github.com/Kludex/starlette/blob/main/docs/release-notes.md)
- [Commits](Kludex/starlette@1.0.0...1.2.1)

Updates `uvicorn` to 0.49.0
- [Release notes](https://github.com/Kludex/uvicorn/releases)
- [Changelog](https://github.com/Kludex/uvicorn/blob/main/docs/release-notes.md)
- [Commits](Kludex/uvicorn@0.46.0...0.49.0)

Updates `python-multipart` to 0.0.30
- [Release notes](https://github.com/Kludex/python-multipart/releases)
- [Changelog](https://github.com/Kludex/python-multipart/blob/main/CHANGELOG.md)
- [Commits](Kludex/python-multipart@0.0.27...0.0.30)

Updates `sqlalchemy` to 2.0.50
- [Release notes](https://github.com/sqlalchemy/sqlalchemy/releases)
- [Changelog](https://github.com/sqlalchemy/sqlalchemy/blob/main/CHANGES.rst)
- [Commits](https://github.com/sqlalchemy/sqlalchemy/commits)

Updates `fastapi` to 0.136.3
- [Release notes](https://github.com/fastapi/fastapi/releases)
- [Commits](fastapi/fastapi@0.136.1...0.136.3)

Updates `granian` to 2.7.5
- [Release notes](https://github.com/emmett-framework/granian/releases)
- [Commits](emmett-framework/granian@v2.7.4...v2.7.5)

Updates `redis` to 8.0.0
- [Release notes](https://github.com/redis/redis-py/releases)
- [Changelog](https://github.com/redis/redis-py/blob/master/CHANGES)
- [Commits](redis/redis-py@v7.4.0...v8.0.0)

Updates `opentelemetry-api` to 1.42.1
- [Release notes](https://github.com/open-telemetry/opentelemetry-python/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-python/blob/main/CHANGELOG.md)
- [Commits](open-telemetry/opentelemetry-python@v1.41.1...v1.42.1)

Updates `opentelemetry-sdk` to 1.42.1
- [Release notes](https://github.com/open-telemetry/opentelemetry-python/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-python/blob/main/CHANGELOG.md)
- [Commits](open-telemetry/opentelemetry-python@v1.41.1...v1.42.1)

Updates `opentelemetry-instrumentation-starlette` to 0.63b1
- [Release notes](https://github.com/open-telemetry/opentelemetry-python-contrib/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-python-contrib/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-python-contrib/commits)

Updates `pyjwt` to 2.13.0
- [Release notes](https://github.com/jpadilla/pyjwt/releases)
- [Changelog](https://github.com/jpadilla/pyjwt/blob/master/CHANGELOG.rst)
- [Commits](jpadilla/pyjwt@2.12.1...2.13.0)

Updates `click` to 8.4.1
- [Release notes](https://github.com/pallets/click/releases)
- [Changelog](https://github.com/pallets/click/blob/main/CHANGES.rst)
- [Commits](pallets/click@8.3.3...8.4.1)

Updates `pytest-asyncio` to 1.4.0
- [Release notes](https://github.com/pytest-dev/pytest-asyncio/releases)
- [Commits](pytest-dev/pytest-asyncio@v1.3.0...v1.4.0)

Updates `coverage` to 7.14.1
- [Release notes](https://github.com/coveragepy/coveragepy/releases)
- [Changelog](https://github.com/coveragepy/coveragepy/blob/main/CHANGES.rst)
- [Commits](coveragepy/coveragepy@7.13.5...7.14.1)

Updates `mypy` to 2.1.0
- [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md)
- [Commits](python/mypy@v1.20.2...v2.1.0)

Updates `ruff` to 0.15.15
- [Release notes](https://github.com/astral-sh/ruff/releases)
- [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md)
- [Commits](astral-sh/ruff@0.15.12...0.15.15)

---
updated-dependencies:
- dependency-name: pydantic
  dependency-version: 2.13.4
  dependency-type: direct:production
  dependency-group: dev-dependencies
- dependency-name: starlette
  dependency-version: 1.2.1
  dependency-type: direct:development
  dependency-group: dev-dependencies
- dependency-name: uvicorn
  dependency-version: 0.49.0
  dependency-type: direct:development
  dependency-group: dev-dependencies
- dependency-name: python-multipart
  dependency-version: 0.0.30
  dependency-type: direct:development
  dependency-group: dev-dependencies
- dependency-name: sqlalchemy
  dependency-version: 2.0.50
  dependency-type: direct:development
  dependency-group: dev-dependencies
- dependency-name: fastapi
  dependency-version: 0.136.3
  dependency-type: direct:development
  dependency-group: dev-dependencies
- dependency-name: granian
  dependency-version: 2.7.5
  dependency-type: direct:development
  dependency-group: dev-dependencies
- dependency-name: redis
  dependency-version: 8.0.0
  dependency-type: direct:development
  dependency-group: dev-dependencies
- dependency-name: opentelemetry-api
  dependency-version: 1.42.1
  dependency-type: direct:development
  dependency-group: dev-dependencies
- dependency-name: opentelemetry-sdk
  dependency-version: 1.42.1
  dependency-type: direct:development
  dependency-group: dev-dependencies
- dependency-name: opentelemetry-instrumentation-starlette
  dependency-version: 0.63b1
  dependency-type: direct:development
  dependency-group: dev-dependencies
- dependency-name: pyjwt
  dependency-version: 2.13.0
  dependency-type: direct:development
  dependency-group: dev-dependencies
- dependency-name: click
  dependency-version: 8.4.1
  dependency-type: direct:development
  dependency-group: dev-dependencies
- dependency-name: pytest-asyncio
  dependency-version: 1.4.0
  dependency-type: direct:development
  dependency-group: dev-dependencies
- dependency-name: coverage
  dependency-version: 7.14.1
  dependency-type: direct:development
  dependency-group: dev-dependencies
- dependency-name: mypy
  dependency-version: 2.1.0
  dependency-type: direct:development
  dependency-group: dev-dependencies
- dependency-name: ruff
  dependency-version: 0.15.15
  dependency-type: direct:development
  dependency-group: dev-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file python Pull requests that update python code labels Jun 4, 2026
ancongui added a commit that referenced this pull request Jun 5, 2026
* fix(di): DI-core keystones from full-parity audit (Wave 0)

Fixes audit findings that affect every bean lifecycle:

- #113 interface-typed @bean was registered under both its concrete and
  return type, so @post_construct / AOP weaving / every BeanPostProcessor
  ran TWICE on the same instance. Startup lifecycle, wiring, and pre_destroy
  passes now de-duplicate by instance identity and propagate the woven
  instance to all aliases.
- #114 synchronous @around advice was silently dropped; _build_sync_wrapper
  now builds a sync around chain mirroring the async one.
- #115 a synchronous @app_event_listener crashed startup (await on None);
  ApplicationEventBus.publish awaits only awaitable results.
- #116 TRANSIENT @bean factory methods were ignored on resolution (rebuilt
  via __init__); Registration now carries a factory closure that the
  container prefers.
- #117 conditional_on_property gains match_if_missing and Spring-correct
  empty-having_value semantics (present-and-not-"false").
- #119 app-event-type inference no longer mistakes the return annotation
  for the event type.

Full suite 3397 passed; ruff + mypy clean.

* fix(web): post-start dynamic wiring keystone (Wave 0, audit #40/#163)

create_app() builds the WebFilter chain and collects routes BEFORE
ApplicationContext.start(), so beans only instantiated during startup were
silently dropped: security/session/CSRF WebFilters never ran, and
@bean-produced controllers (orchestration, IDP, config-server) were
unreachable.

Both the Starlette and FastAPI adapters now re-run filter discovery and
controller/ws/sse/OAuth2-login route collection inside the wrapped lifespan,
after start():
- WebFilterChainMiddleware holds the live filter list so in-place additions
  are seen per request.
- Filter/route discovery is factored into re-runnable, identity/path
  deduplicated closures; FastAPIControllerRegistrar.register_controllers is
  now idempotent.
- The rescan is exposed via app.state.pyfly_install_dynamic_wiring for
  callers managing their own lifespan.

This unblocks the security (#41/#42/#43/#44), admin (#66/#70),
orchestration-web (#163), config-server (#83) and CORS (#204) fixes.

Full suite 3399 passed; ruff + mypy clean.

* fix(transactional): workflow + TCC + scheduling parity (audit #53-65)

Orchestration was largely inert because nothing wired the declared beans:

- #53 @saga/@workflow/@tcc beans are now auto-discovered into their
  registries via a new OrchestrationBeanPostProcessor (mirrors Java
  ensureScanned) — previously every declared orchestration was dead.
- #54 @scheduled_saga/@scheduled_workflow/@scheduled_tcc are turned into
  live ScheduledTasks and the OrchestrationScheduler (already started by the
  context lifecycle) now fires them; register() spins up loops post-start.
- #55 wait_for_any no longer swallows timeouts and captures the winning
  signal payload.
- #56 TCC participant retry is N+1 attempts (was off-by-one) and falls back
  to class-level @tcc(retry_enabled, max_retries, backoff_ms).
- #57 per-participant try/confirm/cancel errors + latency are recorded so
  TccResult.failed_participants() works.
- #58 @on_workflow_error(suppress_error/error_types/step_ids) downgrades
  FAILED→COMPLETED.
- #59 @workflow_step(condition=...) is evaluated via a new safe AST
  expression evaluator (no eval); false → step SKIPPED.
- #60 async_ steps are fire-and-forget; #62 fire-and-forget run tasks hold a
  strong reference so they aren't GC-cancelled.
- #61 workflow-level retry propagates to steps that declare none.
- #63 @WaitForAll/@WaitForAny support timers; #64 named timer_id surfaced in
  the timer event; #65 warns on a compensatable step with no comp method.

Full suite 3411 passed; ruff + mypy clean.

* fix(security): wire JWT/OAuth2/CSRF/HttpSecurity filters + session + OIDC (audit #41-52)

The keystone (#40/#163) re-scans WebFilter beans post-start, but several
filters had no bean at all and were dead code:

- #41 SecurityFilter (symmetric JWT, opt-in via pyfly.security.jwt.filter.enabled)
  and OAuth2ResourceServerFilter are now registered as WebFilter beans by the
  security auto-configs that own their JWTService/JWKSTokenValidator (avoids
  cross-config bean ordering); the post-start rescan adds them to the chain.
- #42 CsrfFilter gains a CsrfFilterAutoConfiguration (pyfly.security.csrf.enabled)
  and its order is corrected to run before authentication (was -50, after).
- #45 @pre_authorize/@post_authorize now enforce once the auth filter populates
  RequestContext.security_context (integration test added).
- #46 RedisSessionStore round-trips dataclass attributes (SecurityContext) via a
  type-tagged JSON encoder/decoder instead of failing on json.dumps.
- #47 HttpSecurityFilterAutoConfiguration builds the URL-rule filter from a user
  HttpSecurity bean.
- #48 OAuth2 login validates the OIDC id_token against the provider JWKS + nonce
  before trusting claims; #49 surfaces token/userinfo failures as 401 (was a
  silently-stored anonymous session) and wraps httpx transport errors.
- #50 security expression evaluator accepts double-quoted args; #51 fixes the
  session-filter ordering docstring; #52 session cookie gains a configurable
  Secure flag + sliding re-issue.

Full suite 3415 passed; ruff + mypy clean.

* fix(client): error mapping, retry filtering, lifecycle, timeout (audit #12-15,#18)

- #12 (critical) the declarative client never checked HTTP status and returned
  4xx/5xx error payloads as success. New src/pyfly/client/exceptions.py adds a
  ServiceClientException hierarchy + map_http_error (400→Validation, 401/403→
  Authentication, 404→NotFound, 409→Conflict, 422→Unprocessable, 429→RateLimit,
  5xx→Unavailable); the generated impl raises on status >= 400.
- #13 retry now retries only transient failures (429/5xx-mapped, connection,
  timeout) — not 4xx or the circuit-open signal — and the wrapping order is
  fixed to circuit-breaker OUTSIDE / retry INSIDE so an OPEN circuit fails fast.
- #14 HttpClientBeanPostProcessor gains start()/stop(); the context lifecycle
  now closes every per-bean httpx client (was a connection-pool leak).
- #15 the post-processor builds adapters with the configured
  pyfly.client.timeout (declarative clients previously ignored it).
- #18 a declarative method's  param is sent as request headers (for
  per-call headers / auth injection) instead of as a query param.

Remaining client parity features (#16 OAuth2 client-credentials, #17 service
discovery, #19 request dedup, #20 client rate limiting) are net-new subsystems
tracked for a follow-up pass.

Full suite 3419 passed; ruff + mypy clean.

* fix(idp): REST controller, provider selection, adapter bugs (audit #22,#23,#25,#26,#28,#29)

- #22 (critical) the IdpAdapter bean was wired to nothing — no HTTP surface
  existed. New src/pyfly/idp/web.py adds an IdpController (/idp/login, /refresh,
  /logout, /introspect, /admin/users CRUD, /admin/roles) registered in the same
  auto-config as the adapter and mounted by the post-start route rescan.
- #25 provider selection: pyfly.idp.provider chooses internal-db | keycloak |
  cognito | azure-ad and builds the adapter from config (was hardwired to
  internal-db); the bean is now exposed under the IdpAdapter port type.
- #23 Cognito login computes SECRET_HASH = Base64(HMAC-SHA256(secret, user+id))
  when a client secret is configured (auth previously failed for secret clients).
- #26 Keycloak admin token is refreshed on expiry (tracked via expires_in) — it
  was cached forever and broke after the ~60s TTL.
- #28 Cognito login/refresh guard a missing AuthenticationResult and surface a
  clean PermissionError; refresh keeps a rotated refresh token.
- #29 internal-db assign_role populates the role catalogue + adds create_roles
  (list_roles was always empty).

Remaining idp parity (deferred): #24 port capability expansion (MFA/sessions/
scopes/userinfo/register), #27 Azure AD local token parsing + MFA.

Full suite 3424 passed; ruff + mypy clean.

* fix(notifications): wire real providers + delivery correctness (audit #30,#31,#35,#36,#38)

- #30 (critical) auto-config only ever registered Dummy providers and ignored
  any provider-selection config. It now reads
  pyfly.notifications.{email,sms,push}.provider and builds the real adapter
  (SendGrid/Resend/SMTP, Twilio, Firebase) from config, falling back to Dummy;
  providers are exposed under their port types so the services inject the port.
- #31 the SMTP adapter now attaches EmailMessage.attachments (was silently
  dropped); #35 it also adds custom EmailMessage.headers.
- #36 the Default{Email,Sms,Push}Service convert a provider exception into a
  structured FAILED NotificationResult instead of propagating.
- #38 ResendEmailProvider honors a configured default_from sender.

Deferred (net-new subsystems): #32 template-email engine, #33 channel
preferences, #34 notification metrics, #37 FCM batch.

Full suite 3428 passed; ruff + mypy clean.

* fix(cli): add PyFlyApplication.run() so the CLI archetype boots (audit #1)

The generated `cli` archetype's main() does asyncio.run(pyfly.run()), but
PyFlyApplication had no run() — every generated CLI crashed with
AttributeError. run() now starts the app, resolves the ShellRunnerPort
(populated with @shell_command handlers during startup), dispatches the args
(or sys.argv[1:], falling back to an interactive REPL), and shuts down.

Full suite 3431 passed; ruff + mypy clean.

* fix(cache): serializer, putIfAbsent, prefix-evict, stats, health, null-cache (audit #72-80)

- #72 a new cache serializer tolerates datetime/Decimal/UUID/set/Pydantic so
  the Redis put path no longer throws TypeError on framework types.
- #75 put_if_absent added to the protocol + both adapters (Redis SET NX,
  in-memory check-then-set).
- #78 evict_by_prefix added (Redis SCAN+delete, in-memory prefix filter).
- #76 both adapters track hit/miss/eviction counters and report hit_rate.
- #79 RedisCacheAdapter.start() degrades gracefully (logs + marks unavailable)
  instead of aborting application startup when Redis is unreachable.
- #74 new CacheHealthIndicator (put/get/evict probe + latency) registered by
  the cache auto-config so /actuator/health reports cache status.
- #80 @cacheable/@cache distinguish a cached None from a miss via exists()
  (null caching / cache-penetration protection).

Deferred: #73 SmartCacheAdapter (L1/L2 read-through), #77 cache metrics,
#81/#82 CacheManager protocol completeness.

Full suite 3437 passed; ruff + mypy clean.

* fix(cqrs): metrics registry, deterministic cache key, correlation, validation metric (audit #94,#98,#99,#100)

- #94 cqrs_metrics_service now receives the observability MetricsRegistry via
  optional injection, so CQRS metrics are actually recorded (was permanently
  no-op).
- #100 Query.get_cache_key() uses a stable SHA-256 digest instead of the
  process-randomized builtin hash(), so the same query maps to the same key
  across processes/restarts.
- #98 the command bus restores the prior correlation id in a finally block so
  it no longer leaks into the next command on the same task.
- #99 a CqrsValidationException now records the validation-failure metric.

Deferred (involved wiring): #93 EventDrivenCacheInvalidator, #95
@publish_domain_event, #96 CqrsMetricsEndpoint, #97 publisher destination/headers.

Full suite 3439 passed; ruff + mypy clean.

* fix(scheduling/resilience): sync time-limiter, Spring cron, scheduled-failure logging (audit #184,#185,#186)

- #184 the synchronous time_limiter ran the callable in a worker thread and
  waits with a fractional timeout instead of SIGALRM, which truncated
  sub-second timeouts to whole seconds and crashed off the main thread.
- #185 CronExpression accepts Spring-style 6-field (seconds-first) cron and the
  '?' day placeholder (via croniter second_at_beginning + normalization), not
  just standard 5-field cron.
- #186 _invoke logs exceptions, so a failing cron / fixed-rate iteration (whose
  task the loop does not await) is reported instead of vanishing silently.

Full suite 3443 passed; ruff + mypy clean.

* fix(validation): ISO-4217 currency, IBAN length, card-scheme checks (audit #191,#192,#193)

- #191 is_valid_currency_code checks membership of the active ISO 4217 set
  (was: any 3 uppercase letters).
- #193 is_valid_iban enforces the country-specific total length per ISO 13616
  (was: general format + mod-97 only).
- #192 is_valid_credit_card requires a recognized scheme prefix (Visa, MC,
  Amex, Discover, Diners, JCB) before the Luhn check (was: Luhn only).

Full suite 3446 passed; ruff + mypy clean.

* fix(callbacks): SSRF domain allowlist + retry only transient failures (audit #190,#194)

- #190 the dispatcher enforces config.authorized_domains before delivery: a
  target host not matching the allowlist is marked FAILED ("Domain not
  authorized") and no HTTP request is made (SSRF protection).
- #194 retries are limited to transient failures (5xx/408/429 + transport
  errors) with exponential backoff capped at 5 min; a 4xx client error is now
  permanent (was: retry every non-2xx with fixed backoff).

Full suite 3448 passed; ruff + mypy clean.

* fix(data): soft-delete read paths + connection-pool config (audit #103,#107)

- #103 SoftDeleteRepository overrides find_paginated, find_all_by_ids,
  find_all_by_spec and find_all_by_spec_paged to apply the not-deleted
  predicate (incl. the page-total count) — these inherited base readers
  previously leaked soft-deleted rows and miscounted pagination totals.
- #107 the SQLAlchemy engine forwards configured connection-pool settings
  (pool.size/max-overflow/timeout/recycle/pre-ping) to create_async_engine;
  only url and echo were read before.

Full suite 3450 passed; ruff + mypy clean.

* fix(eventsourcing): fail on unhandled events, replay validation, snapshot interval (audit #146,#150,#151)

- #146 AggregateRoot._dispatch raises EventHandlerException when an event has
  no registered handler (or on_<type> method) instead of silently swallowing
  it and corrupting reconstructed state.
- #150 EventSourcedRepository.load validates each replayed envelope's
  aggregate_id / aggregate_type against the loaded aggregate.
- #151 a snapshot is taken when the appended batch CROSSES a multiple of the
  snapshot interval (was: exact 'version % interval == 0', which is missed
  when a batch straddles the threshold).

Full suite 3451 passed; ruff + mypy clean.

* fix(rule-engine): fail on unknown actions, isolate action failures, validate 'not' (audit #215,#216,#222)

- #215 the default evaluator raises NotImplementedError for unsupported action
  types ('call'/'calculate'/typos) instead of silently doing nothing.
- #216 each action runs in isolation: a failing action records its error on the
  EvaluationResult and the remaining actions still execute.
- #222 the 'not' operator requires exactly one child; empty/multiple children
  raise instead of silently using only the first.

Full suite passed; ruff + mypy clean.

* chore: gitignore local .audit/ remediation working files

* fix(eda): @event_listener discovery, publish timing, serializer/consumer config (audit #134,#138,#140,#141)

- #134 @event_listener now stamps discovery metadata and supports a bus-less
  form (@event_listener(["user.*"])); a new ApplicationContext._wire_event_listeners
  pass auto-subscribes decorated methods to the EventPublisher bean during
  startup (mirrors @message_listener) — previously it only worked with a
  hand-wired bus.
- #140 @event_publisher AFTER/BOTH publishes a payload augmented with the
  method result instead of re-publishing the pre-call arguments.
- #138 the EDA auto-config selects the serializer from
  pyfly.eda.serialization-format (json|avro|protobuf) and passes it to the
  Kafka/Redis adapters (Avro/Protobuf remain opt-in stubs).
- #141 the Redis adapter receives the configured consumer-id.

Deferred (cross-adapter dispatch refactor): #131 DLQ routing, #132
ErrorStrategy, #133 circuit-breaker wiring, #135 postgres outbox stall, #136
event filters, #137 metrics, #139 health probe.

Full suite 3457 passed; ruff + mypy clean.

* fix(config): placeholder env overrides + config-client merge order (audit #86,#87,#89)

- #86 ConfigClient applies remote propertySources in reverse (lowest priority
  first) so the highest-priority source wins, matching Spring (was: forward
  order, so the lowest-priority source won).
- #87/#89 inline ${...} placeholder resolution now consults the PYFLY_* relaxed
  env mapping (e.g. ${app.name} → PYFLY_APP_NAME) before the raw file data, so
  env overrides are visible to placeholders and win.

Full suite passed; ruff + mypy clean.

* fix(di): @config_properties classes are injectable beans bound from config (audit #118)

The @config_properties decorator now marks the class injectable
(__pyfly_injectable__), so the scanner registers it; ApplicationContext binds
each registered __pyfly_config_prefix__ class from the active Config via a
factory, making it constructor-injectable by type (Spring
@EnableConfigurationProperties equivalent). Previously these classes were only
usable when a @bean method manually called config.bind().

Full suite green; ruff + mypy clean.

* fix(saga): honor configured compensation_policy (audit #170; #178 already done)

- #170 SagaEngineProperties is now bound from pyfly.transactional.saga.* (was
  built with defaults), SagaEngine stores a default_compensation_policy, and
  execute() falls back to it when a caller does not override — the configured
  YAML compensation_policy was previously inert (engine always STRICT_SEQUENTIAL).
- #178 (scheduled sagas) was already addressed by the OrchestrationBeanPostProcessor
  added in b2d0f4e, which schedules @scheduled_saga beans.

Deferred (compensator/orchestrator internals): #171 compensation-error
abort, #172 idempotency keys, #173 recovery scheduling, #174-177, #179.

Full suite 3461 passed; ruff + mypy clean.

* fix(server/websocket): serve_async honors full config + ws on_disconnect (audit #226,#232)

- #226 a shared UvicornServerAdapter._build_kwargs feeds both serve()
  (uvicorn.run) and serve_async() (uvicorn.Config), so the async path honors
  SSL / keep-alive / backlog / graceful-timeout / concurrency limits that the
  blocking path already did (they were previously dropped from serve_async).
- #232 the websocket endpoint logs unexpected handler exceptions (no longer
  swallowed) and invokes an on_disconnect lifecycle hook when the controller
  defines one.

Full suite passed; ruff + mypy clean.

* fix(web): RFC-compliant required params, CORS auto-config, exception-converter wiring (audit #202/#204/#206)

#206 — Missing required QueryParam/Header/Cookie now raises a 400
  (InvalidRequestException) instead of silently binding None. A param is
  optional only when it has a default or an Optional inner type (str | None).
  Surfaced two latent transactional filter params that were meant to be
  optional; their inner types are now honestly str | None.

#204 — CORS is auto-configured from pyfly.web.cors.* via
  CORSConfig.from_config(), threaded into create_app for both the Starlette
  and FastAPI adapters when no explicit CORSConfig is passed. Secure-by-default
  (disabled unless pyfly.web.cors.enabled), mirroring Spring CorsAutoConfiguration.

#202 — ExceptionConverterService is now wired into global_exception_handler.
  Non-PyFly exceptions are translated via the built-in chain (Pydantic, JSON,
  timeout) plus any user @bean ExceptionConverter, discovered at startup and
  stashed per-app on app.state. Falls back to 500 only when nothing matches.

Tests: tests/web/test_wave_web.py (14). Suite 3462 -> 3476 green; ruff + mypy clean.

* fix(ecm): provider-based storage/e-signature adapter selection + honor delete result (audit #120/#125)

#120 — EcmAutoConfiguration now selects the storage adapter from
  pyfly.ecm.storage.provider (local | s3/aws | azure) and the e-signature
  adapter from pyfly.ecm.esignature.provider (noop | docusign | adobe | logalty),
  reading each provider's own config sub-keys. All producer beans (storage,
  metadata, folders, e-signature) now return their PORT types so DocumentService
  / ESignatureService inject abstractions; the container registers each bean
  under both the concrete type and the port, so port-typed injection resolves.
  Previously the adapter classes existed but were dead — only LocalFilesystem +
  NoOp were ever wired regardless of config.

#125 — DocumentService.delete now returns storage_ok AND metadata_ok instead of
  discarding the storage delete result, so a failed blob delete is surfaced.

Tests: tests/ecm/test_wave_ecm.py (12) incl. a real-ApplicationContext wiring
test that round-trips an upload/download through the auto-wired ports.

Deferred (per-module): #121 DocumentVersionPort, #122 signature lifecycle/proof
ports (net-new subsystems), #126 version refetch, #127/#128/#129 provider get()
polish, #130 folder hierarchy. #124 (enabled-by-default) intentionally NOT
flipped: every sibling optional module (cache/notifications/eventsourcing/
rule-engine/callbacks/idp) is uniformly opt-in via enabled=true; flipping only
ECM would make it the lone default-on module — a deliberate pyfly convention.

Suite 3476 -> 3488 green; ruff + mypy clean.

* fix(observability,actuator): wire span exporter, correct threaddump className, guard prometheus endpoint (audit #153/#161/#162)

#153 — TracingAutoConfiguration.tracer_provider now installs a BatchSpanProcessor
  with an exporter selected from config (pyfly.observability.tracing.exporter =
  otlp | console | none). When unset, OTLP is auto-selected iff an endpoint is
  configured (pyfly.observability.tracing.otlp.endpoint or the standard
  OTEL_EXPORTER_OTLP_ENDPOINT env var), with graceful fallback + a warning if the
  OTLP exporter package is missing; otherwise a single info line is logged so the
  drop is no longer silent. Previously the provider had no processor, so every
  @span trace was recorded and immediately discarded.

#161 — threaddump now reports className as the frame's module (__name__) and
  methodName as the qualified function name (co_qualname), instead of setting both
  to the bare function name. Walks the frame chain so co_filename/co_name/module
  are read per frame.

#162 — prometheus endpoint: enabled now reflects prometheus_client availability,
  and handle() returns a 503 text body instead of raising TypeError when the
  client is absent at request time.

Tests: tests/observability/test_wave_observability.py (4), tests/actuator/test_wave_actuator.py (3).

Deferred (observability wave-2): #154 trace/correlation IDs into log records,
#155 W3C traceparent extraction into OTel context, #157 config-driven health
groups, #158 firefly.health.status gauge, #159 common metric tags, #160 actuator
beans unused by route builder. #156 (default web exposure incl. metrics/prometheus)
intentionally NOT changed — pyfly deliberately mirrors Spring Boot's secure-by-
default exposure (health,info), set in commit #25; auto-exposing metrics would be
a security regression.

Suite 3488 -> 3495 green; ruff + mypy clean.

* fix(i18n,resilience): MessageFormat quote-escaping + unified bulkhead permit accounting (audit #187/#189)

#187 — ResourceBundleMessageSource._substitute now honors java.text.MessageFormat
  quote semantics: '' renders as a literal apostrophe, single-quoted text is
  copied literally (so '{0}' is not substituted), and {n}/{n,type,style} insert
  the positional arg (index parsed; format style is a documented non-locale-applied
  subset). Previously naive str.replace left ''/quoted placeholders wrong.

#189 — Bulkhead now uses a single threading.Lock-guarded permit counter as the
  sole source of truth for BOTH sync and async decorated calls (the divergent
  asyncio.Semaphore is removed). The sync wrapper now goes through the same
  _acquire_slot/_release_slot primitive as the async path, so a Bulkhead shared
  across sync + async can no longer desynchronise its capacity accounting; the
  atomic check-and-increment also closes the async check/acquire TOCTOU.

Tests: tests/i18n/test_wave_i18n.py (8), tests/resilience/test_wave_resilience.py (4).

#188 (i18n MessageSource opt-in vs Spring default-on) intentionally NOT changed —
the finding itself says opt-in is acceptable if intentional; every sibling optional
module is uniformly opt-in via enabled=true (same convention as #124/#156).

Suite 3495 -> 3507 green; ruff + mypy clean.

* fix(plugins): extension-point registration/validation + unload unregisters extensions (audit #218/#219)

#218 — ExtensionRegistry now records extension points: register_extension_point,
  has_extension_point, extension_point_ids. PluginManager.add() scans inner
  @extension_point classes (the decorated class is the point's interface type)
  and registers them BEFORE extensions, so register() validates that each
  contributed extension is an instance of its declared point type and raises
  ValueError otherwise — mirroring Java's DefaultExtensionRegistry. Previously the
  @extension_point decorator's metadata was pure dead code, never read by anything.
  Registration against an id with no declared point type stays lenient
  (backward-compatible) rather than raising on unknown point.

#219 — PluginManager now tracks the (point_id, instance) pairs each plugin
  registers and adds remove(plugin_id) + unload_all(): unloading a plugin runs its
  unload hook, unregisters its extensions from the registry, and forgets it, so
  extensions no longer leak in the registry for the process lifetime after a plugin
  is unloaded (mirrors Java's unloadPlugin -> unregisterPluginExtensions).

Tests: tests/plugins/test_wave_plugins.py (8).

#220 (rule-engine audit trail) deferred — net-new subsystem (AuditTrailService/
entity/repository/controller + evaluate-with-audit); out of scope for this pass,
documented like other net-new subsystem gaps.

Suite 3507 -> 3515 green; ruff + mypy clean.

* fix(orchestration-web): DLQ /count endpoint + in-flight default for GET /executions (audit #167/#169)

#167 — DeadLetterController now exposes GET /api/orchestration/dlq/count, backed by
  a new DeadLetterService.count() and DeadLetterStore.count() (InMemory impl
  returns len). Java's DeadLetterController exposes /count for dashboards; pyfly
  previously 404'd on it and had no service-level count().

#169 — OrchestrationController.list_executions now defaults to in-flight
  (non-terminal) executions when no status filter is given, instead of returning
  the entire store including terminal history — matching Java's findInFlight()
  default. Explicit ?status=<S> still filters exactly. Uses the existing
  ExecutionStatus.is_terminal.

Tests: tests/transactional/test_wave_orchestration_web.py (4).

Deferred (orchestration-web): #163 already done (wave-0 route rescan). #164
WorkflowController 2->14 endpoints + WorkflowEngine cancel/suspend/resume/
find_by_correlation_id/find_by_status (large engine+REST expansion), #165
per-controller rest.enabled/health.enabled gates, #166 orchestration-metrics
actuator endpoint, #168 DLQ retry real re-execution (needs engine re-enqueue).

Suite 3515 -> 3519 green; ruff + mypy clean.

* fix(starters): correct property keys so bundled adapters actually activate (audit #2/#3/#4/#6)

Starter stacks set property keys their auto-configs never read, so the bundled
adapters/services silently never activated (the old keys had ZERO consumers).
Fixed to the keys the conditions actually gate on:

  #2 data/domain: pyfly.relational.enabled  -> pyfly.data.relational.enabled
                  pyfly.document.enabled     -> pyfly.data.document.enabled
  #3 core:        pyfly.eda.enabled          -> pyfly.eda.provider=auto
                  (EdaAutoConfiguration gates on pyfly.eda.provider; 'auto' resolves
                   to the best installed broker, falling back to the in-memory bus)
  #4 application: pyfly.security-jwt.enabled / pyfly.security-password.enabled
                  / pyfly.session-filter.enabled -> pyfly.security.enabled=true
                  (JWT auth WebFilter stays opt-in via pyfly.security.jwt.filter.enabled)
  #6 core/web:    pyfly.actuator.enabled / pyfly.actuator.metrics.enabled
                  -> pyfly.web.actuator.enabled

Scaffold (pyfly.yaml.j2): added pyfly.security.enabled to the security feature
block so generated security apps wire JWTService + the password encoder. Left the
'eda' feature's messaging: block as-is — pyfly.messaging.provider drives the SEPARATE
MessagingAutoConfiguration (MessageBrokerPort), a real distinct subsystem, and is
covered by an existing test; it is not the EDA EventPublisher path.

Updated the existing test_starters.py assertions (old keys) in lockstep.
Tests: tests/starters/test_wave_starter_keys.py (8, functionally proving each
auto-config's conditions now pass via ConditionEvaluator with deps installed) +
1 scaffold security test.

Deferred: #5 test-slice decorators (net-new), #10 testcontainers (net-new),
#11 inert pyfly.web/observability/metrics/tracing/resilience/aop.enabled keys
(deliberate convention: those auto-configs activate on @conditional_on_class, not
property flags).

Suite 3519 -> 3528 green; ruff + mypy clean.

* fix(testing,cli,shell): inject mock_bean, thread wizard package name, honor shell_option type/choices (audit #7/#8/#9)

#7 — PyFlyTestCase.setup() now registers every mock_bean(...) descriptor's
  AsyncMock into the context container keyed on its bean type, so DI-resolved
  collaborators receive the mock. Previously the descriptors produced a mock on
  the test instance but it was never wired into the ApplicationContext, so
  context.get_bean(T) returned the real/absent bean.

#8 — generate_project()/_build_context() accept an explicit package_name; the
  interactive 'pyfly new' wizard's collected package name is now threaded through
  instead of being discarded and recomputed from the project name.

#9 — @shell_option(type=...) / @shell_argument(type=...) overrides are now honored
  by param inference (param_type = explicit type or inferred inner_type), and
  shell_option gained a choices= kwarg that flows onto the resolved ShellParam.

Tests: tests/testing/test_wave_mock_inject.py (2), tests/cli/test_wave_new_package.py (4),
tests/shell/test_wave_shell_option.py (4).

Suite 3528 -> 3538 green; ruff + mypy clean.

* fix(config-server): full overlay propertySources + configurable persistent backend root (audit #85/#88)

#85 — ConfigServer.fetch now emits the standard Spring-Cloud-Config overlay set
  (highest priority first): {app}/{profile}, {app}/default, application/{profile},
  application/default — deduped, skipping absent overlays, returning None only
  when all are absent. Previously it returned a single propertySource, so an app's
  default bundle and shared application config were never delivered.

#88 — ConfigServerAutoConfiguration.config_backend now reads
  pyfly.config-server.backend.root (or .native.search-locations) and persists
  there, falling back to a throwaway tempdir only when nothing is configured.
  Previously every boot used a fresh mkdtemp() that served nothing and lost saves
  on restart. The bean now injects Config (same pattern as the actuator beans).

Tests: tests/config_server/test_wave_config_server.py (7). Existing
test_server_returns_property_sources stays green (single source -> [0] unchanged).

Suite 3538 -> 3545 green; ruff + mypy clean.

* fix(config): relaxed kebab/snake key + placeholder resolution, env-only key injection (audit #90/#92)

#92 — _raw_get() and ${...} config-reference resolution now use relaxed
  (kebab/snake interchangeable) segment matching via a new _dict_get_relaxed
  helper, with an exact-match fast path first. So ${my-prop.sub-key} resolves a
  value stored under my_prop.sub_key (and vice versa), matching bind()'s relaxed
  semantics; previously get()/placeholders required literal key segments.

#90 — effective_section()/bind() now inject env-only keys: a PYFLY_<PREFIX>_*
  environment variable with no corresponding file leaf is materialized into the
  section (scoped to the prefix, treating each '_' as a path separator, only
  adding absent leaves). So an env-only @config_properties field now binds, where
  before get() honored the env var but bind()/effective_section dropped it. The
  rootless ('') prefix is skipped (ambiguous without a section anchor), so the
  broad effective_dict() actuator/admin view is unchanged.

Tests: tests/core/test_wave_config_relaxed.py (9). Full suite green across the
broad _raw_get change.

Suite 3545 -> 3554 green; ruff + mypy clean.

* fix(config-server): mount ConfigServer HTTP routes (audit #83)

The ConfigServer bean was built but never reachable over HTTP, so a config server
served nothing. Added a Starlette adapter (config_server/adapters/starlette.py,
the hexagonal starlette boundary) exposing Spring-Cloud-Config routes
(GET/POST /{application}/{profile}[/{label}], GET /_list), and a
config_server/wiring.py build_config_server_routes(context) that discovers the
ConfigServer bean and mounts them when pyfly.config-server.enabled=true.

Because the bean is only instantiated during ApplicationContext.start() (after
create_app returns), the routes are added in BOTH the eager create_app path (for
an already-started context) AND the post-start _install_dynamic_wiring rescan,
deduped by route key — same keystone pattern as orchestration/admin controllers.
Mirrored into the FastAPI adapter's _install_context_routes. base_path is read
from pyfly.config-server.base-path (default root).

Tests: tests/config_server/test_wave_config_server.py — adapter round-trip +
routes-mounted-when-enabled (real ApplicationContext + TestClient) + absent-when-
disabled. Hexagonal isolation test stays green (starlette only in the adapter).

Suite 3554 -> 3557 green; ruff + mypy clean.

* fix(config): import remote config from a config server at bootstrap (audit #84)

PyFlyApplication.__init__ now invokes ConfigClient when pyfly.cloud.config.uri
(or pyfly.config.import) is set, fetching remote config from a Spring-Cloud-Config
server and deep-merging it as a HIGH-precedence source over local config. The
flat dotted propertySource map is expanded to nested via _merge_dotted; the source
is recorded in loaded_sources.

Runs before the logging adapter/context exist (uses a stdlib logger). Fully
optional and non-fatal by default — a missing httpx, unreachable server, or
non-200 logs a warning and falls back to local config — unless
pyfly.cloud.config.fail-fast=true. Guards against asyncio.run inside an already-
running loop (skips with a warning). No-op (early return) when no uri is set, so
every existing app is unaffected.

Tests: tests/config_server/test_wave_remote_config.py (4, sync so asyncio.run
works): merged-at-bootstrap, no-uri-skips, failure-non-fatal, fail-fast-propagates.

config-server module now fully remediated (#83/#84/#85/#86/#87/#88/#89/#90/#92).
Suite 3557 -> 3561 green; ruff + mypy clean.

* fix(admin): enforce require_auth, TRACE/OFF log levels, mount beans SSE (audit #66/#69/#71)

#66 — AdminRouteBuilder now wraps every {base}/api/* route (data, mutation, SSE,
  instance registry) with an auth guard: when pyfly.admin.require-auth is true, a
  request lacking an authenticated SecurityContext gets 401 and one missing every
  allowed role gets 403 (read from the request-scoped RequestContext). The SPA
  shell + static assets stay public so the dashboard can boot and then surface the
  401s. No-op when require_auth is false (default), so existing behavior is
  unchanged. Routes are now built from a guarded spec list.

#69 — LoggersProvider.set_level resolves TRACE (->5, below DEBUG) and OFF
  (->CRITICAL+1, disables) explicitly; both were advertised as valid levels but
  getattr(logging, 'TRACE'/'OFF') is None, so selecting them silently returned 400.

#71 — the beans SSE generator (admin/api/sse.py beans_stream) is now reachable via
  GET {base}/api/sse/beans; it existed but was never routed.

Tests: tests/admin/test_wave_admin_auth.py (10). Suite admin 115 -> 125 green;
ruff + mypy clean.

* fix(admin): server-mode instance registry, client self-registration, health rescan (audit #67/#68/#70)

#67 — create_app now binds AdminServerProperties and, when
  pyfly.admin.server.enabled=true, builds an InstanceRegistry, seeds it from the
  configured instances via StaticDiscovery, and passes it to AdminRouteBuilder —
  so the /api/instances routes mount and settings.serverMode reports true.
  Previously server mode was permanently off (registry never constructed).

#68 — AdminClientRegistration gained start()/stop() lifecycle methods that honor
  auto_register (now threaded from AdminClientProperties), so the
  ApplicationContext infrastructure lifecycle self-registers the app with the
  remote admin server at startup and deregisters at shutdown. register() swallows
  its own errors, so a down admin server never aborts startup.

#70 — when the actuator is disabled but admin is enabled, the admin-owned
  HealthAggregator now gets a post-start indicator rescan (appended to
  _extra_post_start), so the admin health view reflects HealthIndicator beans
  instantiated during start() instead of a frozen empty pre-startup snapshot.

Tests: tests/admin/test_wave_admin_wiring.py (6). Admin module fully remediated
(#66/#67/#68/#69/#70/#71). Suite 3561 -> 3577 green; ruff + mypy clean.

* docs(release): v26.06.01 — refresh docs to match remediation, bump version

- Bump version 26.06.00 -> 26.06.01 (pyproject 26.6.1, __version__, README badge).
- CHANGELOG: comprehensive v26.06.01 entry covering the ~130-finding parity/wiring
  remediation (web required-params + CORS + exception converters; config relaxed
  binding + env-only keys + remote import; config-server HTTP routes/overlays/root;
  admin auth + server-mode + client registration + log levels + beans SSE;
  tracing exporter; starter property keys; ECM provider selection; plugin
  extension-point validation/unload; orchestration DLQ count + in-flight default;
  bulkhead permit accounting; i18n MessageFormat; shell option type/choices;
  mock_bean injection; pyfly new package name).
- Docs refreshed against current code across web, configuration, config-server,
  admin, observability, actuator, ecm, plugins, resilience, transactional,
  validation, shell, testing, cli, error-handling, web-filters; new module guides
  for i18n and websocket; indexes updated.
- fix(config): remote-config import reads pyfly.app.name (was the inconsistent
  pyfly.application.name), matching the framework-wide key.

Suite 3577 green; ruff + mypy clean.

* style: fix import ordering in 3 wave test files (ruff I001, CI lint)

---------

Co-authored-by: Andrés Contreras Guillén <ancongui@Andress-MacBook-Pro.local>
@dependabot @github
Copy link
Copy Markdown
Contributor Author

dependabot Bot commented on behalf of github Jun 5, 2026

Looks like these dependencies are updatable in another way, so this is no longer needed.

@dependabot dependabot Bot closed this Jun 5, 2026
@dependabot dependabot Bot deleted the dependabot/pip/dev-dependencies-a826037d75 branch June 5, 2026 09:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file python Pull requests that update python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants