Repository navigation
chore(deps): upgrade pysaml2 to 7.5.5 and drop the baserow fork - #6229
Merged
Merged
Conversation
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.
PR Summary by QodoUpgrade pysaml2 to 7.5.5 and retire the Baserow fork
AI Description
Diagram
High-Level Assessment
Files changed (2)
|
alamin-br
approved these changes
Sep 30, 2026
alamin-br
left a comment
Contributor
There was a problem hiding this comment.
Looks good. Let's merge!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:gitremoved from thebuilder-prod-baseanddevstages. It was only there for uv to fetch the git-sourced fork.The fork and 7.5.5 differ in one function:
OpenSSLWrapper.verifyinsaml2/cert.py(a refactor with narrower exception handling). pysaml2 only calls it whenverify_ssl_certorgenerate_cert_infois configured, and Baserow sets neither, so SAML behaviour is unchanged.saas follow-up:
plugins/saas/backend/Dockerfilehas the same threegitlines. Remove them only after the saas re-lock picks up this change; until then itsuv.lockstill references the fork anduv sync --frozenneedsgit.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 backendpasses, so the lock stays readable by the uv version pinned in the Docker images.git.Checklist
A changelog entry has been addednot needed: no user-facing changeThe latest Chrome and Firefox have been used to test any new frontend featuresno frontend changesDocumentation has been updatednothing to documentThe redoc API pages have been updatedno API changesOur custom API docs are updatedno API changesThe UI/UX has been updated following the UI Style Guideno UI changes