Repository navigation
core: preserve encoded avatar URLs - #23225
Conversation
Avoid Python percent-formatting for custom avatar URLs so URL-encoded sequences such as %2F are treated as URL text instead of format directives. Agent-thread: https://koala.sdko.net/th?h=co&d=a7k&t=019ee851-2fd9-7d01-863f-ba4eef342dbe Signed-off-by: Dominic Roy <[email protected]> Co-authored-by: Agent <[email protected]>
✅ Deploy Preview for authentik-integrations 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 #23225 +/- ##
==========================================
- Coverage 93.27% 93.22% -0.06%
==========================================
Files 1035 1035
Lines 60354 60372 +18
Branches 400 400
==========================================
- Hits 56295 56281 -14
- Misses 4059 4091 +32
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. |
|
authentik PR Installation instructions Instructions for docker-composeAdd the following block to your AUTHENTIK_IMAGE=ghcr.io/goauthentik/dev-server
AUTHENTIK_TAG=gh-4546d8ad1f15a453d00e9257f8e78c6ac19dbfe7
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-4546d8ad1f15a453d00e9257f8e78c6ac19dbfe7Afterwards, run the upgrade commands from the latest release notes. |
|
🍒 Cherry-pick to |
|
🍒 Cherry-pick to |
* main: (27 commits) website/integrations: Planka: cleanup (#23332) website/integrations: SharePoint Server SE: cleanup (#23335) core: run debugpy within worker process so it's DAP-attachable again (#23401) core, web: update translations (#23373) core: bump library/golang from `bbf22dd` to `76a2924` in /lifecycle/container (#23380) core: bump library/node from `191ef87` to `f9b8bd6` in /lifecycle/container (#23378) core: bump library/nginx from `42f2d24` to `ec4ed8b` in /website (#23382) core: bump library/node from `3c05c2c` to `15797fb` in /website (#23383) core: bump goauthentik/fips-python from `c54ab1b` to `fe20a68` in /lifecycle/container (#23379) website/docs: fix 2026.5 release notes mentioning docker-compose.yml (#23385) website/docs: fix 2026.2 release notes docker compose mention take 2 (#23388) website/docs: clean up source docs (#23374) website/api: debug build issues (#23392) core: preserve encoded avatar URLs (#23225) website/integrations: add ExcaliDash integration (#23375) website/docs: sources: remove support_level labels from docs (#23389) website/integrations: Zabbix: cleanup (#23271) fix release notes docker compose mention (#23386) core: bump goauthentik/fips-debian and fips-python in /lifecycle/container (#23362) root: Fix SECURITY.md versions (#23370) ...
* web/css/enabling-layers: (27 commits) website/integrations: Planka: cleanup (#23332) website/integrations: SharePoint Server SE: cleanup (#23335) core: run debugpy within worker process so it's DAP-attachable again (#23401) core, web: update translations (#23373) core: bump library/golang from `bbf22dd` to `76a2924` in /lifecycle/container (#23380) core: bump library/node from `191ef87` to `f9b8bd6` in /lifecycle/container (#23378) core: bump library/nginx from `42f2d24` to `ec4ed8b` in /website (#23382) core: bump library/node from `3c05c2c` to `15797fb` in /website (#23383) core: bump goauthentik/fips-python from `c54ab1b` to `fe20a68` in /lifecycle/container (#23379) website/docs: fix 2026.5 release notes mentioning docker-compose.yml (#23385) website/docs: fix 2026.2 release notes docker compose mention take 2 (#23388) website/docs: clean up source docs (#23374) website/api: debug build issues (#23392) core: preserve encoded avatar URLs (#23225) website/integrations: add ExcaliDash integration (#23375) website/docs: sources: remove support_level labels from docs (#23389) website/integrations: Zabbix: cleanup (#23271) fix release notes docker compose mention (#23386) core: bump goauthentik/fips-debian and fips-python in /lifecycle/container (#23362) root: Fix SECURITY.md versions (#23370) ...
…6.5) (#23394) core: preserve encoded avatar URLs (#23225) Avoid Python percent-formatting for custom avatar URLs so URL-encoded sequences such as %2F are treated as URL text instead of format directives. Agent-thread: https://koala.sdko.net/th?h=co&d=a7k&t=019ee851-2fd9-7d01-863f-ba4eef342dbe Signed-off-by: Dominic Roy <[email protected]> Co-authored-by: Dominic Roy <[email protected]> Co-authored-by: Agent <[email protected]>
…6.2) (#23393) core: preserve encoded avatar URLs (#23225) Avoid Python percent-formatting for custom avatar URLs so URL-encoded sequences such as %2F are treated as URL text instead of format directives. Agent-thread: https://koala.sdko.net/th?h=co&d=a7k&t=019ee851-2fd9-7d01-863f-ba4eef342dbe Signed-off-by: Dominic Roy <[email protected]> Co-authored-by: Dominic Roy <[email protected]> Co-authored-by: Agent <[email protected]>
Custom avatar URLs currently go through Python
%formatting, so normal URL escapes like%2Fcan be interpreted as format tokens and raise while the user avatar is serialized.This changes avatar URL formatting to replace only the supported placeholders:
Everything else is left as-is, so encoded URLs stay valid.
Repro:
Set System → Settings → Avatars to:
Load
/api/v3/core/users/me/.Before this change, that can 500 while formatting the avatar URL. With this change it returns the encoded URL normally.
Validation: