Skip to content

docker: fastapi==0.112.2 pin holds Starlette below 0.39; raise it by the smallest safe step #619

Backlog

Description

@gonzalesedwin1123

Summary

docker/requirements.txt pins fastapi==0.112.2. That release requires starlette<0.39.0,>=0.37.2, so the image cannot pick up any Starlette release newer than 0.38.x. Starlette is a transitive dependency and is not listed in our requirements files, so Dependabot raises no alert for it.

Why it matters

OSV lists published advisories against Starlette releases in that range. The ones relevant to how we use Starlette are the denial-of-service issues in form parsing:

Two routers parse form bodies: spp_api_v2/routers/oauth.py and spp_dci_server/routers/bulk_upload.py. The impact is availability, not data exposure, and a request-size limit on the reverse proxy in front of Odoo reduces it.

Other advisories in the range were checked and are low impact or not applicable here: request.url.path and request.base_url are only used to build pagination and OGC links, and neither StaticFiles nor HTTPEndpoint is used in the repo.

Not yet verified: the exact Starlette version inside a built image, and what request-size limits the documented deployments set.

Proposed change

Raise the fastapi pin by the smallest step that allows starlette>=0.47.2, rather than jumping to the latest release (Dependabot's #598 proposed 0.112.2 -> 0.161.1, 49 minor versions, and was closed).

  • Change only the pin in docker/requirements.txt. The root requirements.txt is generated from module manifests and must not be edited by hand.
  • Identify the smallest fastapi release whose Starlette constraint admits 0.47.2 or later.
  • Run the suites that exercise the API stack, which the default PR test matrix does not: the vendored OCA fastapi module, spp_api_v2 and its spp_api_v2_* extensions, spp_dci_server, spp_dci_client_sr, plus a Full Test Suite dispatch on the branch.
  • Check the vendored OCA fastapi module for compatibility with the newer fastapi/Starlette internals it hooks into.

Acceptance criteria

  • The built image contains Starlette 0.47.2 or later.
  • The API module suites and the Full Test Suite show no new failures against the 19.0 baseline.

Related: #512 (Dependabot versioning strategy), #598 (closed Dependabot PR).

Activity

  1. added
    enhancement
    on Dec 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions