Skip to content

web: update @goauthentik/api#19542

Merged
BeryJu merged 1 commit intogoauthentik:mainfrom
Ma27:update-goauthentik-api
Jan 20, 2026
Merged

web: update @goauthentik/api#19542
BeryJu merged 1 commit intogoauthentik:mainfrom
Ma27:update-goauthentik-api

Conversation

@Ma27
Copy link
Contributor

@Ma27 Ma27 commented Jan 17, 2026

Details

Otherwise, e.g. the edit modal of Applications hangs infinitely on a loading spinner because AdminFileListUsageEnum is undefined and not an object.

cc @rissson @BeryJu


Checklist

  • Local tests pass (ak test authentik/)
  • The code has been formatted (make lint-fix)

If an API change has been made

  • The API schema has been updated (make gen-build)

If changes to the frontend have been made

  • The code has been formatted (make web)

If applicable

  • The documentation has been updated
  • The documentation has been formatted (make docs)

Otherwise, e.g. the edit modal of Applications hangs infinitely on a
loading spinner because `AdminFileListUsageEnum` is undefined and not an
object.
@Ma27 Ma27 requested a review from a team as a code owner January 17, 2026 07:56
@netlify
Copy link

netlify bot commented Jan 17, 2026

Deploy Preview for authentik-integrations ready!

Name Link
🔨 Latest commit d610089
🔍 Latest deploy log https://app.netlify.com/projects/authentik-integrations/deploys/696b409e9276cb0008e319b3
😎 Deploy Preview https://deploy-preview-19542--authentik-integrations.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 17, 2026

Deploy Preview for authentik-storybook ready!

Name Link
🔨 Latest commit d610089
🔍 Latest deploy log https://app.netlify.com/projects/authentik-storybook/deploys/696b409e4601b8000826fbb5
😎 Deploy Preview https://deploy-preview-19542--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 17, 2026

Deploy Preview for authentik-docs ready!

Name Link
🔨 Latest commit d610089
🔍 Latest deploy log https://app.netlify.com/projects/authentik-docs/deploys/696b409e072bda0008889916
😎 Deploy Preview https://deploy-preview-19542--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.

Ma27 added a commit to nix-community/authentik-nix that referenced this pull request Jan 17, 2026
ChangeLog: https://docs.goauthentik.io/releases/2025.12

⚠️ When using the Avatar upload, you'll have to make your users
re-upload their avatars due to changes in how media is served by
Authentik[1].

For now, we're using a branch from me that is 2025.12.1 with an update
of `@goauthentik/api` on top[2]. Without that change, `AdminFileListUsageEnum`
doesn't exist which breaks all usage of `AdminFileListUsageEnum.Media`:

  TypeError: can't access property "Media", R.AdminFileListUsageEnum is undefined
    renderForm ApplicationForm.ts:191
    [...]

This made e.g. the modal to edit applications unusable which infinitely
hang on a loading spinner.

The media path now points to `/var/lib/authentik`. This path is only
used for media storage and Authentik now always appends the "usage name"
as directory behind the storage path, i.e. it already appends
`/var/lib/authentik/media`, so this is needed to make Authentik discover
existing media.

Finally, I added a `patches` attribute to the authentik scope that
applies patches to both the workdir-deps (which is the PYTHONPATH in the
end, i.e. where we load the authentik module from) and the gopkgs. We're
still missing patchability for frontend (since we directly build the
subdir in napalm), but I think that's a step in the right direction.

[1] goauthentik/authentik#6824 (comment)
[2] Upstream PR: goauthentik/authentik#19542
Ma27 added a commit to nix-community/authentik-nix that referenced this pull request Jan 17, 2026
Closes #83

ChangeLog: https://docs.goauthentik.io/releases/2025.12

⚠️ When using the Avatar upload, you'll have to make your users
re-upload their avatars due to changes in how media is served by
Authentik[1].

For now, we're using a branch from me that is 2025.12.1 with an update
of `@goauthentik/api` on top[2]. Without that change, `AdminFileListUsageEnum`
doesn't exist which breaks all usage of `AdminFileListUsageEnum.Media`:

  TypeError: can't access property "Media", R.AdminFileListUsageEnum is undefined
    renderForm ApplicationForm.ts:191
    [...]

This made e.g. the modal to edit applications unusable which infinitely
hang on a loading spinner.

The media path now points to `/var/lib/authentik`. This path is only
used for media storage and Authentik now always appends the "usage name"
as directory behind the storage path, i.e. it already appends
`/var/lib/authentik/media`, so this is needed to make Authentik discover
existing media.

Finally, I added a `patches` attribute to the authentik scope that
applies patches to both the workdir-deps (which is the PYTHONPATH in the
end, i.e. where we load the authentik module from) and the gopkgs. We're
still missing patchability for frontend (since we directly build the
subdir in napalm), but I think that's a step in the right direction.

[1] goauthentik/authentik#6824 (comment)
[2] Upstream PR: goauthentik/authentik#19542
Ma27 added a commit to nix-community/authentik-nix that referenced this pull request Jan 17, 2026
Closes #83

ChangeLog: https://docs.goauthentik.io/releases/2025.12

⚠️ When using the Avatar upload, you'll have to make your users
re-upload their avatars due to changes in how media is served by
Authentik[1].

For now, we're using a branch from me that is 2025.12.1 with an update
of `@goauthentik/api` on top[2]. Without that change, `AdminFileListUsageEnum`
doesn't exist which breaks all usage of `AdminFileListUsageEnum.Media`:

    TypeError: can't access property "Media", R.AdminFileListUsageEnum is undefined
      renderForm ApplicationForm.ts:191
      [...]

This made e.g. the modal to edit applications unusable which infinitely
hang on a loading spinner.

The media path now points to `/var/lib/authentik`. This path is only
used for media storage and Authentik now always appends the "usage name"
as directory behind the storage path, i.e. it already appends
`/var/lib/authentik/media`, so this is needed to make Authentik discover
existing media.

Finally, I added a `patches` attribute to the authentik scope that
applies patches to both the workdir-deps (which is the PYTHONPATH in the
end, i.e. where we load the authentik module from) and the gopkgs. We're
still missing patchability for frontend (since we directly build the
subdir in napalm), but I think that's a step in the right direction.

[1] goauthentik/authentik#6824 (comment)
[2] Upstream PR: goauthentik/authentik#19542
Ma27 added a commit to nix-community/authentik-nix that referenced this pull request Jan 17, 2026
Closes #83
Closes #85

ChangeLog: https://docs.goauthentik.io/releases/2025.12

⚠️ When using the Avatar upload, you'll have to make your users
re-upload their avatars due to changes in how media is served by
Authentik[1].

For now, we're using a branch from me that is 2025.12.1 with an update
of `@goauthentik/api` on top[2]. Without that change, `AdminFileListUsageEnum`
doesn't exist which breaks all usage of `AdminFileListUsageEnum.Media`:

    TypeError: can't access property "Media", R.AdminFileListUsageEnum is undefined
      renderForm ApplicationForm.ts:191
      [...]

This made e.g. the modal to edit applications unusable which infinitely
hang on a loading spinner.

The media path now points to `/var/lib/authentik`. This path is only
used for media storage and Authentik now always appends the "usage name"
as directory behind the storage path, i.e. it already appends
`/var/lib/authentik/media`, so this is needed to make Authentik discover
existing media.

Finally, I added a `patches` attribute to the authentik scope that
applies patches to both the workdir-deps (which is the PYTHONPATH in the
end, i.e. where we load the authentik module from) and the gopkgs. We're
still missing patchability for frontend (since we directly build the
subdir in napalm), but I think that's a step in the right direction.

[1] goauthentik/authentik#6824 (comment)
[2] Upstream PR: goauthentik/authentik#19542
Ma27 added a commit to nix-community/authentik-nix that referenced this pull request Jan 17, 2026
Closes #83
Closes #85

ChangeLog: https://docs.goauthentik.io/releases/2025.12

⚠️ When using the Avatar upload, you'll have to make your users
re-upload their avatars due to changes in how media is served by
Authentik[1].

For now, we're using a branch from me that is 2025.12.1 with an update
of `@goauthentik/api` on top[2]. Without that change, `AdminFileListUsageEnum`
doesn't exist which breaks all usage of `AdminFileListUsageEnum.Media`:

    TypeError: can't access property "Media", R.AdminFileListUsageEnum is undefined
      renderForm ApplicationForm.ts:191
      [...]

This made e.g. the modal to edit applications unusable which infinitely
hang on a loading spinner.

The media path now points to `/var/lib/authentik`. This path is only
used for media storage and Authentik now always appends the "usage name"
as directory behind the storage path, i.e. it already appends
`/var/lib/authentik/media`, so this is needed to make Authentik discover
existing media.

Finally, I added a `patches` attribute to the authentik scope that
applies patches to both the workdir-deps (which is the PYTHONPATH in the
end, i.e. where we load the authentik module from) and the gopkgs. We're
still missing patchability for frontend (since we directly build the
subdir in napalm), but I think that's a step in the right direction.

[1] goauthentik/authentik#6824 (comment)
[2] Upstream PR: goauthentik/authentik#19542
@BeryJu
Copy link
Member

BeryJu commented Jan 17, 2026

I was gonna say this should only make a difference for development as we generate the client directly for the release build, but then I saw the reference nix install issue - fair enough.

FYI I'd recommend also switching that build generate the client on the fly if possible, we're probably gonna switch to having 2 api clients, one on a rolling version for our webinterface and one on the release cycle for everyone else to use.

@codecov
Copy link

codecov bot commented Jan 17, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.53%. Comparing base (0f11ad6) to head (d610089).
⚠️ Report is 37 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #19542      +/-   ##
==========================================
- Coverage   93.04%   92.53%   -0.51%     
==========================================
  Files         949      949              
  Lines       52052    52052              
==========================================
- Hits        48430    48165     -265     
- Misses       3622     3887     +265     
Flag Coverage Δ
conformance 38.26% <ø> (-0.01%) ⬇️
e2e 44.20% <ø> (+1.01%) ⬆️
integration ?
unit 91.50% <ø> (-0.01%) ⬇️
unit-migrate 91.53% <ø> (+0.01%) ⬆️

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.

@Ma27
Copy link
Contributor Author

Ma27 commented Jan 17, 2026

Thanks, that's good to know @BeryJu !
In the meantime, I think this is still a valid fix to merge and backport, no?

@BeryJu BeryJu merged commit ed17c53 into goauthentik:main Jan 20, 2026
94 of 96 checks passed
@BeryJu BeryJu added area:frontend Features or issues related to the browser, TypeScript, Node.js, etc backport/version-2025.12 Add this label to PRs to backport changes to version-2025.12 labels Jan 20, 2026
authentik-automation bot pushed a commit that referenced this pull request Jan 20, 2026
Otherwise, e.g. the edit modal of Applications hangs infinitely on a
loading spinner because `AdminFileListUsageEnum` is undefined and not an
object.
@authentik-automation
Copy link
Contributor

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

@authentik-automation
Copy link
Contributor

Cherry-pick to version-2025.12 already exists: #19589

BeryJu pushed a commit that referenced this pull request Jan 20, 2026
…19589)

web: update @goauthentik/api (#19542)

Otherwise, e.g. the edit modal of Applications hangs infinitely on a
loading spinner because `AdminFileListUsageEnum` is undefined and not an
object.

Co-authored-by: Maximilian Bosch <maximilian@mbosch.me>
kensternberg-authentik added a commit that referenced this pull request Jan 20, 2026
* main: (191 commits)
  sources/saml: Fix signature verification order to accommodate encrypted assertions (#19593)
  providers/saml: fix structure of encrypted saml assertion (#19592)
  providers/saml: allow encryption certificates without private keys (#19526)
  integrations: add saml steps to mattermost (#19590)
  policies: fix Provider's authentication_flow not used when set (#19609)
  web: bump type-fest from 5.4.0 to 5.4.1 in /web (#19473)
  endpoints: fix endpoints stage marked as enterprise (#19607)
  core: bump selenium from 4.39.0 to 4.40.0 (#19564)
  core: bump goauthentik.io/api/v3 from 3.2026020.11 to 3.2026020.12 (#19594)
  core: bump openapitools/openapi-generator-cli from v7.18.0 to v7.19.0 in /scripts/api (#19595)
  core: bump fido2 from 2.1.0 to 2.1.1 (#19596)
  web: bump @sentry/browser from 10.34.0 to 10.35.0 in /web in the sentry group across 1 directory (#19597)
  core: bump aws-cdk-lib from 2.235.0 to 2.235.1 (#19598)
  web: bump the eslint group across 1 directory with 3 updates (#19599)
  web: bump the rollup group across 1 directory with 4 updates (#19600)
  web: bump the swc group across 1 directory with 12 updates (#19601)
  web: bump pino from 10.2.0 to 10.2.1 in /web (#19602)
  web: bump knip from 5.81.0 to 5.82.1 in /web (#19603)
  tests: improve e2e/integration test reliability (#19540)
  web: update @goauthentik/api (#19542)
  ...
bitpavel-l25 pushed a commit to bitpavel-l25/authentik that referenced this pull request Jan 29, 2026
Otherwise, e.g. the edit modal of Applications hangs infinitely on a
loading spinner because `AdminFileListUsageEnum` is undefined and not an
object.
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.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.

2 participants