Repository navigation
providers/saml: catch InvalidVersion from cryptography when parsing metadata - #21185
Merged
Merged
Conversation
…etadata certificates to prevent 500 errors
✅ Deploy Preview for authentik-storybook ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for authentik-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #21185 +/- ##
==========================================
- Coverage 92.80% 92.76% -0.05%
==========================================
Files 1000 1000
Lines 56627 56633 +6
Branches 425 425
==========================================
- Hits 52555 52535 -20
- Misses 4072 4098 +26
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
BeryJu
approved these changes
Jul 13, 2026
kensternberg-authentik
added a commit
that referenced
this pull request
Jul 13, 2026
* main: (30 commits) providers/saml: catch InvalidVersion from cryptography when parsing metadata (#21185) stages/user_login: refuse to log in an unsaved pending user (#21691) web/admin: hide previous loglist when no previous logs available (#23954) stages/email: fix ungrammatical expiry time in password reset templates (#22758) tests/openid_conformance: Add more conformance coverage (#22174) sources/ldap: derive TLS SNI name from hostname, not full server URI (#22456) core: bump github.com/grafana/pyroscope-go from 1.3.1 to 1.4.0 (#23885) web: Fix Log Viewer Intersection Observer. (#23861) web: bump the goauthentik group across 1 directory with 2 updates (#23926) ci: bump regclient/actions/regctl-login from 4b4db1dcc7dad75ad67a788a380f75a20cc8a040 to 39bf30ced4be9d147faaabbde2682e9725fb8bd1 (#23890) ci: bump regclient/actions/regctl-installer from 4b4db1dcc7dad75ad67a788a380f75a20cc8a040 to 39bf30ced4be9d147faaabbde2682e9725fb8bd1 (#23891) core: bump pnpm/pnpm from 11.10.0 to 11.11.0 in /website (#23930) core: bump pnpm/pnpm from 11.10.0 to 11.11.0 in /lifecycle/container (#23927) core: bump github.com/sethvargo/go-envconfig from 1.3.0 to 1.3.1 (#23921) core: bump goauthentik/selenium from 149.0-ak-0.50.1 to 149.0-ak-0.50.2 in /tests/e2e (#23924) core: bump uvicorn[standard] from 0.49.0 to 0.50.0 (#23925) core: bump ruff from 0.15.20 to 0.15.21 (#23928) core: bump goauthentik/fips-python from `aaaab46` to `0798f3b` in /lifecycle/container (#23929) ci: bump actions/stale from 10.3.0 to 10.4.0 (#23935) ci: bump github/codeql-action/autobuild from 4.36.3 to 4.37.0 (#23931) ...
kensternberg-authentik
added a commit
that referenced
this pull request
Jul 13, 2026
* main: (48 commits) web/bug: harmonize and make routine the display of tasks (part 2: description list abuse) (#23839) providers/oauth2: fix iframe logout stage progression (#23919) providers/scim: improve error display when error doesn't conform to scim schema (#23955) providers/saml: catch InvalidVersion from cryptography when parsing metadata (#21185) stages/user_login: refuse to log in an unsaved pending user (#21691) web/admin: hide previous loglist when no previous logs available (#23954) stages/email: fix ungrammatical expiry time in password reset templates (#22758) tests/openid_conformance: Add more conformance coverage (#22174) sources/ldap: derive TLS SNI name from hostname, not full server URI (#22456) core: bump github.com/grafana/pyroscope-go from 1.3.1 to 1.4.0 (#23885) web: Fix Log Viewer Intersection Observer. (#23861) web: bump the goauthentik group across 1 directory with 2 updates (#23926) ci: bump regclient/actions/regctl-login from 4b4db1dcc7dad75ad67a788a380f75a20cc8a040 to 39bf30ced4be9d147faaabbde2682e9725fb8bd1 (#23890) ci: bump regclient/actions/regctl-installer from 4b4db1dcc7dad75ad67a788a380f75a20cc8a040 to 39bf30ced4be9d147faaabbde2682e9725fb8bd1 (#23891) core: bump pnpm/pnpm from 11.10.0 to 11.11.0 in /website (#23930) core: bump pnpm/pnpm from 11.10.0 to 11.11.0 in /lifecycle/container (#23927) core: bump github.com/sethvargo/go-envconfig from 1.3.0 to 1.3.1 (#23921) core: bump goauthentik/selenium from 149.0-ak-0.50.1 to 149.0-ak-0.50.2 in /tests/e2e (#23924) core: bump uvicorn[standard] from 0.49.0 to 0.50.0 (#23925) core: bump ruff from 0.15.20 to 0.15.21 (#23928) ...
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.
Details
Currently if you have a v2 x509 certificate inside of the metadata, the raised InvalidVersion exception is not caught. This PR catches that exception.
Checklist
ak test authentik/)make lint-fix)If an API change has been made
make gen)If changes to the frontend have been made
make web)If applicable
make docs)