web: Recovery Token CSS Safe Mode #23152
Conversation
✅ Deploy Preview for authentik-integrations ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ 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✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #23152 +/- ##
=======================================
Coverage 93.28% 93.29%
=======================================
Files 1035 1035
Lines 60314 60361 +47
Branches 400 400
=======================================
+ Hits 56262 56311 +49
+ Misses 4052 4050 -2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. |
352dae0 to
5d392c8
Compare
5d392c8 to
4f67063
Compare
|
authentik PR Installation instructions Instructions for docker-composeAdd the following block to your AUTHENTIK_IMAGE=ghcr.io/goauthentik/dev-server
AUTHENTIK_TAG=gh-fe8f106bb49f9c8fce44290276de856623ed2657
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-fe8f106bb49f9c8fce44290276de856623ed2657Afterwards, run the upgrade commands from the latest release notes. |
Details
Custom brand CSS can hide login/form controls and soft-lock users out with no way to reach the UI to fix it. Recovery sessions now run in a "safe mode" that suppresses custom CSS.
Changes
UseTokenViewsets aauthentik/brands/safe_modesession flag after recovery login; newsession_safe_mode()helper.<style>(context processor) andCurrentBrandSerializer(thebrands/current/API +window.authentik.brand) both return empty in safe mode, so broken CSS never reaches the browser.custom-css.mdx.Closes #22330
Closes #21822
Closes #20576