Skip to content

web/admin: fix impersonation form requesting data without being opened#19673

Merged
BeryJu merged 2 commits intomainfrom
web/admin/remove-impersonation-reason-required
Jan 23, 2026
Merged

web/admin: fix impersonation form requesting data without being opened#19673
BeryJu merged 2 commits intomainfrom
web/admin/remove-impersonation-reason-required

Conversation

@BeryJu
Copy link
Member

@BeryJu BeryJu commented Jan 22, 2026

inspired #19671

currently when opening a list of 20 users, the impersonation form will make 20 identical requests to the system settings endpoint to know if the reason is required.

this PR fixes the behaviour to only fetch that data when the modal is opened.

@goauthentik/frontend will probably hate me for the change of reverse-bubbling the events down to the modal children, but I can't think of a better way to handle this

ref https://github.com/goauthentik/internal-customer-ref/issues/2

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
@BeryJu BeryJu requested a review from a team as a code owner January 22, 2026 12:46
@BeryJu BeryJu added area:frontend Features or issues related to the browser, TypeScript, Node.js, etc backport/version-2025.10 Add this label to PRs to backport changes to version-2025.10 backport/version-2025.12 Add this label to PRs to backport changes to version-2025.12 labels Jan 22, 2026
@netlify
Copy link

netlify bot commented Jan 22, 2026

Deploy Preview for authentik-storybook ready!

Name Link
🔨 Latest commit dfdd214
🔍 Latest deploy log https://app.netlify.com/projects/authentik-storybook/deploys/69721c2dc533ae0008e99d02
😎 Deploy Preview https://deploy-preview-19673--authentik-storybook.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link

netlify bot commented Jan 22, 2026

Deploy Preview for authentik-docs ready!

Name Link
🔨 Latest commit dfdd214
🔍 Latest deploy log https://app.netlify.com/projects/authentik-docs/deploys/69721c2d073e8900085267ef
😎 Deploy Preview https://deploy-preview-19673--authentik-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@codecov
Copy link

codecov bot commented Jan 22, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.22%. Comparing base (df91a63) to head (dfdd214).
⚠️ Report is 26 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #19673      +/-   ##
==========================================
- Coverage   93.27%   93.22%   -0.06%     
==========================================
  Files         949      949              
  Lines       52131    52131              
==========================================
- Hits        48626    48599      -27     
- Misses       3505     3532      +27     
Flag Coverage Δ
conformance 38.26% <ø> (+<0.01%) ⬆️
e2e 44.11% <ø> (+<0.01%) ⬆️
integration 23.16% <ø> (-0.06%) ⬇️
unit 91.51% <ø> (+<0.01%) ⬆️
unit-migrate 91.53% <ø> (-0.03%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@github-actions
Copy link
Contributor

authentik PR Installation instructions

Instructions for docker-compose

Add the following block to your .env file:

AUTHENTIK_IMAGE=ghcr.io/goauthentik/dev-server
AUTHENTIK_TAG=gh-dfdd214bba12b851b62150b69d3b9439eab5cc28
AUTHENTIK_OUTPOSTS__CONTAINER_IMAGE_BASE=ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s

Afterwards, run the upgrade commands from the latest release notes.

Instructions for Kubernetes

Add the following block to your values.yml file:

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-dfdd214bba12b851b62150b69d3b9439eab5cc28

Afterwards, run the upgrade commands from the latest release notes.

@BeryJu BeryJu merged commit 0a10b81 into main Jan 23, 2026
104 checks passed
@BeryJu BeryJu deleted the web/admin/remove-impersonation-reason-required branch January 23, 2026 20:19
authentik-automation bot pushed a commit that referenced this pull request Jan 23, 2026
This cherry-pick has conflicts that need manual resolution.

Original PR: #19673
Original commit: 0a10b81
@authentik-automation
Copy link
Contributor

⚠️ Cherry-pick to version-2025.10 has conflicts: #19711

authentik-automation bot pushed a commit that referenced this pull request Jan 23, 2026
#19673)

* reverse bubble events

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

* rework impersonation form to not use firstUpdated

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

---------

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
@authentik-automation
Copy link
Contributor

🍒 Cherry-pick to version-2025.12 created: #19712

BeryJu added a commit that referenced this pull request Jan 23, 2026
…d (cherry-pick #19673 to version-2025.10) (#19711)

* Cherry-pick #19673 to version-2025.10 (with conflicts)

This cherry-pick has conflicts that need manual resolution.

Original PR: #19673
Original commit: 0a10b81

* fix conflict

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

---------

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
Co-authored-by: Jens L. <jens@goauthentik.io>
BeryJu added a commit that referenced this pull request Jan 23, 2026
…d (cherry-pick #19673 to version-2025.12) (#19712)

web/admin: fix impersonation form requesting data without being opened (#19673)

* reverse bubble events



* rework impersonation form to not use firstUpdated



---------

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
Co-authored-by: Jens L. <jens@goauthentik.io>
kensternberg-authentik added a commit that referenced this pull request Jan 31, 2026
* main:
  endpoints: FleetDM connector (#18589)
  web/admin: fix impersonation form requesting data without being opened (#19673)
  core: return bad request when user is authenticated and not active (#19706)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:frontend Features or issues related to the browser, TypeScript, Node.js, etc backport/version-2025.10 Add this label to PRs to backport changes to version-2025.10 backport/version-2025.12 Add this label to PRs to backport changes to version-2025.12

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant