Skip to content

chore(deps): upgrade pysaml2 to 7.5.5 and drop the baserow fork - #6229

Merged
silvestrid merged 1 commit into
developfrom
chore/pysaml2-7.5.5
Oct 1, 2026
Merged

silvestrid merged 1 commit into
developfrom
chore/pysaml2-7.5.5

Conversation

@silvestrid

Copy link
Copy Markdown
Contributor

What is in this PR

Upstream pysaml2 7.5.5 (2026-09-17) includes IdentityPython/pysaml2#1021, the fix we cherry-picked into baserow/pysaml2 in #5663 to unblock the CVE-2026-26007 cryptography upgrade. This PR installs pysaml2 from PyPI again and retires the fork.

  • backend/pyproject.toml: pysaml2==7.5.4 → 7.5.5, [tool.uv.sources] fork entry removed.
  • backend/uv.lock: only pysaml2 changes. cryptography (50.0.0) and pyopenssl (26.4.0) are unchanged.
  • backend/Dockerfile: git removed from the builder-prod-base and dev stages. It was only there for uv to fetch the git-sourced fork.

The fork and 7.5.5 differ in one function: OpenSSLWrapper.verify in saml2/cert.py (a refactor with narrower exception handling). pysaml2 only calls it when verify_ssl_cert or generate_cert_info is configured, and Baserow sets neither, so SAML behaviour is unchanged.

saas follow-up: plugins/saas/backend/Dockerfile has the same three git lines. Remove them only after the saas re-lock picks up this change; until then its uv.lock still references the fork and uv sync --frozen needs git.

How to test this PR

  • just b test ../enterprise/backend/tests/baserow_enterprise_tests/sso ../enterprise/backend/tests/baserow_enterprise_tests/api/sso (89 passed locally on 7.5.5).
  • uvx [email protected] lock --check --directory backend passes, so the lock stays readable by the uv version pinned in the Docker images.
  • CI builds the backend image without git.
  • Optionally, log in through a SAML provider on the dev stack.

Checklist

  • A changelog entry has been added not needed: no user-facing change
  • New/updated Premium/Enterprise features are separated correctly in the premium or enterprise folder
  • The latest Chrome and Firefox have been used to test any new frontend features no frontend changes
  • Documentation has been updated nothing to document
  • Quality Standards are met
  • Performance: tables are still fast with 100k+ rows, 100+ field tables
  • The redoc API pages have been updated no API changes
  • Our custom API docs are updated no API changes
  • The UI/UX has been updated following the UI Style Guide no UI changes
  • Security impact of change has been considered

Upstream pysaml2 7.5.5 ships IdentityPython/pysaml2#1021, the fix we
cherry-picked into baserow/pysaml2 in #5663 to unblock the
CVE-2026-26007 cryptography upgrade. Install it from PyPI again.

The only code difference from the fork is a refactor of
OpenSSLWrapper.verify in saml2/cert.py, reached only through
verify_ssl_cert or generate_cert_info, which Baserow never sets.

git is removed from the Dockerfile builder-prod-base and dev stages: it
was only needed for uv to fetch the git-sourced fork.
@qodo-free-for-open-source-projects

Copy link
Copy Markdown

PR Summary by Qodo

Upgrade pysaml2 to 7.5.5 and retire the Baserow fork

⚙️ Configuration changes 🕐 10-20 Minutes

Grey Divider

AI Description

• Upgrade pysaml2 to upstream 7.5.5, which includes the fix previously carried in Baserow’s fork.
• Restore PyPI resolution by removing the fork’s uv source override.
• Remove Git from backend Docker stages that no longer need it to install dependencies.
Diagram

graph TD
  C["Dependency pin"] --> L["uv lockfile"] --> U["uv sync"] --> S["SAML handler"]
  P["PyPI pysaml2"] --> U
  D["Docker stages"] --> U
Loading
High-Level Assessment

Use the upstream release now that it contains the forked fix; retaining the fork would preserve an unnecessary Git dependency. Keep Git in the separate SaaS image until its lockfile no longer references the fork.

Files changed (2) +2 / -13

Other (2) +2 / -13
DockerfileRemove Git from backend dependency-install stages +1/-5

Remove Git from backend dependency-install stages

• Removes Git from the production base builder and development stages. The Git-sourced pysaml2 fork no longer requires it during uv installation.

backend/Dockerfile

pyproject.tomlPin upstream pysaml2 and remove the fork override +1/-8

Pin upstream pysaml2 and remove the fork override

• Raises the pysaml2 pin from 7.5.4 to 7.5.5 and deletes the uv source entry pointing to the Baserow Git fork. Dependency resolution returns to PyPI.

backend/pyproject.toml

@silvestrid silvestrid self-assigned this Sep 30, 2026
@silvestrid silvestrid added the dependencies Pull requests that update a dependency file label Sep 30, 2026
@silvestrid
silvestrid requested a review from a team September 30, 2026 14:29
@github-actions

Copy link
Copy Markdown

Coverage report

This PR does not seem to contain any modification to coverable code.

@alamin-br alamin-br 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.

Looks good. Let's merge!

@silvestrid
silvestrid merged commit 3f1de6e into develop Oct 1, 2026
52 checks passed
@silvestrid
silvestrid deleted the chore/pysaml2-7.5.5 branch October 1, 2026 07:54
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

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants