fastapi-m8 4.4.0__tar.gz → 4.5.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. {fastapi_m8-4.4.0 → fastapi_m8-4.5.1}/.github/workflows/PiPy.yml +1 -1
  2. {fastapi_m8-4.4.0 → fastapi_m8-4.5.1}/CHANGELOG.md +52 -0
  3. {fastapi_m8-4.4.0 → fastapi_m8-4.5.1}/PKG-INFO +2 -2
  4. {fastapi_m8-4.4.0 → fastapi_m8-4.5.1}/constraints-all.txt +1 -1
  5. {fastapi_m8-4.4.0 → fastapi_m8-4.5.1}/constraints.txt +1 -1
  6. {fastapi_m8-4.4.0 → fastapi_m8-4.5.1}/fastapi_m8/_compat.py +10 -0
  7. {fastapi_m8-4.4.0 → fastapi_m8-4.5.1}/fastapi_m8/_version.py +1 -1
  8. {fastapi_m8-4.4.0 → fastapi_m8-4.5.1}/pyproject.toml +2 -2
  9. {fastapi_m8-4.4.0 → fastapi_m8-4.5.1}/tests/test_compat.py +30 -0
  10. {fastapi_m8-4.4.0 → fastapi_m8-4.5.1}/.codacy.yml +0 -0
  11. {fastapi_m8-4.4.0 → fastapi_m8-4.5.1}/.dockerignore +0 -0
  12. {fastapi_m8-4.4.0 → fastapi_m8-4.5.1}/.env.example +0 -0
  13. {fastapi_m8-4.4.0 → fastapi_m8-4.5.1}/.gitattributes +0 -0
  14. {fastapi_m8-4.4.0 → fastapi_m8-4.5.1}/.github/FUNDING.yml +0 -0
  15. {fastapi_m8-4.4.0 → fastapi_m8-4.5.1}/.github/dependabot.yml +0 -0
  16. {fastapi_m8-4.4.0 → fastapi_m8-4.5.1}/.github/workflows/CI.yaml +0 -0
  17. {fastapi_m8-4.4.0 → fastapi_m8-4.5.1}/.gitignore +0 -0
  18. {fastapi_m8-4.4.0 → fastapi_m8-4.5.1}/.gitleaks.toml +0 -0
  19. {fastapi_m8-4.4.0 → fastapi_m8-4.5.1}/.markdownlint.yaml +0 -0
  20. {fastapi_m8-4.4.0 → fastapi_m8-4.5.1}/.pydocstyle +0 -0
  21. {fastapi_m8-4.4.0 → fastapi_m8-4.5.1}/AGENTS.md +0 -0
  22. {fastapi_m8-4.4.0 → fastapi_m8-4.5.1}/CLAUDE.md +0 -0
  23. {fastapi_m8-4.4.0 → fastapi_m8-4.5.1}/LICENSE +0 -0
  24. {fastapi_m8-4.4.0 → fastapi_m8-4.5.1}/README.md +0 -0
  25. {fastapi_m8-4.4.0 → fastapi_m8-4.5.1}/REPOSITORY_CONTEXT.md +0 -0
  26. {fastapi_m8-4.4.0 → fastapi_m8-4.5.1}/SECURITY.md +0 -0
  27. {fastapi_m8-4.4.0 → fastapi_m8-4.5.1}/fastapi_m8/__init__.py +0 -0
  28. {fastapi_m8-4.4.0 → fastapi_m8-4.5.1}/fastapi_m8/_api_key.py +0 -0
  29. {fastapi_m8-4.4.0 → fastapi_m8-4.5.1}/fastapi_m8/_app.py +0 -0
  30. {fastapi_m8-4.4.0 → fastapi_m8-4.5.1}/fastapi_m8/_async_stub.py +0 -0
  31. {fastapi_m8-4.4.0 → fastapi_m8-4.5.1}/fastapi_m8/_deps.py +0 -0
  32. {fastapi_m8-4.4.0 → fastapi_m8-4.5.1}/fastapi_m8/_engine.py +0 -0
  33. {fastapi_m8-4.4.0 → fastapi_m8-4.5.1}/fastapi_m8/_events.py +0 -0
  34. {fastapi_m8-4.4.0 → fastapi_m8-4.5.1}/fastapi_m8/_health.py +0 -0
  35. {fastapi_m8-4.4.0 → fastapi_m8-4.5.1}/fastapi_m8/_internal_auth.py +0 -0
  36. {fastapi_m8-4.4.0 → fastapi_m8-4.5.1}/fastapi_m8/_revocation.py +0 -0
  37. {fastapi_m8-4.4.0 → fastapi_m8-4.5.1}/fastapi_m8/_route_audit.py +0 -0
  38. {fastapi_m8-4.4.0 → fastapi_m8-4.5.1}/fastapi_m8/config.py +0 -0
  39. {fastapi_m8-4.4.0 → fastapi_m8-4.5.1}/fastapi_m8/scripts/__init__.py +0 -0
  40. {fastapi_m8-4.4.0 → fastapi_m8-4.5.1}/fastapi_m8/scripts/docker_start.sh +0 -0
  41. {fastapi_m8-4.4.0 → fastapi_m8-4.5.1}/fastapi_m8/scripts/pre_start.py +0 -0
  42. {fastapi_m8-4.4.0 → fastapi_m8-4.5.1}/tests/__init__.py +0 -0
  43. {fastapi_m8-4.4.0 → fastapi_m8-4.5.1}/tests/conftest.py +0 -0
  44. {fastapi_m8-4.4.0 → fastapi_m8-4.5.1}/tests/test_api_key.py +0 -0
  45. {fastapi_m8-4.4.0 → fastapi_m8-4.5.1}/tests/test_api_key_deps.py +0 -0
  46. {fastapi_m8-4.4.0 → fastapi_m8-4.5.1}/tests/test_app.py +0 -0
  47. {fastapi_m8-4.4.0 → fastapi_m8-4.5.1}/tests/test_app_extra.py +0 -0
  48. {fastapi_m8-4.4.0 → fastapi_m8-4.5.1}/tests/test_async_stub.py +0 -0
  49. {fastapi_m8-4.4.0 → fastapi_m8-4.5.1}/tests/test_changelog_version_parity.py +0 -0
  50. {fastapi_m8-4.4.0 → fastapi_m8-4.5.1}/tests/test_ci_policy.py +0 -0
  51. {fastapi_m8-4.4.0 → fastapi_m8-4.5.1}/tests/test_config.py +0 -0
  52. {fastapi_m8-4.4.0 → fastapi_m8-4.5.1}/tests/test_config_file_secrets.py +0 -0
  53. {fastapi_m8-4.4.0 → fastapi_m8-4.5.1}/tests/test_deps.py +0 -0
  54. {fastapi_m8-4.4.0 → fastapi_m8-4.5.1}/tests/test_engine.py +0 -0
  55. {fastapi_m8-4.4.0 → fastapi_m8-4.5.1}/tests/test_event_signing_gate.py +0 -0
  56. {fastapi_m8-4.4.0 → fastapi_m8-4.5.1}/tests/test_events.py +0 -0
  57. {fastapi_m8-4.4.0 → fastapi_m8-4.5.1}/tests/test_fixture_matrix_contract.py +0 -0
  58. {fastapi_m8-4.4.0 → fastapi_m8-4.5.1}/tests/test_health.py +0 -0
  59. {fastapi_m8-4.4.0 → fastapi_m8-4.5.1}/tests/test_host_header_routing.py +0 -0
  60. {fastapi_m8-4.4.0 → fastapi_m8-4.5.1}/tests/test_internal_auth.py +0 -0
  61. {fastapi_m8-4.4.0 → fastapi_m8-4.5.1}/tests/test_meta.py +0 -0
  62. {fastapi_m8-4.4.0 → fastapi_m8-4.5.1}/tests/test_packaging.py +0 -0
  63. {fastapi_m8-4.4.0 → fastapi_m8-4.5.1}/tests/test_pre_start.py +0 -0
  64. {fastapi_m8-4.4.0 → fastapi_m8-4.5.1}/tests/test_public_typing.py +0 -0
  65. {fastapi_m8-4.4.0 → fastapi_m8-4.5.1}/tests/test_revocation.py +0 -0
  66. {fastapi_m8-4.4.0 → fastapi_m8-4.5.1}/tests/test_route_audit.py +0 -0
  67. {fastapi_m8-4.4.0 → fastapi_m8-4.5.1}/tests/test_version_source_parity.py +0 -0
@@ -72,7 +72,7 @@ jobs:
72
72
  - name: Install package
73
73
  run: pip install -e ".[all]"
74
74
 
75
- - uses: anchore/sbom-action@e22c389904149dbc22b58101806040fa8d37a610 # v0.24.0
75
+ - uses: anchore/sbom-action@3ad7283483fc7af8ff2b4ea19663c2d5ca935e26 # v0.24.2
76
76
  with:
77
77
  artifact-name: fastapi-m8-${{ github.event.release.tag_name }}.sbom.spdx.json
78
78
  format: spdx-json
@@ -5,6 +5,58 @@ Format: [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) · Versioning:
5
5
 
6
6
  ---
7
7
 
8
+ ## [4.5.1] — 2026-09-12 · Move the compiled `auth-sdk-m8` pin to the `4.5.0` floor
9
+
10
+ `4.5.0` raised the `pyproject.toml` floor to `auth-sdk-m8>=3.2.0,<4.0.0` but
11
+ left both compiled constraint files pinning `==3.1.3`, so the lockfiles
12
+ contradicted the declaration they were compiled from.
13
+
14
+ ### Fixed
15
+
16
+ - **`constraints.txt` and `constraints-all.txt` re-pinned to
17
+ `auth-sdk-m8==3.2.0`.** Edited surgically rather than regenerated:
18
+ `auth-sdk-m8 3.2.0` has byte-identical dependency metadata to `3.1.3`, so
19
+ this is provably the complete diff a correct regeneration would produce for
20
+ the SDK change alone. A trial regeneration on this host's Python 3.14 (the
21
+ files were compiled under 3.12, unavailable here) moved 20+ unrelated pins
22
+ and rewrote the self-referential devcontainer path, so it was rejected in
23
+ favor of the surgical edit. A full regeneration on Python 3.12 remains
24
+ follow-on work.
25
+
26
+ ## [4.5.0] — 2026-09-10 · Raise the `auth-sdk-m8` floor for the JWKS `kid`/key-binding fix (`J3`)
27
+
28
+ `W2A` of the workspace's `fa-auth-m8` JWKS `kid`/key-binding remediation plan
29
+ (`fa-auth-jwks-kid-key-binding-plan-2026-09-08`, workspace-local, not tracked
30
+ in this repository). `auth-sdk-m8 3.2.0` (published 2026-09-10) fixes `J3`'s
31
+ consumer half — a
32
+ resolver that served a stale cached key for up to `JWKS_CACHE_TTL_SECONDS`
33
+ when a key rotated under an unchanged `kid` — but nothing in the fleet
34
+ required it: no consumer service declares `auth-sdk-m8` directly (`F5`
35
+ forbids it), and the compiled `constraints.txt` in every Python consumer
36
+ pinned `==3.1.3` via `# via fastapi-m8`. This release is the only route by
37
+ which the fix reaches a running consumer.
38
+
39
+ ### Changed
40
+
41
+ - **`auth-sdk-m8` floor raised to `>=3.2.0,<4.0.0`** (was `>=3.1.3`) in
42
+ `pyproject.toml` and `COMPAT_MATRIX["4.5"]`. Per the workspace's explicit-pin
43
+ policy (consumer-alignment closure plan §0.5), the floor moves to the
44
+ newest published version, not to an inherited range.
45
+
46
+ ### Added
47
+
48
+ - **`COMPAT_MATRIX["4.5"] = {"auth-sdk-m8": ">=3.2.0,<4.0.0"}`** — shipped in
49
+ the same commit as the floor bump, load-bearing per the `4.4` row's own
50
+ precedent: `_assert_compat()` fails closed on a missing row, so a `4.5.0`
51
+ without this row would refuse to boot for every consumer. No new SDK API is
52
+ consumed — `auth-sdk-m8 3.2.0`'s fix lands entirely behind
53
+ `build_access_validator`, so this floor bump is the whole change (see the
54
+ re-export gate measurement recorded against `auth-sdk-m8 3.1.3 → 3.2.0`).
55
+ - `tests/test_compat.py::test_compat_matrix_45_row_matches_pyproject_floor`,
56
+ `test_assert_compat_45_row_accepts_intended_sdk_major`,
57
+ `test_assert_compat_45_row_rejects_old_major` — mirror the `4.0`-gate tests
58
+ for the new row: accepts an installed `3.2.0`, rejects `3.1.3`.
59
+
8
60
  ## [4.4.0] — 2026-08-15 · Fail closed on a missing compatibility row; make the bare install importable
9
61
 
10
62
  Two independent release-integrity fixes ship together.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: fastapi-m8
3
- Version: 4.4.0
3
+ Version: 4.5.1
4
4
  Summary: FastAPI application framework for m8 consumer microservices.
5
5
  Author-email: Eli Serra <e.serra173@gmail.com>
6
6
  License: Apache License
@@ -215,7 +215,7 @@ Classifier: Programming Language :: Python :: 3.13
215
215
  Classifier: Topic :: Software Development :: Libraries
216
216
  Requires-Python: >=3.12
217
217
  Requires-Dist: anyio>=4.0
218
- Requires-Dist: auth-sdk-m8[config,events,fastapi,observability,security]<4.0.0,>=3.1.3
218
+ Requires-Dist: auth-sdk-m8[config,events,fastapi,observability,security]<4.0.0,>=3.2.0
219
219
  Requires-Dist: fastapi>=0.136.3
220
220
  Requires-Dist: httpx>=0.27.0
221
221
  Requires-Dist: packaging>=24.0
@@ -25,7 +25,7 @@ attrs==26.1.0
25
25
  # via
26
26
  # outcome
27
27
  # trio
28
- auth-sdk-m8[config,events,fastapi,observability,security]==3.1.3
28
+ auth-sdk-m8[config,events,fastapi,observability,security]==3.2.0
29
29
  # via
30
30
  # fastapi-m8
31
31
  # fastapi-m8 (pyproject.toml)
@@ -16,7 +16,7 @@ anyio==4.14.1
16
16
  # fastapi-m8 (pyproject.toml)
17
17
  # httpx
18
18
  # starlette
19
- auth-sdk-m8[config,events,fastapi,observability,security]==3.1.3
19
+ auth-sdk-m8[config,events,fastapi,observability,security]==3.2.0
20
20
  # via
21
21
  # fastapi-m8
22
22
  # fastapi-m8 (pyproject.toml)
@@ -123,6 +123,16 @@ COMPAT_MATRIX: dict[str, dict[str, str]] = {
123
123
  # side, rides this same still-unpublished 4.4.0 rather than a separate
124
124
  # bump. See CHANGELOG.
125
125
  "4.4": {"auth-sdk-m8": ">=3.1.3,<4.0.0"},
126
+ # 4.5 (MINOR) raises the floor to auth-sdk-m8 3.2.0, which carries W2.1's
127
+ # same-`kid` key-change recovery (a cached key rotates without a `kid`
128
+ # change now escalates through one throttled refresh instead of waiting
129
+ # out the JWKS cache TTL) and W2.2's multi-key JWKS parsing/docs. No new
130
+ # SDK API is consumed — both land entirely behind build_access_validator
131
+ # (see the fa-auth-m8 JWKS kid/key-binding plan, W2.1's surface
132
+ # constraint). This row is what makes the fix mandatory rather than
133
+ # optional: a consumer that resolves an older SDK is rejected at boot by
134
+ # _assert_compat instead of silently running the unfixed resolver.
135
+ "4.5": {"auth-sdk-m8": ">=3.2.0,<4.0.0"},
126
136
  }
127
137
 
128
138
  _EXTRAS = "[config,security,fastapi,observability]"
@@ -1,3 +1,3 @@
1
1
  """Single source of truth for the package version."""
2
2
 
3
- __version__ = "4.4.0"
3
+ __version__ = "4.5.1"
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "fastapi-m8"
7
- version = "4.4.0"
7
+ version = "4.5.1"
8
8
  description = "FastAPI application framework for m8 consumer microservices."
9
9
  readme = "README.md"
10
10
  license = { file = "LICENSE" }
@@ -26,7 +26,7 @@ dependencies = [
26
26
  "httpx>=0.27.0",
27
27
  "packaging>=24.0",
28
28
  "anyio>=4.0",
29
- "auth-sdk-m8[config,security,fastapi,observability,events]>=3.1.3,<4.0.0",
29
+ "auth-sdk-m8[config,security,fastapi,observability,events]>=3.2.0,<4.0.0",
30
30
  ]
31
31
 
32
32
  [project.optional-dependencies]
@@ -122,6 +122,36 @@ def test_assert_compat_40_row_rejects_old_major() -> None:
122
122
  _reset_compat()
123
123
 
124
124
 
125
+ def test_compat_matrix_45_row_matches_pyproject_floor() -> None:
126
+ """The 4.5 gate is exactly the auth-sdk-m8 3.2.0 J3-fix floor."""
127
+ assert COMPAT_MATRIX["4.5"] == {"auth-sdk-m8": ">=3.2.0,<4.0.0"}
128
+
129
+
130
+ def test_assert_compat_45_row_accepts_intended_sdk_major() -> None:
131
+ """The 4.5 gate accepts the released SDK version it targets (3.2.0)."""
132
+ _reset_compat()
133
+ with (
134
+ patch("fastapi_m8._compat.__version__", "4.5.0"),
135
+ patch("fastapi_m8._compat.md.version", return_value="3.2.0"),
136
+ ):
137
+ _assert_compat() # should not raise: 3.2.0 is in >=3.2.0,<4.0.0
138
+ assert _COMPAT_STATE["checked"] is True
139
+ assert _COMPAT_STATE["auth_version"] == "3.2.0"
140
+ _reset_compat()
141
+
142
+
143
+ def test_assert_compat_45_row_rejects_old_major() -> None:
144
+ """The 4.5 gate rejects the pre-fix 3.1.3 SDK it must not silently run against."""
145
+ _reset_compat()
146
+ with (
147
+ patch("fastapi_m8._compat.__version__", "4.5.0"),
148
+ patch("fastapi_m8._compat.md.version", return_value="3.1.3"),
149
+ ):
150
+ with pytest.raises(RuntimeError, match="requires auth-sdk-m8"):
151
+ _assert_compat()
152
+ _reset_compat()
153
+
154
+
125
155
  def test_assert_compat_thread_safe() -> None:
126
156
  """Concurrent calls must each see checked=True without racing."""
127
157
  _reset_compat()
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes