Repository navigation
providers/saml: Add ability to select encryption algorithm - #27009
Conversation
# Conflicts: # packages/client-ts/src/models/index.ts # schema.yml
✅ Deploy Preview for authentik-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #27009 +/- ##
==========================================
+ Coverage 92.25% 92.34% +0.08%
==========================================
Files 1182 1188 +6
Lines 79149 80096 +947
Branches 4351 4351
==========================================
+ Hits 73020 73962 +942
- Misses 6063 6068 +5
Partials 66 66
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. |
Playwright e2eDownload this run's HTML report and traces, then open the report: gh run download 39448776862 -D playwright-artifacts
npx playwright show-report playwright-artifacts/playwright-reportInstallation instructionsInstructions for docker-composeAdd the following block to your AUTHENTIK_IMAGE=ghcr.io/goauthentik/dev-server
AUTHENTIK_TAG=gh-22826aacbffa52f17593702685c8e68f4dfcac17
AUTHENTIK_OUTPOSTS__CONTAINER_IMAGE_BASE=ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)sAfterwards, run the upgrade commands from the latest release notes. Instructions for KubernetesAdd the following block to your authentik:
outposts:
container_image_base: ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s
global:
image:
repository: ghcr.io/goauthentik/dev-server
tag: gh-22826aacbffa52f17593702685c8e68f4dfcac17Afterwards, run the upgrade commands from the latest release notes. |
dewi-tik
left a comment
There was a problem hiding this comment.
Hope that you're happy with the docs changes I made.
| metadata = ( | ||
| '<md:EntityDescriptor xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata" ' | ||
| 'xmlns:ds="http://www.w3.org/2000/09/xmldsig#" ' | ||
| 'entityID="http://localhost:8080/saml/metadata">' | ||
| "<md:SPSSODescriptor protocolSupportEnumeration=" | ||
| '"urn:oasis:names:tc:SAML:2.0:protocol">' | ||
| '<md:KeyDescriptor use="encryption">' | ||
| f'<md:EncryptionMethod Algorithm="{AES256_GCM}"/>' | ||
| f"<ds:KeyInfo><ds:X509Data><ds:X509Certificate>{cert_body}" | ||
| "</ds:X509Certificate></ds:X509Data></ds:KeyInfo>" | ||
| "</md:KeyDescriptor>" | ||
| "<md:AssertionConsumerService " | ||
| 'Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST" ' | ||
| 'Location="http://localhost:8080/saml/acs" index="1"/>' | ||
| "</md:SPSSODescriptor></md:EntityDescriptor>" | ||
| ) |
There was a problem hiding this comment.
i'd prefer this as a fixture since its not parameterised
|
@dewi-tik I always do, thank you! |
* main: (27 commits) lib/tracing: fix sentry tracing when otel is enabled (#27066) website/integrations: audiobookshelf: Fix Post Logout URI (#27074) web/user: fix agents tab flashing without license (#27069) root: bump cert-related deps due to emudhra (#27068) web: fix table fetch races and search select e2e lookups (#27059) core: bump astral-sh/uv from 0.13.1 to 0.13.3 in /lifecycle/container (#27037) policies: fix warning from setting non-string tracing data (#27062) root: annotate hot paths (#27052) website/docs: contributing: add guidelines for vendor contributions (#27032) providers/saml: Add ability to select encryption algorithm (#27009) lib: set postgres timezone on connection (#27053) core: add postgres connection info (#27024) ci: fix cargo deny for basic-toml (#27054) web/elements: keep ak-array-input edits through form submission (#27045) enterprise: optimize middleware (#27015) core: bump goauthentik/platform-ssh from 26.04-ak-0.72.0 to 26.04-ak-0.72.1 in /tests/e2e (#27038) core: bump ruff from 0.16.10 to 0.17.0 (#27044) core: bump sentry-sdk from 2.71.0 to 2.72.0 (#27043) core: bump django-postgres-extra from 3.0.0 to 3.0.1 (#27042) core: bump python-kadmin-rs from 0.7.4 to 0.7.5 (#27040) ...
* main: (21 commits) policies: fix warning from setting non-string tracing data (#27062) root: annotate hot paths (#27052) website/docs: contributing: add guidelines for vendor contributions (#27032) providers/saml: Add ability to select encryption algorithm (#27009) lib: set postgres timezone on connection (#27053) core: add postgres connection info (#27024) ci: fix cargo deny for basic-toml (#27054) web/elements: keep ak-array-input edits through form submission (#27045) enterprise: optimize middleware (#27015) core: bump goauthentik/platform-ssh from 26.04-ak-0.72.0 to 26.04-ak-0.72.1 in /tests/e2e (#27038) core: bump ruff from 0.16.10 to 0.17.0 (#27044) core: bump sentry-sdk from 2.71.0 to 2.72.0 (#27043) core: bump django-postgres-extra from 3.0.0 to 3.0.1 (#27042) core: bump python-kadmin-rs from 0.7.4 to 0.7.5 (#27040) core: bump goauthentik/selenium from 152.0-ak-0.72.0 to 152.0-ak-0.72.1 in /tests/e2e (#27039) core: bump aiohttp from 3.14.3 to 3.14.4 (#27034) web/flow: fix remember-me being cleared by CSRF token rotation (#25205) web/theme: Remove the categories build from the theme (#26982) core: bump library/golang from `2f84bc9` to `4766793` in /lifecycle/container (#26996) providers/saml: verify logoutrequest/response signatures (#26534) ...
Details
When making a SAML or WS-FED provider, users can now select which encryption algorithm they want to use.
What does this PR change?
Why is this change needed?
AES-256-GCM is the cipher NSA's CNSA 2.0 protocol profiles require and the mode XML Encryption 1.1 recommends over CBC.
How was this tested?
AES256-GCM manually tested against 5 different SAML providers.
Linked issues
Checklist
make all)make docs)