Compare commits

...
Author SHA1 Message Date
Jens Langhammer e89174ba36 fork
Signed-off-by: Jens Langhammer <[email protected]>
2026-10-19 14:14:28 +01:00
Jens Langhammer acd3ed797e back to 3.14
Signed-off-by: Jens Langhammer <[email protected]>
2026-10-19 14:03:46 +01:00
Jens Langhammer 0bcf9ad3c1 Merge branch 'main' into core/embed-python
Signed-off-by: Jens Langhammer <[email protected]>

# Conflicts:
#	pyproject.toml
#	uv.lock
2026-10-19 13:57:25 +01:00
dependabot[bot] 0f5f4a6150 core: bump pydantic from 2.14.0 to 2.14.1 (#27000)
Bumps [pydantic](https://github.com/pydantic/pydantic) from 2.14.0 to 2.14.1.
- [Release notes](https://github.com/pydantic/pydantic/releases)
- [Changelog](https://github.com/pydantic/pydantic/blob/main/HISTORY.md)
- [Commits](https://github.com/pydantic/pydantic/compare/v2.14.0...v2.14.1)

---
updated-dependencies:
- dependency-name: pydantic
  dependency-version: 2.14.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-19 08:38:25 +00:00
Dominic Roy 41c1429e3d website/integrations: add wasabi (#26990) 2026-10-19 09:14:48 +01:00
dependabot[bot] 4f4efb7fad core: bump cachetools from 7.2.1 to 7.2.2 (#27006)
Bumps [cachetools](https://github.com/tkem/cachetools) from 7.2.1 to 7.2.2.
- [Changelog](https://github.com/tkem/cachetools/blob/master/CHANGELOG.rst)
- [Commits](https://github.com/tkem/cachetools/compare/v7.2.1...v7.2.2)

---
updated-dependencies:
- dependency-name: cachetools
  dependency-version: 7.2.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-19 11:11:24 +03:00
dependabot[bot] 3db7e1c1ab core: bump jsonpatch from 1.33 to 1.35 (#27007)
Bumps [jsonpatch](https://github.com/stefankoegl/python-json-patch) from 1.33 to 1.35.
- [Release notes](https://github.com/stefankoegl/python-json-patch/releases)
- [Commits](https://github.com/stefankoegl/python-json-patch/compare/v1.33...v1.35)

---
updated-dependencies:
- dependency-name: jsonpatch
  dependency-version: '1.35'
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-19 11:10:59 +03:00
dependabot[bot] 8d513527b2 core: bump uuid from 1.27.0 to 1.28.0 (#27003)
Bumps [uuid](https://github.com/uuid-rs/uuid) from 1.27.0 to 1.28.0.
- [Release notes](https://github.com/uuid-rs/uuid/releases)
- [Commits](https://github.com/uuid-rs/uuid/compare/v1.27.0...v1.28.0)

---
updated-dependencies:
- dependency-name: uuid
  dependency-version: 1.28.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-19 11:09:59 +03:00
dependabot[bot] 9cfd6c1808 core: bump selenium from 4.50.0 to 4.51.0 (#27001)
Bumps [selenium](https://github.com/SeleniumHQ/Selenium) from 4.50.0 to 4.51.0.
- [Release notes](https://github.com/SeleniumHQ/Selenium/releases)
- [Commits](https://github.com/SeleniumHQ/Selenium/compare/selenium-4.50.0...selenium-4.51.0)

---
updated-dependencies:
- dependency-name: selenium
  dependency-version: 4.51.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-19 11:09:28 +03:00
dependabot[bot] a13b808479 core: bump tokio from 1.53.2 to 1.53.3 (#27005)
Bumps [tokio](https://github.com/tokio-rs/tokio) from 1.53.2 to 1.53.3.
- [Release notes](https://github.com/tokio-rs/tokio/releases)
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.53.2...tokio-1.53.3)

---
updated-dependencies:
- dependency-name: tokio
  dependency-version: 1.53.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-19 11:09:03 +03:00
dependabot[bot] 285621ccaf core: bump django-postgres-extra from 2.0.9 to 3.0.0 (#27002)
Bumps [django-postgres-extra](https://github.com/SectorLabs/django-postgres-extra) from 2.0.9 to 3.0.0.
- [Release notes](https://github.com/SectorLabs/django-postgres-extra/releases)
- [Commits](https://github.com/SectorLabs/django-postgres-extra/compare/v2.0.9...v3.0.0)

---
updated-dependencies:
- dependency-name: django-postgres-extra
  dependency-version: 3.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-19 11:08:22 +03:00
dependabot[bot] 38c38e5be4 core: bump envoyproxy/envoy from v1.39-latest to v1.40-latest in /tests/e2e (#26994)
core: bump envoyproxy/envoy in /tests/e2e

Bumps envoyproxy/envoy from v1.39-latest to v1.40-latest.

---
updated-dependencies:
- dependency-name: envoyproxy/envoy
  dependency-version: v1.40-latest
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-19 11:07:10 +03:00
dependabot[bot] 448c6d82f8 core: bump axllent/mailpit from v1.31.5 to v1.31.6 in /tests/e2e (#26995)
Bumps axllent/mailpit from v1.31.5 to v1.31.6.

---
updated-dependencies:
- dependency-name: axllent/mailpit
  dependency-version: v1.31.6
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-19 11:06:43 +03:00
Minh Vu f24849562f website/docs: clarify initial setup credentials (#26992) 2026-10-18 21:34:38 +00:00
Jens L. 0bf3eb2691 flows: separate base classes for api and non-api (#26988)
Signed-off-by: Jens Langhammer <[email protected]>
2026-10-17 21:52:18 +01:00
Jens L. 47e88fe32b enterprise/agents: misc fixes (#26977)
* misc agent fixes - to cherry-pick

Signed-off-by: Jens Langhammer <[email protected]>

* fixup

Signed-off-by: Jens Langhammer <[email protected]>

---------

Signed-off-by: Jens Langhammer <[email protected]>
2026-10-17 20:33:23 +01:00
Ken SternbergandTeffen Ellis a24ae91a24 web/admin: create a “permissions datalist” object to use instead of the stock table (#26739)
* web/admin: create a “permissions datalist” object to use instead of the stock table

## What

Provide a “permissions datalist” object that provides a list of all the permissions per role, so that they’re visible to users and can be manipulated and searched. This view allows users to see the *whole* permission and permission name, rather than the truncated version that sometimes doesn’t stop the whole list from scrolling horizontally off the board.

* Revise, clean, and simplify. Rename and move permission list renderer. Formalize fields needed for display. Remove 'map()'; the native is fine. Add 'id' to all msgs. Fetch APIs in parallel. Simplify sorting; remove redundant sort requests. Unify sort & filter options to a single drop-down.

* Remove debugging code.

* Remove unused property.

* Add the type tag to the display.

* Updated the display: much better and stronger CSS, and now the permissions tag (global, object, or other) is correctly displayed.

* Language change: 'active' -> assigned. Made internal names consistent.  Better CSS.

* Young man, in this house we have STANDARDS!

* Update web/src/admin/rbac/ak-rbac-model-permissions-list.ts

Co-authored-by: Teffen Ellis <[email protected]>
Signed-off-by: Ken Sternberg <[email protected]>

* Update web/src/admin/rbac/ak-rbac-model-permissions-list.ts

Co-authored-by: Teffen Ellis <[email protected]>
Signed-off-by: Ken Sternberg <[email protected]>

* Update web/src/admin/rbac/ak-rbac-role-object-permission-table.ts

Co-authored-by: Teffen Ellis <[email protected]>
Signed-off-by: Ken Sternberg <[email protected]>

---------

Signed-off-by: Ken Sternberg <[email protected]>
Co-authored-by: Teffen Ellis <[email protected]>
2026-10-16 13:22:54 -07:00
matt vallillo 69531d76cc ci: exclude node_modules from Go lint (#26961)
* ci: exclude node_modules from Go lint

* ci: move Go lint configuration into .github
2026-10-16 17:37:59 +01:00
Dominic Roy 9cbe1341b8 website/integrations: ch-ui: document the email_verified requirement (#26978) 2026-10-16 16:34:02 +00:00
Dominic Roy 3aff6e137e website/docs: add expression policy for case-insensitive unique usernames (#26974)
Closes: #26805
2026-10-16 14:44:47 +00:00
Dominic Roy 5703c1d64c core: prefetch token owners and memberships (#25803)
* core: prefetch token owners and memberships

* core: serialize token owners as partial users

Nothing reads an owner's groups, roles, or computed user fields from
the token API, and fetching them cost several queries per token. Use
PartialUserSerializer and join the owner, so serializing a page of
tokens takes one query.

user_obj on tokens, and on token_obj in SCIM sources and SSF
providers, now has the PartialUser shape instead of the full User.

* core: bound token list query growth instead of counting queries
2026-10-16 14:14:05 +00:00
Joshua M. BonifaceandDominic R 4c43b84d8a website/integrations: add detailed explanation for setting GH Org limit (#8604)
website/docs: require all flow policies for GitHub organization check

The default source enrollment and authentication flows already bind a
policy that passes on every source login, and flows default to the ANY
policy engine mode. Binding the organization policy to those flows
therefore never denied anyone. Tell readers to switch the flows to ALL.

Co-authored-by: Dominic R <[email protected]>
2026-10-16 14:10:13 +00:00
Dominic Roy 1425c719fc website/integrations: add opensearch (#26938)
* website/integrations: add opensearch

* website/integrations: opensearch: enable SSL when trusting a private CA
2026-10-16 14:09:08 +01:00
Jens L. bdf63e1ba1 endpoints: fix MultipleObjectsReturned (#26971)
Signed-off-by: Jens Langhammer <[email protected]>
2026-10-16 13:58:00 +01:00
Jens Langhammer f7636d2435 test gc
Signed-off-by: Jens Langhammer <[email protected]>
2026-10-16 13:46:36 +01:00
Jens Langhammer ce7bd89f9b Merge branch 'main' into core/embed-python
Signed-off-by: Jens Langhammer <[email protected]>

# Conflicts:
#	uv.lock
2026-10-16 12:32:33 +01:00
Jens Langhammer cd5b818a00 absolutely horrid darling
Signed-off-by: Jens Langhammer <[email protected]>
2026-10-16 12:30:15 +01:00
authentik-automation[bot] 2d2b5817ba core, web: update translations (#26963)
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: authentik-automation[bot] <135050075+authentik-automation[bot]@users.noreply.github.com>
2026-10-16 12:08:00 +01:00
Jens Langhammer 4c7921607b yeah sure man
Signed-off-by: Jens Langhammer <[email protected]>
2026-10-16 11:49:59 +01:00
Jens Langhammer d83219faa3 python threads
Signed-off-by: Jens Langhammer <[email protected]>
2026-10-16 11:25:09 +01:00
Connor PeshekandDewi Roberts 5c7e740879 website/docs: single-logout: add information around proxy providers for single logout (#26563)
* docs/single-logout: add information around proxy providers for single logout

* Update website/docs/add-secure-apps/providers/single-logout/index.mdx

Co-authored-by: Dewi Roberts <[email protected]>
Signed-off-by: Connor Peshek <[email protected]>

* Update website/docs/add-secure-apps/providers/single-logout/index.mdx

Co-authored-by: Dewi Roberts <[email protected]>
Signed-off-by: Connor Peshek <[email protected]>

* update feedback and add LDAP information

---------

Signed-off-by: Connor Peshek <[email protected]>
Co-authored-by: Dewi Roberts <[email protected]>
2026-10-16 10:05:58 +00:00
Jens Langhammer 295aa9710b test
Signed-off-by: Jens Langhammer <[email protected]>
2026-10-16 10:39:59 +01:00
Jens Langhammer 3f833268bb test wsgi 2026-10-16 09:39:38 +00:00
Connor PeshekandJens Langhammer ad916e05a6 common/saml: move exceptions and logout request parser to common (#26533)
* common/saml: move exceptions and logout request parser to common

* translate

Signed-off-by: Jens Langhammer <[email protected]>

* incus defusedxml types

Signed-off-by: Jens Langhammer <[email protected]>

* remove common from mypy

Signed-off-by: Jens Langhammer <[email protected]>

---------

Signed-off-by: Jens Langhammer <[email protected]>
Co-authored-by: Jens Langhammer <[email protected]>
2026-10-16 03:23:25 -05:00
Connor Peshek 88984b4cf0 stages/authenticator_webauthn: accept ML-DSA credentials (#26381)
* stages/authenticator_webauthn: accept ML-DSA credentials

* add todo and add dictionary override
2026-10-16 03:22:53 -05:00
f04ef289ac crypto: add ML-DSA certificate generation (#26380)
* crypto: add ML-DSA certificate generation

* make rust and go files

* Potential fix for pull request finding 'CodeQL / Information exposure through an exception'

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Signed-off-by: Connor Peshek <[email protected]>

* update exceptions to not leak information

* add line about radius eap-tls 1.3

* Update website/docs/sys-mgmt/certificates.mdx

Co-authored-by: Dewi Roberts <[email protected]>
Signed-off-by: Connor Peshek <[email protected]>

* clean up migration file

* slight code cleanup

Signed-off-by: Jens Langhammer <[email protected]>

* add todo to remove when fips updates

---------

Signed-off-by: Connor Peshek <[email protected]>
Signed-off-by: Jens Langhammer <[email protected]>
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Co-authored-by: Dewi Roberts <[email protected]>
Co-authored-by: Jens Langhammer <[email protected]>
2026-10-16 03:22:23 -05:00
Dominic Roy 7e3db8fdeb website/integrations: add ch-ui (#26935) 2026-10-16 09:15:42 +01:00
Dominic Roy 7deaa4c64a website/integrations: add kibana (#26936) 2026-10-16 09:15:04 +01:00
dependabot[bot] 205780e102 core: bump pydantic from 2.13.5 to 2.14.0 (#26969)
Bumps [pydantic](https://github.com/pydantic/pydantic) from 2.13.5 to 2.14.0.
- [Release notes](https://github.com/pydantic/pydantic/releases)
- [Changelog](https://github.com/pydantic/pydantic/blob/main/HISTORY.md)
- [Commits](https://github.com/pydantic/pydantic/compare/v2.13.5...v2.14.0)

---
updated-dependencies:
- dependency-name: pydantic
  dependency-version: 2.14.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-16 09:37:26 +03:00
dependabot[bot] 5e7f88fd85 core: bump rust-toolchain from 1.99.0 to 1.99.1 (#26967)
Bumps [rust-toolchain](https://github.com/rust-lang/rust) from 1.99.0 to 1.99.1.
- [Release notes](https://github.com/rust-lang/rust/releases)
- [Changelog](https://github.com/rust-lang/rust/blob/1.99.1/RELEASES.md)
- [Commits](https://github.com/rust-lang/rust/compare/1.99.0...1.99.1)

---
updated-dependencies:
- dependency-name: rust-toolchain
  dependency-version: 1.99.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-16 09:37:01 +03:00
dependabot[bot] 94e5dfef57 core: bump aws-cdk-lib from 2.272.0 to 2.273.0 (#26968)
Bumps [aws-cdk-lib](https://github.com/aws/aws-cdk) from 2.272.0 to 2.273.0.
- [Release notes](https://github.com/aws/aws-cdk/releases)
- [Changelog](https://github.com/aws/aws-cdk/blob/main/CHANGELOG.v2.alpha.md)
- [Commits](https://github.com/aws/aws-cdk/compare/v2.272.0...v2.273.0)

---
updated-dependencies:
- dependency-name: aws-cdk-lib
  dependency-version: 2.273.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-16 09:36:38 +03:00
dependabot[bot] 77a9509774 core: bump github.com/prometheus/client_golang from 1.24.1 to 1.25.0 (#26965)
Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang) from 1.24.1 to 1.25.0.
- [Release notes](https://github.com/prometheus/client_golang/releases)
- [Changelog](https://github.com/prometheus/client_golang/blob/v1.25.0/CHANGELOG.md)
- [Commits](https://github.com/prometheus/client_golang/compare/v1.24.1...v1.25.0)

---
updated-dependencies:
- dependency-name: github.com/prometheus/client_golang
  dependency-version: 1.25.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-16 09:36:14 +03:00
dependabot[bot] 02dfde68f3 core: bump github.com/getsentry/sentry-go from 0.49.0 to 0.50.0 (#26966)
Bumps [github.com/getsentry/sentry-go](https://github.com/getsentry/sentry-go) from 0.49.0 to 0.50.0.
- [Release notes](https://github.com/getsentry/sentry-go/releases)
- [Changelog](https://github.com/getsentry/sentry-go/blob/master/CHANGELOG.md)
- [Commits](https://github.com/getsentry/sentry-go/compare/v0.49.0...v0.50.0)

---
updated-dependencies:
- dependency-name: github.com/getsentry/sentry-go
  dependency-version: 0.50.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-16 09:35:46 +03:00
Jens Langhammer 1722d988c3 swap image
Signed-off-by: Jens Langhammer <[email protected]>
2026-10-16 01:34:30 +01:00
Jens Langhammer 3c63849ca3 free-threading..?
Signed-off-by: Jens Langhammer <[email protected]>
2026-10-16 01:16:59 +01:00
Jens Langhammer 19ce0ea395 embed server
Signed-off-by: Jens Langhammer <[email protected]>
2026-10-16 00:51:17 +01:00
Jens Langhammer f9f310be82 core: run Python lifecycle commands in-process via pyo3
Bootstrap (wait_for_db, migrate) and the manage, dump_config and
test-all commands now run inside the authentik binary through the
embedded interpreter instead of spawning `python`. The interpreter
activates the virtualenv itself, since it isn't started from it.

Claude-Session: https://claude.ai/code/session_019wqL8VsUDCMXtG8EgpkBh8
2026-10-16 00:34:11 +01:00
Jens L.andTeffen Ellis 1f37234b34 web/admin: version banner (#26948)
* better semantic banners

Signed-off-by: Jens Langhammer <[email protected]>

* check latest version

Signed-off-by: Jens Langhammer <[email protected]>

* rework more

Signed-off-by: Jens Langhammer <[email protected]>

* fix event and special UI for security updates

Signed-off-by: Jens Langhammer <[email protected]>

* fix events again

Signed-off-by: Jens Langhammer <[email protected]>

* fix lint and tests

Signed-off-by: Jens Langhammer <[email protected]>

* fix gen

Signed-off-by: Jens Langhammer <[email protected]>

* Update class.

* Fix types.

* Add GIT_HASH env.

* Fix whitespace.

* Clean up.

* Tidy logic.

* Add todo.

* fix types, use build hash from server

Signed-off-by: Jens Langhammer <[email protected]>

* format

Signed-off-by: Jens Langhammer <[email protected]>

* fix the lint again

Signed-off-by: Jens Langhammer <[email protected]>

---------

Signed-off-by: Jens Langhammer <[email protected]>
Co-authored-by: Teffen Ellis <[email protected]>
2026-10-15 19:37:05 +01:00
Marcelo Elizeche Landó 6ec9c9586d ci: fix latest CloudFormation template not being uploaded on release (#26954)
fix latest CloudFormation template not being uploaded on release
2026-10-15 16:15:34 +01:00
Dominic Roy fdbe2415d4 stages/authenticator_webauthn: handle unparsable attestation certificates (#26811)
Some authenticators send attestation certificates that are not strict
DER, for example ecdsa-with-SHA256 with explicit NULL parameters.
OpenSSL accepts them, but cryptography raises a ValueError that
py_webauthn does not wrap in a WebAuthnException. For packed, TPM, and
FIDO U2F attestation this escaped verification and showed the user a
system exception instead of the registration error.

android-key attestation verifies the certificate with OpenSSL, so
registration can succeed and the ValueError only comes from loading the
certificate for storage afterwards. The credential is valid there, so
register the device without the certificate rather than failing.
2026-10-15 15:52:58 +01:00
Dominic Roy 1338dc9d19 enterprise/providers/microsoft_entra: skip members already in the group (#26891)
* enterprise/providers/microsoft_entra: skip members already in the group

Each group write re-adds every member, and Graph answers a member that
is already in the group with 400 instead of 409. That error became
StopSync, so from the second full sync on, the sync stopped at the
first group with members and skipped the rest of the page. Map that
response to ObjectExistsSyncException, which the member loop already
ignores.

Closes: #26817

* enterprise/providers/microsoft_entra: only add members missing from the group

Graph's 400 for an existing member carries only the generic
Request_BadRequest code, so recognising it means matching the message
text. List the group's members instead and only post the missing ones,
which also stops every full sync from re-posting every member.
2026-10-15 15:47:00 +01:00
Thomas Sprayberry 4c31049d5f blueprints: re-apply when a file referenced by !File changes (#26402)
* blueprints: re-apply when a file referenced by `!File` changes

The blueprint hash only covered the blueprint file itself, so a change to
a file referenced through a `!File` tag - such as a Kubernetes Secret
mounted into the container and then rotated - was never detected and the
blueprint was not re-applied.

Hash the referenced files' paths and contents alongside the blueprint's
own content, in both places the hash is computed, so discovery and apply
stay in agreement.

Closes #26289

* blueprints: skip `!File` tags whose path is itself a tag when hashing

`File.__init__` assigns `self.path` from `loader.construct_object()` when the
tag is built from a sequence node, so `!File [!Env P, default]` carries a tag
object rather than a string. `Path()` raises `TypeError` on it, which the
surrounding `except OSError` does not catch, and `blueprints_find` has no
per-file guard - so one such blueprint would abort discovery for all of them.

Skip those tags: their own content is already part of the blueprint content
hashed above, and resolving them needs an entry and a blueprint that the
hashing path does not have.

* blueprints: don't let an unreadable `!File` path abort blueprint discovery

The previous commit's guard reads `tag.path` to decide whether to skip the
tag, but `File.__init__` assigns `self.path` only for scalar and sequence
nodes; `path` is otherwise just a class annotation, which creates no
attribute. A `!File` built from a mapping node takes neither branch, so the
guard raises `AttributeError` before it can guard anything. Read the
attribute with `getattr()` so the check cannot be what fails.

`Path(...).read_bytes()` also raises `ValueError`, not `OSError`, for a path
no syscall can accept, such as one containing a null byte, so widen the
except to cover it.

Both inputs parse cleanly and hash without complaint before this series, and
neither `blueprints_find` nor `apply_blueprint` catches either exception, so
a single such blueprint would stop every other blueprint from being
discovered.

Drop the separate digest of the path while here: the path of a tag that is
hashed is a substring of the blueprint content already hashed above, so it
cannot contribute anything the content digest does not.

* blueprints: bound the `!File` tag walk on cyclic blueprints

YAML anchors and aliases let a node be its own descendant, and PyYAML builds
collections in two steps precisely so such documents load. `iter_file_tags`
recurses with no bound, so hashing a blueprint like

    context:
      secret: &anchor
        - *anchor

raises `RecursionError`. `blueprints_find` has no per-file guard around
`blueprint_hash` and `apply_blueprint` does not catch `RecursionError`, so one
such blueprint stops every other blueprint from being discovered - and the
document hashes without complaint before this series, so this would be a
regression rather than a pre-existing limitation.

Skip a node already on the path from the root. A node shared by two disjoint
routes - an ordinary blueprint reusing one anchor - is not its own ancestor, so
it is still walked from each route and its digest is unchanged; suppressing
those instead would silently move the hash of every aliased blueprint in the
wild and re-apply each one once.

Spell the widened `except` as `black` at the version pinned in pyproject.toml
formats it.

* blueprints: pin the per-route hashing of an aliased `!File` tag

A node reached by two routes through one anchor is walked from each of them,
so the file it references is folded into the digest twice, exactly as it is
when the tag is written out twice. Bounding the walk by the ancestor chain
keeps that; suppressing every node seen anywhere would fold it in once and
move the hash of every blueprint that reuses an anchor.

Compute the expected digest from the blueprint's own content rather than
comparing two runs, so the test pins the count and not just stability.

* blueprints: describe the `!File` hash tests by what they assert

The stability cases read as annotations of a patch rather than as tests of the
hash, which is not how the rest of the file reads.

* blueprints: pin the `!File` hash on file removal, swapped contents and cycle fold count

* blueprints: fold the `!File` hash tests into the file's idiom

The tests covering the `!File` hashing added cases one per input, which made
the test diff several times the size of the change it covers. Group the ones
that differ only in the reference they hash into subtests, keeping every input,
and drop the docstrings from the test-local helpers.

* blueprints: pin discovery surviving a two-anchor cycle and an unencodable `!File` path

* blueprints: trim `!File` hashing comments to the runtime contract

* blueprints: test CRLF blueprint discovery and apply hashes agree

* blueprints: pin the CRLF blueprint's discovery hash to its text-mode digest

* blueprints: an unreadable `!File` keeps its place in the hash

blueprint_hash skipped an unreadable reference entirely, so [missing, X] and
[X, missing] both hashed as the content plus the digest of X: a file
disappearing while another appeared with the same contents left the hash
unchanged, and discovery would not re-apply the blueprint. An unreadable
reference now contributes a one-byte marker, where a readable one
contributes its 64-byte digest, so its position counts. Blueprints whose
references all resolve hash as before.

* blueprints: move `!File` hashing to blueprints/v1/hash.py
2026-10-15 15:39:12 +01:00
Jens L. ade7b44abd ci: switch version bump to action, like platform repo (#26949)
Signed-off-by: Jens Langhammer <[email protected]>
2026-10-15 14:48:00 +01:00
authentik-automation[bot] a64513322c core, web: update translations (#26940)
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: authentik-automation[bot] <135050075+authentik-automation[bot]@users.noreply.github.com>
2026-10-15 12:11:45 +01:00
dependabot[bot] e53474437a ci: bump actions/create-github-app-token from 3.2.0 to 3.3.0 (#26946)
Bumps [actions/create-github-app-token](https://github.com/actions/create-github-app-token) from 3.2.0 to 3.3.0.
- [Release notes](https://github.com/actions/create-github-app-token/releases)
- [Changelog](https://github.com/actions/create-github-app-token/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/create-github-app-token/compare/bcd2ba49218906704ab6c1aa796996da409d3eb1...64ab729a6294000f5aa4a4bc0b73d1f32bc45510)

---
updated-dependencies:
- dependency-name: actions/create-github-app-token
  dependency-version: 3.3.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-15 11:42:43 +01:00
dependabot[bot] 89e86e485d ci: bump taiki-e/install-action from 2.87.27 to 2.87.28 in /.github/actions/setup (#26947)
ci: bump taiki-e/install-action in /.github/actions/setup

Bumps [taiki-e/install-action](https://github.com/taiki-e/install-action) from 2.87.27 to 2.87.28.
- [Release notes](https://github.com/taiki-e/install-action/releases)
- [Changelog](https://github.com/taiki-e/install-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/taiki-e/install-action/compare/ab6895351a88b908e96a4697860d4ffea5e57dbe...1168f6810a3cb30a3514bf5756a3b7f0422c6df8)

---
updated-dependencies:
- dependency-name: taiki-e/install-action
  dependency-version: 2.87.28
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-15 11:42:25 +01:00
dependabot[bot] 0b8a6d20b6 core: bump hyper-unix-socket from 0.6.1 to 0.7.0 (#26945)
Bumps [hyper-unix-socket](https://github.com/kristof-mattei/hyper-unix-socket) from 0.6.1 to 0.7.0.
- [Release notes](https://github.com/kristof-mattei/hyper-unix-socket/releases)
- [Changelog](https://github.com/kristof-mattei/hyper-unix-socket/blob/main/CHANGELOG.md)
- [Commits](https://github.com/kristof-mattei/hyper-unix-socket/compare/v0.6.1...v0.7.0)

---
updated-dependencies:
- dependency-name: hyper-unix-socket
  dependency-version: 0.7.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-15 07:40:53 +00:00
dependabot[bot] 7cde5edf5e core: bump goauthentik/selenium from 152.0-ak-0.71.0 to 152.0-ak-0.72.0 in /tests/e2e (#26943)
core: bump goauthentik/selenium in /tests/e2e

Bumps [goauthentik/selenium](https://github.com/SeleniumHQ/docker-selenium) from 152.0-ak-0.71.0 to 152.0-ak-0.72.0.
- [Release notes](https://github.com/SeleniumHQ/docker-selenium/releases)
- [Commits](https://github.com/SeleniumHQ/docker-selenium/commits)

---
updated-dependencies:
- dependency-name: goauthentik/selenium
  dependency-version: 152.0-ak-0.72.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-15 07:34:26 +00:00
dependabot[bot] 5176a55cc5 core: bump goauthentik/platform-ssh from 26.04-ak-0.71.0 to 26.04-ak-0.72.0 in /tests/e2e (#26944)
core: bump goauthentik/platform-ssh in /tests/e2e

Bumps goauthentik/platform-ssh from 26.04-ak-0.71.0 to 26.04-ak-0.72.0.

---
updated-dependencies:
- dependency-name: goauthentik/platform-ssh
  dependency-version: 26.04-ak-0.72.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-15 10:27:31 +03:00
d57d81e94f core: keep the current login when adding a user after a stale session save (#26765)
* core: keep the current login when adding a user after a stale session save

The add-user marker lives in the session's flow plan. A concurrent request that
saved an older copy of the session could drop it, so the login stage treated the
new login as a plain one and login() deleted the previous user's session.

When the brand has a user switch flow, logging in as another user now always
keeps the current login as a switch target.

* core: stop users/me from erasing session data saved by concurrent requests (#26790)

* stages/user_login: only keep the current login for explicit user switches

Treating every login on a brand with user switching as an add-user login
changed what signing in as someone else means and skipped the
internal-user check for added accounts. The plan losing its marker is
fixed at its cause instead.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* core: extend session expiry from users/me without rewriting session data

users/me marked the whole session modified to slide its expiry, so it
saved the session data it loaded at the start of the request. A request
that saved the session in the meantime, like starting "Add another
user", lost its changes, and the flow then logged in without the
add-user marker and signed out the first account.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* core: pin that a plain login replaces the session with user switching enabled

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>

* core: read expiry_extended directly in the session middleware (#26791)

authentik's SessionStore is the only session engine, so the getattr
fallback never applies. It only hid that save_expiry() right below is
called without one.

Co-authored-by: Claude Opus 5.5 <[email protected]>

* stages/user_login: save only the last IP when a bound session changes IP

The binding middleware set LAST_IP as a session key, which marked the
session as modified. The full save at the end of the request then wrote
back the session data loaded at its start, erasing anything a concurrent
request saved in the meantime, like the user switching flow plan.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Dominic Roy <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
2026-10-15 00:35:08 +01:00
Jens L.andCopilot Autofix powered by AI a5b1f7fb7d flows: fix blip of un-templated flow title placeholder (#26905)
* flows: fix blip of un-templated flow title placeholder

Signed-off-by: Jens Langhammer <[email protected]>

* Potential fix for pull request finding 'Empty except'

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
Signed-off-by: Jens L. <[email protected]>

* Apply suggestion from @BeryJu

Signed-off-by: Jens L. <[email protected]>

* bruh

Signed-off-by: Jens Langhammer <[email protected]>

* sigh

Signed-off-by: Jens Langhammer <[email protected]>

---------

Signed-off-by: Jens Langhammer <[email protected]>
Signed-off-by: Jens L. <[email protected]>
Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
2026-10-14 22:41:13 +01:00
authentik-cherry-pick[bot]andKen Sternberg cd745d3f3b website/docs: Version 2026.8.4 Release Notes (cherry-pick #26934 to main) (#26939)
website/docs: Version 2026.8.4 Release Notes (#26934)

Release notes for 2026.8.4

Co-authored-by: Ken Sternberg <[email protected]>
2026-10-14 21:07:04 +00:00
dependabot[bot]andJens L. 49213374e2 core: bump rust-toolchain from 1.98.1 to 1.99.0 (#26634)
* core: bump rust-toolchain from 1.98.1 to 1.99.0

Bumps [rust-toolchain](https://github.com/rust-lang/rust) from 1.98.1 to 1.99.0.
- [Release notes](https://github.com/rust-lang/rust/releases)
- [Changelog](https://github.com/rust-lang/rust/blob/main/RELEASES.md)
- [Commits](https://github.com/rust-lang/rust/compare/1.98.1...1.99.0)

---
updated-dependencies:
- dependency-name: rust-toolchain
  dependency-version: 1.99.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* fix lint

Signed-off-by: Jens Langhammer <[email protected]>

---------

Signed-off-by: dependabot[bot] <[email protected]>
Signed-off-by: Jens Langhammer <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jens L. <[email protected]>
2026-10-14 21:54:11 +01:00
Jacob SachsandJens L. d09e05729d stages/authenticator_validate: enforce code device restrictions (#26779)
* stages/authenticator_validate: enforce code device restrictions

* stages/authenticator_validate: clarify code challenge eligibility

* stages/authenticator_validate: pass code challenges explicitly

---------

Co-authored-by: Jens L. <[email protected]>
2026-10-14 21:42:01 +01:00
Marcelo Elizeche Landó 9adacfae77 website/docs: Expand docs on aws installation (#26812)
* Expand docs on aws installation

* Change default DBVersion to '17' for RDS PostgreSQL

Signed-off-by: Marcelo Elizeche Landó <[email protected]>

* website/docs: address review comments on AWS install page

- Number the installation steps and add Parameters/Resources headings
- Note Fargate CPU/memory combinations and link AWS docs for each resource
- Update PostgreSQL version guidance for the major-only default
- Add a database TLS troubleshooting section
- Clarify ECS task wording in troubleshooting

---------

Signed-off-by: Marcelo Elizeche Landó <[email protected]>
2026-10-14 20:33:11 +00:00
Teffen EllisandJens L. 7a98195c76 web: Add alert when JavaScript is disabled. (#26921)
Co-authored-by: Jens L. <[email protected]>
2026-10-14 20:42:41 +01:00
Dominic Roy 077d692bf6 website: remove the docs glossary (#26930) 2026-10-14 15:40:52 -04:00
dependabot[bot] 864de13471 core: bump axllent/mailpit from v1.31.4 to v1.31.5 in /tests/e2e (#26907)
Bumps axllent/mailpit from v1.31.4 to v1.31.5.

---
updated-dependencies:
- dependency-name: axllent/mailpit
  dependency-version: v1.31.5
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-14 21:37:52 +02:00
dependabot[bot] 934adbe35e core: bump astral-sh/uv from 0.13.0 to 0.13.1 in /lifecycle/container (#26909)
Bumps [astral-sh/uv](https://github.com/astral-sh/uv) from 0.13.0 to 0.13.1.
- [Release notes](https://github.com/astral-sh/uv/releases)
- [Changelog](https://github.com/astral-sh/uv/blob/main/CHANGELOG.md)
- [Commits](https://github.com/astral-sh/uv/compare/0.13.0...0.13.1)

---
updated-dependencies:
- dependency-name: astral-sh/uv
  dependency-version: 0.13.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-14 21:37:47 +02:00
dependabot[bot] ebc09224f5 core: bump serde_json from 1.0.151 to 1.0.154 (#26911)
Bumps [serde_json](https://github.com/serde-rs/json) from 1.0.151 to 1.0.154.
- [Release notes](https://github.com/serde-rs/json/releases)
- [Commits](https://github.com/serde-rs/json/compare/v1.0.151...v1.0.154)

---
updated-dependencies:
- dependency-name: serde_json
  dependency-version: 1.0.154
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-14 21:37:39 +02:00
dependabot[bot] 23129d38ab core: bump the types group with 2 updates (#26912)
Bumps the types group with 2 updates: [types-docker](https://github.com/python/typeshed) and [types-requests](https://github.com/python/typeshed).


Updates `types-docker` from 7.2.0.20260923 to 7.2.0.20261006
- [Commits](https://github.com/python/typeshed/commits)

Updates `types-requests` from 2.33.0.20260906 to 2.33.0.20261006
- [Commits](https://github.com/python/typeshed/commits)

---
updated-dependencies:
- dependency-name: types-docker
  dependency-version: 7.2.0.20261006
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: types
- dependency-name: types-requests
  dependency-version: 2.33.0.20261006
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: types
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-14 21:37:30 +02:00
dependabot[bot] d1885f8abf core: bump aws-lc-rs from 1.18.1 to 1.18.2 (#26913)
Bumps [aws-lc-rs](https://github.com/aws/aws-lc-rs) from 1.18.1 to 1.18.2.
- [Release notes](https://github.com/aws/aws-lc-rs/releases)
- [Commits](https://github.com/aws/aws-lc-rs/compare/v1.18.1...v1.18.2)

---
updated-dependencies:
- dependency-name: aws-lc-rs
  dependency-version: 1.18.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-14 21:37:25 +02:00
dependabot[bot] aea6ae3154 core: bump hyper from 1.11.1 to 1.12.0 (#26915)
Bumps [hyper](https://github.com/hyperium/hyper) from 1.11.1 to 1.12.0.
- [Release notes](https://github.com/hyperium/hyper/releases)
- [Changelog](https://github.com/hyperium/hyper/blob/master/CHANGELOG.md)
- [Commits](https://github.com/hyperium/hyper/compare/v1.11.1...v1.12.0)

---
updated-dependencies:
- dependency-name: hyper
  dependency-version: 1.12.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-14 21:37:19 +02:00
dependabot[bot] d53b1dcb32 core: bump msgraph-sdk from 1.63.0 to 1.64.0 (#26916)
Bumps [msgraph-sdk](https://github.com/microsoftgraph/msgraph-sdk-python) from 1.63.0 to 1.64.0.
- [Release notes](https://github.com/microsoftgraph/msgraph-sdk-python/releases)
- [Changelog](https://github.com/microsoftgraph/msgraph-sdk-python/blob/main/CHANGELOG.md)
- [Commits](https://github.com/microsoftgraph/msgraph-sdk-python/compare/v1.63.0...v1.64.0)

---
updated-dependencies:
- dependency-name: msgraph-sdk
  dependency-version: 1.64.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-14 21:37:14 +02:00
dependabot[bot] a3f798efed core: bump djangorestframework-stubs[compatible-mypy] from 3.17.1 to 3.18.1 (#26917)
core: bump djangorestframework-stubs[compatible-mypy]

Bumps [djangorestframework-stubs[compatible-mypy]](https://github.com/typeddjango/djangorestframework-stubs) from 3.17.1 to 3.18.1.
- [Release notes](https://github.com/typeddjango/djangorestframework-stubs/releases)
- [Commits](https://github.com/typeddjango/djangorestframework-stubs/compare/3.17.1...3.18.1)

---
updated-dependencies:
- dependency-name: djangorestframework-stubs[compatible-mypy]
  dependency-version: 3.18.1
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-14 21:37:09 +02:00
dependabot[bot] 6744a186b1 core: bump tenacity from 9.1.4 to 9.2.1 (#26918)
Bumps [tenacity](https://github.com/jd/tenacity) from 9.1.4 to 9.2.1.
- [Release notes](https://github.com/jd/tenacity/releases)
- [Commits](https://github.com/jd/tenacity/compare/9.1.4...9.2.1)

---
updated-dependencies:
- dependency-name: tenacity
  dependency-version: 9.2.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-14 21:37:03 +02:00
dependabot[bot] 88ec620c50 core: bump black from 26.10.0 to 26.10.1 (#26919)
Bumps [black](https://github.com/psf/black) from 26.10.0 to 26.10.1.
- [Release notes](https://github.com/psf/black/releases)
- [Changelog](https://github.com/psf/black/blob/main/CHANGES.md)
- [Commits](https://github.com/psf/black/compare/26.10.0...26.10.1)

---
updated-dependencies:
- dependency-name: black
  dependency-version: 26.10.1
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-14 21:36:58 +02:00
Jens L. 4de37f3999 lib/tracing: opt-in middleware tracing (#26929)
* lib/tracing: opt-in middleware tracing

Signed-off-by: Jens Langhammer <[email protected]>

* trace oauth better

Signed-off-by: Jens Langhammer <[email protected]>

---------

Signed-off-by: Jens Langhammer <[email protected]>
2026-10-14 20:29:28 +01:00
Marcelo Elizeche LandóandDominic R 29919b942e website/integrations: Add AWS ALB (#26927)
* Add AWS ALB integration doc

* website/integrations: aws alb: cleanup

just a fw touch ups

---------

Co-authored-by: Dominic R <[email protected]>
2026-10-14 19:25:51 +00:00
Marcelo Elizeche LandóandJens L. aa18b9a43b providers/scim show remote error details for 4xx/5xx responses (#26906)
* show remote error details for 4xx/5xx responses

* fall back to default message for empty error bodies

---------

Co-authored-by: Jens L. <[email protected]>
2026-10-14 19:01:45 +00:00
Jens L. 73d260e10b core: fix application pagination tests (#26923)
Signed-off-by: Jens Langhammer <[email protected]>
2026-10-14 17:56:18 +00:00
Jens L. 17f85f41a5 ci: fix docker cache fail (#26922)
Signed-off-by: Jens Langhammer <[email protected]>
2026-10-14 18:33:16 +01:00
Jens L. 5673a37184 root: bump rustls (#26908)
Signed-off-by: Jens Langhammer <[email protected]>
2026-10-14 16:39:36 +01:00
Jens L.andDominic R ef93325be1 core: separate applications API (#18136)
* core: separate applications API

this separates the concept of "RBAC accessible application" and "Policy-accessible application"

Signed-off-by: Jens Langhammer <[email protected]>

* fix tests

Signed-off-by: Jens Langhammer <[email protected]>

* make URL path not clash?

Signed-off-by: Jens Langhammer <[email protected]>

* core: filter accessible applications with action filter backends

The helper that re-ran every filter backend except ObjectFilter only
served the old policy-based list. Declare the backends on the
@accessible action instead, the same way the enterprise requestable
action does, and describe what the endpoint checks in its docstring
since that becomes the API description.

* core, website: test and document the applications API split

Callers that relied on /core/applications/ evaluating policies, or on
its superuser_full_list, for_user and only_with_launch_url parameters,
must move to /core/applications/@accessible/, so call that out as a
breaking change in the 2026.11 release notes.

* remove superuser_full_list from rac devices

Signed-off-by: Jens Langhammer <[email protected]>

---------

Signed-off-by: Jens Langhammer <[email protected]>
Co-authored-by: Dominic R <[email protected]>
2026-10-14 16:33:33 +01:00
Jens L. 1b70ea704a endpoints: fix error during device lookup with one identifier missing (#26902)
Signed-off-by: Jens Langhammer <[email protected]>
2026-10-14 13:27:10 +01:00
Jens L. feed8bd6ad lifecycle: fix ak build on macOS (#26901)
* lifecycle: fix ak build on macOS

Signed-off-by: Jens Langhammer <[email protected]>

* run migrations from rust too

Signed-off-by: Jens Langhammer <[email protected]>

* fix imports

Signed-off-by: Jens Langhammer <[email protected]>

---------

Signed-off-by: Jens Langhammer <[email protected]>
2026-10-14 12:37:17 +01:00
dependabot[bot]andJens L. abdcf2f8bb core: bump django-stubs[compatible-mypy] from 6.0.7 to 6.1.2 (#26837)
* core: bump django-stubs[compatible-mypy] from 6.0.7 to 6.1.2

Bumps [django-stubs[compatible-mypy]](https://github.com/typeddjango/django-stubs) from 6.0.7 to 6.1.2.
- [Release notes](https://github.com/typeddjango/django-stubs/releases)
- [Commits](https://github.com/typeddjango/django-stubs/compare/6.0.7...6.1.2)

---
updated-dependencies:
- dependency-name: django-stubs[compatible-mypy]
  dependency-version: 6.1.2
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* hmm

Signed-off-by: Jens Langhammer <[email protected]>

---------

Signed-off-by: dependabot[bot] <[email protected]>
Signed-off-by: Jens Langhammer <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jens L. <[email protected]>
2026-10-14 11:57:30 +01:00
bf36ed2b86 sources/scim: deep-copy patch input to persist nested patches (#26897)
SCIMPatchProcessor.apply_patches() built its result with dict.copy(), so
every nested mutation (name.givenName, filtered list items, ...) was
written through shared references into the stored attributes dict.

The SCIM source views then compare the patched data against
connection.attributes to decide whether anything changed; because the
original was mutated in place, the comparison saw no difference, the
update was skipped, and the endpoint returned HTTP 200 with the patched
values rendered from the in-memory dict -- so clients like Microsoft
Entra ID saw a successful provisioning while authentik kept the old
values. Patching an existing nested attribute was silently dropped
unless a top-level attribute changed in the same request.

Copy the input deeply so the processor does not modify its input: the
views' change detection can see nested changes again and persists them.

Fixes #26896

Signed-off-by: choksi2212 <[email protected]>
Co-authored-by: choksi2212 <[email protected]>
Co-authored-by: Hermes <[email protected]>
2026-10-14 11:57:02 +01:00
Emil BurzoandMarc 'risson' Schmitt 8c43c174fa lifecycle: rewrite the container entrypoint in Rust (#26320)
* lifecycle: rewrite the container entrypoint in Rust and add a debug image

* improvements

* rename debug-image stage to just debug

* rename final stage

Co-authored-by: Marc 'risson' Schmitt <[email protected]>
Signed-off-by: Emil Burzo <[email protected]>

* message when readline is unavailable

* remove find_shell / no_shell_error

* refactor commands/arguments based on feedback

* redo

* wip

* wip

* wip

* read AUTHENTIK_DEBUGGER directly in rust instead of shelling out

---------

Signed-off-by: Emil Burzo <[email protected]>
Co-authored-by: Marc 'risson' Schmitt <[email protected]>
2026-10-14 11:43:05 +01:00
authentik-automation[bot] ba8463b14f core, web: update translations (#26898)
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: authentik-automation[bot] <135050075+authentik-automation[bot]@users.noreply.github.com>
2026-10-14 11:37:09 +01:00
Dominic Roy 4e2265c635 web: remove hardcoded dark toolbar and pagination background in tables (#26883)
The dark-theme overrides pointed the table toolbar and bottom pagination at
--ak-dark-background-light (#1c1e21), while the surrounding card uses the
oklab-defined --pf-global--BackgroundColor--100 (#1b1d21). The one-unit
mismatch rendered as a faint band around the toolbar and pagination rows.
PatternFly's default for both already resolves to BackgroundColor--100, so
the overrides are dropped.
2026-10-13 20:15:36 +00:00
Dominic Roy 7202f162be web: replace legacy dark background hex with the PatternFly token (#26884)
--ak-dark-background-light is a hardcoded #1c1e21 from before the dark
palette moved to oklab tokens. Every surface that still used it (select
toggles, toggle-group buttons, control buttons, the dual-select search
inputs, and readonly or disabled form controls) sat one unit lighter than
the card or modal around it, which shows as a faint seam. Point them at
--pf-global--BackgroundColor--100, which is what their containers use, and
drop the overrides where that is already PatternFly's default. The hover
and gradient uses of the variable are intentional distinct shades and are
left alone.
2026-10-13 16:06:59 -04:00
Dominic Roy ef19dcd72b web/elements: reload edit forms after cancel and on pk change (#26892) 2026-10-13 13:46:17 -04:00
69b82aba18 website/integrations: add Everpure FlashArray (#26889)
* new integration doc for Everpure FlashArray

* website/integrations: Everpure FlashArray: cleanup

* Apply suggestion from @dominic-r

Signed-off-by: Dominic Roy <[email protected]>

* Apply suggestion from @dominic-r

Signed-off-by: Dominic Roy <[email protected]>

---------

Signed-off-by: Dominic Roy <[email protected]>
Co-authored-by: riversdev0 <[email protected]>
Co-authored-by: Dominic R <[email protected]>
Co-authored-by: Dominic Roy <[email protected]>
2026-10-13 16:29:24 +00:00
Jens L. 1b42426d4d web/elements: add coloured banner to status card (#26879)
* web/elements: add coloured banner to status card

Signed-off-by: Jens Langhammer <[email protected]>

* fix loading / default

Signed-off-by: Jens Langhammer <[email protected]>

---------

Signed-off-by: Jens Langhammer <[email protected]>
2026-10-13 17:28:17 +01:00
Dominic Roy 1ae2051245 website/docs: document the New Invitation form instead of the wizard (#26885)
The multi-step invitation wizard was replaced by a single form in
2026.5, but the docs still described a caret menu, a wizard flow
selection step, and automatic flow selection that no longer exist.

Closes: #26872
2026-10-13 15:58:09 +00:00
Jens L. f24ba37556 web/admin: chart with stats (#26880)
* add new chardcardwithstats

Signed-off-by: Jens Langhammer <[email protected]>

* add delta, fix sizing

Signed-off-by: Jens Langhammer <[email protected]>

---------

Signed-off-by: Jens Langhammer <[email protected]>
2026-10-13 16:52:16 +01:00
Jacob SachsandJens L. 58f021ae1c core: fix pagination for user application lists (#26862)
* core: fix pagination for user application lists

* core: use query budget in application pagination tests

---------

Co-authored-by: Jens L. <[email protected]>
2026-10-13 16:37:46 +01:00
Dominic Roy 6c13d89364 packages/ak-axum, website/docs: say which listener failed to bind (#26816)
Since 2026.5 the worker exits when it cannot bind its HTTP or metrics
address, so a server and worker that share a network and use the same
ports take each other down. The error only read "Address already in use
(os error 98)", with nothing saying which component or address failed.
Add both to the error, and document that the server and worker need
different listen ports when they share a network.

Closes: #23531
2026-10-13 15:26:31 +01:00
Filatov Danila Yurievich ~ Филатов Данила ЮрьевичandJens Langhammer 7f83ae4cbf sources/oauth: migrate patreon-api to v2 (#26865)
* sources/oauth: fix(26864) - migrate patreon-api to v2 + test

* cleanup

Signed-off-by: Jens Langhammer <[email protected]>

* fix

Signed-off-by: Jens Langhammer <[email protected]>

---------

Signed-off-by: Jens Langhammer <[email protected]>
Co-authored-by: Jens Langhammer <[email protected]>
2026-10-13 15:25:01 +01:00
Marcelo Elizeche Landó 4f8391bfb0 lifecycle: fix AWS cloudformation template defaults (#26807)
* Set postgresql sslmode to require

* Don't set postgresql minor version, let aws choose the default for the region

* remove comment

Signed-off-by: Marcelo Elizeche Landó <[email protected]>

---------

Signed-off-by: Marcelo Elizeche Landó <[email protected]>
2026-10-13 11:04:49 -03:00
DeviousCardi 41f6fb9710 stages/consent: fix integrity error when re-consenting after consent expired (#26866)
Since #18274, the default manager of expiring models excludes expired
objects instead of `filter_not_expired()` deleting them. The consent stage
therefore no longer finds an expired consent, and creates a new one, which
conflicts with the expired consent's unique (user, application, permissions)
key until `clean_expired_models` removes it.

Remove expired consents for the user and application before saving.

Closes #24466
2026-10-13 12:51:15 +01:00
dependabot[bot] b1a2f76d98 core: bump black from 26.5.1 to 26.10.0 (#26840)
Bumps [black](https://github.com/psf/black) from 26.5.1 to 26.10.0.
- [Release notes](https://github.com/psf/black/releases)
- [Changelog](https://github.com/psf/black/blob/main/CHANGES.md)
- [Commits](https://github.com/psf/black/compare/26.5.1...26.10.0)

---
updated-dependencies:
- dependency-name: black
  dependency-version: 26.10.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-12 15:35:27 +01:00
dependabot[bot]andJens Langhammer c6e4c323d4 core: bump openapitools/openapi-generator-cli from v7.25.0 to v7.26.0 in /packages/client-rust (#26831)
* core: bump openapitools/openapi-generator-cli in /packages/client-rust

Bumps openapitools/openapi-generator-cli from v7.25.0 to v7.26.0.

---
updated-dependencies:
- dependency-name: openapitools/openapi-generator-cli
  dependency-version: v7.26.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>

* gen

Signed-off-by: Jens Langhammer <[email protected]>

---------

Signed-off-by: dependabot[bot] <[email protected]>
Signed-off-by: Jens Langhammer <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jens Langhammer <[email protected]>
2026-10-12 15:34:44 +01:00
dependabot[bot] a3a7622f0d core: bump library/golang from 3b77fc6 to 2f84bc9 in /lifecycle/container (#26841)
core: bump library/golang in /lifecycle/container

Bumps library/golang from `3b77fc6` to `2f84bc9`.

---
updated-dependencies:
- dependency-name: library/golang
  dependency-version: 1.27-trixie
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-12 15:34:31 +01:00
dependabot[bot] a81c222bdc core: bump tokio-util from 0.7.19 to 0.7.20 (#26858)
Bumps [tokio-util](https://github.com/tokio-rs/tokio) from 0.7.19 to 0.7.20.
- [Release notes](https://github.com/tokio-rs/tokio/releases)
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-util-0.7.19...tokio-util-0.7.20)

---
updated-dependencies:
- dependency-name: tokio-util
  dependency-version: 0.7.20
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-12 15:30:59 +01:00
dependabot[bot] 0fdfa900d2 core: bump library/node from 26.10.0-trixie to 26.11.1-trixie in /website (#26847)
core: bump library/node in /website

Bumps library/node from 26.10.0-trixie to 26.11.1-trixie.

---
updated-dependencies:
- dependency-name: library/node
  dependency-version: 26.11.1-trixie
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-12 15:29:57 +01:00
dependabot[bot] 73ef2b7bbb core: bump django-filter from 26.1 to 26.2 (#26839)
Bumps [django-filter](https://github.com/carltongibson/django-filter) from 26.1 to 26.2.
- [Release notes](https://github.com/carltongibson/django-filter/releases)
- [Changelog](https://github.com/carltongibson/django-filter/blob/main/CHANGES.rst)
- [Commits](https://github.com/carltongibson/django-filter/compare/26.1...26.2)

---
updated-dependencies:
- dependency-name: django-filter
  dependency-version: '26.2'
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-12 14:49:03 +01:00
dependabot[bot] 85069dbd73 ci: bump actions/upload-artifact from 7.0.1 to 7.0.2 (#26851)
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 7.0.1 to 7.0.2.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/043fb46d1a93c77aae656e7c1c64a875d1fc6a0a...cf430e030ddbb5b0abf93d22962f4752f3646cd9)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-version: 7.0.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-12 14:39:24 +01:00
dependabot[bot] 329e00fc60 core: bump astral-sh/uv from 0.12.24 to 0.13.0 in /lifecycle/container (#26844)
Bumps [astral-sh/uv](https://github.com/astral-sh/uv) from 0.12.24 to 0.13.0.
- [Release notes](https://github.com/astral-sh/uv/releases)
- [Changelog](https://github.com/astral-sh/uv/blob/main/CHANGELOG.md)
- [Commits](https://github.com/astral-sh/uv/compare/0.12.24...0.13.0)

---
updated-dependencies:
- dependency-name: astral-sh/uv
  dependency-version: 0.13.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-12 14:12:11 +01:00
dependabot[bot] 799b41c94a ci: bump the codeql group across 1 directory with 3 updates (#26849)
Bumps the codeql group with 3 updates in the / directory: [github/codeql-action/init](https://github.com/github/codeql-action), [github/codeql-action/autobuild](https://github.com/github/codeql-action) and [github/codeql-action/analyze](https://github.com/github/codeql-action).


Updates `github/codeql-action/init` from 4.38.2 to 4.38.3
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/2892aa5e19bbd11bc0cff5427e3b750a04d9e3c2...24c54180a607b1449ed407dd24f251e4e9147c8d)

Updates `github/codeql-action/autobuild` from 4.38.2 to 4.38.3
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/2892aa5e19bbd11bc0cff5427e3b750a04d9e3c2...24c54180a607b1449ed407dd24f251e4e9147c8d)

Updates `github/codeql-action/analyze` from 4.38.2 to 4.38.3
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/2892aa5e19bbd11bc0cff5427e3b750a04d9e3c2...24c54180a607b1449ed407dd24f251e4e9147c8d)

---
updated-dependencies:
- dependency-name: github/codeql-action/init
  dependency-version: 4.38.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: codeql
- dependency-name: github/codeql-action/autobuild
  dependency-version: 4.38.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: codeql
- dependency-name: github/codeql-action/analyze
  dependency-version: 4.38.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: codeql
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-12 14:09:18 +01:00
dependabot[bot] 45ad4d7c3b core: bump library/node from ec7758e to 193fe51 in /lifecycle/container (#26842)
core: bump library/node in /lifecycle/container

Bumps library/node from `ec7758e` to `193fe51`.

---
updated-dependencies:
- dependency-name: library/node
  dependency-version: 26-trixie-slim
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-12 14:03:27 +01:00
dependabot[bot] 04dab04e5e ci: bump actions/download-artifact from 8.0.1 to 8.0.2 (#26853)
Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 8.0.1 to 8.0.2.
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](https://github.com/actions/download-artifact/compare/3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c...9000827ccba6bdab643e8b6fd33ac0654aef8333)

---
updated-dependencies:
- dependency-name: actions/download-artifact
  dependency-version: 8.0.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-12 14:01:43 +01:00
dependabot[bot] 7b939524fb ci: bump the regclient group across 1 directory with 2 updates (#26850)
Bumps the regclient group with 2 updates in the / directory: [regclient/actions/regctl-installer](https://github.com/regclient/actions) and [regclient/actions/regctl-login](https://github.com/regclient/actions).


Updates `regclient/actions/regctl-installer` from 0.2.0.pre.rc1 to 0.2.0
- [Release notes](https://github.com/regclient/actions/releases)
- [Changelog](https://github.com/regclient/actions/blob/main/RELEASE.md)
- [Commits](https://github.com/regclient/actions/compare/b7d935a4b4f550aa3b5ad20941f7d2f9285565b2...dd58ad94f76adb73d8ac1bf75ed25f01545d5b32)

Updates `regclient/actions/regctl-login` from 0.2.0.pre.rc1 to 0.2.0
- [Release notes](https://github.com/regclient/actions/releases)
- [Changelog](https://github.com/regclient/actions/blob/main/RELEASE.md)
- [Commits](https://github.com/regclient/actions/compare/b7d935a4b4f550aa3b5ad20941f7d2f9285565b2...dd58ad94f76adb73d8ac1bf75ed25f01545d5b32)

---
updated-dependencies:
- dependency-name: regclient/actions/regctl-installer
  dependency-version: 0.2.0
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: regclient
- dependency-name: regclient/actions/regctl-login
  dependency-version: 0.2.0
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: regclient
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-12 13:54:06 +01:00
dependabot[bot]andJens Langhammer c8273a91f3 core: bump openapitools/openapi-generator-cli from v7.25.0 to v7.26.0 in /packages/client-ts (#26832)
* core: bump openapitools/openapi-generator-cli in /packages/client-ts

Bumps openapitools/openapi-generator-cli from v7.25.0 to v7.26.0.

---
updated-dependencies:
- dependency-name: openapitools/openapi-generator-cli
  dependency-version: v7.26.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>

* gen

Signed-off-by: Jens Langhammer <[email protected]>

---------

Signed-off-by: dependabot[bot] <[email protected]>
Signed-off-by: Jens Langhammer <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jens Langhammer <[email protected]>
2026-10-12 13:50:59 +01:00
dependabot[bot]andJens Langhammer 7ee3fb6ad9 core: bump openapitools/openapi-generator-cli from v7.25.0 to v7.26.0 in /packages/client-go (#26830)
* core: bump openapitools/openapi-generator-cli in /packages/client-go

Bumps openapitools/openapi-generator-cli from v7.25.0 to v7.26.0.

---
updated-dependencies:
- dependency-name: openapitools/openapi-generator-cli
  dependency-version: v7.26.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>

* gen

Signed-off-by: Jens Langhammer <[email protected]>

---------

Signed-off-by: dependabot[bot] <[email protected]>
Signed-off-by: Jens Langhammer <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jens Langhammer <[email protected]>
2026-10-12 13:50:39 +01:00
dependabot[bot] 8813e6f95b core: bump golang.org/x/crypto from 0.57.0 to 0.58.0 (#26828)
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.57.0 to 0.58.0.
- [Commits](https://github.com/golang/crypto/compare/v0.57.0...v0.58.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-version: 0.58.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-12 13:50:20 +01:00
dependabot[bot] 8ef8a25c36 ci: bump actions/setup-node from 7.0.0 to 7.1.0 (#26852)
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 7.0.0 to 7.1.0.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/820762786026740c76f36085b0efc47a31fe5020...949feb2413d6458794dcd2491c4babbbce0c15c1)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-version: 7.1.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-12 13:48:01 +01:00
dependabot[bot] bf82cb63f7 core: bump uuid from 1.26.1 to 1.27.0 (#26857)
Bumps [uuid](https://github.com/uuid-rs/uuid) from 1.26.1 to 1.27.0.
- [Release notes](https://github.com/uuid-rs/uuid/releases)
- [Commits](https://github.com/uuid-rs/uuid/compare/v1.26.1...v1.27.0)

---
updated-dependencies:
- dependency-name: uuid
  dependency-version: 1.27.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-12 13:45:58 +01:00
dependabot[bot] f3d6ec9624 core: bump goauthentik/platform-ssh from 26.04-ak-0.70.0 to 26.04-ak-0.71.0 in /tests/e2e (#26833)
core: bump goauthentik/platform-ssh in /tests/e2e

Bumps goauthentik/platform-ssh from 26.04-ak-0.70.0 to 26.04-ak-0.71.0.

---
updated-dependencies:
- dependency-name: goauthentik/platform-ssh
  dependency-version: 26.04-ak-0.71.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-12 13:09:58 +01:00
dependabot[bot] a6180e000b core: bump opentelemetry-propagator-b3 from 1.45.0 to 1.45.1 in the opentelemetry group (#26836)
core: bump opentelemetry-propagator-b3

Bumps the opentelemetry group with 1 update: [opentelemetry-propagator-b3](https://github.com/open-telemetry/opentelemetry-python).


Updates `opentelemetry-propagator-b3` from 1.45.0 to 1.45.1
- [Release notes](https://github.com/open-telemetry/opentelemetry-python/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-python/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-python/compare/v1.45.0...v1.45.1)

---
updated-dependencies:
- dependency-name: opentelemetry-propagator-b3
  dependency-version: 1.45.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: opentelemetry
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-12 12:58:12 +01:00
dependabot[bot] 1ee4f8d96d core: bump golang.org/x/sync from 0.23.0 to 0.24.0 (#26829)
Bumps [golang.org/x/sync](https://github.com/golang/sync) from 0.23.0 to 0.24.0.
- [Commits](https://github.com/golang/sync/compare/v0.23.0...v0.24.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sync
  dependency-version: 0.24.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-12 12:56:03 +01:00
dependabot[bot] e79daf276a core: bump library/nginx from 908dc23 to 60f0d4e in /website (#26846)
Bumps library/nginx from `908dc23` to `60f0d4e`.

---
updated-dependencies:
- dependency-name: library/nginx
  dependency-version: 1.31.6-trixie
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-12 12:52:56 +01:00
dependabot[bot] 44f490f14e ci: bump actions/setup-node from 7.0.0 to 7.1.0 in /.github/actions/setup (#26854)
ci: bump actions/setup-node in /.github/actions/setup

Bumps [actions/setup-node](https://github.com/actions/setup-node) from 7.0.0 to 7.1.0.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/820762786026740c76f36085b0efc47a31fe5020...949feb2413d6458794dcd2491c4babbbce0c15c1)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-version: 7.1.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-12 12:52:43 +01:00
dependabot[bot] 09ecfc110d ci: bump astral-sh/setup-uv from 10.2.0 to 10.3.0 in /.github/actions/setup (#26855)
ci: bump astral-sh/setup-uv in /.github/actions/setup

Bumps [astral-sh/setup-uv](https://github.com/astral-sh/setup-uv) from 10.2.0 to 10.3.0.
- [Release notes](https://github.com/astral-sh/setup-uv/releases)
- [Commits](https://github.com/astral-sh/setup-uv/compare/c18668ad3cf93ea998bef934396af7bb5c839dc7...1c37ad07a6a961277cf70c0d37d6f313000f5884)

---
updated-dependencies:
- dependency-name: astral-sh/setup-uv
  dependency-version: 10.3.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-12 12:52:20 +01:00
dependabot[bot] 9f18342641 ci: bump taiki-e/install-action from 2.87.26 to 2.87.27 in /.github/actions/setup (#26856)
ci: bump taiki-e/install-action in /.github/actions/setup

Bumps [taiki-e/install-action](https://github.com/taiki-e/install-action) from 2.87.26 to 2.87.27.
- [Release notes](https://github.com/taiki-e/install-action/releases)
- [Changelog](https://github.com/taiki-e/install-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/taiki-e/install-action/compare/f7e5d7c961414b23f5b25b2da9294395d08513ad...ab6895351a88b908e96a4697860d4ffea5e57dbe)

---
updated-dependencies:
- dependency-name: taiki-e/install-action
  dependency-version: 2.87.27
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-12 12:51:52 +01:00
dependabot[bot] 185e70c732 core: bump goauthentik/selenium from 152.0-ak-0.70.0 to 152.0-ak-0.71.0 in /tests/e2e (#26835)
core: bump goauthentik/selenium in /tests/e2e

Bumps [goauthentik/selenium](https://github.com/SeleniumHQ/docker-selenium) from 152.0-ak-0.70.0 to 152.0-ak-0.71.0.
- [Release notes](https://github.com/SeleniumHQ/docker-selenium/releases)
- [Commits](https://github.com/SeleniumHQ/docker-selenium/commits)

---
updated-dependencies:
- dependency-name: goauthentik/selenium
  dependency-version: 152.0-ak-0.71.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-12 12:51:41 +01:00
dependabot[bot] 4848ed36ca core: bump osixia/openldap from 2.6.10-alpha to 2.6.15-alpha in /tests/e2e (#26834)
core: bump osixia/openldap in /tests/e2e

Bumps osixia/openldap from 2.6.10-alpha to 2.6.15-alpha.

---
updated-dependencies:
- dependency-name: osixia/openldap
  dependency-version: 2.6.15-alpha
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-12 12:51:20 +01:00
Dominic Roy 0376b62514 website/integrations: link authentik concepts in setup intros (#26815)
Each guide's authentik configuration section opens by naming the
objects the reader will create, such as an application/provider pair,
property mappings, or an outpost, without saying what they are. Link
the first mention of each to its authentik documentation so readers new
to authentik can look it up before following the steps. The template
carries the link so new guides start with it.

Closes: #21963
2026-10-10 18:45:41 +01:00
authentik-automation[bot] a40205dc55 core, web: update translations (#26762)
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: authentik-automation[bot] <135050075+authentik-automation[bot]@users.noreply.github.com>
2026-10-09 14:34:01 +01:00
Jens L. ccd5f45863 core: add validation for property mapping return types (#26806)
* core: add validation for property mapping return types

Signed-off-by: Jens Langhammer <[email protected]>

* move to evaluator

Signed-off-by: Jens Langhammer <[email protected]>

---------

Signed-off-by: Jens Langhammer <[email protected]>
2026-10-09 14:09:27 +01:00
Ryan Pesek 5b86ff2d54 rbac: deny unauthenticated object requests instead of failing with a server error (#26682)
deny unauthenticated object requests instead of failing with a server error
2026-10-09 14:33:09 +02:00
dependabot[bot] 17c49b0c99 core: bump goauthentik/fips-python from 3cb0b31 to 19b6198 in /lifecycle/container (#26797)
core: bump goauthentik/fips-python in /lifecycle/container

Bumps goauthentik/fips-python from `3cb0b31` to `19b6198`.

---
updated-dependencies:
- dependency-name: goauthentik/fips-python
  dependency-version: 3.14.8-slim-trixie-fips
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-09 14:04:08 +02:00
dependabot[bot] ecdb879266 core: bump astral-sh/uv from 0.12.23 to 0.12.24 in /lifecycle/container (#26798)
Bumps [astral-sh/uv](https://github.com/astral-sh/uv) from 0.12.23 to 0.12.24.
- [Release notes](https://github.com/astral-sh/uv/releases)
- [Changelog](https://github.com/astral-sh/uv/blob/main/CHANGELOG.md)
- [Commits](https://github.com/astral-sh/uv/compare/0.12.23...0.12.24)

---
updated-dependencies:
- dependency-name: astral-sh/uv
  dependency-version: 0.12.24
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-09 14:04:03 +02:00
dependabot[bot] c1b5e3e6f6 ci: bump helm/kind-action from 1.15.0 to 1.15.1 (#26799)
Bumps [helm/kind-action](https://github.com/helm/kind-action) from 1.15.0 to 1.15.1.
- [Release notes](https://github.com/helm/kind-action/releases)
- [Commits](https://github.com/helm/kind-action/compare/06c1ae10762d3b9c1644e7fe69596ae519e015a2...1544676c07bb3570fcb70166beaa07c4528fd4aa)

---
updated-dependencies:
- dependency-name: helm/kind-action
  dependency-version: 1.15.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-09 14:03:58 +02:00
dependabot[bot] 5cf952e309 core: bump json-subscriber from 0.3.0 to 0.3.1 (#26801)
Bumps [json-subscriber](https://github.com/mladedav/json-subscriber) from 0.3.0 to 0.3.1.
- [Release notes](https://github.com/mladedav/json-subscriber/releases)
- [Changelog](https://github.com/mladedav/json-subscriber/blob/main/CHANGELOG.md)
- [Commits](https://github.com/mladedav/json-subscriber/compare/json-subscriber-v0.3.0...json-subscriber-v0.3.1)

---
updated-dependencies:
- dependency-name: json-subscriber
  dependency-version: 0.3.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-09 14:03:53 +02:00
dependabot[bot] 1dcb295c88 ci: bump taiki-e/install-action from 2.87.25 to 2.87.26 in /.github/actions/setup (#26802)
ci: bump taiki-e/install-action in /.github/actions/setup

Bumps [taiki-e/install-action](https://github.com/taiki-e/install-action) from 2.87.25 to 2.87.26.
- [Release notes](https://github.com/taiki-e/install-action/releases)
- [Changelog](https://github.com/taiki-e/install-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/taiki-e/install-action/compare/183e4297cca2404691e9380e1307288dced5c82a...f7e5d7c961414b23f5b25b2da9294395d08513ad)

---
updated-dependencies:
- dependency-name: taiki-e/install-action
  dependency-version: 2.87.26
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-09 14:03:48 +02:00
dependabot[bot] ef55d6ebc1 core: bump cachetools from 7.2.0 to 7.2.1 (#26800)
Bumps [cachetools](https://github.com/tkem/cachetools) from 7.2.0 to 7.2.1.
- [Changelog](https://github.com/tkem/cachetools/blob/master/CHANGELOG.rst)
- [Commits](https://github.com/tkem/cachetools/compare/v7.2.0...v7.2.1)

---
updated-dependencies:
- dependency-name: cachetools
  dependency-version: 7.2.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-09 10:14:48 +03:00
Jens L. c3f92b69f6 flows: allow unauthenticated flows for re-authentication (#26785)
Signed-off-by: Jens Langhammer <[email protected]>
2026-10-08 18:27:12 +01:00
17e9e43349 sources/oauth: support public keys for PKCE flows (#20151)
* feat(oauth): support public keys for PKCE flows

* generate

Signed-off-by: Jens Langhammer <[email protected]>

* cleanup

Signed-off-by: Jens Langhammer <[email protected]>

* fix tests

Signed-off-by: Jens Langhammer <[email protected]>

* fix form

Signed-off-by: Jens Langhammer <[email protected]>

* fixup

Signed-off-by: Jens Langhammer <[email protected]>

* add more tests

Signed-off-by: Jens Langhammer <[email protected]>

---------

Signed-off-by: Jens Langhammer <[email protected]>
Co-authored-by: Jens L. <[email protected]>
Co-authored-by: Dewi Roberts <[email protected]>
2026-10-08 18:25:52 +01:00
Ryan PesekandJens Langhammer b397839514 lib/sync/outgoing: prevent duplicate group creation in outgoing providers (#25997)
* prevent duplicate group creation in outgoing providers

* rename

Signed-off-by: Jens Langhammer <[email protected]>

* fixup

Signed-off-by: Jens Langhammer <[email protected]>

* fixup

Signed-off-by: Jens Langhammer <[email protected]>

---------

Signed-off-by: Jens Langhammer <[email protected]>
Co-authored-by: Jens Langhammer <[email protected]>
2026-10-08 18:20:37 +01:00
a42c652448 providers/ldap: keep cached directory when a refresh fetch fails (#26420)
The memory searcher discarded the errors from the users and groups
paginators and always replaced its snapshot with the result. When the
core API fails during a provider refresh, the paginator returns an
empty list, so one transient error replaced a known-good directory
with an empty one. Every search then returned no entries or was
denied until a later refresh succeeded or the outpost restarted.

fetch() now checks both errors. If either fetch failed and a previous
snapshot exists, it logs the error and keeps the previous snapshot.
Users and groups are kept together, so a snapshot never mixes data
from two fetches. On the first fetch there is no previous snapshot,
so the searcher stores what it got, as before, and the next
successful refresh replaces it.

Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
Co-authored-by: Jens L. <[email protected]>
2026-10-08 17:27:42 +01:00
Dominic RoyandClaude Opus 5.5 2bfbc51cd3 sources/oauth: fix Entra ID group pagination (#26497)
* sources/oauth: follow Entra ID group pagination

* sources/oauth: simplify Entra pagination tests

* sources/oauth: use msgraph client for Entra group pagination

Closes: #26497

* sources/oauth: generate Entra ID test tokens

* sources/oauth: use the new Entra entity conversion helper

* sources/oauth: avoid sharing Entra Graph request headers

kiota's RequestConfiguration uses a shared HeadersCollection default, so
Authorization values accumulated across Graph requests and users.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
2026-10-08 15:37:09 +00:00
Dominic Roy 377d6d7dcf providers/oauth2: allow logout with unfinished flows (#26565)
* providers/oauth2: allow logout with unfinished flows

Closes: #26561

* providers/oauth2: extract iframe request helper
2026-10-08 15:27:36 +00:00
Dominic Roy a278c9e724 enterprise/agents: add user queryset filters (#26475)
* enterprise/agents: add user queryset filters

* core: restore explicit anonymous-user manager filter

* enterprise/agents: move user queryset filters into models

Delegate through local imports so core models can finish loading before the agent models import User and Actor.
2026-10-08 15:19:11 +00:00
Dominic Roy 6a884d7032 core: fix user switching "Add user" for non-internal users and sources (#26679)
* core: only allow internal users in user switching

The account switcher is only in the User interface, which external
users can't open, so adding one left the browser's other logins
unreachable.

Closes: #26676

* core: keep user switching add-user context through source logins

A source picked inside "Add user" planned its own flow without the
add-user context, so the login linked the source to the current user
or replaced the current session instead of adding one.

* core: track user switching add-user outside the flow plan

SAML POST bindings and Telegram replace the flow plan before the source
callback, and a plan left by an abandoned "Add user" lingers in the
session. Use a session key that the source callback consumes and that
opening an interface clears. Refuse source enrollment during "Add user",
since enrollment creates the user before the login stage can refuse it.

* core: import add-user session key directly

* core: ignore tracing errors for add-user enrollment denial

* flows: respect authentication requirements when adding users
2026-10-08 15:17:41 +00:00
dependabot[bot] 2a5199af10 core: bump github.com/go-openapi/runtime from 0.33.2 to 0.33.3 (#26764)
Bumps [github.com/go-openapi/runtime](https://github.com/go-openapi/runtime) from 0.33.2 to 0.33.3.
- [Release notes](https://github.com/go-openapi/runtime/releases)
- [Commits](https://github.com/go-openapi/runtime/compare/v0.33.2...v0.33.3)

---
updated-dependencies:
- dependency-name: github.com/go-openapi/runtime
  dependency-version: 0.33.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-08 13:51:13 +00:00
dependabot[bot] 9a0d0c4a89 ci: bump getsentry/action-release from 3.7.0 to 3.7.1 (#26772)
Bumps [getsentry/action-release](https://github.com/getsentry/action-release) from 3.7.0 to 3.7.1.
- [Release notes](https://github.com/getsentry/action-release/releases)
- [Changelog](https://github.com/getsentry/action-release/blob/master/CHANGELOG.md)
- [Commits](https://github.com/getsentry/action-release/compare/ff07929a6537bac57790c3451cf4d364aca38528...6fb9aeade7061441cf3864e34fbe11a1457ad7dc)

---
updated-dependencies:
- dependency-name: getsentry/action-release
  dependency-version: 3.7.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-08 14:21:38 +01:00
dependabot[bot] 529e8cb529 ci: bump taiki-e/install-action from 2.87.24 to 2.87.25 in /.github/actions/setup (#26773)
ci: bump taiki-e/install-action in /.github/actions/setup

Bumps [taiki-e/install-action](https://github.com/taiki-e/install-action) from 2.87.24 to 2.87.25.
- [Release notes](https://github.com/taiki-e/install-action/releases)
- [Changelog](https://github.com/taiki-e/install-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/taiki-e/install-action/compare/e407f7bafb71fd004bc5c2da3032e5470cbb6ef0...183e4297cca2404691e9380e1307288dced5c82a)

---
updated-dependencies:
- dependency-name: taiki-e/install-action
  dependency-version: 2.87.25
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-08 14:21:10 +01:00
dependabot[bot] 5f7f3a13bc core: bump goauthentik/fips-python from ef60dda to 3cb0b31 in /lifecycle/container (#26767)
core: bump goauthentik/fips-python in /lifecycle/container

Bumps goauthentik/fips-python from `ef60dda` to `3cb0b31`.

---
updated-dependencies:
- dependency-name: goauthentik/fips-python
  dependency-version: 3.14.8-slim-trixie-fips
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-08 14:20:51 +01:00
Jens L. 8b7266de68 enterprise/stages/mtls: include SAN data in flow context (#26777) 2026-10-08 14:14:28 +01:00
dependabot[bot] 11a9855110 core: bump aws-cdk-lib from 2.271.0 to 2.272.0 (#26768)
Bumps [aws-cdk-lib](https://github.com/aws/aws-cdk) from 2.271.0 to 2.272.0.
- [Release notes](https://github.com/aws/aws-cdk/releases)
- [Changelog](https://github.com/aws/aws-cdk/blob/main/CHANGELOG.v2.alpha.md)
- [Commits](https://github.com/aws/aws-cdk/compare/v2.271.0...v2.272.0)

---
updated-dependencies:
- dependency-name: aws-cdk-lib
  dependency-version: 2.272.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-08 12:48:47 +00:00
dependabot[bot] 5118ef1180 core: bump dexidp/dex from v2.45.1 to v2.46.0 in /tests/e2e (#26766)
Bumps [dexidp/dex](https://github.com/dexidp/dex) from v2.45.1 to v2.46.0.
- [Release notes](https://github.com/dexidp/dex/releases)
- [Commits](https://github.com/dexidp/dex/compare/v2.45.1...v2.46.0)

---
updated-dependencies:
- dependency-name: dexidp/dex
  dependency-version: v2.46.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-08 12:42:50 +00:00
dependabot[bot] 5d6e504d83 core: bump github.com/go-ldap/ldap/v3 from 3.4.14 to 3.4.15 (#26763)
Bumps [github.com/go-ldap/ldap/v3](https://github.com/go-ldap/ldap) from 3.4.14 to 3.4.15.
- [Release notes](https://github.com/go-ldap/ldap/releases)
- [Commits](https://github.com/go-ldap/ldap/compare/v3.4.14...v3.4.15)

---
updated-dependencies:
- dependency-name: github.com/go-ldap/ldap/v3
  dependency-version: 3.4.15
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-08 12:38:27 +00:00
dependabot[bot] be3a4f4d09 core: bump selenium from 4.49.0 to 4.50.0 (#26769)
Bumps [selenium](https://github.com/SeleniumHQ/Selenium) from 4.49.0 to 4.50.0.
- [Release notes](https://github.com/SeleniumHQ/Selenium/releases)
- [Commits](https://github.com/SeleniumHQ/Selenium/compare/selenium-4.49.0...selenium-4.50.0)

---
updated-dependencies:
- dependency-name: selenium
  dependency-version: 4.50.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-08 12:36:33 +00:00
dependabot[bot] bfd59eacfc core: bump google-api-python-client from 2.200.0 to 2.201.0 (#26770)
Bumps [google-api-python-client](https://github.com/googleapis/google-api-python-client) from 2.200.0 to 2.201.0.
- [Release notes](https://github.com/googleapis/google-api-python-client/releases)
- [Commits](https://github.com/googleapis/google-api-python-client/compare/v2.200.0...v2.201.0)

---
updated-dependencies:
- dependency-name: google-api-python-client
  dependency-version: 2.201.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-08 12:36:24 +00:00
Teffen EllisandJens Langhammer 8da9725195 ci: pull the e2e server image from a registry on port 5000 (#26774)
* ci: pull the e2e server image from 127.0.0.1

On ubuntu-26.04, localhost resolves to ::1, which Docker does not treat as an
insecure registry, so the pull tried HTTPS on port 443 and failed. 127.0.0.1 is
insecure by default and falls back to HTTP on the registry's port 80.

* ci: pull the e2e server image from a registry on port 5000

Docker on ubuntu-26.04 won't fall back to HTTP for a registry without a port.
Pins action-setup-authentik to goauthentik/action-setup-authentik#42, which
splits the version input on its last colon.

* switch tagged

Signed-off-by: Jens Langhammer <[email protected]>

---------

Signed-off-by: Jens Langhammer <[email protected]>
Co-authored-by: Jens Langhammer <[email protected]>
2026-10-08 13:25:29 +01:00
Jens L. 035223e646 root: fix e2e test with outposts (#26778) 2026-10-08 12:59:04 +01:00
Teffen Ellis 7cb062b0d5 web/elements: rebuild ak-search-select as a form-associated element (#25610)
* web/elements: wait for form fields to settle before submitting

Some fields only know their value once they have loaded their options, e.g. a
search select that preselects a default flow. A form submitted before then
serialized them empty.

- Add a SettlingFormField contract (a `settled` promise) and
  settleFormFields(), which waits on every settling field in a form.
- Form.submit() settles the form's fields before validating and serializing.
- FormWizardPage no longer pre-validates before submit(), which settles and
  validates itself, and treats a `false` result as a failed step.
- The application wizard's provider step settles before checking validity.

* web/elements: rebuild ak-search-select as a form-associated element

Replace ak-search-select, its view, ak-list-select, and the EZ variant with a single
form-associated element built on the platform: a native combobox input, a popover
listbox positioned with CSS anchor positioning (with a JS fallback for Firefox), and
ElementInternals for its value and validity.

- `value` is the chosen key. Options come from a SearchSelectSource (fetchObjects,
  keyOf, labelOf, describe, isDisabled, groupBy, preselect). `selectedObject` labels
  the field before the options load, and the selection stays listed when it isn't on
  the fetched page.
- `settled` resolves once the latest fetch lands, for Form.submit() to wait on.
- Keyboard navigation with aria-activedescendant, a pinned action item, a blank
  option, creatable free text, and closing on outside clicks even when focus stays in
  the input. A late preselection doesn't close an open menu.
- The input takes its accessible name from `label`, the field's <label>, or the
  enclosing horizontal form element, since none can reach it across the shadow root.
- `emptyValue` sets what an empty field serializes as, for string fields.

Component tests cover the element.

* web: add search select components and shared sources

Replace the per-type wrapper elements with function components over the new element:
AKSearchSelect and AKSearchSelectField, AKFlowSearch and AKFlowField, and
AKCertificateSearch. Shared sources for policies, groups, users, device access groups,
roles, and notification mappings live in #admin/common/search-sources.
ak-file-search-input moves onto a file source with free-text values.

* web/admin: add presets for provider and source flow fields

The authorization, authentication, and invalidation flow fields repeat across the
provider forms, and the pre-authentication, authentication, and enrollment flow fields
across the source forms. So do the SAML NameID and AuthnContextClassRef mapping fields.
Each becomes a field preset with the shared wording, which forms can override.

* web/admin: move provider forms onto the new search select

Also fixes the brand's default flows never preselecting in the LDAP and RADIUS
provider forms: the brand stores slugs, not primary keys.

* web/admin: move source forms onto the new search select

* web/admin: move stage and flow forms onto the new search select

* web/admin: move application and policy forms onto the new search select

* web/admin: move the remaining forms onto the new search select

Brands, outposts, events, RBAC, blueprints, endpoints, lifecycle rules, requests,
tokens, users, object attributes, property mapping tests, and sync objects. Blueprint
paths serialize as an empty string when unset, since the field isn't nullable.

* web/test: cover the new search select end to end

The form fixture finds search selects by their label and chooses options by role.
New cases cover a default flow still loading at submit, keyboard and search, outside
clicks, edit forms showing saved values, and a group binding in the application
wizard.

* web/elements: drop the settle helpers duplicated from main

Rebasing onto main brought in settle-form-fields.ts from #26566, while this
branch still carried its own earlier copy of settleFormFields and
SettlingFormField in form-associated-element.ts. Form.ts imported both, which
failed type checking with a duplicate identifier.

Keeps main's version, which also times out and never rejects, and points
Form and ak-search-select at it.

* web/admin: save the LDAP source's parent group; scope create clicks in tests

The LDAP source form submitted its parent group as `additionalParentGroup`,
a name the API doesn't know, so the group never saved. Submit it as
`syncParentGroup`.

The admin tables render a second create button in their empty state while rows
load, so an unscoped "New …" click could match two buttons. Scope those clicks
in the e2e tests to the table toolbar, as the provider tests already do.

* web/elements: send numeric keys to the API as numbers; keep option IDs unique

- Sources can declare parseKey(); the user and provider sources send their
  primary keys as numbers again, matching main.
- Object option IDs get their own prefix and an unambiguous encoding, so keys
  like "blank" or "action" no longer collide with the built-in options.
- The active option scrolls into view by its rendered ID.

* web/elements: settle form fields before wizard and modal validation

Wizard steps and modal forms checked validity synchronously before waiting for
fields to settle, so a required search select still preselecting its default
rejected the click and never retried.

- WizardStep waits for settled() before validating Next/Finish and ignores
  repeat clicks meanwhile; ApplicationWizardStep settles its form.
- ModalForm settles the form before its validity check.
- Cover the provider step with an e2e test that holds back the invalidation flows.
2026-10-08 05:31:52 +01:00
Teffen Ellis edee3e0c22 web: recover stranded Transifex translations into canonical xliff files (#26735)
* web: recover stranded Transifex translations into canonical xliff files

Transifex writes web/xliff/<lang>.xlf with underscore codes (cs_CZ.xlf),
but lit-localize only reads the hyphenated files named in targetLocales.
Translator work landing in the underscore files never shipped.

Fold each underscore file into its canonical sibling, following the
#24563 recovery rule: a stranded target wins over the existing one. A
donor target is only taken when its <source> matches the canonical
source and its placeholder ids match; placeholders are rewritten from the
canonical source so equiv-text stays current.

- In-tree duplicates: cs_CZ, de_DE, fi_FI, fr_FR, it_IT, ja_JP, pt_BR,
  bg_BG, pl_PL, plus ar_AA -> ar and no_NO -> nb-NO.
- Files deleted by #24024, recovered from 1dc509dca^: es_ES, ko_KR,
  ru_RU, tr_TR (and the older cs/de/fi/fr/it/ja/pt_BR copies as a
  lower-priority donor).

2,478 targets filled and 167 replaced across 15 locales. The underscore
duplicates are removed. Orphans for unshipped locales (bn_BD, cy_GB,
da_DK, hr_HR, sk_SK, sv_SE) are left for their enablement PRs.

* web: fix recovered French Kerberos help and typos

The recovered fr-FR Kerberos sync help described a password or keytab cache instead of the alternative credentials. Also fixes a French typo and a German formal/informal mix.

* core, web: register locales in locales.yaml and normalize Transifex paths

Transifex substitutes its own language code into both translation paths,
and its language_mapping is global, so it can't satisfy lit-localize
(pt-BR.xlf) and Django (locale/pt_BR/) at once. Files landed under names
neither build reads, and nothing reported it.

- locales.yaml is the source of truth: tag, Django directory, Transifex
  code, and whether the locale ships.
- `make gen-locales` writes targetLocales, the LocaleLoaderRecord
  region, and the Transifex language_mapping (code -> web tag).
- `make locales-normalize` moves locale/<tag>/ to locale/<to_locale(tag)>/
  and folds stray xliff files into their canonical file.
- `make lint-locales` / ci-lint-locales fail on unregistered paths and
  stale generated files. A Django test checks each shipped catalog loads.
- A workflow normalizes Transifex PRs and pushes the correction.

Migration: ar_AA -> ar and no_NO -> nb_NO backend catalogs merged;
locale/zh-Hans and zh-Hant renamed to zh_Hans/zh_Hant, which Django
can now find (it served 37 of 1043 zh-Hans strings before); unshipped
xliff orphans renamed to their tags.

Refs #24563

* core: address locale pipeline review

- Normalize xliff target-language on every recognized file, not only
  renamed ones, and fail the check on a mismatch. Transifex's mapping
  renames files but keeps aliases like ar-AA inside them, and
  lit-localize keys catalogs by that attribute.
- Merge every file from a Transifex locale directory, not only
  django.po. A conflicting non-catalog file stops the merge before
  anything is deleted.
- Set each catalog's Language header to its directory, and check it.
- Type the merge callback for mypy --strict.
- Ignore msgstr == msgid in the catalog test, so an English fallback
  can't count as a served translation.

* core, web: ship bn-BD and sk-SK through locales.yaml

Bengali and Slovak were enabled on main by hand. Register them as shipped so the generated lists stay in sync.

* web: re-extract locales

Normalizes Transifex entity escaping in recovered targets and drops the removed base-URL banner strings.

* ci: harden translation normalize workflow
2026-10-08 01:14:16 +01:00
Dominic Roy d2e62ab19f ci: migrate latest workflow to ubuntu-26.04 (#26761)
Signed-off-by: Dominic Roy <[email protected]>
2026-10-07 23:46:29 +01:00
Dominic Roy 3d1cdd7d43 events: clean up audit receivers on cancelled requests (#26760)
Signed-off-by: Dominic R <[email protected]>
2026-10-07 18:02:03 +00:00
Jens L. 599121ec9f web/flows: fix layout shift once initial challenge is loaded (#26758)
currently there's a single load state before JS is loaded, then an empty card before the challenge is loaded. once the initial challenge is loaded, there's a shift since the flow title is now there.

This switches directly from no js-load to empty card load with flow title, causing one less layout shift

Signed-off-by: Jens Langhammer <[email protected]>
2026-10-07 18:22:25 +01:00
Emil Burzo a28575d4fc ci: nightly cross-branch migrations check (#26128) 2026-10-07 18:51:18 +03:00
Ken Sternberg d97162f412 root: fix core-install:uv cache clean on MacOS (#26615)
meta: fix `core-install:uv cache clean` on MacOS

## What

Replace the `ifdef` expression for checking if the `brew` program is installed on MacOS with one that actually works.

## Why

The check to clean the `uv` cache and install `libxml` and `xmlsec` never ran on MacOS. Now it will.

## Details

While I was debugging the Makefile, the “checkmake” linting program (can’t recommend it; it missed a lot of things) noted that the construct `ifdef ($(BREW_EXISTS))` contains a `$` and so was likely wrong. Sure enough,

> The `ifdef` form takes the *name* of a variable as its argument, not a reference to a variable. If the value of that variable has a non-empty value, the *text-if-true* is effective; otherwise, the *text-if-false*, if any, is effective. Variables that have never been defined have an empty value.

The `ifdef` expression [takes a bare variable name](https://www.gnu.org/software/make/manual/html_node/Conditional-Syntax.html), not a reference. If you passed it a variable expression, `$(BREW_EXISTS)`, then the *contents* of `BREW_EXISTS` (either “” or “/opt/homebrew/bin/brew”) will be looked up in Make’s variable table and it returns true there is a variable with either name… which of course, there isn’t, as both are invalid variable names.

Of course `make` doesn’t tell you that. Make’s error checking, even GNU Make, kinda sucks.

The correct check is `ifneq ($(BREW_EXISTS),)`, the part after the comma expressing “empty string.”
2026-10-07 15:45:03 +00:00
Emil Burzo d6107766eb core, web, docs: require base URL (#26591)
* core, web, docs: require base URL

* use decorator to patch the flag
2026-10-07 17:42:39 +03:00
Jens L. 4e4b6f6a5b core: handle LookupError when loading session (#26560)
* core: handle LookupError when loading session

* Apply suggestion from @BeryJu

Signed-off-by: Jens L. <[email protected]>

* re-add delete

Signed-off-by: Jens Langhammer <[email protected]>

---------

Signed-off-by: Jens L. <[email protected]>
Signed-off-by: Jens Langhammer <[email protected]>
2026-10-07 15:25:07 +01:00
Jens L. 7ff7a87b4d ci: allow dots in container tags (#26756) 2026-10-07 14:47:13 +01:00
dependabot[bot]andJens L. cdf7dee88a core: bump goauthentik/fips-python from 8b9bd88 to ef60dda in /lifecycle/container (#26748)
core: bump goauthentik/fips-python in /lifecycle/container

Bumps goauthentik/fips-python from `8b9bd88` to `ef60dda`.

---
updated-dependencies:
- dependency-name: goauthentik/fips-python
  dependency-version: 3.14.8-slim-trixie-fips
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jens L. <[email protected]>
2026-10-07 12:34:17 +01:00
dependabot[bot]andJens L. 8cdec7a0be ci: bump taiki-e/install-action from 2.87.23 to 2.87.24 in /.github/actions/setup (#26752)
ci: bump taiki-e/install-action in /.github/actions/setup

Bumps [taiki-e/install-action](https://github.com/taiki-e/install-action) from 2.87.23 to 2.87.24.
- [Release notes](https://github.com/taiki-e/install-action/releases)
- [Changelog](https://github.com/taiki-e/install-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/taiki-e/install-action/compare/861a07ce7084f55488e375df125cdc99bba60eb7...e407f7bafb71fd004bc5c2da3032e5470cbb6ef0)

---
updated-dependencies:
- dependency-name: taiki-e/install-action
  dependency-version: 2.87.24
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jens L. <[email protected]>
2026-10-07 12:33:56 +01:00
authentik-automation[bot] 18541a3a80 core, web: update translations (#26743)
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: authentik-automation[bot] <135050075+authentik-automation[bot]@users.noreply.github.com>
2026-10-07 11:58:46 +01:00
dependabot[bot] a5693baa00 core: bump msgspec from 0.21.1 to 0.22.0 (#26751)
Bumps [msgspec](https://github.com/msgspec/msgspec) from 0.21.1 to 0.22.0.
- [Release notes](https://github.com/msgspec/msgspec/releases)
- [Changelog](https://github.com/msgspec/msgspec/blob/main/docs/changelog.md)
- [Commits](https://github.com/msgspec/msgspec/compare/0.21.1...0.22.0)

---
updated-dependencies:
- dependency-name: msgspec
  dependency-version: 0.22.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-07 08:39:03 +00:00
dependabot[bot] 0e033de522 core: bump goauthentik/selenium from 152.0-ak-0.63.3 to 152.0-ak-0.70.0 in /tests/e2e (#26749)
core: bump goauthentik/selenium in /tests/e2e

Bumps [goauthentik/selenium](https://github.com/SeleniumHQ/docker-selenium) from 152.0-ak-0.63.3 to 152.0-ak-0.70.0.
- [Release notes](https://github.com/SeleniumHQ/docker-selenium/releases)
- [Commits](https://github.com/SeleniumHQ/docker-selenium/commits)

---
updated-dependencies:
- dependency-name: goauthentik/selenium
  dependency-version: 152.0-ak-0.70.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-07 08:37:44 +00:00
dependabot[bot] 58821bce56 core: bump axllent/mailpit from v1.31.3 to v1.31.4 in /tests/e2e (#26745)
Bumps axllent/mailpit from v1.31.3 to v1.31.4.

---
updated-dependencies:
- dependency-name: axllent/mailpit
  dependency-version: v1.31.4
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-07 08:36:26 +00:00
dependabot[bot] 115a81f83d core: bump tokio from 1.53.1 to 1.53.2 (#26750)
Bumps [tokio](https://github.com/tokio-rs/tokio) from 1.53.1 to 1.53.2.
- [Release notes](https://github.com/tokio-rs/tokio/releases)
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.53.1...tokio-1.53.2)

---
updated-dependencies:
- dependency-name: tokio
  dependency-version: 1.53.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-07 08:36:14 +00:00
dependabot[bot] 0324a03167 core: bump goauthentik/platform-ssh from 26.04-ak-0.63.3 to 26.04-ak-0.70.0 in /tests/e2e (#26746)
core: bump goauthentik/platform-ssh in /tests/e2e

Bumps goauthentik/platform-ssh from 26.04-ak-0.63.3 to 26.04-ak-0.70.0.

---
updated-dependencies:
- dependency-name: goauthentik/platform-ssh
  dependency-version: 26.04-ak-0.70.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-07 08:35:23 +00:00
dependabot[bot] f0330fecaa core: bump beryju.io/radius-eap from 0.1.1 to 0.2.0 (#26744)
---
updated-dependencies:
- dependency-name: beryju.io/radius-eap
  dependency-version: 0.2.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-07 11:12:34 +03:00
dependabot[bot] 479b93f4c8 core: bump multidict from 6.7.1 to 6.9.1 (#26740)
Bumps [multidict](https://github.com/aio-libs/multidict) from 6.7.1 to 6.9.1.
- [Release notes](https://github.com/aio-libs/multidict/releases)
- [Changelog](https://github.com/aio-libs/multidict/blob/master/CHANGES.rst)
- [Commits](https://github.com/aio-libs/multidict/compare/v6.7.1...v6.9.1)

---
updated-dependencies:
- dependency-name: multidict
  dependency-version: 6.9.1
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-06 21:20:48 +01:00
Ken Sternberg ccc25525cb web/admin: only import ak-search-ql when it’s needed (#26713)
## What

This commit turns the import of `ak-search-ql` into a lazy import, reducing the weight of those pages that don’t use it and don’t need it. It keeps ahold of the promise used to resolve the import, and the browser will always return `true` immediately after the first import since the component will be cached, even if working with an entirely new table and TableSearch object.

## Credit

@zwj-cheer (or their Agent) has been making some interesting changes to the authentik UI. [The lazy import idea from this commit](https://github.com/goauthentik/authentik/commit/3846fb687d0588b422abc8a8f86156d3473ea4c6), and I quite liked it, although using `until()` to display the correct Lit anchor until the import completes is not in zwj-cheer’s original.
2026-10-06 20:37:26 +01:00
dependabot[bot] 0badce6ab3 core: bump library/node from d82e1d0 to ec7758e in /lifecycle/container (#26484)
core: bump library/node in /lifecycle/container

Bumps library/node from `d82e1d0` to `ec7758e`.

---
updated-dependencies:
- dependency-name: library/node
  dependency-version: 26-trixie-slim
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-06 20:30:17 +01:00
dependabot[bot] 384cb4dcfe ci: bump the regclient group across 1 directory with 2 updates (#26717)
Bumps the regclient group with 2 updates in the / directory: [regclient/actions/regctl-installer](https://github.com/regclient/actions) and [regclient/actions/regctl-login](https://github.com/regclient/actions).


Updates `regclient/actions/regctl-installer` from bb562fac724b7b37c17f19671df07fe34fabc376 to b7d935a4b4f550aa3b5ad20941f7d2f9285565b2
- [Release notes](https://github.com/regclient/actions/releases)
- [Changelog](https://github.com/regclient/actions/blob/main/RELEASE.md)
- [Commits](https://github.com/regclient/actions/compare/bb562fac724b7b37c17f19671df07fe34fabc376...b7d935a4b4f550aa3b5ad20941f7d2f9285565b2)

Updates `regclient/actions/regctl-login` from bb562fac724b7b37c17f19671df07fe34fabc376 to b7d935a4b4f550aa3b5ad20941f7d2f9285565b2
- [Release notes](https://github.com/regclient/actions/releases)
- [Changelog](https://github.com/regclient/actions/blob/main/RELEASE.md)
- [Commits](https://github.com/regclient/actions/compare/bb562fac724b7b37c17f19671df07fe34fabc376...b7d935a4b4f550aa3b5ad20941f7d2f9285565b2)

---
updated-dependencies:
- dependency-name: regclient/actions/regctl-installer
  dependency-version: b7d935a4b4f550aa3b5ad20941f7d2f9285565b2
  dependency-type: direct:production
  dependency-group: regclient
- dependency-name: regclient/actions/regctl-login
  dependency-version: b7d935a4b4f550aa3b5ad20941f7d2f9285565b2
  dependency-type: direct:production
  dependency-group: regclient
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-06 21:29:59 +02:00
dependabot[bot] 18b1057cbb web: bump the storybook group across 1 directory with 5 updates (#26718)
Bumps the storybook group with 5 updates in the /web directory:

| Package | From | To |
| --- | --- | --- |
| [@storybook/addon-docs](https://github.com/storybookjs/storybook/tree/HEAD/code/addons/docs) | `10.6.0` | `10.6.1` |
| [@storybook/addon-links](https://github.com/storybookjs/storybook/tree/HEAD/code/addons/links) | `10.6.0` | `10.6.1` |
| [@storybook/web-components](https://github.com/storybookjs/storybook/tree/HEAD/code/renderers/web-components) | `10.6.0` | `10.6.1` |
| [@storybook/web-components-vite](https://github.com/storybookjs/storybook/tree/HEAD/code/frameworks/web-components-vite) | `10.6.0` | `10.6.1` |
| [storybook](https://github.com/storybookjs/storybook/tree/HEAD/code/core) | `10.6.0` | `10.6.1` |



Updates `@storybook/addon-docs` from 10.6.0 to 10.6.1
- [Release notes](https://github.com/storybookjs/storybook/releases)
- [Changelog](https://github.com/storybookjs/storybook/blob/next/CHANGELOG.md)
- [Commits](https://github.com/storybookjs/storybook/commits/v10.6.1/code/addons/docs)

Updates `@storybook/addon-links` from 10.6.0 to 10.6.1
- [Release notes](https://github.com/storybookjs/storybook/releases)
- [Changelog](https://github.com/storybookjs/storybook/blob/next/CHANGELOG.md)
- [Commits](https://github.com/storybookjs/storybook/commits/v10.6.1/code/addons/links)

Updates `@storybook/web-components` from 10.6.0 to 10.6.1
- [Release notes](https://github.com/storybookjs/storybook/releases)
- [Changelog](https://github.com/storybookjs/storybook/blob/next/CHANGELOG.md)
- [Commits](https://github.com/storybookjs/storybook/commits/v10.6.1/code/renderers/web-components)

Updates `@storybook/web-components-vite` from 10.6.0 to 10.6.1
- [Release notes](https://github.com/storybookjs/storybook/releases)
- [Changelog](https://github.com/storybookjs/storybook/blob/next/CHANGELOG.md)
- [Commits](https://github.com/storybookjs/storybook/commits/v10.6.1/code/frameworks/web-components-vite)

Updates `storybook` from 10.6.0 to 10.6.1
- [Release notes](https://github.com/storybookjs/storybook/releases)
- [Changelog](https://github.com/storybookjs/storybook/blob/next/CHANGELOG.md)
- [Commits](https://github.com/storybookjs/storybook/commits/v10.6.1/code/core)

---
updated-dependencies:
- dependency-name: "@storybook/addon-docs"
  dependency-version: 10.6.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: storybook
- dependency-name: "@storybook/addon-links"
  dependency-version: 10.6.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: storybook
- dependency-name: "@storybook/web-components"
  dependency-version: 10.6.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: storybook
- dependency-name: "@storybook/web-components-vite"
  dependency-version: 10.6.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: storybook
- dependency-name: storybook
  dependency-version: 10.6.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: storybook
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-06 21:29:52 +02:00
authentik-automation[bot] 462475a39b core, web: update translations (#26722)
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: authentik-automation[bot] <135050075+authentik-automation[bot]@users.noreply.github.com>
2026-10-06 21:29:46 +02:00
Teffen Ellis 6a463bf750 web: Fix denied template static form layout. (#26733)
Fix static form layout.

TODO: cherry-pick.
2026-10-06 18:35:12 +01:00
Peter GondaandTeffen Ellis a7a537562b fix: slovak translation (#24433)
* fix: slovak translation

* Second pass at filling out missing entries.

---------

Co-authored-by: Teffen Ellis <[email protected]>
2026-10-06 18:30:55 +01:00
2aada012ef web: enable Bengali (bn-BD) locale (#24788)
* web: enable Bengali (bn-BD) locale

Adds bn-BD to the target locale list and its module loader entry so
the Transifex-translated Bengali strings compile and become
selectable in the UI language picker. Renames
web/xliff/bn_BD.xlf to bn-BD.xlf (content unchanged) to match the
project's hyphenated locale code convention used by every other
target locale.

Translation content itself is left untouched; Transifex sync will
continue to update it as usual.

Signed-off-by: Azharul Haque <[email protected]>

* Update extract.

* Second pass at filling in gaps.

---------

Signed-off-by: Azharul Haque <[email protected]>
Co-authored-by: Azharul Haque <[email protected]>
Co-authored-by: Teffen Ellis <[email protected]>
2026-10-06 18:30:34 +01:00
Dewi Roberts d898315b30 website/docs: add email verification doc (#26547)
Add doc
2026-10-06 13:14:09 +00:00
Dewi RobertsandMarc 'risson' Schmitt 6012636566 website/docs: reverse proxy: add caching static assets info (#26431)
* Add caching static assets info

* Update website/docs/install-config/reverse-proxy.mdx

Co-authored-by: Marc 'risson' Schmitt <[email protected]>
Signed-off-by: Dewi Roberts <[email protected]>

---------

Signed-off-by: Dewi Roberts <[email protected]>
Co-authored-by: Marc 'risson' Schmitt <[email protected]>
2026-10-06 12:49:31 +00:00
Dewi Roberts 3fd5f5157d website/docs: adds tags to manual outpost deployment doc (#26703)
Add tags
2026-10-06 08:47:06 -04:00
dependabot[bot] 49ff99c821 ci: bump taiki-e/install-action from 2.87.22 to 2.87.23 in /.github/actions/setup (#26726)
ci: bump taiki-e/install-action in /.github/actions/setup

Bumps [taiki-e/install-action](https://github.com/taiki-e/install-action) from 2.87.22 to 2.87.23.
- [Release notes](https://github.com/taiki-e/install-action/releases)
- [Changelog](https://github.com/taiki-e/install-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/taiki-e/install-action/compare/83ac0ad63c0167e6f06796fab0fce28db1bf3db0...861a07ce7084f55488e375df125cdc99bba60eb7)

---
updated-dependencies:
- dependency-name: taiki-e/install-action
  dependency-version: 2.87.23
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-06 13:39:19 +01:00
dependabot[bot] d7221a7241 core: bump goauthentik/fips-python from 649c42a to 8b9bd88 in /lifecycle/container (#26724)
core: bump goauthentik/fips-python in /lifecycle/container

Bumps goauthentik/fips-python from `649c42a` to `8b9bd88`.

---
updated-dependencies:
- dependency-name: goauthentik/fips-python
  dependency-version: 3.14.8-slim-trixie-fips
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-06 13:39:06 +01:00
Jens L. 6e7149f626 sources/saml: no more build_full_url (#26728) 2026-10-06 12:36:32 +01:00
dependabot[bot] 6b5bd3f242 core: bump sentry-sdk from 2.70.0 to 2.71.0 (#26715)
Bumps [sentry-sdk](https://github.com/getsentry/sentry-python) from 2.70.0 to 2.71.0.
- [Release notes](https://github.com/getsentry/sentry-python/releases)
- [Changelog](https://github.com/getsentry/sentry-python/blob/master/CHANGELOG.md)
- [Commits](https://github.com/getsentry/sentry-python/compare/2.70.0...2.71.0)

---
updated-dependencies:
- dependency-name: sentry-sdk
  dependency-version: 2.71.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-06 11:00:20 +03:00
dependabot[bot] 2cb33d9356 core: bump pyroscope-io from 1.2.4 to 1.2.5 (#26716)
Bumps pyroscope-io from 1.2.4 to 1.2.5.

---
updated-dependencies:
- dependency-name: pyroscope-io
  dependency-version: 1.2.5
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-06 10:59:50 +03:00
Teffen Ellis 2547ba42a4 web/elements: wait for form fields to settle before submitting (#26566)
* web/elements: wait for form fields to settle before submitting

Some fields only know their value once they have loaded their options, e.g. a
search select that preselects a default flow. A form submitted before then
serialized them empty.

- Add a SettlingFormField contract (a `settled` promise) and
  settleFormFields(), which waits on every settling field in a form.
- Form.submit() settles the form's fields before validating and serializing.
- FormWizardPage no longer pre-validates before submit(), which settles and
  validates itself, and treats a `false` result as a failed step.
- The application wizard's provider step settles before checking validity.

* web/elements: time out settling fields and ignore repeat wizard clicks

Move the settle helpers into a DOM-free module so they can be unit
tested, give settleFormFields a timeout so a stalled field request
can't hang submission, and ignore repeated "next" clicks while the
provider step is still settling.

* web/elements: replace the custom event mixins with typed events and @listen

CustomEmitterElement and CustomListenerElement predate typed Event subclasses
and the @listen decorator. Remove both and eventEmitter.ts.

- ak-dual-select: DualSelectEvent and SearchbarEvent, registered in
  GlobalEventHandlersEventMap with the same `detail` shapes as before. The
  provider listens with @listen, which also stops it re-adding its listeners
  on every reconnect.
- BaseTaskButton, ak-checkbox-group, and the application wizard's submit step
  dispatch plain events (the latter an AKRefreshEvent).
- The search wrappers drop the listener mixin they never used.

Fix @listen along the way:
- Its docs said listeners attach to `window`; the default target is the
  element itself.
- A subclass adding its own @listen wrapped the parent's lifecycle hooks a
  second time, leaving the parent's listeners attached after disconnect.
- Reconnecting without a disconnect no longer stacks registrations.
- Plain methods are bound to the element, so `this` is right for any target.
2026-10-06 05:08:39 +01:00
dependabot[bot]andTeffen Ellis 168723ebf7 core: bump pnpm/pnpm from 12.4.0 to 12.9.1 in /lifecycle/container (#26693)
* core: bump pnpm/pnpm from 12.4.0 to 12.9.1 in /lifecycle/container

Bumps pnpm/pnpm from 12.4.0 to 12.9.1.

---
updated-dependencies:
- dependency-name: pnpm/pnpm
  dependency-version: 12.9.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* core: bump pnpm/pnpm from 12.4.0 to 12.9.1 in /website

Bumps pnpm/pnpm from 12.4.0 to 12.9.1.

---
updated-dependencies:
- dependency-name: pnpm/pnpm
  dependency-version: 12.9.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* Bump pnpm.

* Add pnpm group.

* Bump lockfiles.

* Add missing catalog.

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Teffen Ellis <[email protected]>
2026-10-05 22:58:50 +01:00
Teffen Ellis 9b52ef10b7 web/components: fix tab matchers (#26614)
* Fix matchers.

* web: move NamedEntity types to #common/api/entities

The entity naming types lived in the dialogs module, and ModelForm kept its own
copy of the predicate. Both now come from one place, which the document title
helpers can also use.

* web: move page details and document titles to #elements/router/meta

setPageDetails lived in ak-page-navbar, so importing it also registered the
navbar element. It now lives in a small module of its own, alongside a shared
formatDocumentTitle/setTitle. The branding mixin exposes setTitle, and the
navbar, flow executor and RAC interface use it instead of building titles by
hand. The admin interface now imports the navbar explicitly.

* web/user: set document titles for user pages

The user interface has no page navbar, so its pages never set a title and every
tab read as the brand alone. Each page now announces its header, and the
interface turns it into the title ("Applications - authentik").

* web/user: include the active tab in document titles

Path-routed tab groups now announce their active tab's label, and the user
interface puts it ahead of the page header, e.g. "My Requests - Discover -
authentik".

* web/admin: include the sidebar section in detail page titles

A detail page's title now names its list page, using the same activeWhen
patterns that highlight the sidebar entry: "<name> - Providers - Admin -
authentik". List pages already name themselves and are left as they were.

* Fix issue where clicking links to same link causes reload.

* Fix alignment.

* web/admin: track the route path as state instead of forcing an update

The navbar's section was computed from location in render, which Lit does not
track, so the route listener called requestUpdate. Store the pathname as state
instead, so only a real path change re-renders. It stays raw because the
element upgrades before the entrypoint calls initRouter; the interface prefix
is stripped at render time.

* web/admin: match sidebar entries by route name

Sidebar entries carried hand-written regexes that duplicated the route table,
and they drifted when tabs moved into the path: a detail page's tabs
(/outpost/outposts/<uuid>/tasks) left the sidebar with no active entry. Entries
now list the route names that keep them active, resolved through the router's
own matcher.
2026-10-05 20:04:01 +01:00
Robert GingrasandDewi Roberts 1495c1d2a9 website/docs: document LDAP source Active Directory password complexity check (#26646)
* website/docs: document LDAP source Active Directory password complexity check

* website/docs: note AD password complexity check on Password policy page

* Updates

---------

Co-authored-by: Dewi Roberts <[email protected]>
2026-10-05 13:15:21 -04:00
Connor Peshek f3df006b4b source/saml: properly verify audience in response matches entity id (#25719)
* source/saml: properly verify audience in response matches entity id

* remove audience_override, add tests

* clean up tests
2026-10-05 11:47:46 -05:00
Dewi Roberts 06692b0038 sources/ldap: fix password name checks and name splitting (#26705)
* Fixes and tests

* Lint fix
2026-10-05 12:48:50 +00:00
Ryan PesekandJens L. eef0bfd3d0 root: don't fail websocket connections with non-UTF-8 headers (#26688)
ChannelsLoggingMiddleware decoded the User-Agent and X-Forwarded-For
header values as strict UTF-8. Header values are raw bytes and HTTP
doesn't require them to be UTF-8, so a client sending any other byte
(for example the Meta AI in-app browser on iOS, whose User-Agent has a
Latin-1 non-breaking space, 0xA0) made log() raise UnicodeDecodeError.
log() runs before the middleware's try, so the handshake failed with a
500 and the client couldn't open a websocket at all.

Decode with errors="backslashreplace": valid UTF-8 is logged as before,
and other bytes are logged escaped (\xa0) instead of failing.

Co-authored-by: Jens L. <[email protected]>
2026-10-05 13:24:59 +01:00
dependabot[bot] 500b2295ed web: bump the rollup group across 1 directory with 4 updates (#26701)
Bumps the rollup group with 4 updates in the /web directory: [@rollup/rollup-darwin-arm64](https://github.com/rollup/rollup), [@rollup/rollup-linux-arm64-gnu](https://github.com/rollup/rollup), [@rollup/rollup-linux-x64-gnu](https://github.com/rollup/rollup) and [rollup](https://github.com/rollup/rollup).


Updates `@rollup/rollup-darwin-arm64` from 4.63.3 to 4.63.6
- [Release notes](https://github.com/rollup/rollup/releases)
- [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rollup/rollup/compare/v4.63.3...v4.63.6)

Updates `@rollup/rollup-linux-arm64-gnu` from 4.63.3 to 4.63.6
- [Release notes](https://github.com/rollup/rollup/releases)
- [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rollup/rollup/compare/v4.63.3...v4.63.6)

Updates `@rollup/rollup-linux-x64-gnu` from 4.63.3 to 4.63.6
- [Release notes](https://github.com/rollup/rollup/releases)
- [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rollup/rollup/compare/v4.63.3...v4.63.6)

Updates `rollup` from 4.63.3 to 4.63.6
- [Release notes](https://github.com/rollup/rollup/releases)
- [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rollup/rollup/compare/v4.63.3...v4.63.6)

---
updated-dependencies:
- dependency-name: "@rollup/rollup-darwin-arm64"
  dependency-version: 4.63.6
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: rollup
- dependency-name: "@rollup/rollup-linux-arm64-gnu"
  dependency-version: 4.63.6
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: rollup
- dependency-name: "@rollup/rollup-linux-x64-gnu"
  dependency-version: 4.63.6
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: rollup
- dependency-name: rollup
  dependency-version: 4.63.6
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: rollup
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-05 13:16:05 +01:00
authentik-automation[bot] 51e9602b12 core, web: update translations (#26681)
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: authentik-automation[bot] <135050075+authentik-automation[bot]@users.noreply.github.com>
2026-10-05 13:35:50 +02:00
dependabot[bot] 221c8da570 core: bump goauthentik/fips-python from 79cf06b to 649c42a in /lifecycle/container (#26690)
core: bump goauthentik/fips-python in /lifecycle/container

Bumps goauthentik/fips-python from `79cf06b` to `649c42a`.

---
updated-dependencies:
- dependency-name: goauthentik/fips-python
  dependency-version: 3.14.8-slim-trixie-fips
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-05 13:35:45 +02:00
dependabot[bot] 925a1b27dc core: bump astral-sh/uv from 0.12.22 to 0.12.23 in /lifecycle/container (#26691)
Bumps [astral-sh/uv](https://github.com/astral-sh/uv) from 0.12.22 to 0.12.23.
- [Release notes](https://github.com/astral-sh/uv/releases)
- [Changelog](https://github.com/astral-sh/uv/blob/main/CHANGELOG.md)
- [Commits](https://github.com/astral-sh/uv/compare/0.12.22...0.12.23)

---
updated-dependencies:
- dependency-name: astral-sh/uv
  dependency-version: 0.12.23
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-05 13:35:39 +02:00
dependabot[bot] 1c754b6a8d core: bump aws-cdk-lib from 2.270.0 to 2.271.0 (#26692)
Bumps [aws-cdk-lib](https://github.com/aws/aws-cdk) from 2.270.0 to 2.271.0.
- [Release notes](https://github.com/aws/aws-cdk/releases)
- [Changelog](https://github.com/aws/aws-cdk/blob/main/CHANGELOG.v2.alpha.md)
- [Commits](https://github.com/aws/aws-cdk/compare/v2.270.0...v2.271.0)

---
updated-dependencies:
- dependency-name: aws-cdk-lib
  dependency-version: 2.271.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-05 13:35:34 +02:00
dependabot[bot] b75e402c12 core: bump library/golang from 433790e to 3b77fc6 in /lifecycle/container (#26694)
core: bump library/golang in /lifecycle/container

Bumps library/golang from `433790e` to `3b77fc6`.

---
updated-dependencies:
- dependency-name: library/golang
  dependency-version: 1.27-trixie
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-05 13:35:28 +02:00
dependabot[bot] 63610533d0 ci: bump goauthentik/action-setup-authentik from 3.2 to 3.3 (#26700)
Bumps [goauthentik/action-setup-authentik](https://github.com/goauthentik/action-setup-authentik) from 3.2 to 3.3.
- [Commits](https://github.com/goauthentik/action-setup-authentik/compare/e9b3782a8da81f3a33bbe21de97c7d3cf6c8820f...5b35e5951a1ec761847711a5d8170dbd67675526)

---
updated-dependencies:
- dependency-name: goauthentik/action-setup-authentik
  dependency-version: '3.3'
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-05 13:35:23 +02:00
dependabot[bot] 674edc9ec2 web: bump the swc group across 2 directories with 14 updates (#26702)
Bumps the swc group with 11 updates in the /web directory:

| Package | From | To |
| --- | --- | --- |
| [@swc/core](https://github.com/swc-project/swc/tree/HEAD/packages/core) | `1.16.2` | `1.16.13` |
| [@swc/core-darwin-arm64](https://github.com/swc-project/swc) | `1.16.2` | `1.16.13` |
| [@swc/core-darwin-x64](https://github.com/swc-project/swc) | `1.16.2` | `1.16.13` |
| [@swc/core-linux-arm-gnueabihf](https://github.com/swc-project/swc) | `1.16.2` | `1.16.13` |
| [@swc/core-linux-arm64-gnu](https://github.com/swc-project/swc) | `1.16.2` | `1.16.13` |
| [@swc/core-linux-arm64-musl](https://github.com/swc-project/swc) | `1.16.2` | `1.16.13` |
| [@swc/core-linux-x64-gnu](https://github.com/swc-project/swc) | `1.16.2` | `1.16.13` |
| [@swc/core-linux-x64-musl](https://github.com/swc-project/swc) | `1.16.2` | `1.16.13` |
| [@swc/core-win32-arm64-msvc](https://github.com/swc-project/swc) | `1.16.2` | `1.16.13` |
| [@swc/core-win32-ia32-msvc](https://github.com/swc-project/swc) | `1.16.2` | `1.16.13` |
| [@swc/core-win32-x64-msvc](https://github.com/swc-project/swc) | `1.16.2` | `1.16.13` |
| [@swc/core-darwin-arm64](https://github.com/swc-project/swc) | `1.16.2` | `1.16.13` |
| [@swc/core-linux-arm64-gnu](https://github.com/swc-project/swc) | `1.16.2` | `1.16.13` |
| [@swc/core-linux-x64-gnu](https://github.com/swc-project/swc) | `1.16.2` | `1.16.13` |

Bumps the swc group with 6 updates in the /website directory:

| Package | From | To |
| --- | --- | --- |
| [@swc/core-darwin-arm64](https://github.com/swc-project/swc) | `1.16.2` | `1.16.13` |
| [@swc/core-linux-arm64-gnu](https://github.com/swc-project/swc) | `1.16.2` | `1.16.13` |
| [@swc/core-linux-x64-gnu](https://github.com/swc-project/swc) | `1.16.2` | `1.16.13` |
| [@swc/core-darwin-arm64](https://github.com/swc-project/swc) | `1.16.2` | `1.16.13` |
| [@swc/core-linux-arm64-gnu](https://github.com/swc-project/swc) | `1.16.2` | `1.16.13` |
| [@swc/core-linux-x64-gnu](https://github.com/swc-project/swc) | `1.16.2` | `1.16.13` |
| [@swc/html-darwin-arm64](https://github.com/swc-project/swc) | `1.16.2` | `1.16.13` |
| [@swc/html-linux-arm64-gnu](https://github.com/swc-project/swc) | `1.16.2` | `1.16.13` |
| [@swc/html-linux-x64-gnu](https://github.com/swc-project/swc) | `1.16.2` | `1.16.13` |



Updates `@swc/core` from 1.16.2 to 1.16.13
- [Release notes](https://github.com/swc-project/swc/releases)
- [Changelog](https://github.com/swc-project/swc/blob/main/CHANGELOG.md)
- [Commits](https://github.com/swc-project/swc/commits/v1.16.13/packages/core)

Updates `@swc/core-darwin-arm64` from 1.16.2 to 1.16.13
- [Release notes](https://github.com/swc-project/swc/releases)
- [Changelog](https://github.com/swc-project/swc/blob/main/CHANGELOG.md)
- [Commits](https://github.com/swc-project/swc/compare/v1.16.2...v1.16.13)

Updates `@swc/core-darwin-x64` from 1.16.2 to 1.16.13
- [Release notes](https://github.com/swc-project/swc/releases)
- [Changelog](https://github.com/swc-project/swc/blob/main/CHANGELOG.md)
- [Commits](https://github.com/swc-project/swc/compare/v1.16.2...v1.16.13)

Updates `@swc/core-linux-arm-gnueabihf` from 1.16.2 to 1.16.13
- [Release notes](https://github.com/swc-project/swc/releases)
- [Changelog](https://github.com/swc-project/swc/blob/main/CHANGELOG.md)
- [Commits](https://github.com/swc-project/swc/compare/v1.16.2...v1.16.13)

Updates `@swc/core-linux-arm64-gnu` from 1.16.2 to 1.16.13
- [Release notes](https://github.com/swc-project/swc/releases)
- [Changelog](https://github.com/swc-project/swc/blob/main/CHANGELOG.md)
- [Commits](https://github.com/swc-project/swc/compare/v1.16.2...v1.16.13)

Updates `@swc/core-linux-arm64-musl` from 1.16.2 to 1.16.13
- [Release notes](https://github.com/swc-project/swc/releases)
- [Changelog](https://github.com/swc-project/swc/blob/main/CHANGELOG.md)
- [Commits](https://github.com/swc-project/swc/compare/v1.16.2...v1.16.13)

Updates `@swc/core-linux-x64-gnu` from 1.16.2 to 1.16.13
- [Release notes](https://github.com/swc-project/swc/releases)
- [Changelog](https://github.com/swc-project/swc/blob/main/CHANGELOG.md)
- [Commits](https://github.com/swc-project/swc/compare/v1.16.2...v1.16.13)

Updates `@swc/core-linux-x64-musl` from 1.16.2 to 1.16.13
- [Release notes](https://github.com/swc-project/swc/releases)
- [Changelog](https://github.com/swc-project/swc/blob/main/CHANGELOG.md)
- [Commits](https://github.com/swc-project/swc/compare/v1.16.2...v1.16.13)

Updates `@swc/core-win32-arm64-msvc` from 1.16.2 to 1.16.13
- [Release notes](https://github.com/swc-project/swc/releases)
- [Changelog](https://github.com/swc-project/swc/blob/main/CHANGELOG.md)
- [Commits](https://github.com/swc-project/swc/compare/v1.16.2...v1.16.13)

Updates `@swc/core-win32-ia32-msvc` from 1.16.2 to 1.16.13
- [Release notes](https://github.com/swc-project/swc/releases)
- [Changelog](https://github.com/swc-project/swc/blob/main/CHANGELOG.md)
- [Commits](https://github.com/swc-project/swc/compare/v1.16.2...v1.16.13)

Updates `@swc/core-win32-x64-msvc` from 1.16.2 to 1.16.13
- [Release notes](https://github.com/swc-project/swc/releases)
- [Changelog](https://github.com/swc-project/swc/blob/main/CHANGELOG.md)
- [Commits](https://github.com/swc-project/swc/compare/v1.16.2...v1.16.13)

Updates `@swc/core-darwin-arm64` from 1.16.2 to 1.16.13
- [Release notes](https://github.com/swc-project/swc/releases)
- [Changelog](https://github.com/swc-project/swc/blob/main/CHANGELOG.md)
- [Commits](https://github.com/swc-project/swc/compare/v1.16.2...v1.16.13)

Updates `@swc/core-linux-arm64-gnu` from 1.16.2 to 1.16.13
- [Release notes](https://github.com/swc-project/swc/releases)
- [Changelog](https://github.com/swc-project/swc/blob/main/CHANGELOG.md)
- [Commits](https://github.com/swc-project/swc/compare/v1.16.2...v1.16.13)

Updates `@swc/core-linux-x64-gnu` from 1.16.2 to 1.16.13
- [Release notes](https://github.com/swc-project/swc/releases)
- [Changelog](https://github.com/swc-project/swc/blob/main/CHANGELOG.md)
- [Commits](https://github.com/swc-project/swc/compare/v1.16.2...v1.16.13)

Updates `@swc/core-darwin-arm64` from 1.16.2 to 1.16.13
- [Release notes](https://github.com/swc-project/swc/releases)
- [Changelog](https://github.com/swc-project/swc/blob/main/CHANGELOG.md)
- [Commits](https://github.com/swc-project/swc/compare/v1.16.2...v1.16.13)

Updates `@swc/core-linux-arm64-gnu` from 1.16.2 to 1.16.13
- [Release notes](https://github.com/swc-project/swc/releases)
- [Changelog](https://github.com/swc-project/swc/blob/main/CHANGELOG.md)
- [Commits](https://github.com/swc-project/swc/compare/v1.16.2...v1.16.13)

Updates `@swc/core-linux-x64-gnu` from 1.16.2 to 1.16.13
- [Release notes](https://github.com/swc-project/swc/releases)
- [Changelog](https://github.com/swc-project/swc/blob/main/CHANGELOG.md)
- [Commits](https://github.com/swc-project/swc/compare/v1.16.2...v1.16.13)

Updates `@swc/core-darwin-arm64` from 1.16.2 to 1.16.13
- [Release notes](https://github.com/swc-project/swc/releases)
- [Changelog](https://github.com/swc-project/swc/blob/main/CHANGELOG.md)
- [Commits](https://github.com/swc-project/swc/compare/v1.16.2...v1.16.13)

Updates `@swc/core-linux-arm64-gnu` from 1.16.2 to 1.16.13
- [Release notes](https://github.com/swc-project/swc/releases)
- [Changelog](https://github.com/swc-project/swc/blob/main/CHANGELOG.md)
- [Commits](https://github.com/swc-project/swc/compare/v1.16.2...v1.16.13)

Updates `@swc/core-linux-x64-gnu` from 1.16.2 to 1.16.13
- [Release notes](https://github.com/swc-project/swc/releases)
- [Changelog](https://github.com/swc-project/swc/blob/main/CHANGELOG.md)
- [Commits](https://github.com/swc-project/swc/compare/v1.16.2...v1.16.13)

Updates `@swc/html-darwin-arm64` from 1.16.2 to 1.16.13
- [Release notes](https://github.com/swc-project/swc/releases)
- [Changelog](https://github.com/swc-project/swc/blob/main/CHANGELOG.md)
- [Commits](https://github.com/swc-project/swc/compare/v1.16.2...v1.16.13)

Updates `@swc/html-linux-arm64-gnu` from 1.16.2 to 1.16.13
- [Release notes](https://github.com/swc-project/swc/releases)
- [Changelog](https://github.com/swc-project/swc/blob/main/CHANGELOG.md)
- [Commits](https://github.com/swc-project/swc/compare/v1.16.2...v1.16.13)

Updates `@swc/html-linux-x64-gnu` from 1.16.2 to 1.16.13
- [Release notes](https://github.com/swc-project/swc/releases)
- [Changelog](https://github.com/swc-project/swc/blob/main/CHANGELOG.md)
- [Commits](https://github.com/swc-project/swc/compare/v1.16.2...v1.16.13)

---
updated-dependencies:
- dependency-name: "@swc/core"
  dependency-version: 1.16.13
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: swc
- dependency-name: "@swc/core-darwin-arm64"
  dependency-version: 1.16.13
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: swc
- dependency-name: "@swc/core-darwin-x64"
  dependency-version: 1.16.13
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: swc
- dependency-name: "@swc/core-linux-arm-gnueabihf"
  dependency-version: 1.16.13
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: swc
- dependency-name: "@swc/core-linux-arm64-gnu"
  dependency-version: 1.16.13
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: swc
- dependency-name: "@swc/core-linux-arm64-musl"
  dependency-version: 1.16.13
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: swc
- dependency-name: "@swc/core-linux-x64-gnu"
  dependency-version: 1.16.13
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: swc
- dependency-name: "@swc/core-linux-x64-musl"
  dependency-version: 1.16.13
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: swc
- dependency-name: "@swc/core-win32-arm64-msvc"
  dependency-version: 1.16.13
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: swc
- dependency-name: "@swc/core-win32-ia32-msvc"
  dependency-version: 1.16.13
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: swc
- dependency-name: "@swc/core-win32-x64-msvc"
  dependency-version: 1.16.13
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: swc
- dependency-name: "@swc/core-darwin-arm64"
  dependency-version: 1.16.13
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: swc
- dependency-name: "@swc/core-linux-arm64-gnu"
  dependency-version: 1.16.13
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: swc
- dependency-name: "@swc/core-linux-x64-gnu"
  dependency-version: 1.16.13
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: swc
- dependency-name: "@swc/core-darwin-arm64"
  dependency-version: 1.16.13
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: swc
- dependency-name: "@swc/core-linux-arm64-gnu"
  dependency-version: 1.16.13
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: swc
- dependency-name: "@swc/core-linux-x64-gnu"
  dependency-version: 1.16.13
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: swc
- dependency-name: "@swc/core-darwin-arm64"
  dependency-version: 1.16.13
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: swc
- dependency-name: "@swc/core-linux-arm64-gnu"
  dependency-version: 1.16.13
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: swc
- dependency-name: "@swc/core-linux-x64-gnu"
  dependency-version: 1.16.13
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: swc
- dependency-name: "@swc/html-darwin-arm64"
  dependency-version: 1.16.13
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: swc
- dependency-name: "@swc/html-linux-arm64-gnu"
  dependency-version: 1.16.13
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: swc
- dependency-name: "@swc/html-linux-x64-gnu"
  dependency-version: 1.16.13
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: swc
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-05 13:35:15 +02:00
dependabot[bot] a7df3395d4 core: bump serde_with from 3.23.0 to 3.24.0 (#26699)
Bumps [serde_with](https://github.com/jonasbb/serde_with) from 3.23.0 to 3.24.0.
- [Release notes](https://github.com/jonasbb/serde_with/releases)
- [Commits](https://github.com/jonasbb/serde_with/compare/v3.23.0...v3.24.0)

---
updated-dependencies:
- dependency-name: serde_with
  dependency-version: 3.24.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-05 07:06:12 +00:00
dependabot[bot] 61c6ca2971 core: bump cron-converter from 2.0.1 to 2.0.2 (#26698)
Bumps [cron-converter](https://github.com/Sonic0/cron-converter) from 2.0.1 to 2.0.2.
- [Release notes](https://github.com/Sonic0/cron-converter/releases)
- [Commits](https://github.com/Sonic0/cron-converter/compare/v2.0.1...2.0.2)

---
updated-dependencies:
- dependency-name: cron-converter
  dependency-version: 2.0.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-05 09:56:51 +03:00
dependabot[bot] 9565ef9a23 core: bump ruff from 0.16.9 to 0.16.10 (#26697)
Bumps [ruff](https://github.com/astral-sh/ruff) from 0.16.9 to 0.16.10.
- [Release notes](https://github.com/astral-sh/ruff/releases)
- [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md)
- [Commits](https://github.com/astral-sh/ruff/compare/0.16.9...0.16.10)

---
updated-dependencies:
- dependency-name: ruff
  dependency-version: 0.16.10
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-05 09:55:29 +03:00
dependabot[bot] 25e2ef7fe5 core: bump setproctitle from 1.3.7 to 1.3.8 (#26695)
Bumps [setproctitle](https://github.com/dvarrazzo/py-setproctitle) from 1.3.7 to 1.3.8.
- [Changelog](https://github.com/dvarrazzo/py-setproctitle/blob/master/HISTORY.rst)
- [Commits](https://github.com/dvarrazzo/py-setproctitle/compare/version-1.3.7...version-1.3.8)

---
updated-dependencies:
- dependency-name: setproctitle
  dependency-version: 1.3.8
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-05 09:54:54 +03:00
dependabot[bot] c7ae19cc15 core: bump github.com/grafana/pyroscope-go from 1.4.2 to 1.4.3 (#26689)
Bumps [github.com/grafana/pyroscope-go](https://github.com/grafana/pyroscope-go) from 1.4.2 to 1.4.3.
- [Release notes](https://github.com/grafana/pyroscope-go/releases)
- [Commits](https://github.com/grafana/pyroscope-go/compare/v1.4.2...v1.4.3)

---
updated-dependencies:
- dependency-name: github.com/grafana/pyroscope-go
  dependency-version: 1.4.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-05 09:54:09 +03:00
Mathieu Dupuy 9ffe0bc19f core: handle overflow in duration validation (#26680) 2026-10-04 23:06:20 +01:00
authentik-automation[bot] 2c6f657e6b core, web: update translations (#26674)
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: authentik-automation[bot] <135050075+authentik-automation[bot]@users.noreply.github.com>
2026-10-03 13:46:02 +01:00
Jens L. d4be42d03b web/components: improve notification display depending on event action (#26667)
web/components: improve notification display

Signed-off-by: Jens Langhammer <[email protected]>
2026-10-03 13:45:29 +01:00
Ken Sternberg 0de345ff98 website/docs: Edit blueprints page for stylistic changes and a better description of blueprint file discovery (#26400)
* ## What

         window.authentik.flow = {
             "layout": "{{ flow.layout }}",
    +        "background": "{{ flow.background }}",
    +        "title": "{{ flow.title }}",
         };

Amends the `flow.html` template and `GlobalAuthentik` parser to include new parameters, `background` and `title`, in the flow-specific part of the configuration written to the HTML `<head>` object, and to provide those parameters to client code.

## Why

The `layout` is start-up critical: it tells the Flow interface how the admin wants the Flow page to look, and allows the HTML and CSS to be pre-aligned to that condition. `layout` is determined on a per-Flow bases, not a per-Stage basis; Flows are derived from a tuple of `(Brand, Application?)`, where the opening policy *may* direct a user to a different flow if the user reached authentik via a redirect from a specific application, but will otherwise fall back to the default Flow for the Brand.

The `background` is a field that is required if the `Flow`’s layout is of type `frame_background`; in this case, the part of the viewport not dedicated to the FlowExecutor is reserved for an `<iframe>` that will be filled in with whatever the administrator specifies. Although this gives it the same priority as `layout` (whether it’s provided or undefined) for describing the [chrome](https://developer.mozilla.org/en-US/docs/Glossary/Chrome) around a challenge, it is currently not provided to the application in the start-up config; it is provided in the `challenge` and renders the IFrame as part of the initial challenge.

This patch fixes that; if `layout` is provided, `background` ought to be as well, even if it’s empty. The execution of a Challenge ought not have any influence over the look and feel of the Flow-defined appearance *around* that Challenge.

I have added `title` as well; with that, all of the current theme-and-appearance related configuration details are placed into `<head>` and can be removed from the FlowExecutor.

Server-side, `background` is currently specified: `background = FileField(blank=True, default="")` which is … interesting since we also appear to store URLs in it. I don’t see anything in the FlowSerializer that would change that from a client’s point of view.

This patch furthers the effort to separate flow execution from flow presentation.

- \[🐰\] The code has been formatted (`make web`)

* web/maintentance: update deprecated browser test imports

# What

Update imports of `@vitest/browser/context` to `vitest/browser`.

# Why

To eliminate these warnings:

    - DEPRECATED /Users/ken/projects/dev/web/test/lit/setup.js tries to load a deprecated
      "@vitest/browser/context" module. This import will stop working in the next major version. Please,
      use "vitest/browser" instead.
    - DEPRECATED /Users/ken/projects/dev/web/test/lit/rendering.js tries to load a deprecated
      "@vitest/browser/context" module. This import will stop working in the next major version. Please,
      use "vitest/browser" i

Sorry, been using the tests and Storybook a lot lately. Cleaning up as I go along.

* web/website/docs: Amend the Blueprints documentation to describe what a blueprint *is*

# What

This commit revises the “Blueprints: Blueprint Execution” section of the documentation to give a precise, concrete definition of what a Blueprint file actually is: a series of instructions to create, modify, or delete objects and their relationships within the authentik database. It gives examples of these relationships, and describes how instantiating these objects and their relationships within authentik is order-dependent.

I also re-arranged a few sentences in that section for readability, using [Vale](https://docs.vale.sh/) and the Microsoft style guide as an example. I ignored a *lot* of the advice, but a few things stood out as “Yeah, that could be clearer.”

# Why

Mostly because I never understood exactly what the heck a Blueprint was until I read that single, clear sentence elsewhere, that’s why. Surely I’m not the only person feeling perplexed about it.

* Stylistic choices following the Microsoft style guide with the no-ai-voice mod.  The section of blueprint instantiation was edited to my best understanding of @beryju's explanation of the current rules for when the directory is scanned or monitored.

* Last minute change caused link breakage.  Sorry about that.

* Making requested changes.

* Oxfmt has an opinion.
2026-10-02 12:28:39 -07:00
dependabot[bot] 7c2284c62a core: bump goauthentik/fips-python from 3.14.7-slim-trixie-fips to 3.14.8-slim-trixie-fips in /lifecycle/container (#26647)
core: bump goauthentik/fips-python in /lifecycle/container

Bumps goauthentik/fips-python from 3.14.7-slim-trixie-fips to 3.14.8-slim-trixie-fips.

---
updated-dependencies:
- dependency-name: goauthentik/fips-python
  dependency-version: 3.14.8-slim-trixie-fips
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-02 19:33:10 +02:00
dependabot[bot] 9dbb6251d9 core: bump opentelemetry-propagator-b3 from 1.44.0 to 1.45.0 in the opentelemetry group (#26649)
core: bump opentelemetry-propagator-b3

Bumps the opentelemetry group with 1 update: [opentelemetry-propagator-b3](https://github.com/open-telemetry/opentelemetry-python).


Updates `opentelemetry-propagator-b3` from 1.44.0 to 1.45.0
- [Release notes](https://github.com/open-telemetry/opentelemetry-python/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-python/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-python/compare/v1.44.0...v1.45.0)

---
updated-dependencies:
- dependency-name: opentelemetry-propagator-b3
  dependency-version: 1.45.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: opentelemetry
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-02 19:33:05 +02:00
dependabot[bot] 226844a85e core: bump uvicorn[standard] from 0.53.0 to 0.54.0 (#26650)
Bumps [uvicorn[standard]](https://github.com/Kludex/uvicorn) from 0.53.0 to 0.54.0.
- [Release notes](https://github.com/Kludex/uvicorn/releases)
- [Changelog](https://github.com/Kludex/uvicorn/blob/main/docs/release-notes.md)
- [Commits](https://github.com/Kludex/uvicorn/compare/0.53.0...0.54.0)

---
updated-dependencies:
- dependency-name: uvicorn[standard]
  dependency-version: 0.54.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-02 19:33:00 +02:00
dependabot[bot] 9505ddf014 web: bump the website-build group across 1 directory with 3 updates (#26654)
Bumps the website-build group with 3 updates in the /website directory: [@rspack/binding-darwin-arm64](https://github.com/web-infra-dev/rspack/tree/HEAD/packages/rspack), [@rspack/binding-linux-arm64-gnu](https://github.com/web-infra-dev/rspack/tree/HEAD/packages/rspack) and [@rspack/binding-linux-x64-gnu](https://github.com/web-infra-dev/rspack/tree/HEAD/packages/rspack).


Updates `@rspack/binding-darwin-arm64` from 2.2.7 to 2.2.8
- [Release notes](https://github.com/web-infra-dev/rspack/releases)
- [Commits](https://github.com/web-infra-dev/rspack/commits/v2.2.8/packages/rspack)

Updates `@rspack/binding-linux-arm64-gnu` from 2.2.7 to 2.2.8
- [Release notes](https://github.com/web-infra-dev/rspack/releases)
- [Commits](https://github.com/web-infra-dev/rspack/commits/v2.2.8/packages/rspack)

Updates `@rspack/binding-linux-x64-gnu` from 2.2.7 to 2.2.8
- [Release notes](https://github.com/web-infra-dev/rspack/releases)
- [Commits](https://github.com/web-infra-dev/rspack/commits/v2.2.8/packages/rspack)

---
updated-dependencies:
- dependency-name: "@rspack/binding-darwin-arm64"
  dependency-version: 2.2.8
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: website-build
- dependency-name: "@rspack/binding-linux-arm64-gnu"
  dependency-version: 2.2.8
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: website-build
- dependency-name: "@rspack/binding-linux-x64-gnu"
  dependency-version: 2.2.8
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: website-build
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-02 19:32:52 +02:00
dependabot[bot] 482d7e9ab0 web: bump cspell from 10.3.0 to 10.3.6 (#26655)
Bumps [cspell](https://github.com/streetsidesoftware/cspell/tree/HEAD/packages/cspell) from 10.3.0 to 10.3.6.
- [Release notes](https://github.com/streetsidesoftware/cspell/releases)
- [Changelog](https://github.com/streetsidesoftware/cspell/blob/main/packages/cspell/CHANGELOG.md)
- [Commits](https://github.com/streetsidesoftware/cspell/commits/v10.3.6/packages/cspell)

---
updated-dependencies:
- dependency-name: cspell
  dependency-version: 10.3.6
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-02 19:32:42 +02:00
dependabot[bot] 15c53003e0 web: bump yaml from 2.9.0 to 2.9.1 (#26656)
Bumps [yaml](https://github.com/eemeli/yaml) from 2.9.0 to 2.9.1.
- [Release notes](https://github.com/eemeli/yaml/releases)
- [Commits](https://github.com/eemeli/yaml/compare/v2.9.0...v2.9.1)

---
updated-dependencies:
- dependency-name: yaml
  dependency-version: 2.9.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-02 19:32:36 +02:00
dependabot[bot] 6068c65ced web: bump aws-cdk from 2.1141.0 to 2.1143.0 (#26658)
Bumps [aws-cdk](https://github.com/aws/aws-cdk-cli/tree/HEAD/packages/aws-cdk) from 2.1141.0 to 2.1143.0.
- [Release notes](https://github.com/aws/aws-cdk-cli/releases)
- [Commits](https://github.com/aws/aws-cdk-cli/commits/[email protected]/packages/aws-cdk)

---
updated-dependencies:
- dependency-name: aws-cdk
  dependency-version: 2.1143.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-02 19:32:30 +02:00
dependabot[bot] be96c70513 web: bump deepmerge-ts from 8.0.0 to 8.0.2 (#26659)
Bumps [deepmerge-ts](https://github.com/RebeccaStevens/deepmerge-ts) from 8.0.0 to 8.0.2.
- [Release notes](https://github.com/RebeccaStevens/deepmerge-ts/releases)
- [Changelog](https://github.com/RebeccaStevens/deepmerge-ts/blob/main/CHANGELOG.md)
- [Commits](https://github.com/RebeccaStevens/deepmerge-ts/compare/v8.0.0...v8.0.2)

---
updated-dependencies:
- dependency-name: deepmerge-ts
  dependency-version: 8.0.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-02 19:32:24 +02:00
Ryan Pesek 9d8323b2d0 core: split users list superuser annotation in API into two EXISTS subqueries (#26275)
* core: split users list superuser annotation into two EXISTS subqueries

UserViewSet annotates every user with is_superuser using one EXISTS with
an OR across two join paths: direct membership of a superuser group, and
membership of a descendant group through authentik_core_groupancestry.
PostgreSQL can't convert a subquery whose OR mixes two correlated
conditions into a hashed subplan, so it runs once per user row, including
rows skipped by OFFSET and inside DISTINCT/COUNT wrappers. Its join plan
also depends on the ancestry materialized view's statistics: once a first
group hierarchy exists and the view's stats are stale, the planner can
pick a merge join that scans every group for every user.

Use two separate EXISTS subqueries combined with OR instead. Each one is
correlated only by user id equality, so PostgreSQL can run it once per
query as a hashed subplan. The result is unchanged: a user is a superuser
if they are a member of a superuser group or of any of its descendants,
the same as User.is_superuser.

Add tests for direct, child, grandchild, non-superuser parent and no
group membership in the list and detail endpoints, and check that the
list doesn't add group queries per user.

* core: drop ExpressionWrapper from superuser annotation

Exists | Exists already resolves to a Q with a boolean output field, so
the wrapper isn't needed. The generated SQL is unchanged.
2026-10-02 18:07:56 +01:00
Ken SternbergandJens Langhammer 5fd2c03ee4 core: Make Application List cache timeout a configurable option (#26596)
* core/applications: Make Application List cache timeout a configurable option

## What

Adds a new entry to `default.yml`: `cache.timeout_application_policies`.

Modifies `core/api/applications.py` to apply use the timeout. Supplies a default if the value is missing from `default.yml`.

Updates the *Installation and Configuration* documentation to describe the new field.

## Why

Answering issue \#26279: @BeryJu suggested: “A better option would including making the default cache duration shorter.” So why not make it configurable?

* dont need a var

Signed-off-by: Jens Langhammer <[email protected]>

---------

Signed-off-by: Jens Langhammer <[email protected]>
Co-authored-by: Jens Langhammer <[email protected]>
2026-10-02 17:48:51 +01:00
Jens L. b60caa1f44 web/admin: show expiry in bound policies list (#26665)
Signed-off-by: Jens Langhammer <[email protected]>
2026-10-02 17:46:14 +01:00
Jens L. 4c49d96815 policies: remove expensive query (#26666) 2026-10-02 17:46:03 +01:00
dependabot[bot]andTeffen Ellis 097a5feccf web, website: bump the oxc group (#26627)
* web: bump the oxc group across 2 directories with 2 updates

Bumps the oxc group with 2 updates in the / directory: [oxfmt](https://github.com/oxc-project/oxc/tree/HEAD/npm/oxfmt) and [oxlint](https://github.com/oxc-project/oxc/tree/HEAD/npm/oxlint).
Bumps the oxc group with 2 updates in the /web directory: [oxfmt](https://github.com/oxc-project/oxc/tree/HEAD/npm/oxfmt) and [oxlint](https://github.com/oxc-project/oxc/tree/HEAD/npm/oxlint).


Updates `oxfmt` from 0.68.0 to 0.70.0
- [Release notes](https://github.com/oxc-project/oxc/releases)
- [Changelog](https://github.com/oxc-project/oxc/blob/main/npm/oxfmt/CHANGELOG.md)
- [Commits](https://github.com/oxc-project/oxc/commits/oxfmt_v0.70.0/npm/oxfmt)

Updates `oxlint` from 1.82.0 to 1.85.0
- [Release notes](https://github.com/oxc-project/oxc/releases)
- [Changelog](https://github.com/oxc-project/oxc/blob/main/npm/oxlint/CHANGELOG.md)
- [Commits](https://github.com/oxc-project/oxc/commits/oxlint_v1.85.0/npm/oxlint)

Updates `oxfmt` from 0.68.0 to 0.70.0
- [Release notes](https://github.com/oxc-project/oxc/releases)
- [Changelog](https://github.com/oxc-project/oxc/blob/main/npm/oxfmt/CHANGELOG.md)
- [Commits](https://github.com/oxc-project/oxc/commits/oxfmt_v0.70.0/npm/oxfmt)

Updates `oxlint` from 1.82.0 to 1.85.0
- [Release notes](https://github.com/oxc-project/oxc/releases)
- [Changelog](https://github.com/oxc-project/oxc/blob/main/npm/oxlint/CHANGELOG.md)
- [Commits](https://github.com/oxc-project/oxc/commits/oxlint_v1.85.0/npm/oxlint)

Updates `oxfmt` from 0.68.0 to 0.70.0
- [Release notes](https://github.com/oxc-project/oxc/releases)
- [Changelog](https://github.com/oxc-project/oxc/blob/main/npm/oxfmt/CHANGELOG.md)
- [Commits](https://github.com/oxc-project/oxc/commits/oxfmt_v0.70.0/npm/oxfmt)

Updates `oxlint` from 1.83.0 to 1.85.0
- [Release notes](https://github.com/oxc-project/oxc/releases)
- [Changelog](https://github.com/oxc-project/oxc/blob/main/npm/oxlint/CHANGELOG.md)
- [Commits](https://github.com/oxc-project/oxc/commits/oxlint_v1.85.0/npm/oxlint)

Updates `oxfmt` from 0.68.0 to 0.70.0
- [Release notes](https://github.com/oxc-project/oxc/releases)
- [Changelog](https://github.com/oxc-project/oxc/blob/main/npm/oxfmt/CHANGELOG.md)
- [Commits](https://github.com/oxc-project/oxc/commits/oxfmt_v0.70.0/npm/oxfmt)

Updates `oxlint` from 1.83.0 to 1.85.0
- [Release notes](https://github.com/oxc-project/oxc/releases)
- [Changelog](https://github.com/oxc-project/oxc/blob/main/npm/oxlint/CHANGELOG.md)
- [Commits](https://github.com/oxc-project/oxc/commits/oxlint_v1.85.0/npm/oxlint)

---
updated-dependencies:
- dependency-name: oxfmt
  dependency-version: 0.70.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: oxc
- dependency-name: oxlint
  dependency-version: 1.85.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: oxc
- dependency-name: oxfmt
  dependency-version: 0.70.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: oxc
- dependency-name: oxlint
  dependency-version: 1.85.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: oxc
- dependency-name: oxfmt
  dependency-version: 0.70.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: oxc
- dependency-name: oxlint
  dependency-version: 1.85.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: oxc
- dependency-name: oxfmt
  dependency-version: 0.70.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: oxc
- dependency-name: oxlint
  dependency-version: 1.85.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: oxc
...

Signed-off-by: dependabot[bot] <[email protected]>

* Add missing package.

* Fix Oxlint, Oxfmt Dependabot updates.

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Teffen Ellis <[email protected]>
2026-10-02 16:41:03 +01:00
67c6a8da8c core, web: update Russian translations (#26624)
* core, web: update Russian translations

Consolidates the community Russian translations from #25518 and #26619,
applied onto the current locale files by message key so later Transifex
syncs are preserved.

- django.po: fills 412 missing backend strings (#25518) and revises 13
  (#26619). Multi-line email/Kerberos strings from #25518 had literal
  newlines that broke msgfmt; these are repaired.
- ru-RU.xlf: adds 36 web UI strings and fixes 3 (#26619).
- Review fixes: participle agreement in the SAML issuer help text, and
  kept the existing, more accurate wording for the MFA email and
  identification-data errors. Translated "relying parties", clarified
  "OAuth (Silent)", and capitalized Outpost consistently.

Closes #25518
Closes #26619

Co-authored-by: FerrumNST <[email protected]>
Co-authored-by: Mikhail Frolov <[email protected]>

* web: draft remaining Russian web UI translations

Fills the 1,774 untranslated units in ru-RU.xlf, bringing the Russian
web UI from 48% to complete (excluding one empty source string).

These are machine-drafted and should get a native-speaker pass. Terms
follow the existing human translations where a precedent exists
(Outpost = внешний компонент, Flow = поток, Blueprint = чертеж,
Slug = идентификатор, Notification Transport = поставщик уведомлений).
New terms: Entitlement = право доступа, Reviewer = проверяющий,
OAuth grant type = тип гранта, Offboarding = офбординг.

Strings that interpolate a runtime noun use colon constructions
("Создать: …") to avoid Russian case and gender agreement errors.
All placeholders were checked against the source and the locale
build compiles.

* Second pass with edits.

---------

Co-authored-by: FerrumNST <[email protected]>
Co-authored-by: Mikhail Frolov <[email protected]>
2026-10-02 16:18:43 +01:00
authentik-automation[bot] d5b33739c3 core, web: update translations (#26622)
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: authentik-automation[bot] <135050075+authentik-automation[bot]@users.noreply.github.com>
2026-10-02 15:10:25 +01:00
Jens L. 8ddd257e3e enterprise/requests: show message after successful request (#26587)
* enterprise/requests: show message after successful request

Signed-off-by: Jens Langhammer <[email protected]>

* follow

Signed-off-by: Jens Langhammer <[email protected]>

---------

Signed-off-by: Jens Langhammer <[email protected]>
2026-10-02 13:03:00 +01:00
Jens L. 38b7f90da2 ci: test on ubuntu 26 (#26266)
Signed-off-by: Jens Langhammer <[email protected]>

# Conflicts:
#	.github/workflows/ci-web.yml
2026-10-02 12:19:34 +01:00
dependabot[bot] 7e94841445 core: bump goauthentik/fips-python from 9bee9dc to 52f9db6 in /lifecycle/container (#26631)
core: bump goauthentik/fips-python in /lifecycle/container

Bumps goauthentik/fips-python from `9bee9dc` to `52f9db6`.

---
updated-dependencies:
- dependency-name: goauthentik/fips-python
  dependency-version: 3.14.7-slim-trixie-fips
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-02 11:57:56 +01:00
dependabot[bot] bf36c52b6c core: bump astral-sh/uv from 0.12.21 to 0.12.22 in /lifecycle/container (#26632)
Bumps [astral-sh/uv](https://github.com/astral-sh/uv) from 0.12.21 to 0.12.22.
- [Release notes](https://github.com/astral-sh/uv/releases)
- [Changelog](https://github.com/astral-sh/uv/blob/main/CHANGELOG.md)
- [Commits](https://github.com/astral-sh/uv/compare/0.12.21...0.12.22)

---
updated-dependencies:
- dependency-name: astral-sh/uv
  dependency-version: 0.12.22
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-02 11:57:38 +01:00
dependabot[bot] 4d24684f19 ci: bump taiki-e/install-action from 2.87.21 to 2.87.22 in /.github/actions/setup (#26636)
ci: bump taiki-e/install-action in /.github/actions/setup

Bumps [taiki-e/install-action](https://github.com/taiki-e/install-action) from 2.87.21 to 2.87.22.
- [Release notes](https://github.com/taiki-e/install-action/releases)
- [Changelog](https://github.com/taiki-e/install-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/taiki-e/install-action/compare/4cef1412cce204788f482e778a0b9187f9626a29...83ac0ad63c0167e6f06796fab0fce28db1bf3db0)

---
updated-dependencies:
- dependency-name: taiki-e/install-action
  dependency-version: 2.87.22
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-02 11:57:22 +01:00
Jens L. 9ce114c6e3 web/flows: check if localStorage is available for continuous login (#26267) 2026-10-02 11:35:33 +01:00
Jens L. 3c4a41ca41 flows: use sfe for old chrome versions (#26594)
Signed-off-by: Jens Langhammer <[email protected]>
2026-10-02 11:33:32 +01:00
dependabot[bot] 4438009d3a core: bump types-jwcrypto from 1.6.0.20260903 to 1.6.1.20260928 in the types group (#26626)
core: bump types-jwcrypto

Bumps the types group with 1 update: [types-jwcrypto](https://github.com/python/typeshed).


Updates `types-jwcrypto` from 1.6.0.20260903 to 1.6.1.20260928
- [Commits](https://github.com/python/typeshed/commits)

---
updated-dependencies:
- dependency-name: types-jwcrypto
  dependency-version: 1.6.1.20260928
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: types
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-02 06:51:28 +00:00
dependabot[bot] 6f8d515e2a core: bump tokio-rustls from 0.26.5 to 0.26.6 (#26635)
Bumps [tokio-rustls](https://github.com/rustls/tokio-rustls) from 0.26.5 to 0.26.6.
- [Release notes](https://github.com/rustls/tokio-rustls/releases)
- [Commits](https://github.com/rustls/tokio-rustls/compare/v/0.26.5...v/0.26.6)

---
updated-dependencies:
- dependency-name: tokio-rustls
  dependency-version: 0.26.6
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-02 09:40:25 +03:00
dependabot[bot] 152d1ffe43 core: bump msgpack from 1.2.2 to 1.2.3 (#26633)
Bumps [msgpack](https://github.com/msgpack/msgpack-python) from 1.2.2 to 1.2.3.
- [Release notes](https://github.com/msgpack/msgpack-python/releases)
- [Changelog](https://github.com/msgpack/msgpack-python/blob/main/CHANGELOG.md)
- [Commits](https://github.com/msgpack/msgpack-python/compare/v1.2.2...v1.2.3)

---
updated-dependencies:
- dependency-name: msgpack
  dependency-version: 1.2.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-02 09:40:02 +03:00
dependabot[bot] 4abec6df76 core: bump goauthentik/platform-ssh from 26.04-ak-0.63.1 to 26.04-ak-0.63.3 in /tests/e2e (#26629)
core: bump goauthentik/platform-ssh in /tests/e2e

Bumps goauthentik/platform-ssh from 26.04-ak-0.63.1 to 26.04-ak-0.63.3.

---
updated-dependencies:
- dependency-name: goauthentik/platform-ssh
  dependency-version: 26.04-ak-0.63.3
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-02 09:39:34 +03:00
dependabot[bot] 4fd6de11f1 core: bump twilio from 9.11.1 to 9.11.2 (#26630)
Bumps [twilio](https://github.com/twilio/twilio-python) from 9.11.1 to 9.11.2.
- [Release notes](https://github.com/twilio/twilio-python/releases)
- [Changelog](https://github.com/twilio/twilio-python/blob/main/CHANGES.md)
- [Commits](https://github.com/twilio/twilio-python/compare/9.11.1...9.11.2)

---
updated-dependencies:
- dependency-name: twilio
  dependency-version: 9.11.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-02 09:39:05 +03:00
dependabot[bot] bb0508dd59 core: bump goauthentik/selenium from 152.0-ak-0.63.1 to 152.0-ak-0.63.3 in /tests/e2e (#26628)
core: bump goauthentik/selenium in /tests/e2e

Bumps [goauthentik/selenium](https://github.com/SeleniumHQ/docker-selenium) from 152.0-ak-0.63.1 to 152.0-ak-0.63.3.
- [Release notes](https://github.com/SeleniumHQ/docker-selenium/releases)
- [Commits](https://github.com/SeleniumHQ/docker-selenium/commits)

---
updated-dependencies:
- dependency-name: goauthentik/selenium
  dependency-version: 152.0-ak-0.63.3
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-02 09:38:39 +03:00
2817eb09a2 web/i18n, core: prevent flash of untranslated content (#25157)
* web: preload the locale catalog to kill the flash of English

The locale catalog chunk previously downloaded only after the entry bundle
booted, so a non-English page briefly rendered in English. The server now
tells the browser which catalog to fetch up front.

- the web build emits dist/manifest.json mapping each locale tag to its
  content-hashed catalog chunk (esbuild metafile), for both build and watch
- a {% locale_modulepreload %} template tag reads that manifest (cached
  in-process, tolerant of a missing/malformed file) and emits a
  <link rel=modulepreload> for the request's resolved locale; the source
  locale and en-XA pseudo-locale emit nothing
- wire the tag into skeleton.html next to the entry scripts

Full production-build verification of the manifest is pending a working web
dependency install (this tree is missing the MDX build deps); the plugin's
metafile->manifest mapping is covered by the template-tag tests and an
isolated esbuild probe. Making first render await the catalog import is a
small follow-up that pairs with the C4 LocaleContextController rework.

Co-authored-by: Playpen Agent <[email protected]>

* no more mark safe

Signed-off-by: Jens Langhammer <[email protected]>

* actually no we need it

Signed-off-by: Jens Langhammer <[email protected]>

* ts ts ts claude

Signed-off-by: Jens Langhammer <[email protected]>

---------

Signed-off-by: Jens Langhammer <[email protected]>
Co-authored-by: Playpen Agent <[email protected]>
Co-authored-by: Jens Langhammer <[email protected]>
2026-10-02 01:58:13 +01:00
Teffen EllisandPlaypen Agent 5130e752d5 web/i18n, core: Persist locale in a cookie and reload to switch (#25156)
* web/test: skip the vendor CAPTCHA tests on CI

The @vendor-network tests load CAPTCHA widgets from the vendors' servers,
which CI can't rely on reaching. They fail on nearly every run and use up
the five-failure budget before other tests get to run. Skip them when CI is
set; they still run locally.

* web/test: fix the ak-mdx docs link and application wizard flakes

The ak-mdx link test expected relative docs links to resolve to
next.goauthentik.io. That's only the pre-release docs host: a build with
GIT_BUILD_HASH set, like the CI image, resolves them to the versioned host
(version-<major>-<minor>.goauthentik.io). So the test failed whenever it ran
in CI, and only looked intermittent because CI stops after five failures and
the vendor CAPTCHA tests often used those up first. Accept either host.

The application wizard's provider step now settles its fields before moving
on, so the test's next "Next" click could land on that step's button again
and leave the wizard short of the review step. Wait for the bindings step to
show before continuing.

* web: persist locale in a cookie and reload to switch

Locale becomes fixed for the lifetime of a page: instead of switching live
in JavaScript, every locale-change path now persists the preference to the
Django language cookie (which LocaleMiddleware already reads) and reloads,
so the server re-renders every string — including server-rendered flow
challenges — in the new locale. This structurally rules out the mixed
client/server language state behind #18179 / #22954.

- add persistLocale/applyLocaleChange helpers backed by the authentik_language
  cookie; switch the flow locale selector, the user-settings prompt stage, and
  the session controller's post-render locale application to persist + reload
- drop the sessionStorage['authentik:locale'] path and remove it from
  autoDetectLanguage; the server-resolved hint (window.authentik.locale) is now
  authoritative, with navigator.languages only relevant on a first anonymous visit
- honor ?locale= server-side in LocaleOverrideMiddleware (validated via
  check_for_language) so the shell and the web UI, which read the same parameter,
  cannot disagree. It sits directly after ImpersonateMiddleware, which wraps the
  rest of the chain in the user's saved locale, so an explicit override wins
- unit-test the cookie helper; test the server-side ?locale= override

Live-switching machinery (LocaleContextController observer, msg() thunks) is
removed separately in a follow-up.

Co-authored-by: Playpen Agent <[email protected]>

* Clean up cookie parsing, tests.

---------

Co-authored-by: Playpen Agent <[email protected]>
2026-10-02 01:27:13 +01:00
Ken Sternberg 6d3d6e62d5 root: fix Makefile documentation (#26597)
* meta: fix Makefile documentation

## Why

I actually use the Makefile, and `make help`, a lot. I started to realize that it was getting a bit scrambled, with some important targets not document and others no longer reflecting what they actually do.

## What

Fixed spelling of “authentik” (not “Authentik”) in several places.

lint-fix, lint, gen-build, docs, integrations, all: These commands all either misrepresented what they do, or were incomplete in their description.

migrate, dev-reset, install, node-install, web, web-test, test, run-watch: Mostly correct, but sometimes wrong in the details, missing one or more sub-targets, and otherwise just needing to be fixed.

core-install, lint-fix-rust, web-lint-fix, web-lint, web-check-compile, docs-lint-fix, docs-build, integrations-build, docs-api-build, aws-cfn, and test-docker: These didn’t have help strings, and they’re central enough that they should. docs-build, docs-api-build, and integration-build especially, since they all have docs-*-watch equivalents that *were* documented.

makemigrations: Only accessible from `uv ak run` prior to this change.

web-check, web-test, web-test-e2e, web-test-visual: Only accessible via `pnpm --dir web run` prior to this change.

docs-test, docs-check: Only accessible via `pnpm --dir website run` prior to this change.

## Name alignment

A lot of these names are… nonsense. We use `lint` where we mean `fix`, `format` where we mean `lint`. @BeryJu (65.5%), @risson (14.2%), @GirlBossRush (6.3%) and @PeshekDotDev (3.3%) are the most frequent contributors to changes in the Makefile; I would welcome contributions on how to enforce the following:

- lint: Report on issues but do not change them (spelling, formatting)
- spellcheck: Use for spell-checking only
- format: Apply formatting rules to the source code (oxfmt, rustfmt, black)
- fix: Apply non-formatting automatic fixes to machine-fixable issues
- prep: Apply format & fix, then lint and return non-zero if unfixable issues remain
- test: Build what is necessary, then run the test
- build: Use when the result is a local artifact, a concrete, runnable or useable result. Examples: `build-go-client`, `build-ts-client`.
- watch: Use when instantiating a notify-driven build-on-demand process
- verify: Use when validating the development environment, not the source (use lint) or the artifacts (use test)
- install: Use when pulling crates, packages, libraries, and dependencies

* Typo in `lint-fix` documentation
2026-10-01 10:50:07 -07:00
Connor Peshek 1969b7eda7 website/docs: update single logout instructions (#26571)
* website/docs: update single logout instructions

* cleanup

* cleanup again

* clean up
2026-10-01 12:11:21 -05:00
Jacob Sachs 1ec72f8d05 policies: support dry-run bindings with event reporting (#26382)
* python changes for dry runs

* typescript changes

* policies: strengthen dry-run engine tests

* policies: report dry-run results as events

* events: cover dry-run binding search

* policies: complete generated dry-run types

* policies: report static dry runs and fix event searches

* policies: preserve evaluated user in execution events

* events: keep context search suggestions focused on common keys
2026-10-01 17:30:29 +01:00
Dewi Roberts 7d6b57efc1 web/admin: update oauth federated provider helptext wording (#26611)
Update helptext wording
2026-10-01 14:59:02 +00:00
Jens L. 6ee1e31e08 lib: remove spotlight (#26613)
Signed-off-by: Jens Langhammer <[email protected]>
2026-10-01 15:29:57 +01:00
Jens L.andDewi Roberts 88f2347192 web/admin: show agent connector local auth & compliance status (#26610)
* web/admin: show agent connector local auth & compliance status

* update docs

Signed-off-by: Jens Langhammer <[email protected]>

* Update website/docs/endpoint-devices/authentik-agent/device-authentication/local-device-login/linux.mdx

Signed-off-by: Dewi Roberts <[email protected]>

* Apply suggestion from @dewi-tik

Signed-off-by: Dewi Roberts <[email protected]>

---------

Signed-off-by: Jens Langhammer <[email protected]>
Signed-off-by: Dewi Roberts <[email protected]>
Co-authored-by: Dewi Roberts <[email protected]>
2026-10-01 13:14:20 +01:00
authentik-automation[bot] b9d812a2e4 stages/authenticator_webauthn: Update FIDO MDS3 & Passkey aaguid blobs (#26599)
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: authentik-automation[bot] <135050075+authentik-automation[bot]@users.noreply.github.com>
2026-10-01 12:14:14 +01:00
authentik-automation[bot] 0f853ed989 core, web: update translations (#26598)
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: authentik-automation[bot] <135050075+authentik-automation[bot]@users.noreply.github.com>
2026-10-01 12:14:11 +01:00
dependabot[bot] d3119f9b66 core: bump goauthentik/fips-python from 95e9d8f to 9bee9dc in /lifecycle/container (#26607)
core: bump goauthentik/fips-python in /lifecycle/container

Bumps goauthentik/fips-python from `95e9d8f` to `9bee9dc`.

---
updated-dependencies:
- dependency-name: goauthentik/fips-python
  dependency-version: 3.14.7-slim-trixie-fips
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-01 12:12:03 +01:00
dependabot[bot] 7bec38ccfc core: bump goauthentik/platform-ssh from 26.04-ak-0.63.0 to 26.04-ak-0.63.1 in /tests/e2e (#26604)
core: bump goauthentik/platform-ssh in /tests/e2e

Bumps goauthentik/platform-ssh from 26.04-ak-0.63.0 to 26.04-ak-0.63.1.

---
updated-dependencies:
- dependency-name: goauthentik/platform-ssh
  dependency-version: 26.04-ak-0.63.1
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-01 12:10:06 +01:00
dependabot[bot] 184bd7e9a1 core: bump axllent/mailpit from v1.31.2 to v1.31.3 in /tests/e2e (#26601)
Bumps axllent/mailpit from v1.31.2 to v1.31.3.

---
updated-dependencies:
- dependency-name: axllent/mailpit
  dependency-version: v1.31.3
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-01 07:42:34 +00:00
dependabot[bot] 1b25d635bb core: bump coverage[toml] from 7.16.1 to 7.16.2 (#26605)
Bumps [coverage[toml]](https://github.com/coveragepy/coveragepy) from 7.16.1 to 7.16.2.
- [Release notes](https://github.com/coveragepy/coveragepy/releases)
- [Changelog](https://github.com/coveragepy/coveragepy/blob/main/CHANGES.rst)
- [Commits](https://github.com/coveragepy/coveragepy/compare/7.16.1...7.16.2)

---
updated-dependencies:
- dependency-name: coverage[toml]
  dependency-version: 7.16.2
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-01 10:34:48 +03:00
dependabot[bot] 4c2b07358c core: bump cryptography from 50.0.1 to 50.0.2 (#26606)
Bumps [cryptography](https://github.com/pyca/cryptography) from 50.0.1 to 50.0.2.
- [Changelog](https://github.com/pyca/cryptography/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pyca/cryptography/compare/50.0.1...50.0.2)

---
updated-dependencies:
- dependency-name: cryptography
  dependency-version: 50.0.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-01 10:34:21 +03:00
dependabot[bot] bb7a399f10 core: bump goauthentik/selenium from 152.0-ak-0.63.0 to 152.0-ak-0.63.1 in /tests/e2e (#26602)
core: bump goauthentik/selenium in /tests/e2e

Bumps [goauthentik/selenium](https://github.com/SeleniumHQ/docker-selenium) from 152.0-ak-0.63.0 to 152.0-ak-0.63.1.
- [Release notes](https://github.com/SeleniumHQ/docker-selenium/releases)
- [Commits](https://github.com/SeleniumHQ/docker-selenium/commits)

---
updated-dependencies:
- dependency-name: goauthentik/selenium
  dependency-version: 152.0-ak-0.63.1
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-01 10:33:10 +03:00
dependabot[bot] b38b6924ee core: bump types-docker from 7.2.0.20260827 to 7.2.0.20260923 in the types group (#26603)
core: bump types-docker

Bumps the types group with 1 update: [types-docker](https://github.com/python/typeshed).


Updates `types-docker` from 7.2.0.20260827 to 7.2.0.20260923
- [Commits](https://github.com/python/typeshed/commits)

---
updated-dependencies:
- dependency-name: types-docker
  dependency-version: 7.2.0.20260923
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: types
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-01 10:32:37 +03:00
Ken Sternberg 95918060b2 core/applications: make client_ip a part of the UserApplicationCacheKey (#26553)
* core/policies: Second cache-clear not needed

## What

Delete the second `cache.delete_many` in `PolicyViewSet.cache_clear`, because it expresses a subset of what is deleted in the first, so it effectively does nothing.

## Details

Both `core/api/applications.py` and `policies/api/policies.py` both import

    from authentik.policies.types import CACHE_PREFIX

`policies/api/policies.py` performs the following cache-clearing:

             keys = cache.keys(f"{CACHE_PREFIX}*")
             cache.delete_many(keys)

             keys = cache.keys(user_app_cache_key("*"))
             cache.delete_many(keys)

However, the `user_app_cache_clear`, defined in `core/api/applications.py` includes the `CACHE_PREFIX` as its prefix; they’re not different:

        """Cache key where application list for user is saved"""
        key = f"{CACHE_PREFIX}app_access/{user_pk}"

The second cache-clearing `.keys()` retrieval will always be empty. The effect does nothing.

* core/applications: Make client_ip apart of the UserApplicationCacheKey

Closes \#26279

## What

Adds the `client_ip` as a key to the generated `user_app_cache_key` when storing or retrieving a cached user_applications list.

## Why

This adds another layer to fixing the application list caching problem, in this case the second reported issue, “When a user connects or disconnects a VPN connection, their client IP changes. The application tile on the dashboard does not update to reflect the new IP.” If they get a new IP, it’s treated as a new cache and that cache will be populated automatically.
2026-09-30 15:21:47 -07:00
Dominic Roy 7bf2353d82 root: fix broken brand logo (#26588)
* readme: fix broken brand logo

Signed-off-by: Dominic Roy <[email protected]>

* i need a red text one which the website doesn't seem to have 

Signed-off-by: Dominic Roy <[email protected]>

---------

Signed-off-by: Dominic Roy <[email protected]>
2026-09-30 18:31:32 +00:00
Ken SternbergandJens L. 5ece198ee4 core: second cache-clear not needed in policies (#26551)
* core/policies: Second cache-clear not needed

## What

Delete the second `cache.delete_many` in `PolicyViewSet.cache_clear`, because it expresses a subset of what is deleted in the first, so it effectively does nothing.

## Details

Both `core/api/applications.py` and `policies/api/policies.py` both import

    from authentik.policies.types import CACHE_PREFIX

`policies/api/policies.py` performs the following cache-clearing:

             keys = cache.keys(f"{CACHE_PREFIX}*")
             cache.delete_many(keys)

             keys = cache.keys(user_app_cache_key("*"))
             cache.delete_many(keys)

However, the `user_app_cache_clear`, defined in `core/api/applications.py` includes the `CACHE_PREFIX` as its prefix; they’re not different:

        """Cache key where application list for user is saved"""
        key = f"{CACHE_PREFIX}app_access/{user_pk}"

The second cache-clearing `.keys()` retrieval will always be empty. The effect does nothing.

* Apply suggestion from @BeryJu

Signed-off-by: Jens L. <[email protected]>

---------

Signed-off-by: Jens L. <[email protected]>
Co-authored-by: Jens L. <[email protected]>
2026-09-30 17:44:01 +00:00
Jens L.andMarcelo Elizeche Landó df5785a0b1 stages/authenticator_validate: fix event noise from updated models (#26584)
Signed-off-by: Jens Langhammer <[email protected]>
Co-authored-by: Marcelo Elizeche Landó <[email protected]>
2026-09-30 18:25:18 +01:00
Jens L. 0872fa91aa enterprise/requests: require either brand or rule request flow (#26585)
Signed-off-by: Jens Langhammer <[email protected]>
2026-09-30 16:04:44 +01:00
Jens L. 659bed3a7f web/user: fix requests banner wording (#26586)
* fix banner wording

Signed-off-by: Jens Langhammer <[email protected]>

* fix license check

Signed-off-by: Jens Langhammer <[email protected]>

---------

Signed-off-by: Jens Langhammer <[email protected]>
2026-09-30 16:01:33 +01:00
Simonyi Gergő 67d2c01b5c blueprints: fix model list cache pollution (#26581)
Discovered (and reproducible) by running

```
uv run manage.py test --keepdb --randomly-seed=2368691777 authentik/events/tests/ authentik/blueprints/tests/ authentik/core/tests/
```
2026-09-30 15:17:17 +01:00
Ken Sternberg 4696ef2957 web/user: make MFA device keys unique for bulk-delete (#26559)
* web/user: make MFA device keys unique for bulk-delete

Closes \#25287

## What

Replaces blunt and embedded “PK or JSON blob” algorithm in `ak-table` with an overrideable `makeItemKey` that allows client code to dictate how to generate the key from a row object.

Uses `makeItemKey` to create unique item keys for MFA devices, since their primary key is just a simple auto-increment on a per-device-type basis, which easily leads to collisions.

This technique can be expanded to the wider collection of Table-using pages as needed.

* 'Table.makeItemKey()' deserved documentation.

* makeItemKey is a property; let clients know they can override *or* provide.
2026-09-30 12:19:20 +01:00
authentik-automation[bot] 7422b320ab core, web: update translations (#26562)
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: authentik-automation[bot] <135050075+authentik-automation[bot]@users.noreply.github.com>
2026-09-30 12:15:44 +01:00
dependabot[bot] 1d87ae7140 core: bump goauthentik/fips-python from e162e03 to 95e9d8f in /lifecycle/container (#26577)
core: bump goauthentik/fips-python in /lifecycle/container

Bumps goauthentik/fips-python from `e162e03` to `95e9d8f`.

---
updated-dependencies:
- dependency-name: goauthentik/fips-python
  dependency-version: 3.14.7-slim-trixie-fips
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-30 11:57:15 +01:00
dependabot[bot] bb42ad8c72 core: bump astral-sh/uv from 0.12.20 to 0.12.21 in /lifecycle/container (#26578)
Bumps [astral-sh/uv](https://github.com/astral-sh/uv) from 0.12.20 to 0.12.21.
- [Release notes](https://github.com/astral-sh/uv/releases)
- [Changelog](https://github.com/astral-sh/uv/blob/main/CHANGELOG.md)
- [Commits](https://github.com/astral-sh/uv/compare/0.12.20...0.12.21)

---
updated-dependencies:
- dependency-name: astral-sh/uv
  dependency-version: 0.12.21
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-30 11:57:00 +01:00
dependabot[bot] e24e23563d core: bump oauthlib from 3.3.1 to 4.0.0 (#26583)
Bumps [oauthlib](https://github.com/oauthlib/oauthlib) from 3.3.1 to 4.0.0.
- [Release notes](https://github.com/oauthlib/oauthlib/releases)
- [Changelog](https://github.com/oauthlib/oauthlib/blob/master/CHANGELOG.rst)
- [Commits](https://github.com/oauthlib/oauthlib/compare/v3.3.1...v4.0.0)

---
updated-dependencies:
- dependency-name: oauthlib
  dependency-version: 4.0.0
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-30 11:13:11 +01:00
dependabot[bot] 6f13191e6e core: bump sentry-sdk from 2.69.2 to 2.70.0 (#26579)
Bumps [sentry-sdk](https://github.com/getsentry/sentry-python) from 2.69.2 to 2.70.0.
- [Release notes](https://github.com/getsentry/sentry-python/releases)
- [Changelog](https://github.com/getsentry/sentry-python/blob/master/CHANGELOG.md)
- [Commits](https://github.com/getsentry/sentry-python/compare/2.69.2...2.70.0)

---
updated-dependencies:
- dependency-name: sentry-sdk
  dependency-version: 2.70.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-30 07:49:13 +00:00
dependabot[bot] 841348f3f3 core: bump golang.org/x/crypto from 0.55.0 to 0.57.0 (#26574)
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.55.0 to 0.57.0.
- [Commits](https://github.com/golang/crypto/compare/v0.55.0...v0.57.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-version: 0.57.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-30 10:37:42 +03:00
Dewi RobertsandDominic R 615f9fa905 website/docs: add traefik reverse proxy example (#26538)
* Add traefik example

* website/docs: clean up traefik reverse proxy example

---------

Co-authored-by: Dominic R <[email protected]>
2026-09-30 07:10:41 +00:00
Dominic Roy 23f40d9720 website/docs: clarify file storage prerequisites (#26557) 2026-09-30 02:44:06 -04:00
Dominic Roy 97d105a00f web/admin: restore file upload capability check (#26556)
Restore the CanSaveMedia guard removed when the upload modal switched to ModalInvokerButton.

Closes: #26555
2026-09-30 00:48:17 +00:00
Jens L. 4e8e48233e policies: fix migration managers & fix rac migration (#26554)
* policies: fix migration managers & fix rac migration

Signed-off-by: Jens Langhammer <[email protected]>

* format

Signed-off-by: Jens Langhammer <[email protected]>

---------

Signed-off-by: Jens Langhammer <[email protected]>
2026-09-29 23:07:07 +01:00
Jens L.andDewi Roberts 20e2a3b60a providers/rac: integrate with ak-agent (#26361)
* providers/rac: merge into endpoints

Signed-off-by: Jens Langhammer <[email protected]>

* refactor some more

Signed-off-by: Jens Langhammer <[email protected]>

* cleanup

Signed-off-by: Jens Langhammer <[email protected]>

* create devices through endpoints

Signed-off-by: Jens Langhammer <[email protected]>

* cleanup api?

Signed-off-by: Jens Langhammer <[email protected]>

* cleanup un-needed changes

Signed-off-by: Jens Langhammer <[email protected]>

* cleanup more

Signed-off-by: Jens Langhammer <[email protected]>

* format

Signed-off-by: Jens Langhammer <[email protected]>

* fixup

Signed-off-by: Jens Langhammer <[email protected]>

* update e2e test

Signed-off-by: Jens Langhammer <[email protected]>

* Update release notes wording

Signed-off-by: Dewi Roberts <[email protected]>

* Remove linebreak

Signed-off-by: Dewi Roberts <[email protected]>

* ssh init

Signed-off-by: Jens Langhammer <[email protected]>

# Conflicts:
#	authentik/providers/rac/models.py

# Conflicts:
#	website/docs/releases/2026/v2026.11.mdx

* use platform ssh image for tests

Signed-off-by: Jens Langhammer <[email protected]>

* fix wrapping

Signed-off-by: Jens Langhammer <[email protected]>

* prevent duplicate events

Signed-off-by: Jens Langhammer <[email protected]>

* fallback to all protocols when override is set for host only

Signed-off-by: Jens Langhammer <[email protected]>

* keep key

Signed-off-by: Jens Langhammer <[email protected]>

* show local IP

Signed-off-by: Jens Langhammer <[email protected]>

* fix some RAC styling

Signed-off-by: Jens Langhammer <[email protected]>

* type

Signed-off-by: Jens Langhammer <[email protected]>

* switch to image with nss

Signed-off-by: Jens Langhammer <[email protected]>

* compatible user

Signed-off-by: Jens Langhammer <[email protected]>

---------

Signed-off-by: Jens Langhammer <[email protected]>
Signed-off-by: Dewi Roberts <[email protected]>
Co-authored-by: Dewi Roberts <[email protected]>
2026-09-29 17:53:51 +01:00
Teffen Ellis 3b5f3d6daa website, core: rename brand icon files from colour to color (#26414)
Spell the brand icon filenames the American way, consistent with the
rest of the codebase's spelling conventions, and redirect the old
URLs so existing links and embeds keep working.
2026-09-29 16:20:42 +00:00
Jens L.andDewi Roberts d20dfd7ced providers/rac: merge with endpoints (#26328)
* providers/rac: merge into endpoints

Signed-off-by: Jens Langhammer <[email protected]>

# Conflicts:
#	authentik/providers/rac/models.py
#	authentik/providers/rac/tests/test_models.py

* refactor some more

Signed-off-by: Jens Langhammer <[email protected]>

^ Conflicts:
^	authentik/providers/rac/models.py
^	authentik/providers/rac/tests/test_models.py

* cleanup

Signed-off-by: Jens Langhammer <[email protected]>

* create devices through endpoints

Signed-off-by: Jens Langhammer <[email protected]>

* cleanup api?

Signed-off-by: Jens Langhammer <[email protected]>

* cleanup un-needed changes

Signed-off-by: Jens Langhammer <[email protected]>

* cleanup more

Signed-off-by: Jens Langhammer <[email protected]>

* format

Signed-off-by: Jens Langhammer <[email protected]>

* fixup

Signed-off-by: Jens Langhammer <[email protected]>

* update e2e test

Signed-off-by: Jens Langhammer <[email protected]>

* Update release notes wording

Signed-off-by: Dewi Roberts <[email protected]>

* Remove linebreak

Signed-off-by: Dewi Roberts <[email protected]>

---------

Signed-off-by: Jens Langhammer <[email protected]>
Signed-off-by: Dewi Roberts <[email protected]>
Co-authored-by: Dewi Roberts <[email protected]>
2026-09-29 16:24:47 +01:00
Andrew WongandDominic Roy 359e1cc696 packages/django-channels-postgres: refresh pool credentials on connection attempts (#26505)
Co-authored-by: Dominic Roy <[email protected]>
2026-09-29 16:16:20 +02:00
Dewi RobertsandJens L. 0bd97fe38d web/admin: update licensing page (#26177)
* Testing

* Undo bad translation doc info

* remove forecast code

* Update docs

* Lint fix

---------

Co-authored-by: Jens L. <[email protected]>
2026-09-29 14:55:24 +01:00
Teffen EllisandPlaypen Agent 97ea544bc9 packages/geo: update pbf to 5.1.2 (#26434)
pbf 5 exports PbfReader, which is the type @mapbox/vector-tile expects,
so extract-labels.ts no longer fails to type-check.

Co-authored-by: Playpen Agent <[email protected]>
2026-09-29 13:46:06 +00:00
Simonyi Gergő 35aa0b1fdd tenants: remove (#26171)
* remove tenants

* remove unused ignore

* add missing migration

* merge migrations

* remove probably-unneeded redirect

* fix docs link

* fix e2e tests

* fixup! fix e2e tests

* change `base_url` to `TextField`

* abstract `schema_name`

* keep database fields required for rolling upgrade

These should be deleted in a subsequent cleanup patch.

* introduce system settings cache

This is a bit more complicated than other middleware context var caches,
because invalidation is sometimes needed.

* cleanup

* fixup! change `base_url` to `TextField`

* fix tests

Whoops
2026-09-29 15:40:29 +02:00
Ken Sternberg 527a42ede5 web/admin: only changing proxy provider away from ForwardDomain should clear cookieDomain. (#26516)
* ## What

         window.authentik.flow = {
             "layout": "{{ flow.layout }}",
    +        "background": "{{ flow.background }}",
    +        "title": "{{ flow.title }}",
         };

Amends the `flow.html` template and `GlobalAuthentik` parser to include new parameters, `background` and `title`, in the flow-specific part of the configuration written to the HTML `<head>` object, and to provide those parameters to client code.

## Why

The `layout` is start-up critical: it tells the Flow interface how the admin wants the Flow page to look, and allows the HTML and CSS to be pre-aligned to that condition. `layout` is determined on a per-Flow bases, not a per-Stage basis; Flows are derived from a tuple of `(Brand, Application?)`, where the opening policy *may* direct a user to a different flow if the user reached authentik via a redirect from a specific application, but will otherwise fall back to the default Flow for the Brand.

The `background` is a field that is required if the `Flow`’s layout is of type `frame_background`; in this case, the part of the viewport not dedicated to the FlowExecutor is reserved for an `<iframe>` that will be filled in with whatever the administrator specifies. Although this gives it the same priority as `layout` (whether it’s provided or undefined) for describing the [chrome](https://developer.mozilla.org/en-US/docs/Glossary/Chrome) around a challenge, it is currently not provided to the application in the start-up config; it is provided in the `challenge` and renders the IFrame as part of the initial challenge.

This patch fixes that; if `layout` is provided, `background` ought to be as well, even if it’s empty. The execution of a Challenge ought not have any influence over the look and feel of the Flow-defined appearance *around* that Challenge.

I have added `title` as well; with that, all of the current theme-and-appearance related configuration details are placed into `<head>` and can be removed from the FlowExecutor.

Server-side, `background` is currently specified: `background = FileField(blank=True, default="")` which is … interesting since we also appear to store URLs in it. I don’t see anything in the FlowSerializer that would change that from a client’s point of view.

This patch furthers the effort to separate flow execution from flow presentation.

- \[🐰\] The code has been formatted (`make web`)

* web/maintentance: update deprecated browser test imports

# What

Update imports of `@vitest/browser/context` to `vitest/browser`.

# Why

To eliminate these warnings:

    - DEPRECATED /Users/ken/projects/dev/web/test/lit/setup.js tries to load a deprecated
      "@vitest/browser/context" module. This import will stop working in the next major version. Please,
      use "vitest/browser" instead.
    - DEPRECATED /Users/ken/projects/dev/web/test/lit/rendering.js tries to load a deprecated
      "@vitest/browser/context" module. This import will stop working in the next major version. Please,
      use "vitest/browser" i

Sorry, been using the tests and Storybook a lot lately. Cleaning up as I go along.

* web/bug: \#22744: Do not silently clear API-set cookie_domain on save

- Closes \#22744
- Supersedes \#4063

# What

This is the smallest and most straightforward fix; it continues to silently clear the `cookie_domain` field, but *if and only if* the proxy was in `ForwardDomain` mode and switched away from it. This prevents a stale cookie domain from being present if the user changes the proxy mode from the UI.

The original lines addressed issue \#4063, “switching from forward auth (domain level) to forward auth (single application) should reset domain value of the cookie authentik_proxy.” The Rust outpost uses a different algorithm (issue \#4666, “different cookie name based on hashed client_id”) than the one in 2022, creating uniquely signed cookies but allowing them to use `Domain:`, so the browser can have two cookies scoped to a single domain while keeping log-ins to separate subdomains valid. \#4063 will not rise from the dead.

It’s worth noting that the Application Wizard has three similar lines ([ak-application-wizard-submit-steps.ts:200](https://github.com/goauthentik/authentik/blob/main/web/src/admin/applications/wizard/steps/ak-application-wizard-submit-step.ts#L199)):

          if (proxyProviderRequest.mode !== ProxyMode.ForwardDomain) {
              proxyProviderRequest.cookieDomain = "";
          }

I don’t think this needs to be changed; the Wizard is for new Applications only, so the cookieDomain should always be cleared (if it wasn’t already) if the user is creating anything other than a `ForwardDomain`.

# Unanswered questions:

1.  Should we show `CookieDomain` as a visible, optional field for ForwardSingle mode?
2.  Does this rule need to be in the server as a check in `ProxyProviderSerializer.validate()`?
3.  This is a vanishingly small edge case, but I can see it happening: We never check if `external_host` and `cookie_domain` overlap. If `CookieDomain` isn’t visible for ForwardSingle mode, since we’re leaving the `cookie_domain` set, then if the user changes `external_host` via the frontend, since they can’t also edit `cookie_domain`, they’ll never match and users will be unable to access the ProxyProvider.

* Formatters with opinions. Faugh.
2026-09-29 14:35:37 +01:00
Marc 'risson' Schmitt 5588dbcd1c website/docs: autoscaling: minor nits (#26540)
Signed-off-by: Marc 'risson' Schmitt <[email protected]>
2026-09-29 13:32:11 +01:00
Dewi RobertsandDominic R fff8c8f6fa website/docs: add autoscaling docs (#26514)
* Add docs

* new docs

* wip

* rm inst

---------

Co-authored-by: Dominic R <[email protected]>
2026-09-29 13:33:11 +02:00
Jacob Sachs a618bb5e70 outposts/proxy: use HTTP/1.1 for OAuth backchannel requests (#26422)
Keep browser-facing Host overrides effective by giving OAuth backchannel operations a dedicated HTTP/1.1-only client. Preserve standalone TLS settings and embedded Unix-socket transport.

Add wire-level tests against an HTTP/2-capable TLS peer for token issuers, grant and introspection requests, authority variations, JWKS, cleartext HTTP, and Unix sockets. Removing the restriction reproduces InvalidIssuer.

Addresses the demonstrated HTTP/2 defect in #26280.

AI assistance: implementation and tests developed with OpenCode (OpenAI).
2026-09-29 12:20:46 +01:00
authentik-cherry-pick[bot]andJens L. 517b6f6d87 root: log full stacktrace for ASGI exception (cherry-pick #26415 to main) (#26536)
root: log full stacktrace for ASGI exception (#26415)

Signed-off-by: Jens Langhammer <[email protected]>
Co-authored-by: Jens L. <[email protected]>
2026-09-29 12:15:55 +01:00
authentik-automation[bot] b60119aab7 core, web: update translations (#26515)
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: authentik-automation[bot] <135050075+authentik-automation[bot]@users.noreply.github.com>
2026-09-29 12:33:07 +02:00
dependabot[bot] 2ceb6aab80 web: bump @sentry/browser from 10.75.0 to 10.75.3 in /web in the sentry group across 1 directory (#26518)
web: bump @sentry/browser in /web in the sentry group across 1 directory

Bumps the sentry group with 1 update in the /web directory: [@sentry/browser](https://github.com/getsentry/sentry-javascript).


Updates `@sentry/browser` from 10.75.0 to 10.75.3
- [Release notes](https://github.com/getsentry/sentry-javascript/releases)
- [Changelog](https://github.com/getsentry/sentry-javascript/blob/10.75.3/CHANGELOG.md)
- [Commits](https://github.com/getsentry/sentry-javascript/compare/10.75.0...10.75.3)

---
updated-dependencies:
- dependency-name: "@sentry/browser"
  dependency-version: 10.75.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: sentry
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-29 12:32:59 +02:00
dependabot[bot] 8518befb4a core: bump astral-sh/uv from 0.12.19 to 0.12.20 in /lifecycle/container (#26519)
Bumps [astral-sh/uv](https://github.com/astral-sh/uv) from 0.12.19 to 0.12.20.
- [Release notes](https://github.com/astral-sh/uv/releases)
- [Changelog](https://github.com/astral-sh/uv/blob/main/CHANGELOG.md)
- [Commits](https://github.com/astral-sh/uv/compare/0.12.19...0.12.20)

---
updated-dependencies:
- dependency-name: astral-sh/uv
  dependency-version: 0.12.20
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-29 12:32:53 +02:00
dependabot[bot] 7bad11f5bd core: bump goauthentik/fips-python from cb4c34d to e162e03 in /lifecycle/container (#26522)
core: bump goauthentik/fips-python in /lifecycle/container

Bumps goauthentik/fips-python from `cb4c34d` to `e162e03`.

---
updated-dependencies:
- dependency-name: goauthentik/fips-python
  dependency-version: 3.14.7-slim-trixie-fips
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-29 12:32:47 +02:00
dependabot[bot] f66cf1ad98 core: bump pyjwt from 2.15.0 to 2.15.1 (#26524)
Bumps [pyjwt](https://github.com/jpadilla/pyjwt) from 2.15.0 to 2.15.1.
- [Release notes](https://github.com/jpadilla/pyjwt/releases)
- [Changelog](https://github.com/jpadilla/pyjwt/blob/master/CHANGELOG.rst)
- [Commits](https://github.com/jpadilla/pyjwt/compare/2.15.0...2.15.1)

---
updated-dependencies:
- dependency-name: pyjwt
  dependency-version: 2.15.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-29 12:32:42 +02:00
dependabot[bot] d467f9d822 core: bump webauthn from 3.0.0 to 3.0.1 (#26525)
Bumps [webauthn](https://github.com/duo-labs/py_webauthn) from 3.0.0 to 3.0.1.
- [Release notes](https://github.com/duo-labs/py_webauthn/releases)
- [Changelog](https://github.com/duo-labs/py_webauthn/blob/master/CHANGELOG.md)
- [Commits](https://github.com/duo-labs/py_webauthn/compare/v3.0.0...v3.0.1)

---
updated-dependencies:
- dependency-name: webauthn
  dependency-version: 3.0.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-29 12:32:35 +02:00
dependabot[bot] 6f93463b80 ci: bump taiki-e/install-action from 2.87.20 to 2.87.21 in /.github/actions/setup (#26526)
ci: bump taiki-e/install-action in /.github/actions/setup

Bumps [taiki-e/install-action](https://github.com/taiki-e/install-action) from 2.87.20 to 2.87.21.
- [Release notes](https://github.com/taiki-e/install-action/releases)
- [Changelog](https://github.com/taiki-e/install-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/taiki-e/install-action/compare/9983c65e42da123ff25d1f78505eb6de315aa172...4cef1412cce204788f482e778a0b9187f9626a29)

---
updated-dependencies:
- dependency-name: taiki-e/install-action
  dependency-version: 2.87.21
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-29 12:32:28 +02:00
Connor Peshek ddf1c0c557 outposts/proxy: fetch embedded JWKS over the unix socket, not the browser host (#26448) 2026-09-28 23:30:49 -05:00
Jens L. 53d94213e8 ci: don't require playwright tests yet (#26513) 2026-09-28 19:13:42 +01:00
Dominic Roy fa0f25403b website/docs: document OAuth mapping requests (#26395)
Closes: #10724
2026-09-28 18:42:29 +01:00
Dominic Roy 37f9ffde42 website/docs: update GitHub organization mapping (#26394)
Refs: #10724
2026-09-28 10:45:52 -04:00
Dominic Roy 159b28a324 website/docs: clarify Google Workspace and Entra ID deletion behavior (#26285) 2026-09-28 10:19:18 -04:00
Dominic Roy a42d1b9608 events: fix group membership changes with OSS audit middleware (#26477)
events: handle missing audit fields in membership changes
2026-09-28 08:57:58 -04:00
Jens L. f8ec9bbf5a ci: run playwright against container image (#26417)
* ci: run playwright against container image

Signed-off-by: Jens Langhammer <[email protected]>

* fix

Signed-off-by: Jens Langhammer <[email protected]>

* wait for authentik

Signed-off-by: Jens Langhammer <[email protected]>

* get license too

Signed-off-by: Jens Langhammer <[email protected]>

---------

Signed-off-by: Jens Langhammer <[email protected]>
2026-09-28 12:21:48 +01:00
authentik-automation[bot] 45ed02a19a core, web: update translations (#26478)
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: authentik-automation[bot] <135050075+authentik-automation[bot]@users.noreply.github.com>
2026-09-28 12:15:22 +01:00
Dominic Roy 6441f87535 lib: avoid duplicate bases for unavailable conditional mixins (#26476)
lib: support multiple unavailable conditional mixins
2026-09-28 11:59:29 +01:00
dependabot[bot] 125be519f3 website: bump the build group in /website with 3 updates (#26479)
Bumps the build group in /website with 3 updates: [@rspack/binding-darwin-arm64](https://github.com/web-infra-dev/rspack/tree/HEAD/packages/rspack), [@rspack/binding-linux-arm64-gnu](https://github.com/web-infra-dev/rspack/tree/HEAD/packages/rspack) and [@rspack/binding-linux-x64-gnu](https://github.com/web-infra-dev/rspack/tree/HEAD/packages/rspack).


Updates `@rspack/binding-darwin-arm64` from 2.2.6 to 2.2.7
- [Release notes](https://github.com/web-infra-dev/rspack/releases)
- [Commits](https://github.com/web-infra-dev/rspack/commits/v2.2.7/packages/rspack)

Updates `@rspack/binding-linux-arm64-gnu` from 2.2.6 to 2.2.7
- [Release notes](https://github.com/web-infra-dev/rspack/releases)
- [Commits](https://github.com/web-infra-dev/rspack/commits/v2.2.7/packages/rspack)

Updates `@rspack/binding-linux-x64-gnu` from 2.2.6 to 2.2.7
- [Release notes](https://github.com/web-infra-dev/rspack/releases)
- [Commits](https://github.com/web-infra-dev/rspack/commits/v2.2.7/packages/rspack)

---
updated-dependencies:
- dependency-name: "@rspack/binding-darwin-arm64"
  dependency-version: 2.2.7
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: build
- dependency-name: "@rspack/binding-linux-arm64-gnu"
  dependency-version: 2.2.7
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: build
- dependency-name: "@rspack/binding-linux-x64-gnu"
  dependency-version: 2.2.7
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: build
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-28 11:40:36 +01:00
dependabot[bot] a86dc535c9 web: bump @sentry/browser from 10.73.0 to 10.75.0 in /web in the sentry group across 1 directory (#26482)
web: bump @sentry/browser in /web in the sentry group across 1 directory

Bumps the sentry group with 1 update in the /web directory: [@sentry/browser](https://github.com/getsentry/sentry-javascript).


Updates `@sentry/browser` from 10.73.0 to 10.75.0
- [Release notes](https://github.com/getsentry/sentry-javascript/releases)
- [Changelog](https://github.com/getsentry/sentry-javascript/blob/develop/CHANGELOG.md)
- [Commits](https://github.com/getsentry/sentry-javascript/compare/10.73.0...10.75.0)

---
updated-dependencies:
- dependency-name: "@sentry/browser"
  dependency-version: 10.75.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: sentry
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-28 11:39:20 +01:00
dependabot[bot] 99c338db16 core: bump goauthentik/fips-python from 070e7dc to cb4c34d in /lifecycle/container (#26483)
core: bump goauthentik/fips-python in /lifecycle/container

Bumps goauthentik/fips-python from `070e7dc` to `cb4c34d`.

---
updated-dependencies:
- dependency-name: goauthentik/fips-python
  dependency-version: 3.14.7-slim-trixie-fips
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-28 11:37:15 +01:00
dependabot[bot] f42255b29b core: bump library/node from 26.8.2-trixie to 26.10.0-trixie in /website (#26487)
Bumps library/node from 26.8.2-trixie to 26.10.0-trixie.

---
updated-dependencies:
- dependency-name: library/node
  dependency-version: 26.10.0-trixie
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-28 11:36:51 +01:00
dependabot[bot] 9d29adf7c7 ci: bump taiki-e/install-action from 2.87.18 to 2.87.20 in /.github/actions/setup (#26491)
ci: bump taiki-e/install-action in /.github/actions/setup

Bumps [taiki-e/install-action](https://github.com/taiki-e/install-action) from 2.87.18 to 2.87.20.
- [Release notes](https://github.com/taiki-e/install-action/releases)
- [Changelog](https://github.com/taiki-e/install-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/taiki-e/install-action/compare/dfae9bf3d6f6c6f20ef4ebb3486c01a51341ff12...9983c65e42da123ff25d1f78505eb6de315aa172)

---
updated-dependencies:
- dependency-name: taiki-e/install-action
  dependency-version: 2.87.20
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-28 11:35:43 +01:00
dependabot[bot] f81fd4435d web: bump typedoc-plugin-markdown from 4.12.0 to 4.13.1 (#26492)
Bumps [typedoc-plugin-markdown](https://github.com/typedoc2md/typedoc-plugin-markdown/tree/HEAD/packages/typedoc-plugin-markdown) from 4.12.0 to 4.13.1.
- [Release notes](https://github.com/typedoc2md/typedoc-plugin-markdown/releases)
- [Changelog](https://github.com/typedoc2md/typedoc-plugin-markdown/blob/main/packages/typedoc-plugin-markdown/CHANGELOG.md)
- [Commits](https://github.com/typedoc2md/typedoc-plugin-markdown/commits/[email protected]/packages/typedoc-plugin-markdown)

---
updated-dependencies:
- dependency-name: typedoc-plugin-markdown
  dependency-version: 4.13.1
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-28 11:33:56 +01:00
dependabot[bot] 74820746b7 ci: bump the codeql group across 1 directory with 3 updates (#26490)
Bumps the codeql group with 3 updates in the / directory: [github/codeql-action/init](https://github.com/github/codeql-action), [github/codeql-action/autobuild](https://github.com/github/codeql-action) and [github/codeql-action/analyze](https://github.com/github/codeql-action).


Updates `github/codeql-action/init` from 4.38.1 to 4.38.2
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/1c5b675653bb5c22dbe9b12b556ec555138e09fd...2892aa5e19bbd11bc0cff5427e3b750a04d9e3c2)

Updates `github/codeql-action/autobuild` from 4.38.1 to 4.38.2
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/1c5b675653bb5c22dbe9b12b556ec555138e09fd...2892aa5e19bbd11bc0cff5427e3b750a04d9e3c2)

Updates `github/codeql-action/analyze` from 4.38.1 to 4.38.2
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/1c5b675653bb5c22dbe9b12b556ec555138e09fd...2892aa5e19bbd11bc0cff5427e3b750a04d9e3c2)

---
updated-dependencies:
- dependency-name: github/codeql-action/init
  dependency-version: 4.38.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: codeql
- dependency-name: github/codeql-action/autobuild
  dependency-version: 4.38.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: codeql
- dependency-name: github/codeql-action/analyze
  dependency-version: 4.38.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: codeql
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-28 11:33:31 +01:00
Dominic Roy 7b4ade8ab3 website/docs: update Discord access policies (#26393)
Refs: #10724
2026-09-28 06:03:49 -04:00
Dominic Roy 77085fc07f website/docs: update Discord source mapping (#26392)
Refs: #10724
2026-09-28 05:27:53 -04:00
dependabot[bot] 6abcd528d1 core: bump goauthentik/selenium from 152.0-ak-0.62.0 to 152.0-ak-0.63.0 in /tests/e2e (#26481)
core: bump goauthentik/selenium in /tests/e2e

Bumps [goauthentik/selenium](https://github.com/SeleniumHQ/docker-selenium) from 152.0-ak-0.62.0 to 152.0-ak-0.63.0.
- [Release notes](https://github.com/SeleniumHQ/docker-selenium/releases)
- [Commits](https://github.com/SeleniumHQ/docker-selenium/commits)

---
updated-dependencies:
- dependency-name: goauthentik/selenium
  dependency-version: 152.0-ak-0.63.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-28 09:02:10 +00:00
Dominic RoyandDewi Roberts cd0953c103 website/docs: document Entra ID source mappings (#26391)
* website/docs: document Entra ID source mappings

Refs: #10724

* website/docs: describe paginated Entra ID group sync

Requires the pagination fix in #26497.

* Update website/docs/users-sources/sources/social-logins/entra-id/oauth/index.mdx

Signed-off-by: Dewi Roberts <[email protected]>

---------

Signed-off-by: Dewi Roberts <[email protected]>
Co-authored-by: Dewi Roberts <[email protected]>
2026-09-28 05:01:50 -04:00
Dominic RoyandDewi Roberts 602333fb3b website/docs: clarify SAML transient user lifecycle (#26284)
* website/docs: clarify SAML transient user lifecycle

The Shibboleth guide recommends transient NameIDs without explaining that authentik creates temporary accounts.

Document account creation, deletion on logout, and expiration cleanup, including deletion while a session remains active. Explain the “Delete temporary users after” setting and recommend persistent NameIDs when accounts need to survive across logins.

* Update website/docs/users-sources/sources/protocols/saml/index.mdx

Co-authored-by: Dewi Roberts <[email protected]>
Signed-off-by: Dominic Roy <[email protected]>

---------

Signed-off-by: Dominic Roy <[email protected]>
Co-authored-by: Dewi Roberts <[email protected]>
2026-09-28 08:56:53 +00:00
Dominic Roy 42e672a5db website/docs: update Google username mapping (#26390)
Refs: #10724
2026-09-28 04:35:03 -04:00
Dominic Roy 7b3715a8d7 website/docs: document OpenID Connect key binding (#26287)
* website/docs: document OpenID Connect key binding

Add a guide to OpenID Connect key binding, linked from the `bound_key` scope description. Cover supported flows, provider configuration, JWK thumbprints, DPoP proofs, code exchanges, refreshes, and common failures.

Clarify that ID tokens are key-bound while access tokens remain bearer tokens.

* well the whole doc is .8, fixed

* website/docs: set key binding sidebar position
2026-09-28 04:28:38 -04:00
dependabot[bot] f1d9aaac22 core: bump thiserror from 2.0.20 to 2.0.21 (#26493)
Bumps [thiserror](https://github.com/dtolnay/thiserror) from 2.0.20 to 2.0.21.
- [Release notes](https://github.com/dtolnay/thiserror/releases)
- [Commits](https://github.com/dtolnay/thiserror/compare/2.0.20...2.0.21)

---
updated-dependencies:
- dependency-name: thiserror
  dependency-version: 2.0.21
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-28 08:27:50 +00:00
dependabot[bot] a7a31deeb8 core: bump hyper-util from 0.1.20 to 0.1.21 (#26494)
Bumps [hyper-util](https://github.com/hyperium/hyper-util) from 0.1.20 to 0.1.21.
- [Release notes](https://github.com/hyperium/hyper-util/releases)
- [Changelog](https://github.com/hyperium/hyper-util/blob/master/CHANGELOG.md)
- [Commits](https://github.com/hyperium/hyper-util/compare/v0.1.20...v0.1.21)

---
updated-dependencies:
- dependency-name: hyper-util
  dependency-version: 0.1.21
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-28 08:17:45 +00:00
dependabot[bot] e9c33061d2 core: bump pyroscope-io from 1.2.3 to 1.2.4 (#26488)
Bumps pyroscope-io from 1.2.3 to 1.2.4.

---
updated-dependencies:
- dependency-name: pyroscope-io
  dependency-version: 1.2.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-28 08:01:33 +00:00
Dominic Roy bc79bda511 website/docs: preserve Nginx Proxy Manager access lists (#26469)
Move authentication directives into NPM's custom location configuration
so they retain the GUI-managed Access List rules.

Closes: #26464
2026-09-28 09:01:11 +01:00
dependabot[bot] cb1d1a0063 core: bump ruff from 0.16.8 to 0.16.9 (#26489)
Bumps [ruff](https://github.com/astral-sh/ruff) from 0.16.8 to 0.16.9.
- [Release notes](https://github.com/astral-sh/ruff/releases)
- [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md)
- [Commits](https://github.com/astral-sh/ruff/compare/0.16.8...0.16.9)

---
updated-dependencies:
- dependency-name: ruff
  dependency-version: 0.16.9
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-28 10:50:02 +03:00
Jens L. 64acf1b671 stages/email: fix error when recovering with admin-generated token (#24409) 2026-09-27 22:28:02 +01:00
Jens L. 60066022c2 core: add filter for application entitlements for bound users (#26384)
* core: add filter for application entitlements for bound users

Signed-off-by: Jens Langhammer <[email protected]>

* gen

Signed-off-by: Jens Langhammer <[email protected]>

---------

Signed-off-by: Jens Langhammer <[email protected]>
2026-09-27 22:27:13 +01:00
ColeandJens L. f9cb331756 providers/rac: parse IPv6 literal endpoint hosts correctly (#24465)
ConnectionToken.get_settings() splits the endpoint host on the first colon. When an IPv6 address is passed such as [2001:1234::1]:5900 it produces "[2001" and "1234::1]:5900" which causes an error when it's passed to guacd. This made it functional impossible to use IPv6 for RAC endpoints.

Replaced with the standard urllib parser that gracefully handles IPv4, IPv6, and FQDNs. Added unit tests to ensure it continues to work correctly.

Co-authored-by: Jens L. <[email protected]>
2026-09-27 20:09:50 +01:00
Nick Walters cd82858ecc providers/oauth2: return authorize errors to custom scheme redirect URIs (#26386)
A successful authorization already redirects to a private-use scheme
(RFC 8252), such as a native app's `com.example.app:/callback`. The
error path used a plain HttpResponseRedirect, which only allows http,
https and ftp. The native app got a bare HTTP 400 in place of the
OAuth error, so it could not show the user why the login failed.

Allow the redirect URI's own scheme on the error path too. This is safe
because check_redirect_uri() matches the URI against the provider and
rejects forbidden schemes before any AuthorizeError is raised.
2026-09-27 20:07:13 +01:00
dependabot[bot] efb5fe3089 web: bump fast-uri from 3.1.3 to 3.1.8 (#24299)
Bumps [fast-uri](https://github.com/fastify/fast-uri) from 3.1.3 to 3.1.8.
- [Release notes](https://github.com/fastify/fast-uri/releases)
- [Commits](https://github.com/fastify/fast-uri/compare/v3.1.3...v3.1.8)

---
updated-dependencies:
- dependency-name: fast-uri
  dependency-version: 3.1.4
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-27 20:06:24 +01:00
Dominic Roy 34bf4517df core: remove legacy user and group attribute filters (#25802)
* core: avoid loading all attribute filter matches

* core: remove legacy user and group attribute filters
2026-09-27 19:22:49 +01:00
Jens L. fdbb7559b5 blueprints: export with references (#26069)
* blueprints: initial export with references

Signed-off-by: Jens Langhammer <[email protected]>

* make key readable

Signed-off-by: Jens Langhammer <[email protected]>

* no pks

Signed-off-by: Jens Langhammer <[email protected]>

* add pk test

Signed-off-by: Jens Langhammer <[email protected]>

* t

Signed-off-by: Jens Langhammer <[email protected]>

---------

Signed-off-by: Jens Langhammer <[email protected]>
2026-09-27 19:20:37 +01:00
Ryan Pesek 2f005db8a8 core: don't add DISTINCT to users list when filtering by type (#26413)
`UsersFilter.type` is a `MultipleChoiceFilter`, which defaults to
`distinct=True` because filters across to-many relationships can return
duplicate rows. `type` is a column on the user table, so it can't, but the
DISTINCT made the paginator count and every page evaluate the superuser
annotation for, and sort, all matching users (all columns), usually on disk.
2026-09-27 19:13:51 +01:00
transifex-integration[bot] b53e565fc5 translate: Updates for project authentik and language sv_SE (#26457)
* translate: Translate django.po in sv_SE

100% translated source file: 'django.po'
on 'sv_SE'.

* translate: Translate web/xliff/en.xlf in sv_SE

100% translated source file: 'web/xliff/en.xlf'
on 'sv_SE'.

* translate: Translate web/xliff/en.xlf in sv_SE

100% translated source file: 'web/xliff/en.xlf'
on 'sv_SE'.

---------

Co-authored-by: transifex-integration[bot] <43880903+transifex-integration[bot]@users.noreply.github.com>
2026-09-27 19:06:09 +01:00
authentik-automation[bot] a19177c67b core, web: update translations (#26459)
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: authentik-automation[bot] <135050075+authentik-automation[bot]@users.noreply.github.com>
2026-09-27 19:05:48 +01:00
Jens L. 7d44306523 website: add umami (#26460)
Signed-off-by: Jens Langhammer <[email protected]>
2026-09-27 11:45:48 +01:00
Ken Sternberg cd72bc3af1 web/user: remove slug display in any display mode on the user application library page (#26441) 2026-09-26 03:34:53 +02:00
authentik-automation[bot] db69f03001 core, web: update translations (#26444) 2026-09-26 03:33:47 +02:00
Jens L. 0a1a233393 website/docs: agent download page (#26412) 2026-09-26 03:32:42 +02:00
Jens L. b44ff4cc7f enterprise/connectors/agent: support for macOS 27 PSSO (#24959)
* the base

Signed-off-by: Jens Langhammer <[email protected]>

* the ai implementation

Signed-off-by: Jens Langhammer <[email protected]>

* some stuff

Signed-off-by: Jens Langhammer <[email protected]>

* something

Signed-off-by: Jens Langhammer <[email protected]>

* some more

Signed-off-by: Jens Langhammer <[email protected]>

* gen

Signed-off-by: Jens Langhammer <[email protected]>

* pre auth for dynamic

Signed-off-by: Jens Langhammer <[email protected]>

* show spinner

Signed-off-by: Jens Langhammer <[email protected]>

* fixup

Signed-off-by: Jens Langhammer <[email protected]>

* cleanup

Signed-off-by: Jens Langhammer <[email protected]>

* fix url

Signed-off-by: Jens Langhammer <[email protected]>

* core: add server-log endpoint for debugging

Signed-off-by: Jens Langhammer <[email protected]>

* include avatar

Signed-off-by: Jens Langhammer <[email protected]>

* rip off the bandaid, stable `sub`

Signed-off-by: Jens Langhammer <[email protected]>

* fix tests

Signed-off-by: Jens Langhammer <[email protected]>

* gen & format

Signed-off-by: Jens Langhammer <[email protected]>

* connect authorization code directly to device

Signed-off-by: Jens Langhammer <[email protected]>

* remove test helpers smh claude

Signed-off-by: Jens Langhammer <[email protected]>

---------

Signed-off-by: Jens Langhammer <[email protected]>
2026-09-26 02:08:03 +01:00
Teffen Ellis 403c8e1839 web: Fix disabled token icon buttons. (#25527) 2026-09-25 21:00:16 +00:00
Ken Sternberg aa8746d871 web/elements: fix scroll sticking when too many tables are visible on the page (#26423)
* ## What

         window.authentik.flow = {
             "layout": "{{ flow.layout }}",
    +        "background": "{{ flow.background }}",
    +        "title": "{{ flow.title }}",
         };

Amends the `flow.html` template and `GlobalAuthentik` parser to include new parameters, `background` and `title`, in the flow-specific part of the configuration written to the HTML `<head>` object, and to provide those parameters to client code.

## Why

The `layout` is start-up critical: it tells the Flow interface how the admin wants the Flow page to look, and allows the HTML and CSS to be pre-aligned to that condition. `layout` is determined on a per-Flow bases, not a per-Stage basis; Flows are derived from a tuple of `(Brand, Application?)`, where the opening policy *may* direct a user to a different flow if the user reached authentik via a redirect from a specific application, but will otherwise fall back to the default Flow for the Brand.

The `background` is a field that is required if the `Flow`’s layout is of type `frame_background`; in this case, the part of the viewport not dedicated to the FlowExecutor is reserved for an `<iframe>` that will be filled in with whatever the administrator specifies. Although this gives it the same priority as `layout` (whether it’s provided or undefined) for describing the [chrome](https://developer.mozilla.org/en-US/docs/Glossary/Chrome) around a challenge, it is currently not provided to the application in the start-up config; it is provided in the `challenge` and renders the IFrame as part of the initial challenge.

This patch fixes that; if `layout` is provided, `background` ought to be as well, even if it’s empty. The execution of a Challenge ought not have any influence over the look and feel of the Flow-defined appearance *around* that Challenge.

I have added `title` as well; with that, all of the current theme-and-appearance related configuration details are placed into `<head>` and can be removed from the FlowExecutor.

Server-side, `background` is currently specified: `background = FileField(blank=True, default="")` which is … interesting since we also appear to store URLs in it. I don’t see anything in the FlowSerializer that would change that from a client’s point of view.

This patch furthers the effort to separate flow execution from flow presentation.

- \[🐰\] The code has been formatted (`make web`)

* web/maintentance: update deprecated browser test imports

# What

Update imports of `@vitest/browser/context` to `vitest/browser`.

# Why

To eliminate these warnings:

    - DEPRECATED /Users/ken/projects/dev/web/test/lit/setup.js tries to load a deprecated
      "@vitest/browser/context" module. This import will stop working in the next major version. Please,
      use "vitest/browser" instead.
    - DEPRECATED /Users/ken/projects/dev/web/test/lit/rendering.js tries to load a deprecated
      "@vitest/browser/context" module. This import will stop working in the next major version. Please,
      use "vitest/browser" i

Sorry, been using the tests and Storybook a lot lately. Cleaning up as I go along.

* web/bug: scroll stuck when too many tables are visible on the page

# What

Hoo, boy. This one was *fun*.

Definitions: *instance* in the following refers to an instance of a Table or child class of Table. *class* refers to the Table class or a child class of Table.

## Bugs in `observe()`:

First, `observer.disconnect()` completely disconnects the observer for *every instance of that subclass of Table*. It says so [in the spec](https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserver/disconnect):

> The disconnect() method of the IntersectionObserver interface stops the observer watching **all** of its target elements for visibility changes. \[Emphasis mine\]

A table that gets disconnected (because a row closed or the table scrolled out of view) would cause *all* the BindingTables to stop being observed. This is why some BindingTables seemed to randomly hang with their spinners going; if you opened a bunch and scrolled past quickly, they’d get unobserved and the shared observer would end up observing nothing and those BindingTable fetches would never actually run.

**Fix**: When an instance calls `disconnectedCallback()`, remove that instance from the observer, rather than cancel the whole observer.

Second, `useAncestorBox` *lied*. It gets updated and changed depending on when an instance’s `displayBox` field changed. But decorators (and state-tracking variable enclosed within them) are *class-level*; one instance which sets that definition sets it for *every instance* of that specific subclass of Table. In the case of BoundStagesList, that could be as many BindingTables as there were Stages, since each Stage has a collection of Bindings.

**Fix**: Just like `boxTargets`, `useAncestorBox` must be tracked on a per-instance basis, not a per-class basis. I’ve supplied a `WeakMap`.

(I found this one out simply by putting a `console.log()` into the decorator, and saw that no matter how many stages or policies or bindings I had, there were always three instances of the IntersectionObserver: One for the *Stage* table, one for each *Stage Binding* table … and this was really fun to figure out … one for the *Used By* table that warns you if anyone else is using a Policy when you delete its Binding from a Stage. **One instance per subclass of Table** on the page.)

## The bug in `Table`:

`@observe() visible = false;` is `@property()` with some extra behavior about IntersectionObserver. When `@observe` flipped that boolean value, a refresh was called and `sychronizeRefreshSchedule` got called in the `updated()` phase. A scheduler in that phase noted that the table was now not visible and forced the table back into the “loading” state. When you tried to scroll, the table would suddenly go, “Wait, I’m visible again,” do the fetch, which (on a fast enough network) would trigger an immediate page reflow. Scroll position vs layout was getting hosed because the reflow could push a higher table into view, out of view, into view, out of view, over and over, and if the bottom of the page was visible, the browser’s “scroll position reset” wouldn’t let you scroll up because it “knew better” where you wanted to be.

That’s the original bug as reported.

The fix:

1.  Only do `renderLoading()` when there’s no data. Don’t do it if the table goes out-of-view or any of that. Only load data if (a) there’s no data, (b) a `submit` event happens (something changed and we need to renew the cache of data) or (c) an `AKRefreshEvent` happens.
2.  Only ever set `deferredRefreshRequestAt` when one of 👆🏽 happens and the table isn’t in view yet. That’s the *only* reason you shouldn’t fetch immediately. Do not set it just because the table isn’t visible. Don’t refetch every time the visibility flag changes.

Added a couple cheap tests to bang on it and play with the viewport and see that it passes.

Closes \#25408

* Oxfmt has opinions.
2026-09-25 13:05:16 -07:00
Connor Peshek 37a5e3cac5 root: fix client certificate header forwarded to the mTLS stage (#26438) 2026-09-25 16:56:23 +00:00
Teffen Ellis 32ae96fb8b web/flows: render CAPTCHA widgets without an iframe wrapper (#26143)
* web/flows: render CAPTCHA widgets without an iframe wrapper

The CAPTCHA stage rendered every interactive widget inside an iframe it
generated itself, as a blob URL or a `document.write`-populated
`about:blank` document. The wrapper existed to stop two providers
colliding over their `window` globals, since a flow can present more than
one CAPTCHA stage and each vendor installs a global under a fixed name.

The collision was real, but the iframe addressed the symptom. The cause is
that `CaptchaController.discover()` chose a provider by sniffing `window`
in a fixed preference order rather than by looking at the script the
challenge actually asked for. Provider scripts are appended to
`document.head` and never removed, so by the second stage several globals
are present and the first one in the list wins regardless of which vendor
the challenge named.

Providers are now resolved with `matchesURL()` against the challenge's
`jsUrl`, which is unambiguous, and widgets render in place through each
vendor's own explicit render API. Falling back to global discovery is kept
for proxied script URLs that no host pattern can anticipate, and that path
now logs which mechanism it used.

Removing the wrapper removes everything built on top of it: the
`postMessage` bridge, the generated document template, the `document.write`
fallback, blob URLs, and the MutationObserver/ResizeObserver pair that
synchronised the wrapper's height. Widgets participate in normal layout
instead, and `CaptchaStage` loses more than half its length.

This also un-blocks a strict Content-Security-Policy: the generated
document required `script-src 'unsafe-inline'` for its callbacks and
`frame-src blob:` for its own URL, neither of which is needed now. The
directives a policy still has to allow are per-provider and derived from
the stage's configured URLs; `script-loader.ts` documents them.

Along the way:

- Reload the widget when `challenge` changes, not only on first render.
  The executor reuses one `<ak-stage-captcha>` element across stages, so a
  flow with two CAPTCHA stages previously kept showing the first stage's
  solved widget and never advanced.
- Talk to `grecaptcha.enterprise` when the challenge names `enterprise.js`.
  Enterprise site keys are rejected by the classic entry point.
- Give the "Provider Type", "Order" and "Stage" form controls accessible
  names. The first two had labels that could not associate across a shadow
  root, and the stage picker had no accessible name at all.
- Await the typed filter in `FormFixture.selectSearchValue`. The floating
  promise meant the option lookup searched an unfiltered list, which finds
  nothing once a collection outgrows the picker's first page.

Tests: `test/unit/captcha-provider-resolution.test.ts` covers provider
resolution for all four vendors, including Cap, with no network. The
browser suite drives a real flow per vendor against the vendors' published
test keys; it is tagged `@vendor-network` since it depends on third-party
availability.

web/flows: render CAPTCHA widgets in the document tree

Removing the wrapper iframe broke reCAPTCHA. The widget rendered, but the
checkbox spun forever and the flow never advanced: reCAPTCHA resolves its
own elements through `document`, so a container whose `getRootNode()` is a
`ShadowRoot` can never finish verifying. Rendering in place had put the
container inside the flow executor's shadow root.

So the wrapper was load-bearing for a second reason nobody wrote down. It
was not only keeping two providers from colliding over their `window`
globals — it was also handing reCAPTCHA a document to work in.

Confirmed with a controlled test: same page, same script, same site key,
same callback, ~20 lines of vanilla JS and no authentik code. Rendered into
`document.body` the token arrives; rendered into an `attachShadow()` root it
never does. hCaptcha and Turnstile both solve either way.

The container now attaches to the nearest ancestor that sits in the document
tree — the flow executor, which the Django template writes directly into the
page — and is projected back into the card through a chain of forwarded
slots. Slotting moves no nodes, so the container keeps `getRootNode() ===
document` while appearing exactly where it did before. The executor forwards
into whichever stage it renders, and the identification stage forwards again
into its embedded CAPTCHA; a forwarded slot with no matching name in the
child's shadow root renders nothing, so no stage needs special-casing.

The widget frames also needed clipping. Providers size them with the
`height` content attribute, and that hint does not survive on authentik's
pages — a plain `<iframe height="78">` computes to the 150px
replaced-element default in both the flow and admin apps, while identical
markup computes to 78px elsewhere — so the frame spilled below the widget as
a blank band. Inside the wrapper iframe no surrounding stylesheet reached
it. The cause is not yet identified; clipping to the box the provider
declares is safe because every provider renders its expanded challenge as an
overlay on `document.body`, never inside the container.

Also collects the vendor constants that had spread across the controllers —
host patterns, globals and URL matching now hang off a single `CaptchaVendor`
spine, so a controller declares its vendor and inherits the rest. The
provider presets in the admin form point at the same spine instead of
carrying a second copy of the Cap URL test. Test credentials live in `e2e/`
rather than `src/`: esbuild drops an unused object only when its initializer
is free of property accesses, so a record referencing the spine can never be
tree-shaken out of the bundle.

Tests: each vendor now has a solve-and-advance case, which is what the suite
was missing — every case asserted a widget rendered, none that it could be
completed, so reCAPTCHA stayed green while broken. Verified by reverting the
container to shadow placement and watching the reCAPTCHA case fail.

web/flows: keep CAPTCHA frames at their declared size and backdrop

Now that vendor widgets render in the document tree, the flow interface's
stylesheets reach them. Two regressions from that, both on reCAPTCHA:

PatternFly's base reset (`img, embed, iframe, ... { height: auto }`) beats
the presentational `width`/`height` attributes vendors size their anchor
frames with, so the frame computed to the 150px replaced-element default
and showed 72px of blank body below the widget. The stage now observes the
container and pins each arriving frame to its declared size inline. Turnstile
already sizes its frame inline and is left alone.

The frame element inherits `color-scheme: dark` from the theme while the
anchor document declares none, and browsers paint an opaque canvas behind an
embedded document whose scheme disagrees with its element's. That was the
white behind the widget's rounded corners and along its 2px inset. Vendors
can now adjust their own frames through `CaptchaController.decorateFrame`;
reCAPTCHA declares its frame `light` to match the document.

Also passes `theme` to the invisible reCAPTCHA render, gives test flows
names that can be told apart in the admin list, and asserts the rendered
frame size matches the declared one.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Vf7S2QdjCToGGTwz7uxPaD

Clarify comment.

Re-render after theme change.

Clean up.

* packages/fonts: add a no-op build script

The npm publish workflow runs `pnpm run build` for every package, and
fonts had no build script, so its publish failed with
ERR_PNPM_NO_SCRIPT.

* packages: bump tsconfig to 2.1.0 and docusaurus-config to 3.2.0

Both changed without a version bump, so publishing them would fail
with a 403 for the already-published version. tsconfig's empty build
script also failed with ERR_PNPM_NO_SCRIPT.

* web: keep Storybook docs in sync with theme changes

createUIThemeEffect skipped a change when html[data-theme] already
matched, but another listener sharing the document may have set it
first, so later listeners (Storybook's docs container) never updated.
Each listener now tracks the last theme it handled. The Storybook
preview styles follow html[data-theme] instead of the OS color scheme.

* web/test/visual: keep a separate report per suite

Each suite now writes its HTML report to .visual/report/<suite>/ and
its artifacts to test-results/visual/<suite>/, so running one suite no
longer replaces the other's report.

* packages/tsconfig: split into base, web, and node configs

@goauthentik/tsconfig is now an environment-agnostic base with two
presets:

- `@goauthentik/tsconfig/web` for bundled code: bundler resolution,
  `module: preserve`, the DOM libraries, JSX, and declaration-only emit.
- `@goauthentik/tsconfig/node` for scripts Node runs from source:
  `noEmit`, erasable syntax only, `verbatimModuleSyntax`, and `.ts`
  import extensions.

The base no longer includes Node types or JSX, so this is a major
version. web and website move to the web preset; the root, scripts,
web/packages/core, and geo's scripts and tests move to the node preset;
packages that stay on the base and need Node declare its types
themselves. web, web/packages/core, and website/api link the local
package instead of a published version.

* packages/theme: emit the spacing category file

The spacing category matched the `global--space--` prefix, but the
tokens are named `--ak-global--spacer--*`, so the build skipped it and
the exported ./dist/spacing.css was never written.

* web/admin: back-fill the created stage in the bind wizard

The stage wizard's binding step passed only the new stage's pk, so the
stage picker could only select it when it happened to be on the first
page of results. Beyond that the binding saved with a null stage. Pass
the stage object too, so the picker always offers and selects it.

The captcha e2e fixture relies on the back-fill instead of searching,
and scopes the Create or bind button to the toolbar, since an empty
flow shows a second one.

* web/flows: harden the CAPTCHA stage's load lifecycle

- Discard a mount that finishes after a newer load has started, instead
  of making it the active controller and leaving its widget behind.
- Rebuild the widget for every new challenge object rather than a
  jsUrl/siteKey/interactive signature, so two identical CAPTCHA stages
  in a row no longer reuse the first stage's solved widget.
- Forget the loaded challenge and cancel in-flight loads on disconnect,
  and reload on reconnect.
- Skip theme and locale rebuilds once a token has been issued, since a
  rebuilt widget would be unsolved while its token was already handed on.

Also rewords the file's comments.
2026-09-25 16:59:39 +01:00
d1c5d643c1 web: adopt @goauthentik/theme tokens in the app styles (#22523)
* web/testing/snapshots: enable visual comparisons

As an experiment, I have added three visual comparisons:

- dashboard
- event notification rules table
- new prompt form

… which provides a wide variety of controls that I can see and compare. As we move toward a more robust testing scheme *and* toward a more dispersed repository of artifacts (theme, elements, etc), I wanted a way to ensure that our upgrades to Patternfly and components didn’t break anything. I spent the day learning much more about Playwright and the snapshot tests.

I don’t think @BeryJu’s concern for snapshot size isn’t wholly warranted. I’ve manually restricted the viewport to 1280x800, so each snapshot pair (“light” and “dark”) is about 220Kb. The current project repo is 795Mb in size; it would take 40 tests to increase the size of the repository by 1%. If we have half that many snapshot pairs by next year, I’ll be delighted.

One challenge these tests present is that they should be run on a completely fresh database with no modifications; the dashboard and notifications page should reflect only the default status of an authentik instance when it comes up. The purpose of the snapshots isn’t to record the utility of the front-end; it’s to record and preserve the appearance of select elements in the page.

* Of course prettier had opinions.

* Optimised images with calibre/image-actions

* web/theme: the patternfly bridge

Generates the PatternFly 4 variables from the theme source instead of
maintaining them by hand: moves the token modules from src/tokens/ to
src/authentik/, and adds src/patternfly/ which emits the PF variables
from those tokens.

Known gaps: 17 colors remain unmapped and undefined; PatternFly dark
mode is not emitted yet; the linter cannot compare PatternFly and
authentik colors because the theme is authored in oklch.

* web: compare screenshots against the base branch locally

Replace the committed page snapshots with a local visual comparison
workflow. `pnpm run test:visual` screenshots every Storybook story in
light and dark, and compares it against the merge-base with
origin/main. Baselines are recorded on demand from a temporary
worktree and cached in the git-ignored `.visual/` store, keyed by
commit and platform, so no images are committed.

A `pages` suite covers admin screens without generated data (login,
a modal form, a wizard) on a running instance.

Also break an import cycle between the notifications mixin and the
drawer components, which broke the Page Navbar story.

* web: load @goauthentik/theme in the app styles

Build packages/theme before the web build, Storybook, and watch, and
import its generated CSS after the legacy variables in the theme layer
so the generated PatternFly variables take precedence.

* web/theme: fix inverted PatternFly light/dark text colors

PatternFly names text colors by the color of the text itself:
--pf-global--Color--dark-100 is dark text (#151515) for light surfaces,
and --pf-global--Color--light-100 is light text for dark surfaces. The
bridge mapped them the other way around, so components that set
--pf-global--Color--100 from dark-100 (Page, Alert, Table, and others)
rendered white text in light mode.

* web/theme: add a muted ink for light surfaces

Add ink.pin-light.muted (#6a6e73) and map --pf-global--Color--dark-200
to it. PatternFly uses dark-200 for helper and placeholder text on
light surfaces; it was mapped to full-strength ink.

* web: commit the generated theme stylesheet

Building web in the container only installs the web workspace, so it
can't build packages/theme, which belongs to the root workspace and has
its own dependencies. Commit the theme's generated CSS instead, the same
way the API client is committed, and drop the theme build from the web
build graph.

`pnpm run build:theme` regenerates it; `pnpm run lint:theme` fails when
the committed copy is out of date.

* web/theme: convert the build scripts to TypeScript

Node runs TypeScript directly now, so replace build.mjs, build-demo.mjs,
lint-bridge.mjs, reference.css.js, and stylelint.config.mjs with .ts
equivalents. JSDoc typedefs become interfaces.

lint-bridge's array and CSS branches returned a bare string instead of a
[kind, value] pair, and its ref branch passed an extra argument that
shifted every parameter; both are fixed. Its output is unchanged for the
current tokens.

The generated header also names the current source directory; it still
pointed at the old src/tokens/.

* Format.

* web: move ak-drawer onto the generated theme tokens

Replaces the drawer's --ak-v2-global--* references with the
--ak-global--* tokens from the generated theme, and gives the drawer its
own directional shadows and RTL inverse multiplier. The multiplier was
previously read from --ak-v2-global--inverse--multiplier, which nothing
defined.

Co-Authored-By: Ken Sternberg <[email protected]>

* Fix overflow.

* packages/fonts: declare RedHatText's full weight range

The variable face covers 300-700, but the @font-face rules declared
400 500, so light text rendered at 400 and bold was capped at 500.

* website: copy docusaurus-config into the image instead of mounting it

pnpm can place workspace links in a package's own node_modules (for
example `@goauthentik/fonts` under packages/docusaurus-config), and a
read-only bind mount of the package source over that directory hides
them from the docs build. Copy docusaurus-config and fonts into the
image before the root install instead, so those links survive.

* website: load the docs fonts from @goauthentik/fonts

Replaces docusaurus-config's hand-written @font-face rules and the
modified RedHat copies in website/static/fonts with the faces from
@goauthentik/fonts, so the docs and the web UI share one set of fonts.

* packages/theme: bump to 2.0.0

* Remove development comments

Drops file headers, restated JSDoc, commented-out reference values, and
exploratory notes added on this branch, keeping only comments that
explain something surprising.

---------

Co-authored-by: Ken Sternberg <[email protected]>
Co-authored-by: authentik-automation[bot] <135050075+authentik-automation[bot]@users.noreply.github.com>
2026-09-25 13:55:35 +01:00
Dewi Roberts 0022f13089 website/docs: upgrade doc: mention anaylze command (#26432)
Mention anaylze command in upgrade doc
2026-09-25 12:20:37 +00:00
authentik-automation[bot] 5716119832 core, web: update translations (#26425)
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: authentik-automation[bot] <135050075+authentik-automation[bot]@users.noreply.github.com>
2026-09-25 12:34:53 +01:00
dependabot[bot] ba11213b65 core: bump goauthentik/fips-python from db124ee to 070e7dc in /lifecycle/container (#26426)
core: bump goauthentik/fips-python in /lifecycle/container

Bumps goauthentik/fips-python from `db124ee` to `070e7dc`.

---
updated-dependencies:
- dependency-name: goauthentik/fips-python
  dependency-version: 3.14.7-slim-trixie-fips
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-25 12:34:43 +01:00
dependabot[bot] 62f8ad6d17 core: bump astral-sh/uv from 0.12.18 to 0.12.19 in /lifecycle/container (#26427)
Bumps [astral-sh/uv](https://github.com/astral-sh/uv) from 0.12.18 to 0.12.19.
- [Release notes](https://github.com/astral-sh/uv/releases)
- [Changelog](https://github.com/astral-sh/uv/blob/main/CHANGELOG.md)
- [Commits](https://github.com/astral-sh/uv/compare/0.12.18...0.12.19)

---
updated-dependencies:
- dependency-name: astral-sh/uv
  dependency-version: 0.12.19
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-25 12:34:31 +01:00
dependabot[bot] ebdc706f74 ci: bump taiki-e/install-action from 2.87.17 to 2.87.18 in /.github/actions/setup (#26430)
ci: bump taiki-e/install-action in /.github/actions/setup

Bumps [taiki-e/install-action](https://github.com/taiki-e/install-action) from 2.87.17 to 2.87.18.
- [Release notes](https://github.com/taiki-e/install-action/releases)
- [Changelog](https://github.com/taiki-e/install-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/taiki-e/install-action/compare/94c31af3204a9f15ab40b35ad084410b905bbc73...dfae9bf3d6f6c6f20ef4ebb3486c01a51341ff12)

---
updated-dependencies:
- dependency-name: taiki-e/install-action
  dependency-version: 2.87.18
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-25 12:34:08 +01:00
dependabot[bot] f729df6967 core: bump aws-cdk-lib from 2.269.0 to 2.270.0 (#26429)
Bumps [aws-cdk-lib](https://github.com/aws/aws-cdk) from 2.269.0 to 2.270.0.
- [Release notes](https://github.com/aws/aws-cdk/releases)
- [Changelog](https://github.com/aws/aws-cdk/blob/main/CHANGELOG.v2.alpha.md)
- [Commits](https://github.com/aws/aws-cdk/compare/v2.269.0...v2.270.0)

---
updated-dependencies:
- dependency-name: aws-cdk-lib
  dependency-version: 2.270.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-25 10:04:30 +03:00
dependabot[bot] b8d2753ad4 core: bump sentry from 0.49.2 to 0.49.3 (#26428)
Bumps [sentry](https://github.com/getsentry/sentry-rust) from 0.49.2 to 0.49.3.
- [Release notes](https://github.com/getsentry/sentry-rust/releases)
- [Changelog](https://github.com/getsentry/sentry-rust/blob/master/CHANGELOG.md)
- [Commits](https://github.com/getsentry/sentry-rust/compare/0.49.2...0.49.3)

---
updated-dependencies:
- dependency-name: sentry
  dependency-version: 0.49.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-25 10:03:52 +03:00
Teffen Ellis d6322d2a66 website/docs: Unify Docusaurus brand plugins. (#26324)
* website: unify brand asset plugins.

* Bump version.
2026-09-24 22:50:28 +00:00
Dominic Roy d8a39e7fe6 web: Close command palette when opening About (#25734)
* web: Close command palette when opening About

Opening About returned a promise that resolved only after the dialog closed, leaving the command palette visible behind it.

Closes: #25726

* tweak

* eh its redundant
2026-09-24 13:53:10 -04:00
Dominic Roy 0a8a36bfb5 web/admin: add user deletion to detail view (#26397)
* web/admin: add user deletion to detail view

Closes: #26358

* web/admin: fix user deletion navigation and warning

Closes: #26358
2026-09-24 17:34:51 +00:00
authentik-automation[bot] 6b250cc34d core, web: update translations (#26401)
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-09-24 15:49:53 +02:00
Dominic Roy 78e541e892 website: document PostgreSQL query performance troubleshooting (#26385) 2026-09-24 09:45:36 -04:00
dependabot[bot] 616840efe1 core: bump goauthentik/fips-python from d15ba00 to db124ee in /lifecycle/container (#26404)
core: bump goauthentik/fips-python in /lifecycle/container

Bumps goauthentik/fips-python from `d15ba00` to `db124ee`.

---
updated-dependencies:
- dependency-name: goauthentik/fips-python
  dependency-version: 3.14.7-slim-trixie-fips
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-24 12:21:34 +01:00
dependabot[bot] 13b5cae5ba ci: bump astral-sh/setup-uv from 10.1.0 to 10.2.0 in /.github/actions/setup (#26411)
ci: bump astral-sh/setup-uv in /.github/actions/setup

Bumps [astral-sh/setup-uv](https://github.com/astral-sh/setup-uv) from 10.1.0 to 10.2.0.
- [Release notes](https://github.com/astral-sh/setup-uv/releases)
- [Commits](https://github.com/astral-sh/setup-uv/compare/bec219d24cd3e171d82865faccec33120bb574f4...c18668ad3cf93ea998bef934396af7bb5c839dc7)

---
updated-dependencies:
- dependency-name: astral-sh/setup-uv
  dependency-version: 10.2.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-24 12:09:32 +01:00
pulgasa c8d384860d website/integrations: freshrss: Add back-channel logout instructions (#26360)
website/docs: Add back-channel logout instructions for freshrss

Added optional OIDC back-channel logout configuration details.

Signed-off-by: pulgasa <[email protected]>
2026-09-24 10:31:11 +00:00
dependabot[bot] dcc90b5822 core: bump pyjwt from 2.14.0 to 2.15.0 (#26409)
Bumps [pyjwt](https://github.com/jpadilla/pyjwt) from 2.14.0 to 2.15.0.
- [Release notes](https://github.com/jpadilla/pyjwt/releases)
- [Changelog](https://github.com/jpadilla/pyjwt/blob/master/CHANGELOG.rst)
- [Commits](https://github.com/jpadilla/pyjwt/compare/2.14.0...2.15.0)

---
updated-dependencies:
- dependency-name: pyjwt
  dependency-version: 2.15.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-24 10:27:05 +03:00
dependabot[bot] 1c1b059908 core: bump cachetools from 7.1.8 to 7.2.0 (#26410)
Bumps [cachetools](https://github.com/tkem/cachetools) from 7.1.8 to 7.2.0.
- [Changelog](https://github.com/tkem/cachetools/blob/master/CHANGELOG.rst)
- [Commits](https://github.com/tkem/cachetools/compare/v7.1.8...v7.2.0)

---
updated-dependencies:
- dependency-name: cachetools
  dependency-version: 7.2.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-24 10:26:38 +03:00
dependabot[bot] 76230ced61 core: bump msgraph-sdk from 1.62.0 to 1.63.0 (#26408)
Bumps [msgraph-sdk](https://github.com/microsoftgraph/msgraph-sdk-python) from 1.62.0 to 1.63.0.
- [Release notes](https://github.com/microsoftgraph/msgraph-sdk-python/releases)
- [Changelog](https://github.com/microsoftgraph/msgraph-sdk-python/blob/main/CHANGELOG.md)
- [Commits](https://github.com/microsoftgraph/msgraph-sdk-python/compare/v1.62.0...v1.63.0)

---
updated-dependencies:
- dependency-name: msgraph-sdk
  dependency-version: 1.63.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-24 10:26:11 +03:00
dependabot[bot] 6201d6ee94 core: bump hyper-rustls from 0.27.9 to 0.27.10 (#26407)
Bumps [hyper-rustls](https://github.com/rustls/hyper-rustls) from 0.27.9 to 0.27.10.
- [Release notes](https://github.com/rustls/hyper-rustls/releases)
- [Commits](https://github.com/rustls/hyper-rustls/compare/v/0.27.9...v/0.27.10)

---
updated-dependencies:
- dependency-name: hyper-rustls
  dependency-version: 0.27.10
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-24 10:25:32 +03:00
dependabot[bot] cac812980d core: bump jsonwebtoken from 11.0.0 to 11.1.0 (#26405)
Bumps [jsonwebtoken](https://github.com/Keats/jsonwebtoken) from 11.0.0 to 11.1.0.
- [Changelog](https://github.com/Keats/jsonwebtoken/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Keats/jsonwebtoken/compare/v11.0.0...v11.1.0)

---
updated-dependencies:
- dependency-name: jsonwebtoken
  dependency-version: 11.1.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-24 10:25:00 +03:00
dependabot[bot] 68ed15584e core: bump rand from 0.10.2 to 0.10.3 (#26406)
Bumps [rand](https://github.com/rust-random/rand) from 0.10.2 to 0.10.3.
- [Release notes](https://github.com/rust-random/rand/releases)
- [Changelog](https://github.com/rust-random/rand/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-random/rand/compare/0.10.2...0.10.3)

---
updated-dependencies:
- dependency-name: rand
  dependency-version: 0.10.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-24 10:24:22 +03:00
Dominic Roy c03ec28e4a website/integrations: add Palo Alto Networks NGFW guide (#26399) 2026-09-24 07:56:20 +01:00
Ken SternbergandDominic Roy b4cdafae8e website/docs: Amend the Blueprints documentation to describe what a blueprint IS (#26398)
* ## What

         window.authentik.flow = {
             "layout": "{{ flow.layout }}",
    +        "background": "{{ flow.background }}",
    +        "title": "{{ flow.title }}",
         };

Amends the `flow.html` template and `GlobalAuthentik` parser to include new parameters, `background` and `title`, in the flow-specific part of the configuration written to the HTML `<head>` object, and to provide those parameters to client code.

## Why

The `layout` is start-up critical: it tells the Flow interface how the admin wants the Flow page to look, and allows the HTML and CSS to be pre-aligned to that condition. `layout` is determined on a per-Flow bases, not a per-Stage basis; Flows are derived from a tuple of `(Brand, Application?)`, where the opening policy *may* direct a user to a different flow if the user reached authentik via a redirect from a specific application, but will otherwise fall back to the default Flow for the Brand.

The `background` is a field that is required if the `Flow`’s layout is of type `frame_background`; in this case, the part of the viewport not dedicated to the FlowExecutor is reserved for an `<iframe>` that will be filled in with whatever the administrator specifies. Although this gives it the same priority as `layout` (whether it’s provided or undefined) for describing the [chrome](https://developer.mozilla.org/en-US/docs/Glossary/Chrome) around a challenge, it is currently not provided to the application in the start-up config; it is provided in the `challenge` and renders the IFrame as part of the initial challenge.

This patch fixes that; if `layout` is provided, `background` ought to be as well, even if it’s empty. The execution of a Challenge ought not have any influence over the look and feel of the Flow-defined appearance *around* that Challenge.

I have added `title` as well; with that, all of the current theme-and-appearance related configuration details are placed into `<head>` and can be removed from the FlowExecutor.

Server-side, `background` is currently specified: `background = FileField(blank=True, default="")` which is … interesting since we also appear to store URLs in it. I don’t see anything in the FlowSerializer that would change that from a client’s point of view.

This patch furthers the effort to separate flow execution from flow presentation.

- \[🐰\] The code has been formatted (`make web`)

* web/maintentance: update deprecated browser test imports

# What

Update imports of `@vitest/browser/context` to `vitest/browser`.

# Why

To eliminate these warnings:

    - DEPRECATED /Users/ken/projects/dev/web/test/lit/setup.js tries to load a deprecated
      "@vitest/browser/context" module. This import will stop working in the next major version. Please,
      use "vitest/browser" instead.
    - DEPRECATED /Users/ken/projects/dev/web/test/lit/rendering.js tries to load a deprecated
      "@vitest/browser/context" module. This import will stop working in the next major version. Please,
      use "vitest/browser" i

Sorry, been using the tests and Storybook a lot lately. Cleaning up as I go along.

* web/website/docs: Amend the Blueprints documentation to describe what a blueprint *is*

# What

This commit revises the “Blueprints: Blueprint Execution” section of the documentation to give a precise, concrete definition of what a Blueprint file actually is: a series of instructions to create, modify, or delete objects and their relationships within the authentik database. It gives examples of these relationships, and describes how instantiating these objects and their relationships within authentik is order-dependent.

I also re-arranged a few sentences in that section for readability, using [Vale](https://docs.vale.sh/) and the Microsoft style guide as an example. I ignored a *lot* of the advice, but a few things stood out as “Yeah, that could be clearer.”

# Why

Mostly because I never understood exactly what the heck a Blueprint was until I read that single, clear sentence elsewhere, that’s why. Surely I’m not the only person feeling perplexed about it.

* Update website/docs/customize/blueprints/index.mdx

Co-authored-by: Dominic Roy <[email protected]>
Signed-off-by: Ken Sternberg <[email protected]>

---------

Signed-off-by: Ken Sternberg <[email protected]>
Co-authored-by: Dominic Roy <[email protected]>
2026-09-23 22:35:06 +00:00
Anthony OleinikandDominic Roy 6df4e996c5 website/integrations: update jellyseerr docs to include enable proxy step (#20408)
update jellyseerr docs to include enable proxy step

I ran into this

https://github.com/seerr-team/seerr/pull/1505/changes#r2311308711

Signed-off-by: Anthony Oleinik <[email protected]>
Co-authored-by: Dominic Roy <[email protected]>
2026-09-23 21:00:52 +00:00
pulgasaandDominic R 7b6f3342c8 website/integrations: immich: Add back-channel logout instructions (#26357)
* website/docs: Add back-channel logout instructions for immich

Added optional OIDC back-channel logout configuration details.

Signed-off-by: pulgasa <[email protected]>

* website/integrations: fix Immich formatting

Closes: #26357

---------

Signed-off-by: pulgasa <[email protected]>
Co-authored-by: Dominic R <[email protected]>
2026-09-23 20:54:12 +00:00
Jens L. 0e7ad46443 web/admin: fix device view page and outpost view page (#26383)
* web/admin: fix duplicate users on device view page

Signed-off-by: Jens Langhammer <[email protected]>

* fix outpost view page

Signed-off-by: Jens Langhammer <[email protected]>

---------

Signed-off-by: Jens Langhammer <[email protected]>
2026-09-23 19:42:12 +01:00
Simonyi Gergő 7d1f1740e1 blueprints: add admin interface to read-only role (#26363)
add admin interface to read-only role
2026-09-23 17:18:19 +01:00
Ken Sternberg ca9473edf4 web/elements: add Paginator component and revise Table and DualSelect to use them. (#26327)
* ## What

         window.authentik.flow = {
             "layout": "{{ flow.layout }}",
    +        "background": "{{ flow.background }}",
    +        "title": "{{ flow.title }}",
         };

Amends the `flow.html` template and `GlobalAuthentik` parser to include new parameters, `background` and `title`, in the flow-specific part of the configuration written to the HTML `<head>` object, and to provide those parameters to client code.

## Why

The `layout` is start-up critical: it tells the Flow interface how the admin wants the Flow page to look, and allows the HTML and CSS to be pre-aligned to that condition. `layout` is determined on a per-Flow bases, not a per-Stage basis; Flows are derived from a tuple of `(Brand, Application?)`, where the opening policy *may* direct a user to a different flow if the user reached authentik via a redirect from a specific application, but will otherwise fall back to the default Flow for the Brand.

The `background` is a field that is required if the `Flow`’s layout is of type `frame_background`; in this case, the part of the viewport not dedicated to the FlowExecutor is reserved for an `<iframe>` that will be filled in with whatever the administrator specifies. Although this gives it the same priority as `layout` (whether it’s provided or undefined) for describing the [chrome](https://developer.mozilla.org/en-US/docs/Glossary/Chrome) around a challenge, it is currently not provided to the application in the start-up config; it is provided in the `challenge` and renders the IFrame as part of the initial challenge.

This patch fixes that; if `layout` is provided, `background` ought to be as well, even if it’s empty. The execution of a Challenge ought not have any influence over the look and feel of the Flow-defined appearance *around* that Challenge.

I have added `title` as well; with that, all of the current theme-and-appearance related configuration details are placed into `<head>` and can be removed from the FlowExecutor.

Server-side, `background` is currently specified: `background = FileField(blank=True, default="")` which is … interesting since we also appear to store URLs in it. I don’t see anything in the FlowSerializer that would change that from a client’s point of view.

This patch furthers the effort to separate flow execution from flow presentation.

- \[🐰\] The code has been formatted (`make web`)

* web/maintentance: update deprecated browser test imports

# What

Update imports of `@vitest/browser/context` to `vitest/browser`.

# Why

To eliminate these warnings:

    - DEPRECATED /Users/ken/projects/dev/web/test/lit/setup.js tries to load a deprecated
      "@vitest/browser/context" module. This import will stop working in the next major version. Please,
      use "vitest/browser" instead.
    - DEPRECATED /Users/ken/projects/dev/web/test/lit/rendering.js tries to load a deprecated
      "@vitest/browser/context" module. This import will stop working in the next major version. Please,
      use "vitest/browser" i

Sorry, been using the tests and Storybook a lot lately. Cleaning up as I go along.

* TPP (Transformation Priority Premise) for the win. (Also, looking at IBM Carbon for ideas on how to fix this.)  Wrote a checker that takes the Django Paginator output and correctly converts it to the format used by most paginators, including the Patternfly React paginator.  So now we have a tool to communicate with the paginator, correctly converting, bounded, and compensating for stupid sh❋t.  Well, that's two circles. Now to draw the rest of the owl.

* Storybook works. Styles still suck.  Can't really test the events handler because it doesn't issue an event if there's no change.

* Fixed a problem with bounds and unnatural numbers; got the hover/active/focus right; got the input number field to show up, but not happy with the effect when you leave it.

* It's all working.  Whee!

* Implemented Paginator on Tables.

* web/elements/paginator: Add “paginator” to list of standarized elements

# What

This commit adds a new element, `ak-paginator`, and replaces the two uses of pagination in our product: the progressive reveal in DualSelect, and the page selector in Table.

The Paginator is a revision of the React version component. It has been cut down to our use case, and the term “bottom” has been replaced with “compact”; a “compact” paginator has only the summary (hidden below 640px) and the next/prev indicators; a full size one has the summary, the “first/prev/next/last” indicators, and an input box so the user can navigate to any page. A pair of helper functions convert from the Django paginator format to the one used by Patternfly’s paginator. The paginator emits an event that clients are expected to respond to, and then update the paginator component when the page is valid and has been changed to.

The converters have 10 tests; there are 30 unit tests covering edge cases, keyboard interaction, and ARIA validation.

Both Table and DualSelect have had their ad-hoc implementations replaced with Paginator. The DualSelect storybook has been updated to work correctly with the PageChangeEvent.

# Why

Well, for one thing, it’s not a great idea to multiple incompatible versions of the same component lying around.

For another, I’m about to add a third component that uses a paginator, and I didn’t want to add yet another paginator implementation to the mix. May as well clean it all up now.

* Noticed some leftover patternfly stuff.

* Man, my aim is terrible.

* Okay, that's multiple linters I've got to roll into my pre-commit check.

* A bit of nitpicking.
2026-09-23 08:20:07 -07:00
Connor Peshek 73201b2af7 internal/utils: Add X25519MLKEM768 (#26368) 2026-09-23 15:50:03 +01:00
authentik-automation[bot] 58560ccfa6 core, web: update translations (#26364)
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-09-23 14:41:14 +02:00
Ryan Pesek 513359590c packages/django-dramatiq-postgres: reconcile pending tasks during continuous notifications (#26152) 2026-09-23 14:25:01 +02:00
dependabot[bot] 963c594a42 core: bump goauthentik/fips-python from a0936ae to d15ba00 in /lifecycle/container (#26371)
core: bump goauthentik/fips-python in /lifecycle/container

Bumps goauthentik/fips-python from `a0936ae` to `d15ba00`.

---
updated-dependencies:
- dependency-name: goauthentik/fips-python
  dependency-version: 3.14.7-slim-trixie-fips
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-23 13:02:49 +02:00
dependabot[bot] a4ea5abc4a core: bump astral-sh/uv from 0.12.17 to 0.12.18 in /lifecycle/container (#26372)
Bumps [astral-sh/uv](https://github.com/astral-sh/uv) from 0.12.17 to 0.12.18.
- [Release notes](https://github.com/astral-sh/uv/releases)
- [Changelog](https://github.com/astral-sh/uv/blob/main/CHANGELOG.md)
- [Commits](https://github.com/astral-sh/uv/compare/0.12.17...0.12.18)

---
updated-dependencies:
- dependency-name: astral-sh/uv
  dependency-version: 0.12.18
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-23 13:02:44 +02:00
dependabot[bot] c623c2e033 core: bump library/golang from 9baa6b4 to 433790e in /lifecycle/container (#26373)
core: bump library/golang in /lifecycle/container

Bumps library/golang from `9baa6b4` to `433790e`.

---
updated-dependencies:
- dependency-name: library/golang
  dependency-version: 1.27-trixie
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-23 13:02:40 +02:00
dependabot[bot] 4b3325c3d9 core: bump library/nginx from f6ee2ef to 908dc23 in /website (#26375)
Bumps library/nginx from `f6ee2ef` to `908dc23`.

---
updated-dependencies:
- dependency-name: library/nginx
  dependency-version: 1.31.6-trixie
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-23 13:02:35 +02:00
dependabot[bot] 059bd7be3a ci: bump taiki-e/install-action from 2.87.16 to 2.87.17 in /.github/actions/setup (#26378)
ci: bump taiki-e/install-action in /.github/actions/setup

Bumps [taiki-e/install-action](https://github.com/taiki-e/install-action) from 2.87.16 to 2.87.17.
- [Release notes](https://github.com/taiki-e/install-action/releases)
- [Changelog](https://github.com/taiki-e/install-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/taiki-e/install-action/compare/9114bf4d891761788c546334fd37538eae1bf8b3...94c31af3204a9f15ab40b35ad084410b905bbc73)

---
updated-dependencies:
- dependency-name: taiki-e/install-action
  dependency-version: 2.87.17
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-23 13:02:30 +02:00
dependabot[bot] cac9e17779 core: bump durstr from 0.5.1 to 0.6.0 (#26379)
Bumps [durstr](https://github.com/iksuddle/durstr) from 0.5.1 to 0.6.0.
- [Release notes](https://github.com/iksuddle/durstr/releases)
- [Commits](https://github.com/iksuddle/durstr/compare/v0.5.1...v0.6.0)

---
updated-dependencies:
- dependency-name: durstr
  dependency-version: 0.6.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-23 11:10:43 +03:00
dependabot[bot] 305a1c345c core: bump urllib3 from 2.7.0 to 2.8.0 (#26377)
Bumps [urllib3](https://github.com/urllib3/urllib3) from 2.7.0 to 2.8.0.
- [Release notes](https://github.com/urllib3/urllib3/releases)
- [Changelog](https://github.com/urllib3/urllib3/blob/main/CHANGES.rst)
- [Commits](https://github.com/urllib3/urllib3/compare/2.7.0...2.8.0)

---
updated-dependencies:
- dependency-name: urllib3
  dependency-version: 2.8.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-23 11:10:06 +03:00
dependabot[bot] 8cbfda50ce core: bump axllent/mailpit from v1.31.1 to v1.31.2 in /tests/e2e (#26376)
Bumps axllent/mailpit from v1.31.1 to v1.31.2.

---
updated-dependencies:
- dependency-name: axllent/mailpit
  dependency-version: v1.31.2
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-23 11:09:28 +03:00
Marcelo Elizeche Landó 6f3fa63767 lib: support display names in ak_send_email (#26150)
* support display names in ak_send_email

* document named ak_send_email recipients

* simplify comparison
2026-09-23 06:46:56 +00:00
Teffen Ellis 994410f7bd web: reformat with oxfmt (#26062)
* Fix missing packages.

* Fix links base route.
2026-09-23 04:50:07 +01:00
Marc 'risson' Schmitt 449f299694 packages/ak-axum/extract/client_ip: use the leftmost X-Forwarded-For IP (#26353)
Signed-off-by: Marc 'risson' Schmitt <[email protected]>
2026-09-22 16:11:38 +00:00
Marc 'risson' Schmitt 296557b680 core: add index on User.email (#26354)
Signed-off-by: Marc 'risson' Schmitt <[email protected]>
2026-09-22 18:08:06 +02:00
Marc-Etienne BarrutandJens Langhammer 239399c722 providers/scim: add Basic authentication mode (#26277)
* providers/scim: build OAuth authorization URLs only for interactive mode

Only the interactive OAuth mode uses the start and callback URLs. The
guard listed the modes that do not need them, so any mode added later
would get a URL it cannot use. Check for the one mode that does.

* providers/scim: add Basic authentication mode

Some SCIM service providers only accept HTTP Basic authentication and
have no way to consume a bearer token. Add a "basic" mode that stores a
username and password on the provider, alongside the existing token and
OAuth modes.

The header is built here rather than with requests' HTTPBasicAuth, which
encodes credentials as latin-1. RFC 7617 expects UTF-8.

The password is write-only over the API, like the existing token field.
Basic needs no license, same as the token mode.

Closes #15267

* core: regenerate API schema and clients

* web: add Basic authentication mode to the SCIM provider form

* providers/scim: test outgoing request authentication headers

Assert the Authorization header authentik sends for the token and basic
modes, including UTF-8 encoding of non-ASCII credentials.

* website/docs: document the SCIM Basic authentication mode

---------

Co-authored-by: Jens Langhammer <[email protected]>
2026-09-22 16:53:39 +01:00
Denys KnertserandMarc 'risson' Schmitt f859467fa8 packages/ak-common/config: fix list values from env variables parsing (#26081)
Co-authored-by: Marc 'risson' Schmitt <[email protected]>
Signed-off-by: Marc 'risson' Schmitt <[email protected]>
2026-09-22 17:21:42 +02:00
Marc 'risson' Schmitt d0aabb7c44 providers/proxy: fix startup reconcile not being atomic (#26344)
Signed-off-by: Marc 'risson' Schmitt <[email protected]>
2026-09-22 15:16:08 +01:00
Jens L. f02fa4610e endpoints: retain last fact snapshot (#26343) 2026-09-22 14:56:06 +01:00
Ryan Pesek 1436c66e68 packages/django-dramatiq-postgres/broker: don't unlock messages that weren't locked (#26252) 2026-09-22 15:38:39 +02:00
dependabot[bot] 910ac224d6 core: bump goauthentik/fips-python from 05c6c36 to a0936ae in /lifecycle/container (#26330)
core: bump goauthentik/fips-python in /lifecycle/container

Bumps goauthentik/fips-python from `05c6c36` to `a0936ae`.

---
updated-dependencies:
- dependency-name: goauthentik/fips-python
  dependency-version: 3.14.7-slim-trixie-fips
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-22 15:27:20 +02:00
dependabot[bot] dcad8ad8f7 ci: bump taiki-e/install-action from 2.87.15 to 2.87.16 in /.github/actions/setup (#26334)
ci: bump taiki-e/install-action in /.github/actions/setup

Bumps [taiki-e/install-action](https://github.com/taiki-e/install-action) from 2.87.15 to 2.87.16.
- [Release notes](https://github.com/taiki-e/install-action/releases)
- [Changelog](https://github.com/taiki-e/install-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/taiki-e/install-action/compare/4076c08d76dba979c11a7285295b0716c1d67908...9114bf4d891761788c546334fd37538eae1bf8b3)

---
updated-dependencies:
- dependency-name: taiki-e/install-action
  dependency-version: 2.87.16
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-22 15:26:47 +02:00
authentik-automation[bot] a2c0264aaf core, web: update translations (#26329)
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-09-22 15:26:07 +02:00
Jens L. 18ef70e713 enterprise/providers/scim: fix oauth interactive check (#26341) 2026-09-22 14:07:34 +01:00
transifex-integration[bot] a1400cd57e translate: Updates for project authentik and language da_DK (#26340) 2026-09-22 14:56:40 +02:00
e630aabb15 outposts/proxy: don't negotiate HTTP/2 to upstreams (#26281)
Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
Co-authored-by: Marc 'risson' Schmitt <[email protected]>
Signed-off-by: The Ginger <[email protected]>
2026-09-22 14:55:34 +02:00
Simonyi Gergő 6c45459077 core: load and serialize users once in GroupViewSet.list (#25615)
load and serialize users once in `GroupViewSet.list`
2026-09-22 11:10:14 +02:00
Connor Peshek 3c8726492b sources/saml: Fallback NameID (#25713)
* sources/saml: fix unhandled error on NameID without Format attribute

* fix error handling

* fix description
2026-09-22 08:29:17 +00:00
dependabot[bot] c55cd00ccd core: bump uvicorn[standard] from 0.52.4 to 0.53.0 (#26333)
Bumps [uvicorn[standard]](https://github.com/Kludex/uvicorn) from 0.52.4 to 0.53.0.
- [Release notes](https://github.com/Kludex/uvicorn/releases)
- [Changelog](https://github.com/Kludex/uvicorn/blob/main/docs/release-notes.md)
- [Commits](https://github.com/Kludex/uvicorn/compare/0.52.4...0.53.0)

---
updated-dependencies:
- dependency-name: uvicorn[standard]
  dependency-version: 0.53.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-22 10:38:47 +03:00
dependabot[bot] fb9ec6a94e core: bump psycopg[c,pool] from 3.3.5 to 3.3.6 (#26332)
Bumps [psycopg[c,pool]](https://github.com/psycopg/psycopg) from 3.3.5 to 3.3.6.
- [Changelog](https://github.com/psycopg/psycopg/blob/master/docs/news.rst)
- [Commits](https://github.com/psycopg/psycopg/compare/3.3.5...3.3.6)

---
updated-dependencies:
- dependency-name: psycopg[c,pool]
  dependency-version: 3.3.6
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-22 10:37:34 +03:00
Connor Peshek f7fdbab8ae providers/oauth2: track RP logins per session for logout (#26310) 2026-09-21 17:34:27 +00:00
Connor Peshek c4731a88ff common/saml: Fix metadata to serve only the leaf of a PEM chain (#26273)
* common/saml: Fix metadata to serve only the leaf of a PEM chain

* clean up
2026-09-21 16:31:04 +01:00
dependabot[bot] 57441353da website: bump the build group in /website with 3 updates (#26292)
Bumps the build group in /website with 3 updates: [@rspack/binding-darwin-arm64](https://github.com/web-infra-dev/rspack/tree/HEAD/packages/rspack), [@rspack/binding-linux-arm64-gnu](https://github.com/web-infra-dev/rspack/tree/HEAD/packages/rspack) and [@rspack/binding-linux-x64-gnu](https://github.com/web-infra-dev/rspack/tree/HEAD/packages/rspack).


Updates `@rspack/binding-darwin-arm64` from 2.2.4 to 2.2.6
- [Release notes](https://github.com/web-infra-dev/rspack/releases)
- [Commits](https://github.com/web-infra-dev/rspack/commits/v2.2.6/packages/rspack)

Updates `@rspack/binding-linux-arm64-gnu` from 2.2.4 to 2.2.6
- [Release notes](https://github.com/web-infra-dev/rspack/releases)
- [Commits](https://github.com/web-infra-dev/rspack/commits/v2.2.6/packages/rspack)

Updates `@rspack/binding-linux-x64-gnu` from 2.2.4 to 2.2.6
- [Release notes](https://github.com/web-infra-dev/rspack/releases)
- [Commits](https://github.com/web-infra-dev/rspack/commits/v2.2.6/packages/rspack)

---
updated-dependencies:
- dependency-name: "@rspack/binding-darwin-arm64"
  dependency-version: 2.2.6
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: build
- dependency-name: "@rspack/binding-linux-arm64-gnu"
  dependency-version: 2.2.6
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: build
- dependency-name: "@rspack/binding-linux-x64-gnu"
  dependency-version: 2.2.6
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: build
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-21 15:59:52 +01:00
Dominic Roy bff1ad7855 website/docs: rac: explain authorization reuse and disconnect behavior (#26288) 2026-09-21 09:53:49 -04:00
dependabot[bot] 102e4c7d40 core: bump astral-sh/uv from 0.12.16 to 0.12.17 in /lifecycle/container (#26294)
Bumps [astral-sh/uv](https://github.com/astral-sh/uv) from 0.12.16 to 0.12.17.
- [Release notes](https://github.com/astral-sh/uv/releases)
- [Changelog](https://github.com/astral-sh/uv/blob/main/CHANGELOG.md)
- [Commits](https://github.com/astral-sh/uv/compare/0.12.16...0.12.17)

---
updated-dependencies:
- dependency-name: astral-sh/uv
  dependency-version: 0.12.17
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-21 13:14:48 +00:00
6f2e7a85c9 sources/kerberos, sources/ldap: Save source connections when linking an existing user/group (#26059)
* sources/kerberos, sources/ldap: Save source connections when linking an existing user or group

* add tests

Signed-off-by: Jens Langhammer <[email protected]>

---------

Signed-off-by: Jens Langhammer <[email protected]>
Co-authored-by: Dewi Roberts <[email protected]>
Co-authored-by: Jens Langhammer <[email protected]>
2026-09-21 14:06:40 +01:00
dependabot[bot] cb9cc7b2b7 core: bump goauthentik/fips-python from 863aded to 05c6c36 in /lifecycle/container (#26295)
Signed-off-by: dependabot[bot] <[email protected]>
2026-09-21 12:42:15 +00:00
dependabot[bot] 27702cf4c0 core: bump library/node from 14bf3ea to d82e1d0 in /lifecycle/container (#26240)
Signed-off-by: dependabot[bot] <[email protected]>
2026-09-21 14:39:54 +02:00
dependabot[bot] 396d1925a3 ci: bump the codeql group across 1 directory with 3 updates (#26304)
Signed-off-by: dependabot[bot] <[email protected]>
2026-09-21 14:31:46 +02:00
dependabot[bot] f089b46c13 ci: bump codecov/codecov-action from 7.1.0 to 7.1.1 in /.github/actions/test-results (#26307)
Signed-off-by: dependabot[bot] <[email protected]>
2026-09-21 14:31:31 +02:00
dependabot[bot] c9e469e47e ci: bump codecov/codecov-action from 7.1.0 to 7.1.1 (#26305)
Signed-off-by: dependabot[bot] <[email protected]>
2026-09-21 14:31:28 +02:00
dependabot[bot] d5a56305ce ci: bump taiki-e/install-action from 2.87.13 to 2.87.15 in /.github/actions/setup (#26306)
Signed-off-by: dependabot[bot] <[email protected]>
2026-09-21 14:31:14 +02:00
dependabot[bot] 38fca6b349 core: bump debugpy from 1.8.21 to 1.8.22 (#26303)
Bumps [debugpy](https://github.com/microsoft/debugpy) from 1.8.21 to 1.8.22.
- [Release notes](https://github.com/microsoft/debugpy/releases)
- [Commits](https://github.com/microsoft/debugpy/compare/v1.8.21...v1.8.22)

---
updated-dependencies:
- dependency-name: debugpy
  dependency-version: 1.8.22
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-21 08:53:22 +00:00
dependabot[bot] a663f599fa core: bump openid/conformance-suite from release-v5.3.0 to release-v5.3.1 in /tests/openid_conformance (#26301)
core: bump openid/conformance-suite in /tests/openid_conformance

Bumps openid/conformance-suite from release-v5.3.0 to release-v5.3.1.

---
updated-dependencies:
- dependency-name: openid/conformance-suite
  dependency-version: release-v5.3.1
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-21 08:51:22 +00:00
dependabot[bot] bfb64fb09f core: bump jwcrypto from 1.6.0 to 1.6.1 (#26302)
Bumps [jwcrypto](https://github.com/latchset/jwcrypto) from 1.6.0 to 1.6.1.
- [Release notes](https://github.com/latchset/jwcrypto/releases)
- [Commits](https://github.com/latchset/jwcrypto/compare/v1.6.0...v1.6.1)

---
updated-dependencies:
- dependency-name: jwcrypto
  dependency-version: 1.6.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-21 11:26:24 +03:00
dependabot[bot] e3a46617ff core: bump openid/conformance-suite/nginx from release-v5.3.0 to release-v5.3.1 in /tests/openid_conformance (#26300)
core: bump openid/conformance-suite/nginx in /tests/openid_conformance

Bumps openid/conformance-suite/nginx from release-v5.3.0 to release-v5.3.1.

---
updated-dependencies:
- dependency-name: openid/conformance-suite/nginx
  dependency-version: release-v5.3.1
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-21 11:25:55 +03:00
dependabot[bot] 90d87f13ee core: bump ruff from 0.16.7 to 0.16.8 (#26299)
Bumps [ruff](https://github.com/astral-sh/ruff) from 0.16.7 to 0.16.8.
- [Release notes](https://github.com/astral-sh/ruff/releases)
- [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md)
- [Commits](https://github.com/astral-sh/ruff/compare/0.16.7...0.16.8)

---
updated-dependencies:
- dependency-name: ruff
  dependency-version: 0.16.8
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-21 11:24:47 +03:00
dependabot[bot] 247c3ea28a core: bump sentry-sdk from 2.69.1 to 2.69.2 (#26298)
Bumps [sentry-sdk](https://github.com/getsentry/sentry-python) from 2.69.1 to 2.69.2.
- [Release notes](https://github.com/getsentry/sentry-python/releases)
- [Changelog](https://github.com/getsentry/sentry-python/blob/master/CHANGELOG.md)
- [Commits](https://github.com/getsentry/sentry-python/compare/2.69.1...2.69.2)

---
updated-dependencies:
- dependency-name: sentry-sdk
  dependency-version: 2.69.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-21 11:24:16 +03:00
dependabot[bot] 4dfd54d39e core: bump goauthentik/selenium from 151.0-ak-0.61.0 to 152.0-ak-0.62.0 in /tests/e2e (#26293)
core: bump goauthentik/selenium in /tests/e2e

Bumps [goauthentik/selenium](https://github.com/SeleniumHQ/docker-selenium) from 151.0-ak-0.61.0 to 152.0-ak-0.62.0.
- [Release notes](https://github.com/SeleniumHQ/docker-selenium/releases)
- [Commits](https://github.com/SeleniumHQ/docker-selenium/commits)

---
updated-dependencies:
- dependency-name: goauthentik/selenium
  dependency-version: 152.0-ak-0.62.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-21 11:23:35 +03:00
Dominic Roy fa2e86c4f9 website/docs: fix two word-swap typos (#26283) 2026-09-21 07:20:45 +01:00
Dominic Roy 29cdb2c4bf website/docs: clarify LDAP sync direction and document user creation (#26094)
* website/docs: clarify LDAP sync direction and document user creation

Clarify that LDAP user and group synchronization is inbound and that `SkipObject` does not affect password writeback or custom LDAP writes.

Add a notification policy example for creating users on an external LDAP server.

Closes: #20886

* website/docs: explain LDAP user creation example
2026-09-21 07:20:02 +01:00
Dominic Roy c5c5532cdf website/docs: document percent-encoding proxy headers (#26093)
Non-ASCII proxy header values can cause requests or WebSocket handshakes to fail in upstream applications.

Document how to use an existing scope mapping to percent-encode `X-authentik-name` and other headers.

Closes: #24156
2026-09-20 19:13:03 +00:00
Jens L.andDewi Roberts bafc5e1eed providers/radius: allow returning additional properties, continue on failed mapping (#26029)
* providers/radius: continue on failed mapping, allow returning

Signed-off-by: Jens Langhammer <[email protected]>

* add tests

Signed-off-by: Jens Langhammer <[email protected]>

* easier syntax for vendor?

Signed-off-by: Jens Langhammer <[email protected]>

* rename

Signed-off-by: Jens Langhammer <[email protected]>

---------

Signed-off-by: Jens Langhammer <[email protected]>
Co-authored-by: Dewi Roberts <[email protected]>
2026-09-18 14:04:24 +01:00
MikeandClaude Opus 5 c3365c5b8d stages/authenticator_static: show tokens in hyphenated groups, accept separators (#26251)
* stages/authenticator_static: show tokens in hyphenated groups, accept separators

Static tokens are usually the last-resort backup and are often copied
onto paper and typed back by hand. A 12+ character unbroken string is
hard to read back and easy to mistype, so display them in groups of
four (abcd-efgh-ijkl).

Stored tokens are unchanged (no migration). On verification, hyphens
and whitespace are stripped before matching; generated tokens are
alphanumeric, so this cannot change which token matches. The raw input
is still matched too, so any existing token containing a separator
keeps working. The static code input's pattern now allows hyphens and
spaces.

refs #15917

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>

* tests/e2e: read the static token as displayed, then strip the hyphens

test_static_setup took the first token's on-screen text and looked it up
in the database verbatim. Tokens are now displayed in hyphenated groups
but stored without hyphens, so assert the displayed format and strip the
hyphens before the lookup.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>

---------

Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
2026-09-18 12:55:44 +01:00
authentik-automation[bot] 7af9c8a5e2 core, web: update translations (#26250)
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: authentik-automation[bot] <135050075+authentik-automation[bot]@users.noreply.github.com>
2026-09-18 12:14:57 +01:00
dependabot[bot] bcffa818de ci: bump docker/setup-buildx-action from 4.3.0 to 4.4.0 (#26262)
Bumps [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) from 4.3.0 to 4.4.0.
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](https://github.com/docker/setup-buildx-action/compare/37fe631027851001ddb9b187196cc803df7f5f0e...594f3bf4285d9ea8dc53c9a0c9c4092420091003)

---
updated-dependencies:
- dependency-name: docker/setup-buildx-action
  dependency-version: 4.4.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-18 12:00:37 +01:00
dependabot[bot] d7a7d653f6 ci: bump aws-actions/configure-aws-credentials from 6.2.4 to 6.3.0 (#26261)
Bumps [aws-actions/configure-aws-credentials](https://github.com/aws-actions/configure-aws-credentials) from 6.2.4 to 6.3.0.
- [Release notes](https://github.com/aws-actions/configure-aws-credentials/releases)
- [Changelog](https://github.com/aws-actions/configure-aws-credentials/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws-actions/configure-aws-credentials/compare/cbe3b392738ccf3f987d68400dafcf4b0624a56c...e1253824e5c10ff9df46874f81ed3ec929e19cfd)

---
updated-dependencies:
- dependency-name: aws-actions/configure-aws-credentials
  dependency-version: 6.3.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-18 11:40:25 +01:00
dependabot[bot] 5a2b281eef ci: bump docker/setup-qemu-action from 4.3.0 to 4.4.0 (#26260)
Bumps [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action) from 4.3.0 to 4.4.0.
- [Release notes](https://github.com/docker/setup-qemu-action/releases)
- [Commits](https://github.com/docker/setup-qemu-action/compare/1f40c72289eff860ee54a304f1438e3cff362e0a...99012661954931238ded8c8b007157a8430204e1)

---
updated-dependencies:
- dependency-name: docker/setup-qemu-action
  dependency-version: 4.4.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-18 11:39:29 +01:00
dependabot[bot] 7eb2849ebb core: bump django-countries from 9.0.0 to 9.1.0 (#26259)
Bumps [django-countries](https://github.com/SmileyChris/django-countries) from 9.0.0 to 9.1.0.
- [Changelog](https://github.com/SmileyChris/django-countries/blob/main/CHANGES.md)
- [Commits](https://github.com/SmileyChris/django-countries/compare/v9.0.0...v9.1.0)

---
updated-dependencies:
- dependency-name: django-countries
  dependency-version: 9.1.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-18 11:39:14 +01:00
dependabot[bot] dafc8bc11d web: bump the rollup group across 1 directory with 4 updates (#26253)
Bumps the rollup group with 4 updates in the /web directory: [@rollup/rollup-darwin-arm64](https://github.com/rollup/rollup), [@rollup/rollup-linux-arm64-gnu](https://github.com/rollup/rollup), [@rollup/rollup-linux-x64-gnu](https://github.com/rollup/rollup) and [rollup](https://github.com/rollup/rollup).


Updates `@rollup/rollup-darwin-arm64` from 4.63.1 to 4.63.3
- [Release notes](https://github.com/rollup/rollup/releases)
- [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rollup/rollup/compare/v4.63.1...v4.63.3)

Updates `@rollup/rollup-linux-arm64-gnu` from 4.63.1 to 4.63.3
- [Release notes](https://github.com/rollup/rollup/releases)
- [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rollup/rollup/compare/v4.63.1...v4.63.3)

Updates `@rollup/rollup-linux-x64-gnu` from 4.63.1 to 4.63.3
- [Release notes](https://github.com/rollup/rollup/releases)
- [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rollup/rollup/compare/v4.63.1...v4.63.3)

Updates `rollup` from 4.63.1 to 4.63.3
- [Release notes](https://github.com/rollup/rollup/releases)
- [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rollup/rollup/compare/v4.63.1...v4.63.3)

---
updated-dependencies:
- dependency-name: "@rollup/rollup-darwin-arm64"
  dependency-version: 4.63.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: rollup
- dependency-name: "@rollup/rollup-linux-arm64-gnu"
  dependency-version: 4.63.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: rollup
- dependency-name: "@rollup/rollup-linux-x64-gnu"
  dependency-version: 4.63.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: rollup
- dependency-name: rollup
  dependency-version: 4.63.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: rollup
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-18 12:31:46 +02:00
dependabot[bot] d980d6cef7 core: bump goauthentik/fips-python from 8fbe813 to 863aded in /lifecycle/container (#26254)
core: bump goauthentik/fips-python in /lifecycle/container

Bumps goauthentik/fips-python from `8fbe813` to `863aded`.

---
updated-dependencies:
- dependency-name: goauthentik/fips-python
  dependency-version: 3.14.7-slim-trixie-fips
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-18 12:31:41 +02:00
dependabot[bot] 693f728b75 core: bump astral-sh/uv from 0.12.15 to 0.12.16 in /lifecycle/container (#26255)
Bumps [astral-sh/uv](https://github.com/astral-sh/uv) from 0.12.15 to 0.12.16.
- [Release notes](https://github.com/astral-sh/uv/releases)
- [Changelog](https://github.com/astral-sh/uv/blob/main/CHANGELOG.md)
- [Commits](https://github.com/astral-sh/uv/compare/0.12.15...0.12.16)

---
updated-dependencies:
- dependency-name: astral-sh/uv
  dependency-version: 0.12.16
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-18 12:31:36 +02:00
dependabot[bot] 3e27089162 core: bump clap from 4.6.6 to 4.6.7 (#26256)
Bumps [clap](https://github.com/clap-rs/clap) from 4.6.6 to 4.6.7.
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/clap_complete-v4.6.6...clap_complete-v4.6.7)

---
updated-dependencies:
- dependency-name: clap
  dependency-version: 4.6.7
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-18 12:31:31 +02:00
dependabot[bot] a01319f1f1 core: bump library/nginx from 78758a4 to f6ee2ef in /website (#26257)
Bumps library/nginx from `78758a4` to `f6ee2ef`.

---
updated-dependencies:
- dependency-name: library/nginx
  dependency-version: 1.31.6-trixie
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-18 12:31:27 +02:00
dependabot[bot] c8e57e3cc4 core: bump aws-cdk-lib from 2.268.0 to 2.269.0 (#26258)
Bumps [aws-cdk-lib](https://github.com/aws/aws-cdk) from 2.268.0 to 2.269.0.
- [Release notes](https://github.com/aws/aws-cdk/releases)
- [Changelog](https://github.com/aws/aws-cdk/blob/main/CHANGELOG.v2.alpha.md)
- [Commits](https://github.com/aws/aws-cdk/compare/v2.268.0...v2.269.0)

---
updated-dependencies:
- dependency-name: aws-cdk-lib
  dependency-version: 2.269.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-18 12:31:22 +02:00
dependabot[bot] 2680721340 ci: bump docker/build-push-action from 7.3.0 to 7.4.0 (#26263)
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 7.3.0 to 7.4.0.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/53b7df96c91f9c12dcc8a07bcb9ccacbed38856a...c3c9e263c25d99ce0380d002d59b67737d91b0dc)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-version: 7.4.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-18 12:31:03 +02:00
dependabot[bot] 28b448409a ci: bump taiki-e/install-action from 2.87.12 to 2.87.13 in /.github/actions/setup (#26264)
ci: bump taiki-e/install-action in /.github/actions/setup

Bumps [taiki-e/install-action](https://github.com/taiki-e/install-action) from 2.87.12 to 2.87.13.
- [Release notes](https://github.com/taiki-e/install-action/releases)
- [Changelog](https://github.com/taiki-e/install-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/taiki-e/install-action/compare/3f74d7c16a4242f1c95561e98edc25d36adb4375...26e9283f268b880168bdbd2c545dfcd60ec2c6ab)

---
updated-dependencies:
- dependency-name: taiki-e/install-action
  dependency-version: 2.87.13
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-18 12:30:57 +02:00
Teffen EllisandPlaypen Agent fd5aee1fd1 web: Replace JSDoc types with TypeScript (#25525)
* web: replace JSDoc types with TypeScript sources for build tooling

Node runs TypeScript directly now, so the build scripts, bundler plugins,
and `@goauthentik/core` no longer need to be JavaScript annotated with
JSDoc. Every module reachable from `scripts/build-web.ts` is now real
TypeScript, run under Node's type stripping.

The package.json `imports`/`exports` maps point at the `.ts` sources
instead of pairing a `.js` runtime entry with a generated `.d.ts` under
`out/`, so types resolve on a clean checkout without a declaration build
first. Type stripping does not rewrite `.js` specifiers back to `.ts`,
so relative imports name the real file on disk and `web/tsconfig.json`
enables `allowImportingTsExtensions`.

Two suppressions in the locale scripts turned out to be a real
soundness gap rather than the `@lit/localize-tools` bug the tsconfig
comment claimed. `Config["output"]` is a union, and `outputDir` is only
required on its runtime variant, so the unnarrowed access was
legitimately `string | undefined`. `build-locales` only works in
runtime mode, so it now validates `output.mode` up front the way it
already validated `interchange.format`; the narrowing that follows
removes both the cast and the `@ts-expect-error`, and a misconfigured
`lit-localize.json` fails with a clear message instead of a TypeError
inside the library. Regenerating all 18 locale modules produces
byte-identical output.

Co-Authored-By: Playpen Agent <[email protected]>

* web/elements: show forms slotted into a wizard step

A Form renders nothing while `visible` is false, and that flag is driven by an
IntersectionObserver on the form itself. The two states feed each other: an
invisible form renders nothing, a form that renders nothing has no box, and an
element with no box never reports as intersecting. A step that lands in that
state stays blank permanently -- no error, no console message, just an empty
wizard page whose Create button then posts an empty payload.

ModalForm and ak-modal already set the flag when they slot a form in. Nothing
did so for a wizard step, which left it to chance whether the observer happened
to catch the element while it still had layout.

Confirmed against a running instance: the provider wizard's OAuth2 step mounted
ak-provider-oauth2-form with an empty shadow root, `visible === false` and a 0x0
box, and setting `visible = true` by hand rendered all nine inputs immediately.

This was surfacing as an intermittent e2e failure in every suite that drives the
provider wizard -- the dialog never closes, because the wizard cannot advance
past a step whose form was never there.

* web/elements: keep the current selection in a search select's options

fetchObjects returns a single page, so an object selected out of band -- one just
created through the dropdown's own action, say -- is frequently absent from it.
The view resolves a value's label from the options alone and prints the raw value
when it finds none, so the control would sit there showing a bare primary key
while holding a perfectly good selected object.

Confirmed on the invitation form, whose flow select creates an enrollment flow
from its own action: the new flow sorts by slug into a page the select had not
fetched, so it displayed a UUID. Include the selection in the options when the
fetched page omits it.

* Fix drift.

---------

Co-authored-by: Playpen Agent <[email protected]>
2026-09-18 04:23:25 +00:00
dependabot[bot] 095195c795 website: bump the build group in /website with 3 updates (#26242)
Bumps the build group in /website with 3 updates: [@rspack/binding-darwin-arm64](https://github.com/web-infra-dev/rspack/tree/HEAD/packages/rspack), [@rspack/binding-linux-arm64-gnu](https://github.com/web-infra-dev/rspack/tree/HEAD/packages/rspack) and [@rspack/binding-linux-x64-gnu](https://github.com/web-infra-dev/rspack/tree/HEAD/packages/rspack).


Updates `@rspack/binding-darwin-arm64` from 2.2.3 to 2.2.4
- [Release notes](https://github.com/web-infra-dev/rspack/releases)
- [Commits](https://github.com/web-infra-dev/rspack/commits/v2.2.4/packages/rspack)

Updates `@rspack/binding-linux-arm64-gnu` from 2.2.3 to 2.2.4
- [Release notes](https://github.com/web-infra-dev/rspack/releases)
- [Commits](https://github.com/web-infra-dev/rspack/commits/v2.2.4/packages/rspack)

Updates `@rspack/binding-linux-x64-gnu` from 2.2.3 to 2.2.4
- [Release notes](https://github.com/web-infra-dev/rspack/releases)
- [Commits](https://github.com/web-infra-dev/rspack/commits/v2.2.4/packages/rspack)

---
updated-dependencies:
- dependency-name: "@rspack/binding-darwin-arm64"
  dependency-version: 2.2.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: build
- dependency-name: "@rspack/binding-linux-arm64-gnu"
  dependency-version: 2.2.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: build
- dependency-name: "@rspack/binding-linux-x64-gnu"
  dependency-version: 2.2.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: build
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-17 19:41:24 +01:00
dependabot[bot] dcc020fa98 web: bump the react group across 2 directories with 4 updates (#26220)
Bumps the react group with 4 updates in the / directory: [react](https://github.com/react/react/tree/HEAD/packages/react), [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react), [react-dom](https://github.com/react/react/tree/HEAD/packages/react-dom) and [@types/react-dom](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react-dom).
Bumps the react group with 2 updates in the /web directory: [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react) and [@types/react-dom](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react-dom).


Updates `react` from 19.2.8 to 19.3.0
- [Release notes](https://github.com/react/react/releases)
- [Changelog](https://github.com/react/react/blob/main/CHANGELOG.md)
- [Commits](https://github.com/react/react/commits/v19.3.0/packages/react)

Updates `@types/react` from 19.2.17 to 19.3.0
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react)

Updates `react-dom` from 19.2.8 to 19.3.0
- [Release notes](https://github.com/react/react/releases)
- [Changelog](https://github.com/react/react/blob/main/CHANGELOG.md)
- [Commits](https://github.com/react/react/commits/v19.3.0/packages/react-dom)

Updates `@types/react-dom` from 19.2.3 to 19.3.0
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react-dom)

Updates `@types/react` from 19.2.17 to 19.3.0
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react)

Updates `@types/react-dom` from 19.2.3 to 19.3.0
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react-dom)

Updates `@types/react` from 19.2.17 to 19.3.0
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react)

Updates `@types/react-dom` from 19.2.3 to 19.3.0
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react-dom)

Updates `@types/react` from 19.2.17 to 19.3.0
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react)

Updates `@types/react-dom` from 19.2.3 to 19.3.0
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react-dom)

---
updated-dependencies:
- dependency-name: "@types/react"
  dependency-version: 19.3.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: react
- dependency-name: "@types/react"
  dependency-version: 19.3.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: react
- dependency-name: "@types/react"
  dependency-version: 19.3.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: react
- dependency-name: "@types/react"
  dependency-version: 19.3.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: react
- dependency-name: "@types/react-dom"
  dependency-version: 19.3.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: react
- dependency-name: "@types/react-dom"
  dependency-version: 19.3.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: react
- dependency-name: "@types/react-dom"
  dependency-version: 19.3.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: react
- dependency-name: "@types/react-dom"
  dependency-version: 19.3.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: react
- dependency-name: react
  dependency-version: 19.3.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: react
- dependency-name: react-dom
  dependency-version: 19.3.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: react
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-17 19:41:02 +01:00
dependabot[bot] eda34f9dac core: bump openid/conformance-suite/nginx from release-v5.2.4 to release-v5.3.0 in /tests/openid_conformance (#26245)
core: bump openid/conformance-suite/nginx in /tests/openid_conformance

Bumps openid/conformance-suite/nginx from release-v5.2.4 to release-v5.3.0.

---
updated-dependencies:
- dependency-name: openid/conformance-suite/nginx
  dependency-version: release-v5.3.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-17 19:40:37 +01:00
dependabot[bot] ca8b2e6d32 core: bump openid/conformance-suite from release-v5.2.4 to release-v5.3.0 in /tests/openid_conformance (#26244)
core: bump openid/conformance-suite in /tests/openid_conformance

Bumps openid/conformance-suite from release-v5.2.4 to release-v5.3.0.

---
updated-dependencies:
- dependency-name: openid/conformance-suite
  dependency-version: release-v5.3.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-17 19:40:20 +01:00
Ken Sternberg 51c758956b website/docs: Updated release notes to reflect changes for v2026.8.3 (#26239)
* Updated release notes to reflect changes for v2026.8.3

* Prettier.

* Oxfmt?

* Oxfmt? WTF?

* Oh, come on.

* Hand-fixed a formatting bug emitted by gen-diff
2026-09-17 11:40:12 -07:00
Teffen Ellis 34a2cf0394 web/router: Fix sidebar expansion, add persistence (#26218)
* Fix issues surrounding sidebar expansion.

* web/e2e: fix search-select option matching in the form fixture

selectSearchValue did not await its own fill, so the option list was queried
before the typed filter landed -- a race every caller shared, and one that hides
itself: the control still reports a value, and the form saves without the field.

Also accept a pattern for the field label. Matching by accessible name is
substring-based, and a picker whose name comes from its placeholder cannot
otherwise be told apart from a neighbouring control with a longer name.

* web/tests: repair the user offboarding suite

Three failures, two causes.

The pending-offboardings filter is an ak-switch-input, which renders the
PatternFly switch: .pf-c-switch__toggle covers the input, so clicking the
checkbox by role is always intercepted. Drive it through form.setInputCheck,
which exists for this.

The raw-event assertions matched page.locator("pre"), which is ambiguous
whenever the dev-mode "consecutive requests" notification is on screen, since it
renders a pre of its own. Scope them to ak-event-view.

Mark the suite serial. Every test drives "Execute due user offboardings", a
single instance-wide schedule that drains every due offboarding, including ones
another test has scheduled and not yet asserted on.

* web/tests: build the account lockdown prerequisite through the UI

The suite's lockdown flow came from web/test/blueprints, but nothing applies that
directory -- not CI, which points AUTHENTIK_BLUEPRINTS_DIR at ./blueprints, and
not a local run. The flow never existed, so every test failed at the brand's
"Account lockdown flow" picker. CI did not catch it because the suite skips
without an enterprise license.

Create the flow, stage, and binding through the admin UI in beforeAll instead,
and drop the blueprint. Idempotent on the binding rather than the flow: a run
interrupted between the two leaves a flow that exists but does nothing, which a
flow-only check would skip over.

The stage name carries a random suffix so a partially-completed earlier run
cannot collide, and the completion flow is selected by string so the picker
filters -- passing a pattern leaves the field empty, and the stage then saves
silently, failing much later with "Self-service account lockdown requires a
completion flow".

* web/tests: re-submit the offboarding search until the row count settles

searchRows submitted once and returned, so the caller's count assertion polled a
DOM that had stopped changing. When a row landed after that fetch the table kept
its previous result set and the assertion could only time out, however long it
waited.

Driving the browser by hand against the same instance shows the table does
refetch on every submit, including when the query is unchanged, so re-submitting
is what picks the row up. Take the expected count and re-submit until it holds.

* web/tests: find the offboarding schedule by actor name

runDueOffboardings searched the schedules table for the schedule's display
description. The API searches id, identifier, _uid, actor_name and the rel_obj
fields (authentik/tasks/schedules/api.py), not the description, so that query
matches nothing and filters the table to empty.

The step nevertheless passed most of the time, because a fill+Enter that fails
to submit leaves the table unfiltered and the row therefore present. Two defects
cancelling out: the run failed exactly when the search did work. Forcing the
search to land on every attempt, while hardening this same step earlier, made it
fail every time -- which is what put the mechanism beyond doubt.

Search by actor name, which the API matches and the row text contains.
2026-09-17 19:30:10 +01:00
Jens L. 29e55bf991 ci: merge install and e2e instruction comments (#26238)
Signed-off-by: Jens Langhammer <[email protected]>
2026-09-17 19:11:17 +01:00
Dominic Roy 53877db097 website/docs: add enterprise badges to WS-Federation guides (#26236) 2026-09-17 16:59:55 +00:00
Yilia LinandDominic R 97212174be website/integrations: add AISIX AI Gateway guide (#26183)
* website/integrations: add AISIX AI Gateway guide

Signed-off-by: Yilia Lin <[email protected]>

* cleanup

---------

Signed-off-by: Yilia Lin <[email protected]>
Co-authored-by: Dominic R <[email protected]>
2026-09-17 16:32:05 +00:00
Connor Peshek b888f74243 web/scim: Add gitlab compatibility option to form (#26154) 2026-09-17 17:06:12 +01:00
Simonyi Gergő ea7c2d7b59 core: fix migrations (#26208)
Currently, 2026.5.6 to 2026.8.1 fails with `InconsistentMigrationHistory`.
See https://github.com/goauthentik/authentik/issues/25996
2026-09-17 18:02:20 +02:00
authentik-automation[bot]andJens L. 836aad09f1 core, web: update translations (#26181)
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: authentik-automation[bot] <135050075+authentik-automation[bot]@users.noreply.github.com>
Co-authored-by: Jens L. <[email protected]>
2026-09-17 13:22:52 +01:00
dependabot[bot] 4fe97525e1 core: bump selenium from 4.48.0 to 4.49.0 (#26222)
Bumps [selenium](https://github.com/SeleniumHQ/Selenium) from 4.48.0 to 4.49.0.
- [Release notes](https://github.com/SeleniumHQ/Selenium/releases)
- [Commits](https://github.com/SeleniumHQ/Selenium/compare/selenium-4.48.0...selenium-4.49.0)

---
updated-dependencies:
- dependency-name: selenium
  dependency-version: 4.49.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-17 11:50:15 +01:00
dependabot[bot] 65f7423aa3 ci: bump codecov/codecov-action from 7.0.0 to 7.1.0 (#26226)
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 7.0.0 to 7.1.0.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/codecov/codecov-action/compare/fb8b3582c8e4def4969c97caa2f19720cb33a72f...0b35c9ecc4f0529d0eb674914510c22f85b196b4)

---
updated-dependencies:
- dependency-name: codecov/codecov-action
  dependency-version: 7.1.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-17 11:50:01 +01:00
dependabot[bot] d45f70d9ec core: bump coverage[toml] from 7.16.0 to 7.16.1 (#26225)
Bumps [coverage[toml]](https://github.com/coveragepy/coveragepy) from 7.16.0 to 7.16.1.
- [Release notes](https://github.com/coveragepy/coveragepy/releases)
- [Changelog](https://github.com/coveragepy/coveragepy/blob/main/CHANGES.rst)
- [Commits](https://github.com/coveragepy/coveragepy/compare/7.16.0...7.16.1)

---
updated-dependencies:
- dependency-name: coverage[toml]
  dependency-version: 7.16.1
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-17 11:49:39 +01:00
dependabot[bot] 665c5ce3b8 core: bump goauthentik/fips-python from 1398f8c to 8fbe813 in /lifecycle/container (#26221)
core: bump goauthentik/fips-python in /lifecycle/container

Bumps goauthentik/fips-python from `1398f8c` to `8fbe813`.

---
updated-dependencies:
- dependency-name: goauthentik/fips-python
  dependency-version: 3.14.7-slim-trixie-fips
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-17 11:49:23 +01:00
dependabot[bot] a8892a3d69 core: bump library/nginx from 63a925a to 78758a4 in /website (#26224)
Bumps library/nginx from `63a925a` to `78758a4`.

---
updated-dependencies:
- dependency-name: library/nginx
  dependency-version: 1.31.6-trixie
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-17 11:49:13 +01:00
dependabot[bot] d0f5f44493 ci: bump codecov/codecov-action from 7.0.0 to 7.1.0 in /.github/actions/test-results (#26227)
ci: bump codecov/codecov-action in /.github/actions/test-results

Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 7.0.0 to 7.1.0.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/codecov/codecov-action/compare/fb8b3582c8e4def4969c97caa2f19720cb33a72f...0b35c9ecc4f0529d0eb674914510c22f85b196b4)

---
updated-dependencies:
- dependency-name: codecov/codecov-action
  dependency-version: 7.1.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-17 11:48:58 +01:00
Jens L. 11954f4cd0 web: reformat new e2e tests (#26216)
Signed-off-by: Jens Langhammer <[email protected]>
2026-09-16 23:42:24 +01:00
Dominic RoyandDewi Roberts b64b225d97 website/docs: clarify translation contribution workflows (#26179)
Co-authored-by: Dewi Roberts <[email protected]>
2026-09-16 17:07:16 -04:00
Jens L. 38e4e50e92 core: add server-log endpoint for debugging (#26210)
* core: add server-log endpoint for debugging

Signed-off-by: Jens Langhammer <[email protected]>

* format

Signed-off-by: Jens Langhammer <[email protected]>

* Apply suggestion from @BeryJu

Signed-off-by: Jens L. <[email protected]>

---------

Signed-off-by: Jens Langhammer <[email protected]>
Signed-off-by: Jens L. <[email protected]>
2026-09-16 16:36:12 +01:00
Dominic RoyandClaude Opus 5 ebb8d27a88 web: e2e tests for account lockdown (#24766)
* web: e2e tests for account lockdown

Adds web/test/browser/320-account-lockdown.test.ts, covering the enterprise
account lockdown feature from both entry points:

- An administrator locking another account from the user details page.
- A user locking their own account from the Security tab of user settings,
  which deletes their session and hands them to the stage's completion flow.
- The action being hidden for the administrator's own account.

Each case proves the lockdown took effect rather than inferring it: the
target signs in successfully beforehand, and afterwards the account reads
inactive and its credentials are rejected.

Nothing seeds a lockdown flow, and the feature is inert until a brand points
at one, so test/blueprints/test-account-lockdown-flow.yaml supplies the flow,
the stage, and the binding. The suite drives only the brand field an operator
actually configures, and that hook is read-only once set so repeat runs do
not race on the brand row.

Co-Authored-By: Claude Opus 5 <[email protected]>
Signed-off-by: Dominic R <[email protected]>

* web: skip account lockdown e2e tests without an enterprise license

---------

Signed-off-by: Dominic R <[email protected]>
Co-authored-by: Claude Opus 5 <[email protected]>
2026-09-16 16:19:53 +01:00
Dominic RoyandClaude Opus 5 47c22d3dbc web: e2e tests for user offboarding (#24369)
* web: e2e tests for user offboarding

Adds web/test/browser/310-user-offboarding.test.ts, covering scheduling,
listing, cancelling, rescheduling, bulk cancellation, and execution of
user offboardings, plus the audit events they emit.

Carried over from dominic/user-offboarding-e2e and reconciled with the UI
that actually merged. Fixes needed to make the suite pass:

- Scope field interactions to the modal wrapper, not the `dialog` element.
  `ak-forms-modal`/`ak-forms-confirm`/`ak-forms-delete-bulk` slot their
  content into `ak-modal`, whose `<dialog>` lives in a shadow root, so the
  dialog is not a DOM ancestor of any field and role queries scoped to it
  matched nothing at all.
- Match the pending-offboarding trigger by text. Its label sits inside a
  `pf-tooltip`, which keeps it out of the button's accessible name.
- Address the Active row from its `dt` across to the paired `dd`; the
  `term` role does not take its name from content.
- Address the System Tasks page by element, since it renders an unnamed
  `<main>` unlike the table pages.
- Raise the timeout on the two execution tests, which wait for a schedule
  to fall due, and pin their scheduled time immediately before scheduling
  so setup cannot push it into the past.
- Reload between attempts when waiting for the completed status; the list
  does not refetch when an unchanged search query is re-submitted.

Signed-off-by: Dominic R <[email protected]>
Co-Authored-By: Claude Opus 5 <[email protected]>

* web: skip offboarding e2e tests without an enterprise license

---------

Signed-off-by: Dominic R <[email protected]>
Co-authored-by: Claude Opus 5 <[email protected]>
2026-09-16 16:19:53 +01:00
Dewi RobertsandJens Langhammer 877687b30e providers/rac: RAC disconnect fix (#26207)
* Test

* t

Signed-off-by: Jens Langhammer <[email protected]>

* rework

Signed-off-by: Jens Langhammer <[email protected]>

* oop

Signed-off-by: Jens Langhammer <[email protected]>

---------

Signed-off-by: Jens Langhammer <[email protected]>
Co-authored-by: Jens Langhammer <[email protected]>
2026-09-16 16:17:57 +01:00
Dewi Roberts 6ea0cd47d0 stages/email: handle pretend_user_exists regardless of flow designation (#25884)
Update email stage and add test
2026-09-16 13:41:53 +01:00
Dewi Roberts 3fa203b8b2 website/integrations: update synology dsm guide (#26140)
* Update doc

* Sections

* Update index.mdx
2026-09-16 13:01:55 +01:00
dependabot[bot] 763b874d08 core: bump astral-sh/uv from 0.12.14 to 0.12.15 in /lifecycle/container (#26185)
Bumps [astral-sh/uv](https://github.com/astral-sh/uv) from 0.12.14 to 0.12.15.
- [Release notes](https://github.com/astral-sh/uv/releases)
- [Changelog](https://github.com/astral-sh/uv/blob/main/CHANGELOG.md)
- [Commits](https://github.com/astral-sh/uv/compare/0.12.14...0.12.15)

---
updated-dependencies:
- dependency-name: astral-sh/uv
  dependency-version: 0.12.15
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-16 11:24:09 +01:00
dependabot[bot] 02a82a9891 core: bump goauthentik/fips-python from 8f10ac7 to 1398f8c in /lifecycle/container (#26186)
core: bump goauthentik/fips-python in /lifecycle/container

Bumps goauthentik/fips-python from `8f10ac7` to `1398f8c`.

---
updated-dependencies:
- dependency-name: goauthentik/fips-python
  dependency-version: 3.14.7-slim-trixie-fips
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-16 11:24:04 +01:00
dependabot[bot] 60c8777f69 core: bump library/nginx from 1.31.5-trixie to 1.31.6-trixie in /website (#26188)
Bumps library/nginx from 1.31.5-trixie to 1.31.6-trixie.

---
updated-dependencies:
- dependency-name: library/nginx
  dependency-version: 1.31.6-trixie
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-16 11:18:14 +01:00
dependabot[bot] 46eaaf27ae core: bump pytest-randomly from 4.1.0 to 5.0.0 (#26191)
Bumps [pytest-randomly](https://github.com/pytest-dev/pytest-randomly) from 4.1.0 to 5.0.0.
- [Changelog](https://github.com/pytest-dev/pytest-randomly/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest-randomly/compare/4.1.0...5.0.0)

---
updated-dependencies:
- dependency-name: pytest-randomly
  dependency-version: 5.0.0
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-16 11:18:00 +01:00
dependabot[bot] f8c542e72a core: bump sentry-sdk from 2.68.1 to 2.69.1 (#26192)
Bumps [sentry-sdk](https://github.com/getsentry/sentry-python) from 2.68.1 to 2.69.1.
- [Release notes](https://github.com/getsentry/sentry-python/releases)
- [Changelog](https://github.com/getsentry/sentry-python/blob/master/CHANGELOG.md)
- [Commits](https://github.com/getsentry/sentry-python/compare/2.68.1...2.69.1)

---
updated-dependencies:
- dependency-name: sentry-sdk
  dependency-version: 2.69.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-16 11:17:37 +01:00
dependabot[bot] b686394fbd web: bump cspell from 10.0.1 to 10.3.0 (#26197)
Bumps [cspell](https://github.com/streetsidesoftware/cspell/tree/HEAD/packages/cspell) from 10.0.1 to 10.3.0.
- [Release notes](https://github.com/streetsidesoftware/cspell/releases)
- [Changelog](https://github.com/streetsidesoftware/cspell/blob/main/packages/cspell/CHANGELOG.md)
- [Commits](https://github.com/streetsidesoftware/cspell/commits/v10.3.0/packages/cspell)

---
updated-dependencies:
- dependency-name: cspell
  dependency-version: 10.3.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-16 11:16:14 +01:00
dependabot[bot] e9ba9c3701 web: bump @mapbox/vector-tile from 2.0.5 to 3.0.0 (#26201)
Bumps [@mapbox/vector-tile](https://github.com/mapbox/vector-tile-js) from 2.0.5 to 3.0.0.
- [Release notes](https://github.com/mapbox/vector-tile-js/releases)
- [Commits](https://github.com/mapbox/vector-tile-js/compare/v2.0.5...v3.0.0)

---
updated-dependencies:
- dependency-name: "@mapbox/vector-tile"
  dependency-version: 3.0.0
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-16 11:16:01 +01:00
Teffen Ellis 9c23cb9e45 web: swap eslint and prettier for oxlint and oxfmt (#26061)
* Flesh out Oxlint, Oxfmt

* Flesh out.

* web: finish oxlint/oxfmt activation

- Fix `oxlint.config.ts` to invoke `createOxlintConfig` (it was exporting the
  factory uninvoked, so nothing was linted); enable `lit` + `react`.
- Repair the lint scripts: `lint:fix` referenced a deleted `format` script;
  add `fix:oxfmt`; switch the strict `lint-check` from ESLint to oxlint.
- Drop the now-redundant ESLint/Prettier deps and the `@goauthentik/prettier-config`
  override; lit/wc linting now comes from oxlint via `@goauthentik/oxlint-config`.
- Move the `prettier --write` wireit steps to `oxfmt --write`.
- Remove the orphaned `eslint.config.mjs` and `prettier.config.mjs`.
- Regenerate `package-lock.json`.

* web: apply `oxlint --fix` autofixes

Mechanical autofixes across web/ from `oxlint --fix`: padding-lines blank lines,
object-shorthand, and unicorn's no-useless-spread / prefer-string-starts-ends-with.
Clears 1170 of the 1184 baseline findings; the remaining ~14 need manual attention.

* web: resolve remaining oxlint findings

The ~14 findings `oxlint --fix` could not auto-fix:

- Prefix unused positional params with `_` (9 callbacks/methods).
- Name the empty Playwright fixtures param `_` instead of `{}` (no-empty-pattern).
- Make a stray trailing comment a leading comment so padding-lines is satisfied.
- Disable unicorn/no-thenable on `Route.then()` — an intentional fluent builder.
- Delete two dead, fully-commented, unimported files (no-empty-file).
- Fix a malformed `apple.d.ts` ambient declaration (invalid destructuring-as-type
  and an `async` modifier) that oxlint's parser rejected.

`oxlint --max-warnings=0` now exits clean.

* web: complete prettier removal and sync pnpm lockfiles

Swaps the `@goauthentik/prettier-config-dev` optional dependency for the
oxlint/oxfmt equivalents that web/oxlint.config.ts and web/oxfmt.config.ts
import, and drops the top-level `prettier` key pointing at the deleted
prettier.config.mjs.

Replaces the upstream package-lock.json regeneration, which no longer
applies now that the repo is pnpm-only.

* root, web: drop the last eslint and prettier references

Points the `locales:repair` and `precommit` wireit steps at oxfmt, and
removes the root `prettier` config key and `eslint` dependency now that
nothing consumes them.

* build: bump oxfmt to 0.68.0 and stop greedy JSDoc re-wrapping

oxfmt's JSDoc formatter re-wraps every description by default, and in doing
so deletes the space between an inline code span and the adjacent word:
`\`::part(cell-{idx})\` remains` becomes `\`::part(cell-{idx})\`remains`.
Present in both 0.67.0 and 0.68.0.

`lineWrappingStyle: "balance"" keeps the original line breaks when they
already fit inside the print width, which avoids the re-wrap entirely for
all but a couple of comments.

* web: reformat with oxfmt

Mechanical reformat of web/ under the oxfmt config.

ak-select-table's doc block listed @element and @class ahead of its prose,
so the formatter read the whole body as the tag's description and indented
it under them. Moved the tags below the description, which is the
conventional JSDoc order and keeps the sections intact.

* web/oxlint-config: port the padding rules and a fixture harness

Expands `padding-lines` and adds the two rules that sit beside it, under the
existing `goauthentik/` plugin namespace:

- `padding-lines` — blank line before the statements that end a path or a step
  (`return`, `continue`, `break`, a bare `x++`), before block-like statements,
  and before TS interface/type/enum/module declarations. The old copy covered
  `return` and blocks only, and looked through an `export` wrapper, so
  `export interface Foo {}` was never padded.
- `console-padding` — blank line each side of a `console.*` call, with a run of
  consecutive calls treated as one group.
- `multiline-statement-padding` — blank line each side of a statement spanning
  lines.

All three share `padding-utils.ts`, which anchors every fix to the END of the
earlier statement. That keeps them composable: two rules wanting the same blank
line emit the identical edit, so one applies and the other is a no-op, instead
of each inserting a newline and leaving a gap of two.

Opt-in via `createOxlintConfig({ padding: true })`, and no workspace turns them
on, so this reformats nothing. On `web/` they would be 1217, 1816 and 58 fixes
respectively.

`scripts/verify-fixtures.mjs` asserts each rule fires in its violating fixture
and is silent in the clean one, that each autofix lands the violating fixture
exactly on its clean counterpart with a second pass changing nothing, and that
the rules stay off by default. Runs in CI as the `oxlint-fixtures` job.

`fixtures/` is excluded from this package's own oxlint and oxfmt runs, since
formatting them would insert the blank lines they exist to be missing.

* web: apply the padding rule autofixes

Fallout from enabling `console-padding` and `multiline-statement-padding`
on web via the new `padding` option.

* packages/oxlint-config: fix the misapplied oxfmt ignore

The cherry-picked patch targeted packages/oxlint-config/oxfmt.config.ts,
which does not exist on this branch, so git applied it to client-ts's
identical file — leaving it importing DefaultIgnorePatterns from
@goauthentik/oxfmt-config, which does not export it.

Restores client-ts's config and adds the intended one to oxlint-config,
sourcing DefaultIgnorePatterns from @goauthentik/oxlint-config.

* website: swap eslint and prettier for oxlint and oxfmt

Drops the five eslint configs and .prettierignore, adds the oxlint/oxfmt
configs, and reformats. DefaultIgnorePatterns is imported from
@goauthentik/oxlint-config, which is where it lives.

* packages: swap eslint and prettier for oxlint and oxfmt

Migrates docusaurus-config, esbuild-plugin-live-reload, geo, logger-js and
theme to the shared oxlint/oxfmt configs; fonts is asset-only so it gets
formatting alone. theme's CSS check moves from @eslint/css to stylelint,
matching web.

Deletes packages/eslint-config and packages/prettier-config — nothing
depends on them any more — and drops them from the npm publish matrix and
the three workspace manifests.

* root, web/sfe: drop the last prettier ignores and scripts

Removes the orphaned .prettierignore files and points sfe's formatting
scripts at oxfmt.

oxfmt honours .prettierignore, so web's and website's exclusions move into
their oxfmt configs — without them the minified vendored assets, the
generated locale-codes.ts and the pnpm manifests get reformatted.

* packages/oxfmt-config: export a createOxfmtConfig builder

Mirrors createOxlintConfig: takes ignorePatterns and an overrides escape
hatch, appending per-file overrides to the shared ones rather than
replacing them. Every consumer was hand-spreading authentikOxfmtConfig and
cross-importing DefaultIgnorePatterns from oxlint-config; that constant is
now exported here too.

Also sets capitalizeDescriptions: false. oxfmt capitalises the first letter
of every JSDoc description, which rewrote `authentik` to `Authentik` in
eight files — the product name is always lowercase.

* root, web, website, packages: make `lint` cover formatting everywhere

website ran oxlint only; it now checks formatting too, matching web and the
packages. The two config packages shipped an oxlint.config.ts with no script
to run it, and fonts had no aggregate script at all.

Declares npm-run-all in the eight manifests that call run-s, and restores
eslint-plugin-lit/wc in web — oxlint resolves jsPlugins relative to the
config, not to @goauthentik/oxlint-config, so web has to see them itself.

* Flesh out playwright reports.

* Fix alignment on smaller viewports.

* Reorder.

* Fix issues surrounding alignment, ARIA labels, mouse behavior, etc.

* Clean up nav tab alignment.

* Fix timing issue where license mixin does not consistently trigger updates.

* Remove unused.

* Fix warning.

* Fix config.

* Fix types.

* Clean up scripts.

* Format generated.

* Retire eslint and prettier from dependency tooling.

The dependabot `eslint` groups matched packages no longer in the tree.
Replace them with an `oxc` group for oxlint/oxfmt and a `lint` group for
what survived the swap: eslint-plugin-lit and eslint-plugin-wc, whose
rules oxlint loads through `jsPlugins`, plus stylelint, which picked up
CSS linting and had no group at all.

Cover packages/{fonts,geo,theme} in the NPM Packages block. All three are
workspace members with oxlint/oxfmt devDependencies, but no npm block
listed them, so dependabot was never updating them.

Drop the dead eslint/typescript-eslint catalog entries and the overrides
keyed on them, along with the prettier entries website/ still carried. No
manifest referenced any of them, and pnpm had recorded none of them in a
lockfile's `catalogs:` section. eslint itself stays in the tree as a
type-only peer of the two plugins.

* web: realign the user-switcher e2e locators, fix an invalid ARIA attribute

The navigation header rework renamed the switcher toggle's accessible name
from "Switch user" to "Toggle user navigation menu" and gave each account
entry an `aria-label` of `Switch to user "<display name>"`. Three locators
still targeted the old markup, across two fixtures and one test, which broke
the remember-me, passkey and user-switching specs.

The entry locator matches rendered text rather than the accessible name: the
new aria-label omits the email, which is what identifies an account under any
UserDisplay setting.

The menu also carried `aria-labelled`, which is not an ARIA attribute and so
named nothing. It is passed a string rather than an ID, so it wants
`aria-label`.
2026-09-16 08:37:34 +00:00
Teffen Ellis 53300624b7 web/stages: Fix stage type errors (#25689)
* web/flow: fix leaked keydown listener in RedirectStage

The Enter-to-redirect handler was added to `document` on every challenge
update and never removed, leaking a listener per update and firing
redirect() once per accumulated listener. Register it a single time and
tear it down on disconnect via an AbortController.

* Clean up.

* Fix method accessors.

* Fix static challenge type check.
2026-09-16 07:27:58 +01:00
Teffen Ellis 25bddcc862 packages/client-ts: Prepare for oxlint/oxfmt (#26077)
* Bump TypeScript range.

* Prep for ox.

* Prep config.

* Format package.json

* Fix composition, formatting.

* Prepare.

* Format.
2026-09-16 06:55:16 +01:00
Teffen Ellis e79b3751ec web/test: fix two e2e locators that assume a settled UI state (#26030)
* web/test: scope the New Provider click to the toolbar

`Table` renders the create control twice: once in the toolbar, and once
inside the empty state it shows while rows are still loading
(`Table.renderEmpty`, and again in `TablePage`). An unscoped
`getByRole("button", { name: "New Provider" })` matches both, so the
click fails strict mode — but only when the table is empty at that
moment, which is why it took three tests down in one run while a fourth
passed on retry.

Measured against a live instance: the locator matches one button once
rows are present and two while the table is empty.

Scoping to `[part="toolbar-secondary"]` picks the toolbar copy and is
unaffected by whether the table has loaded.

* web/test: follow remember-me past the identification stage

Remember-me does not only pre-fill the identification stage, it submits
it. Captured from the executor during a failing run:

    GET  executor/default-authentication-flow -> ak-stage-identification
    POST executor/default-authentication-flow -> 302
    GET  executor/default-authentication-flow -> ak-stage-password

So after signing out the flow is frequently already on the password
stage. `signOut()` waited for `ak-stage-identification`, which by then no
longer exists, and blocked until the test's own budget expired — about
one run in three, and only in this test, since it is the only one that
stores a remember-me identifier.

`signOut()` now waits for whichever stage the flow settles on. The test
follows suit: both remember-me routes converge on the password stage, so
it submits identification only when the flow is still sitting there. The
variant that embeds the password field in the identification stage never
leaves it and keeps its own assertion.

Verified against the reproduction: 8 serial repeats and 6 parallel, all
green, where the same repeat count previously failed roughly one in three.
2026-09-16 04:02:32 +01:00
Teffen Ellis 1d0948fcdc web: add the oxlint and oxfmt config packages (#23519)
Two new workspace packages, ahead of anything using them.

`@goauthentik/oxlint-config` exports a `createOxlintConfig` factory rather than
a static config, because the lit/wc rules and the React plugin vary per consumer
and four near-copies of one rule set is how they drift. It also carries the
platform-layering `no-restricted-imports` rules and a bundled JS plugin for
authentik's own rules.

`@goauthentik/oxfmt-config` is the formatting half. `src/imports.ts` is the part
worth a look: it reproduces the import grouping `format-imports` gave us under
Prettier, using oxfmt's perfectionist-style selectors.

Both compile to a gitignored `out/`, which every consuming config imports at
load time, so both carry a `prepare` script — pnpm runs it on a fresh install,
which is what CI always does. `make node-install` builds them explicitly as
well, since `prepare` does not re-run on a warm tree when the lockfile is
already satisfied.

Nothing consumes either package yet.
2026-09-16 02:57:05 +01:00
Teffen EllisandPlaypen Agent a2e51b3d55 web/elements: read the pending CodeMirror value before the editor loads (#26085)
`ak-codemirror` imports its editor lazily, so between first render and that
import resolving there is no editor state to read and the value getter returns
an empty string. A form submitted in that window serializes the field as "",
and the server rejects it — creating a group or a user through a dialog fails
with "Attributes: Value must be a dictionary, and not have any duplicate
keys" and the dialog stays open.

The value setter has already stringified the incoming value by then, so fall
back to it when no editor state exists yet.

Co-authored-by: Playpen Agent <[email protected]>
2026-09-15 21:46:13 +01:00
Ken Sternberg 30266671ef web/user: fix enterprise check on user library (#26066)
* ## What

         window.authentik.flow = {
             "layout": "{{ flow.layout }}",
    +        "background": "{{ flow.background }}",
    +        "title": "{{ flow.title }}",
         };

Amends the `flow.html` template and `GlobalAuthentik` parser to include new parameters, `background` and `title`, in the flow-specific part of the configuration written to the HTML `<head>` object, and to provide those parameters to client code.

## Why

The `layout` is start-up critical: it tells the Flow interface how the admin wants the Flow page to look, and allows the HTML and CSS to be pre-aligned to that condition. `layout` is determined on a per-Flow bases, not a per-Stage basis; Flows are derived from a tuple of `(Brand, Application?)`, where the opening policy *may* direct a user to a different flow if the user reached authentik via a redirect from a specific application, but will otherwise fall back to the default Flow for the Brand.

The `background` is a field that is required if the `Flow`’s layout is of type `frame_background`; in this case, the part of the viewport not dedicated to the FlowExecutor is reserved for an `<iframe>` that will be filled in with whatever the administrator specifies. Although this gives it the same priority as `layout` (whether it’s provided or undefined) for describing the [chrome](https://developer.mozilla.org/en-US/docs/Glossary/Chrome) around a challenge, it is currently not provided to the application in the start-up config; it is provided in the `challenge` and renders the IFrame as part of the initial challenge.

This patch fixes that; if `layout` is provided, `background` ought to be as well, even if it’s empty. The execution of a Challenge ought not have any influence over the look and feel of the Flow-defined appearance *around* that Challenge.

I have added `title` as well; with that, all of the current theme-and-appearance related configuration details are placed into `<head>` and can be removed from the FlowExecutor.

Server-side, `background` is currently specified: `background = FileField(blank=True, default="")` which is … interesting since we also appear to store URLs in it. I don’t see anything in the FlowSerializer that would change that from a client’s point of view.

This patch furthers the effort to separate flow execution from flow presentation.

- \[🐰\] The code has been formatted (`make web`)

* web/maintentance: update deprecated browser test imports

# What

Update imports of `@vitest/browser/context` to `vitest/browser`.

# Why

To eliminate these warnings:

    - DEPRECATED /Users/ken/projects/dev/web/test/lit/setup.js tries to load a deprecated
      "@vitest/browser/context" module. This import will stop working in the next major version. Please,
      use "vitest/browser" instead.
    - DEPRECATED /Users/ken/projects/dev/web/test/lit/rendering.js tries to load a deprecated
      "@vitest/browser/context" module. This import will stop working in the next major version. Please,
      use "vitest/browser" i

Sorry, been using the tests and Storybook a lot lately. Cleaning up as I go along.

* web/bug/25815: fix display of capabilities tabs on the User Applications page

# What

Fixes a visible race condition on the User Applications page

The test for license status would allow the “Agents” tab to be shown briefly when the `licenseSummary.status` was undefined. This looks like a race condition; sometimes the licensing information hadn’t arrived when the display rendered. This commit extracts the predicate into a function and makes it positive (“You *can* do this”) rather than negative.

Also: separates copy/pasta machinery from the intent. 🗣🔥🔥🔥

Closes \#25815

* A much cleaner separation.  I didn't like that weird '[valid] : []' construct.
2026-09-15 09:50:55 -07:00
Jacob SachsandDewi Roberts ffaf524175 policies: fix policybinding cache invalidation (#25989)
* invalidate Policy cache when a Policy or PolicyBinding is updated

* policies: normalize binding UUID during cache invalidation

* fix UUID capture bug in blueprints

---------

Co-authored-by: Dewi Roberts <[email protected]>
2026-09-15 17:13:40 +01:00
Connor Peshek e46246c6db api: include JSON field relation models in search autocomplete (#26153)
* api: include JSON field relation models in search autocomplete

* clean up comments
2026-09-15 10:43:01 -05:00
Dominic Roy aba062d15d outposts: refresh sessions when impersonation changes (#26086) 2026-09-15 10:27:13 -04:00
Jacob SachsandJens L. 849e7af1b7 sources/ldap: support SASL external (#26067)
* model changes and a few other things for sasl

* source changes plus a small UI change to view connection settings

* e2e testing via openldap docker container

* code review comments re: docker images

---------

Co-authored-by: Jens L. <[email protected]>
2026-09-15 15:06:21 +01:00
Jorge PolancoandJens Langhammer 0e9a19a190 flows: strip login_hint from next on cancel to prevent loop (#26111)
* flows: clear login_hint on cancel to fix 'Not You?' loop

When a login_hint is passed to the OAuth2 authorize endpoint, it is prefilled
into the identification stage and also carried in the flow's `next` param. On
clicking 'Not You?', CancelView redirected back to `next`, which re-entered the
authorize flow and re-applied login_hint from the URL, trapping the user in a
loop.

Strip login_hint from the cancel `next` redirect so re-entering the flow no
longer re-prefills the identifier, while legitimate first-arrival prefill (read
directly from the authorize URL) is unaffected.

Fixes #25476

* cleanup

Signed-off-by: Jens Langhammer <[email protected]>

---------

Signed-off-by: Jens Langhammer <[email protected]>
Co-authored-by: Jens Langhammer <[email protected]>
2026-09-15 12:01:58 +01:00
authentik-automation[bot] e1fd8a017d stages/authenticator_webauthn: Update FIDO MDS3 & Passkey aaguid blobs (#26151)
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: authentik-automation[bot] <135050075+authentik-automation[bot]@users.noreply.github.com>
2026-09-15 11:56:16 +01:00
dependabot[bot] 67cdeee694 website: bump the build group in /website with 3 updates (#26155)
Bumps the build group in /website with 3 updates: [@rspack/binding-darwin-arm64](https://github.com/web-infra-dev/rspack/tree/HEAD/packages/rspack), [@rspack/binding-linux-arm64-gnu](https://github.com/web-infra-dev/rspack/tree/HEAD/packages/rspack) and [@rspack/binding-linux-x64-gnu](https://github.com/web-infra-dev/rspack/tree/HEAD/packages/rspack).


Updates `@rspack/binding-darwin-arm64` from 2.2.2 to 2.2.3
- [Release notes](https://github.com/web-infra-dev/rspack/releases)
- [Commits](https://github.com/web-infra-dev/rspack/commits/v2.2.3/packages/rspack)

Updates `@rspack/binding-linux-arm64-gnu` from 2.2.2 to 2.2.3
- [Release notes](https://github.com/web-infra-dev/rspack/releases)
- [Commits](https://github.com/web-infra-dev/rspack/commits/v2.2.3/packages/rspack)

Updates `@rspack/binding-linux-x64-gnu` from 2.2.2 to 2.2.3
- [Release notes](https://github.com/web-infra-dev/rspack/releases)
- [Commits](https://github.com/web-infra-dev/rspack/commits/v2.2.3/packages/rspack)

---
updated-dependencies:
- dependency-name: "@rspack/binding-darwin-arm64"
  dependency-version: 2.2.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: build
- dependency-name: "@rspack/binding-linux-arm64-gnu"
  dependency-version: 2.2.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: build
- dependency-name: "@rspack/binding-linux-x64-gnu"
  dependency-version: 2.2.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: build
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-15 11:53:49 +01:00
dependabot[bot] ddd6a11829 core: bump goauthentik/fips-python from f83a859 to 8f10ac7 in /lifecycle/container (#26158)
core: bump goauthentik/fips-python in /lifecycle/container

Bumps goauthentik/fips-python from `f83a859` to `8f10ac7`.

---
updated-dependencies:
- dependency-name: goauthentik/fips-python
  dependency-version: 3.14.7-slim-trixie-fips
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-15 11:53:44 +01:00
dependabot[bot] 27b113b3a7 core: bump serde_with from 3.22.0 to 3.23.0 (#26159)
Bumps [serde_with](https://github.com/jonasbb/serde_with) from 3.22.0 to 3.23.0.
- [Release notes](https://github.com/jonasbb/serde_with/releases)
- [Commits](https://github.com/jonasbb/serde_with/compare/v3.22.0...v3.23.0)

---
updated-dependencies:
- dependency-name: serde_with
  dependency-version: 3.23.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-15 11:53:40 +01:00
dependabot[bot] fc027f35b4 core: bump astral-sh/uv from 0.12.13 to 0.12.14 in /lifecycle/container (#26160)
Bumps [astral-sh/uv](https://github.com/astral-sh/uv) from 0.12.13 to 0.12.14.
- [Release notes](https://github.com/astral-sh/uv/releases)
- [Changelog](https://github.com/astral-sh/uv/blob/main/CHANGELOG.md)
- [Commits](https://github.com/astral-sh/uv/compare/0.12.13...0.12.14)

---
updated-dependencies:
- dependency-name: astral-sh/uv
  dependency-version: 0.12.14
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-15 11:53:36 +01:00
dependabot[bot] 17baef1084 ci: bump taiki-e/install-action from 2.87.11 to 2.87.12 in /.github/actions/setup (#26162)
ci: bump taiki-e/install-action in /.github/actions/setup

Bumps [taiki-e/install-action](https://github.com/taiki-e/install-action) from 2.87.11 to 2.87.12.
- [Release notes](https://github.com/taiki-e/install-action/releases)
- [Changelog](https://github.com/taiki-e/install-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/taiki-e/install-action/compare/9534c84618278caac52cb373bb164ed464dbd8af...3f74d7c16a4242f1c95561e98edc25d36adb4375)

---
updated-dependencies:
- dependency-name: taiki-e/install-action
  dependency-version: 2.87.12
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-15 11:53:32 +01:00
dependabot[bot] dc22d2987b web: bump the storybook group across 1 directory with 5 updates (#26163)
Bumps the storybook group with 5 updates in the /web directory:

| Package | From | To |
| --- | --- | --- |
| [@storybook/addon-docs](https://github.com/storybookjs/storybook/tree/HEAD/code/addons/docs) | `10.5.10` | `10.6.0` |
| [@storybook/addon-links](https://github.com/storybookjs/storybook/tree/HEAD/code/addons/links) | `10.5.10` | `10.6.0` |
| [@storybook/web-components](https://github.com/storybookjs/storybook/tree/HEAD/code/renderers/web-components) | `10.5.10` | `10.6.0` |
| [@storybook/web-components-vite](https://github.com/storybookjs/storybook/tree/HEAD/code/frameworks/web-components-vite) | `10.5.10` | `10.6.0` |
| [storybook](https://github.com/storybookjs/storybook/tree/HEAD/code/core) | `10.5.10` | `10.6.0` |



Updates `@storybook/addon-docs` from 10.5.10 to 10.6.0
- [Release notes](https://github.com/storybookjs/storybook/releases)
- [Changelog](https://github.com/storybookjs/storybook/blob/next/CHANGELOG.md)
- [Commits](https://github.com/storybookjs/storybook/commits/v10.6.0/code/addons/docs)

Updates `@storybook/addon-links` from 10.5.10 to 10.6.0
- [Release notes](https://github.com/storybookjs/storybook/releases)
- [Changelog](https://github.com/storybookjs/storybook/blob/next/CHANGELOG.md)
- [Commits](https://github.com/storybookjs/storybook/commits/v10.6.0/code/addons/links)

Updates `@storybook/web-components` from 10.5.10 to 10.6.0
- [Release notes](https://github.com/storybookjs/storybook/releases)
- [Changelog](https://github.com/storybookjs/storybook/blob/next/CHANGELOG.md)
- [Commits](https://github.com/storybookjs/storybook/commits/v10.6.0/code/renderers/web-components)

Updates `@storybook/web-components-vite` from 10.5.10 to 10.6.0
- [Release notes](https://github.com/storybookjs/storybook/releases)
- [Changelog](https://github.com/storybookjs/storybook/blob/next/CHANGELOG.md)
- [Commits](https://github.com/storybookjs/storybook/commits/v10.6.0/code/frameworks/web-components-vite)

Updates `storybook` from 10.5.10 to 10.6.0
- [Release notes](https://github.com/storybookjs/storybook/releases)
- [Changelog](https://github.com/storybookjs/storybook/blob/next/CHANGELOG.md)
- [Commits](https://github.com/storybookjs/storybook/commits/v10.6.0/code/core)

---
updated-dependencies:
- dependency-name: "@storybook/addon-docs"
  dependency-version: 10.6.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: storybook
- dependency-name: "@storybook/addon-links"
  dependency-version: 10.6.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: storybook
- dependency-name: "@storybook/web-components"
  dependency-version: 10.6.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: storybook
- dependency-name: "@storybook/web-components-vite"
  dependency-version: 10.6.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: storybook
- dependency-name: storybook
  dependency-version: 10.6.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: storybook
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-15 11:53:27 +01:00
Dominic Roy 157baa6467 website/docs: explain how to use app passwords (#26092)
Clarify the difference between API tokens and app passwords. Document app-password creation, the LDAP password backend requirement, proxy HTTP Basic authentication, and OAuth2 token exchange.

Closes #12916
2026-09-15 09:45:20 +01:00
Connor PeshekandJens L. 198abec372 events: Note in logs when an agent makes a call (#26146)
core/events: Note in logs when an agent makes a call

Co-authored-by: Jens L. <[email protected]>
2026-09-14 20:27:08 +00:00
Dewi Roberts 0a8108f9eb website/docs: fix security policy link (#26147)
* Fix security policy link

* Create index.mdx

* Change to autogenerated index
2026-09-14 21:17:30 +01:00
Jens L. 74f0dc594c blueprints: validation api (#26141)
* fix url name

Signed-off-by: Jens Langhammer <[email protected]>

* add blueprint validation api

Signed-off-by: Jens Langhammer <[email protected]>

---------

Signed-off-by: Jens Langhammer <[email protected]>
2026-09-14 20:59:37 +01:00
Dominic Roy 0bdb759ab7 core: bump rustls (#26142) 2026-09-14 16:53:18 +00:00
Emil Burzo 31adac9e14 ci: release: fix empty changelog URL in version and helm bump PRs (#26134) 2026-09-14 13:57:45 +00:00
fce697d482 server: preserve websocket close code when proxying to outposts (#26090)
* server: preserve websocket close code when proxying to outposts

The websocket proxy that bridges outpost connections to the gunicorn/uvicorn
backend replaced every relayed close frame with a code-less close
(`Message::Close(None)`), discarding the status code and reason from the peer.

When a web worker is recycled (routinely, via web.max_requests) or restarted on
upgrade, uvicorn closes the outpost websocket gracefully with 1012 (service
restart). Because the proxy relayed `Close(None)`, the outpost instead received a
close frame with no status code, which surfaces as `websocket: close 1005 (no
status)` and is logged at warning level - indistinguishable from a genuine fault,
so a healthy deployment warns on every recycle and trips outpost-disconnect
alerting. The reverse direction stripped the outpost's own close code too.

Relay the received close frame verbatim in both directions so the peer sees the
real close code and reason. The tail-of-stream case (peer closes without sending
a Close frame) still sends `Close(None)`, which is correct.

Co-Authored-By: Claude Opus 4.8 <[email protected]>

* no claude comments

Signed-off-by: Jens Langhammer <[email protected]>

---------

Signed-off-by: Jens Langhammer <[email protected]>
Co-authored-by: Claude Opus 4.8 <[email protected]>
Co-authored-by: Jens Langhammer <[email protected]>
2026-09-14 13:52:01 +01:00
nejedly-jan 180d5ea17d web/flows: fix hardcoded locale in identification stage's OR_LIST_FORMATTERS (#26017)
OR_LIST_FORMATTERS was constructed once at module load with the locale
string "default", which resolves to the browser's own locale rather than
authentik's active locale. Individual field labels (e.g. "Username") are
translated correctly via msg(), but the "or" connecting them never was.

Move construction to render time via a createOrListFormatter(locale)
factory, using the stage's already-available this.activeLanguageTag
(BaseStage extends WithLocale(AKElement)) so it follows the active
locale, including changes at runtime.

Fixes #20632
2026-09-14 13:51:45 +01:00
Shane Mc CormackandJens L. 686a4a8f2e sources/scim: allow filtering by externalId (#25987)
Allow SCIM Sources to filter by externalId.

Co-authored-by: Jens L. <[email protected]>
2026-09-14 13:51:31 +01:00
Jens L. ac885ee5cc root: fix metric gauges for multiprocessor mode (#25882)
* reset enterprise license status when license is changed

Signed-off-by: Jens Langhammer <[email protected]>

* use livesum

Signed-off-by: Jens Langhammer <[email protected]>

* remove old gauges

Signed-off-by: Jens Langhammer <[email protected]>

* fix old versions

Signed-off-by: Jens Langhammer <[email protected]>

---------

Signed-off-by: Jens Langhammer <[email protected]>
2026-09-14 13:51:24 +01:00
authentik-automation[bot] db73913572 core, web: update translations (#26074)
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: authentik-automation[bot] <135050075+authentik-automation[bot]@users.noreply.github.com>
2026-09-14 13:06:07 +01:00
Jens L. db62795c33 root: fix pnpm lock for aws-cdk (#26127) 2026-09-14 12:49:44 +01:00
Emil Burzo 9b770be8ae root: document CNA in SECURITY.md (#26124)
* root: document CNA in SECURITY.md

* include in disclosure process
2026-09-14 14:35:17 +03:00
dependabot[bot] e2ecb70901 lifecycle/aws: bump aws-cdk from 2.1129.0 to 2.1140.0 in /lifecycle/aws (#26113)
Bumps [aws-cdk](https://github.com/aws/aws-cdk-cli/tree/HEAD/packages/aws-cdk) from 2.1129.0 to 2.1140.0.
- [Release notes](https://github.com/aws/aws-cdk-cli/releases)
- [Commits](https://github.com/aws/aws-cdk-cli/commits/[email protected]/packages/aws-cdk)

---
updated-dependencies:
- dependency-name: aws-cdk
  dependency-version: 2.1140.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-14 12:27:22 +01:00
dependabot[bot] 4a4c7b7cf4 core: bump goauthentik/fips-python from 1ed398d to f83a859 in /lifecycle/container (#26114)
core: bump goauthentik/fips-python in /lifecycle/container

Bumps goauthentik/fips-python from `1ed398d` to `f83a859`.

---
updated-dependencies:
- dependency-name: goauthentik/fips-python
  dependency-version: 3.14.7-slim-trixie-fips
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-14 12:27:17 +01:00
dependabot[bot] 188930a08f ci: bump the codeql group across 1 directory with 3 updates (#26121)
Bumps the codeql group with 3 updates in the / directory: [github/codeql-action/init](https://github.com/github/codeql-action), [github/codeql-action/autobuild](https://github.com/github/codeql-action) and [github/codeql-action/analyze](https://github.com/github/codeql-action).


Updates `github/codeql-action/init` from 4.37.9 to 4.38.0
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/cdf488f595d80d6e07e03d4674febd5ab45fa938...b96794f015dfd88f77b49b1c93e0fa7110f94c63)

Updates `github/codeql-action/autobuild` from 4.37.9 to 4.38.0
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/cdf488f595d80d6e07e03d4674febd5ab45fa938...b96794f015dfd88f77b49b1c93e0fa7110f94c63)

Updates `github/codeql-action/analyze` from 4.37.9 to 4.38.0
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/cdf488f595d80d6e07e03d4674febd5ab45fa938...b96794f015dfd88f77b49b1c93e0fa7110f94c63)

---
updated-dependencies:
- dependency-name: github/codeql-action/init
  dependency-version: 4.38.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: codeql
- dependency-name: github/codeql-action/autobuild
  dependency-version: 4.38.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: codeql
- dependency-name: github/codeql-action/analyze
  dependency-version: 4.38.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: codeql
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-14 12:27:12 +01:00
dependabot[bot] 8dd10e262c ci: bump astral-sh/setup-uv from 10.0.1 to 10.1.0 in /.github/actions/setup (#26122)
ci: bump astral-sh/setup-uv in /.github/actions/setup

Bumps [astral-sh/setup-uv](https://github.com/astral-sh/setup-uv) from 10.0.1 to 10.1.0.
- [Release notes](https://github.com/astral-sh/setup-uv/releases)
- [Commits](https://github.com/astral-sh/setup-uv/compare/20cfd1bf945f4377ade1205e4dbc17946fc9a30d...bec219d24cd3e171d82865faccec33120bb574f4)

---
updated-dependencies:
- dependency-name: astral-sh/setup-uv
  dependency-version: 10.1.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-14 12:27:07 +01:00
dependabot[bot] ccadeab7e0 ci: bump taiki-e/install-action from 2.87.8 to 2.87.11 in /.github/actions/setup (#26123)
ci: bump taiki-e/install-action in /.github/actions/setup

Bumps [taiki-e/install-action](https://github.com/taiki-e/install-action) from 2.87.8 to 2.87.11.
- [Release notes](https://github.com/taiki-e/install-action/releases)
- [Changelog](https://github.com/taiki-e/install-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/taiki-e/install-action/compare/d438492cf8a250514fa2d34b30bc3c0dc37c65ff...9534c84618278caac52cb373bb164ed464dbd8af)

---
updated-dependencies:
- dependency-name: taiki-e/install-action
  dependency-version: 2.87.11
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-14 12:27:03 +01:00
dependabot[bot] a98dc0d879 core: bump pyroscope-io from 1.2.1 to 1.2.3 (#26119)
Bumps pyroscope-io from 1.2.1 to 1.2.3.

---
updated-dependencies:
- dependency-name: pyroscope-io
  dependency-version: 1.2.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-14 07:53:41 +00:00
dependabot[bot] ef4059820b core: bump types-requests from 2.33.0.20260712 to 2.33.0.20260906 in the types group (#26112)
core: bump types-requests in the types group

Bumps the types group with 1 update: [types-requests](https://github.com/python/typeshed).


Updates `types-requests` from 2.33.0.20260712 to 2.33.0.20260906
- [Commits](https://github.com/python/typeshed/commits)

---
updated-dependencies:
- dependency-name: types-requests
  dependency-version: 2.33.0.20260906
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: types
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-14 07:48:17 +00:00
dependabot[bot] 845b5be58e core: bump uuid from 1.26.0 to 1.26.1 (#26120)
Bumps [uuid](https://github.com/uuid-rs/uuid) from 1.26.0 to 1.26.1.
- [Release notes](https://github.com/uuid-rs/uuid/releases)
- [Commits](https://github.com/uuid-rs/uuid/compare/v1.26.0...v1.26.1)

---
updated-dependencies:
- dependency-name: uuid
  dependency-version: 1.26.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-14 07:43:24 +00:00
dependabot[bot] 423dbe628f core: bump ruff from 0.16.6 to 0.16.7 (#26116)
Bumps [ruff](https://github.com/astral-sh/ruff) from 0.16.6 to 0.16.7.
- [Release notes](https://github.com/astral-sh/ruff/releases)
- [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md)
- [Commits](https://github.com/astral-sh/ruff/compare/0.16.6...0.16.7)

---
updated-dependencies:
- dependency-name: ruff
  dependency-version: 0.16.7
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-14 10:22:24 +03:00
dependabot[bot] a9f1eba1df core: bump pyjwt from 2.13.0 to 2.14.0 (#26115)
Bumps [pyjwt](https://github.com/jpadilla/pyjwt) from 2.13.0 to 2.14.0.
- [Release notes](https://github.com/jpadilla/pyjwt/releases)
- [Changelog](https://github.com/jpadilla/pyjwt/blob/master/CHANGELOG.rst)
- [Commits](https://github.com/jpadilla/pyjwt/compare/2.13.0...2.14.0)

---
updated-dependencies:
- dependency-name: pyjwt
  dependency-version: 2.14.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-14 10:21:54 +03:00
dependabot[bot] d294dfa84c core: bump twilio from 9.11.0 to 9.11.1 (#26117)
Bumps [twilio](https://github.com/twilio/twilio-python) from 9.11.0 to 9.11.1.
- [Release notes](https://github.com/twilio/twilio-python/releases)
- [Changelog](https://github.com/twilio/twilio-python/blob/main/CHANGES.md)
- [Commits](https://github.com/twilio/twilio-python/compare/9.11.0...9.11.1)

---
updated-dependencies:
- dependency-name: twilio
  dependency-version: 9.11.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-14 10:21:24 +03:00
dependabot[bot] 67b96b6e8f core: bump reqwest from 0.13.4 to 0.13.5 (#26118)
Bumps [reqwest](https://github.com/seanmonstar/reqwest) from 0.13.4 to 0.13.5.
- [Release notes](https://github.com/seanmonstar/reqwest/releases)
- [Changelog](https://github.com/seanmonstar/reqwest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/seanmonstar/reqwest/compare/v0.13.4...v0.13.5)

---
updated-dependencies:
- dependency-name: reqwest
  dependency-version: 0.13.5
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-14 10:20:16 +03:00
3288 changed files with 78616 additions and 179543 deletions

No files matched your search

@@ -1,57 +0,0 @@
name: "Comment usage instructions on PRs"
description: "Comment usage instructions on PRs"
inputs:
tag:
description: "Image tag to pull"
required: true
runs:
using: "composite"
steps:
- name: Find Comment
uses: peter-evans/find-comment@b30e6a3c0ed37e7c023ccd3f1db5c6c0b0c23aad # v2
id: fc
with:
issue-number: ${{ github.event.pull_request.number }}
comment-author: "github-actions[bot]"
body-includes: authentik PR Installation instructions
- name: Create or update comment
uses: peter-evans/create-or-update-comment@e8674b075228eee787fea43ef493e45ece1004c9 # v2
with:
comment-id: ${{ steps.fc.outputs.comment-id }}
issue-number: ${{ github.event.pull_request.number }}
body: |
authentik PR Installation instructions
<details>
<summary>Instructions for docker-compose</summary>
Add the following block to your `.env` file:
```shell
AUTHENTIK_IMAGE=ghcr.io/goauthentik/dev-server
AUTHENTIK_TAG=${{ inputs.tag }}
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.
</details>
<details>
<summary>Instructions for Kubernetes</summary>
Add the following block to your `values.yml` file:
```yaml
authentik:
outposts:
container_image_base: ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s
global:
image:
repository: ghcr.io/goauthentik/dev-server
tag: ${{ inputs.tag }}
```
Afterwards, run the upgrade commands from the latest release notes.
</details>
edit-mode: replace
+41
View File
@@ -0,0 +1,41 @@
---
name: "Comment on PR"
description: "Upserts one section of the shared CI comment on a pull request"
inputs:
section:
description: "Slug of the section to replace. Every other section is left alone."
required: true
body:
description: "Markdown for the section"
runs:
using: "composite"
steps:
- uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9
env:
SECTION: "${{ inputs.section }}"
BODY: "${{ inputs.body }}"
with:
script: |
const marker = "<!-- ci-comment -->";
const { SECTION, BODY } = process.env;
const issue = { ...context.repo, issue_number: context.issue.number };
// Every CI job writes into the same comment, so find it by its marker and splice in
// only this job's section, leaving the sections other jobs own untouched.
// ponytail: read-modify-write, so two jobs finishing at the same instant can drop one
// section update; the next push rewrites it. Retry on a changed body if that bites.
const comments = await github.paginate(github.rest.issues.listComments, issue);
const existing = comments.find(({ body }) => body?.startsWith(marker));
const section = new RegExp(`<!-- section:${SECTION} -->[\\s\\S]*?<!-- /section:${SECTION} -->`);
const block = `<!-- section:${SECTION} -->\n${BODY.trim()}\n<!-- /section:${SECTION} -->`;
const previous = existing?.body?.trim() || marker;
const body = section.test(previous)
? previous.replace(section, () => block)
: `${previous}\n\n${block}`;
await (existing
? github.rest.issues.updateComment({ ...issue, comment_id: existing.id, body })
: github.rest.issues.createComment({ ...issue, body }));
@@ -35,7 +35,7 @@ runs:
branch_name = os.environ["GITHUB_REF"]
if os.environ.get("GITHUB_HEAD_REF", "") != "":
branch_name = os.environ["GITHUB_HEAD_REF"]
safe_branch_name = re.sub(r"[^a-zA-Z0-9-]", "-", branch_name.replace("refs/heads/", ""))
safe_branch_name = re.sub(r"[^a-zA-Z0-9-.]", "-", branch_name.replace("refs/heads/", ""))
tag_full = f"gh-{sha}"
tag_branch = f"gh-{safe_branch_name}"
+6 -3
View File
@@ -42,7 +42,7 @@ runs:
sudo rsync -a --delete /tmp/empty/ /usr/local/lib/android/
- name: Install uv
if: ${{ contains(inputs.dependencies, 'python') }}
uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v5
uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v5
with:
enable-cache: true
- name: Setup python
@@ -69,7 +69,7 @@ runs:
rustflags: ""
- name: Setup rust dependencies
if: ${{ contains(inputs.dependencies, 'rust') }}
uses: taiki-e/install-action@d438492cf8a250514fa2d34b30bc3c0dc37c65ff # v2
uses: taiki-e/install-action@1168f6810a3cb30a3514bf5756a3b7f0422c6df8 # v2
with:
tool: cargo-deny cargo-machete cargo-llvm-cov nextest
- name: Setup pnpm
@@ -85,7 +85,7 @@ runs:
echo "npm_config_store_dir=${RUNNER_TEMP}/pnpm-home/store" >> "$GITHUB_ENV"
- name: Setup node (root, web)
if: ${{ contains(inputs.dependencies, 'node') }}
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v4
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v4
with:
node-version-file: ${{ inputs.working-directory }}package.json
cache: pnpm
@@ -107,6 +107,9 @@ runs:
cache-dependency-path: "${{ inputs.working-directory }}go.mod"
- name: Setup docker cache
if: ${{ contains(inputs.dependencies, 'runtime') }}
# The post step `docker save`s every new image, but digest-pinned images (e2e,
# kind) list without a tag and fail. Jobs share the key, so another job saves it.
continue-on-error: true
uses: AndreKurait/docker-cache@7a3887908bdb97935395833df69b060cfcca0f7f
with:
key: docker-images-${{ runner.os }}-${{ hashFiles('.github/actions/setup/compose.yml', 'Makefile') }}-${{ inputs.postgresql_version }}
+2 -2
View File
@@ -10,12 +10,12 @@ inputs:
runs:
using: "composite"
steps:
- uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v5
- uses: codecov/codecov-action@303a32d7a59b442fa8d48b6a1cc6825c09c847a5 # v5
with:
files: ${{ inputs.files }}
flags: ${{ inputs.flags }}
use_oidc: true
- uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v5
- uses: codecov/codecov-action@303a32d7a59b442fa8d48b6a1cc6825c09c847a5 # v5
with:
files: ${{ inputs.files }}
flags: ${{ inputs.flags }}
+55 -63
View File
@@ -8,7 +8,7 @@ updates:
# Required to update composite actions
# https://github.com/dependabot/dependabot-core/issues/6704
- /.github/actions/setup
- /.github/actions/comment-pr-instructions
- /.github/actions/comment-pr
- /.github/actions/test-results
schedule:
interval: daily
@@ -95,13 +95,17 @@ updates:
#endregion
#region Web
#region Web & Documentation
# One entry for every workspace root that shares the pnpm catalog pins, so a
# group bump lands in all of them in a single PR. Groups don't span entries,
# and `scripts/node/lint-catalogs.ts` fails when the roots drift apart.
- package-ecosystem: npm
directories:
- "/"
- "/web"
- "/web/packages/*"
- "/website"
schedule:
interval: daily
time: "04:00"
@@ -122,13 +126,20 @@ updates:
patterns:
- "@babel/*"
- "babel-*"
eslint:
oxc:
patterns:
- "@eslint/*"
- "@typescript-eslint/*"
- "eslint-*"
- "eslint"
- "typescript-eslint"
- "@oxc-project/*"
- "oxc-*"
- "oxfmt"
- "oxlint"
lint:
patterns:
# Rule sources for @goauthentik/oxlint-config; oxlint reads their rule
# definitions, so they move in lockstep with it.
- "eslint-plugin-lit"
- "eslint-plugin-wc"
- "stylelint"
- "stylelint-*"
storybook:
patterns:
- "@storybook/*"
@@ -148,6 +159,17 @@ updates:
patterns:
- "@swc/*"
- "swc-*"
# Listed before `goauthentik` so the config package moves with Docusaurus.
docusaurus:
patterns:
- "@docusaurus/*"
- "@goauthentik/docusaurus-config"
- "docusaurus-plugin-openapi-docs"
- "docusaurus-theme-openapi-docs"
website-build:
patterns:
- "lightningcss*"
- "@rspack/binding*"
goauthentik:
patterns:
- "@goauthentik/*"
@@ -164,12 +186,15 @@ updates:
- package-ecosystem: npm
directories:
- "/packages/prettier-config"
- "/packages/tsconfig"
- "/packages/docusaurus-config"
- "/packages/eslint-config"
- "/packages/logger-js"
- "/packages/esbuild-plugin-live-reload"
- "/packages/fonts"
- "/packages/geo"
- "/packages/logger-js"
- "/packages/oxfmt-config"
- "/packages/oxlint-config"
- "/packages/theme"
- "/packages/tsconfig"
schedule:
interval: daily
time: "04:00"
@@ -190,13 +215,20 @@ updates:
patterns:
- "@babel/*"
- "babel-*"
eslint:
oxc:
patterns:
- "@eslint/*"
- "@typescript-eslint/*"
- "eslint-*"
- "eslint"
- "typescript-eslint"
- "@oxc-project/*"
- "oxc-*"
- "oxfmt"
- "oxlint"
lint:
patterns:
# Rule sources for @goauthentik/oxlint-config; oxlint reads their rule
# definitions, so they move in lockstep with it.
- "eslint-plugin-lit"
- "eslint-plugin-wc"
- "stylelint"
- "stylelint-*"
storybook:
patterns:
- "@storybook/*"
@@ -228,51 +260,7 @@ updates:
#endregion
# #region Documentation
- package-ecosystem: npm
directory: "/website"
schedule:
interval: daily
time: "04:00"
open-pull-requests-limit: 10
commit-message:
prefix: "website:"
labels:
- dependencies
cooldown:
default-days: 7
semver-major-days: 14
semver-patch-days: 3
groups:
docusaurus:
patterns:
- "@docusaurus/*"
- "@goauthentik/docusaurus-config"
- "docusaurus-plugin-openapi-docs"
- "docusaurus-theme-openapi-docs"
build:
patterns:
- "@swc/*"
- "swc-*"
- "lightningcss*"
- "@rspack/binding*"
goauthentik:
patterns:
- "@goauthentik/eslint-config"
- "@goauthentik/prettier-config"
- "@goauthentik/tsconfig"
eslint:
patterns:
- "@eslint/*"
- "@typescript-eslint/*"
- "eslint-*"
- "eslint"
- "typescript-eslint"
#endregion
# AWS Lifecycle
#region AWS Lifecycle
- package-ecosystem: npm
directory: "/lifecycle/aws"
@@ -341,6 +329,10 @@ updates:
- dependencies
cooldown:
default-days: 3
groups:
pnpm:
patterns:
- "*pnpm/pnpm"
- package-ecosystem: docker-compose
directories:
- /packages/client-go
+5
View File
@@ -0,0 +1,5 @@
version: "2"
linters:
exclusions:
paths:
- '(^|/)node_modules/'
+42
View File
@@ -15,3 +15,45 @@ git:
source_file: locale/en/LC_MESSAGES/django.po
# path expression to translation files, must contain <lang> placeholder
translation_files_expression: "locale/<lang>/LC_MESSAGES/django.po"
settings:
# Generated from locales.yaml by `make gen-locales`. Do not edit by hand.
language_mapping:
ar_AA: ar
bg_BG: bg-BG
bn_BD: bn-BD
ca_ES: ca-ES
cs_CZ: cs-CZ
sk_SK: sk-SK
cy_GB: cy-GB
da_DK: da-DK
de_DE: de-DE
el_GR: el-GR
es_ES: es-ES
eu_ES: eu-ES
fa_IR: fa-IR
fi_FI: fi-FI
fr_FR: fr-FR
gl_ES: gl-ES
hr_HR: hr-HR
hu_HU: hu-HU
it_IT: it-IT
ja_JP: ja-JP
ka_GE: ka-GE
ko_KR: ko-KR
lt_LT: lt-LT
lv_LV: lv-LV
ms_MY: ms-MY
no_NO: nb-NO
nl_NL: nl-NL
pl_PL: pl-PL
pt_BR: pt-BR
pt_PT: pt-PT
ro_RO: ro-RO
ru_RU: ru-RU
sl_SI: sl-SI
sv_SE: sv-SE
th_TH: th-TH
tr_TR: tr-TR
uk_UA: uk-UA
vi_VN: vi-VN
@@ -60,8 +60,8 @@ jobs:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v5
with:
ref: "${{ inputs.ref }}"
- uses: docker/setup-qemu-action@1f40c72289eff860ee54a304f1438e3cff362e0a # v4.3.0
- uses: docker/setup-buildx-action@37fe631027851001ddb9b187196cc803df7f5f0e # v4.3.0
- uses: docker/setup-qemu-action@99012661954931238ded8c8b007157a8430204e1 # v4.4.0
- uses: docker/setup-buildx-action@594f3bf4285d9ea8dc53c9a0c9c4092420091003 # v4.4.0
- if: "${{ inputs.should-cache }}"
uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4.6.0
with:
@@ -69,7 +69,7 @@ jobs:
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- id: build
uses: docker/build-push-action@53b7df96c91f9c12dcc8a07bcb9ccacbed38856a # v7.3.0
uses: docker/build-push-action@c3c9e263c25d99ce0380d002d59b67737d91b0dc # v7.4.0
with:
# inputs
context: .
@@ -91,7 +91,7 @@ jobs:
# params
platforms: "linux/${{ inputs.image-arch }}"
- id: upload
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v4
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v4
with:
name: "container-build-${{ inputs.image-name }}-${{ inputs.image-arch }}"
path: build/
@@ -34,7 +34,7 @@ jobs:
uses: ./.github/workflows/_reusable-container-build-single.yml
secrets: inherit
with:
runs-on: ubuntu-latest
runs-on: ubuntu-26.04
ref: "${{ inputs.ref }}"
image-name: "${{ inputs.image-name }}"
image-arch: amd64
@@ -47,7 +47,7 @@ jobs:
uses: ./.github/workflows/_reusable-container-build-single.yml
secrets: inherit
with:
runs-on: ubuntu-24.04-arm
runs-on: ubuntu-26.04-arm
ref: "${{ inputs.ref }}"
image-name: "${{ inputs.image-name }}"
image-arch: arm64
@@ -57,13 +57,13 @@ jobs:
cache-suffix: "${{ inputs.cache-suffix }}"
merge:
runs-on: ubuntu-latest
runs-on: ubuntu-26.04
needs:
- build-amd64
- build-arm64
steps:
- uses: regclient/actions/regctl-installer@bb562fac724b7b37c17f19671df07fe34fabc376
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v5
- uses: regclient/actions/regctl-installer@dd58ad94f76adb73d8ac1bf75ed25f01545d5b32
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v5
with:
artifact-ids: "${{ needs.build-amd64.outputs.artifact-id }},${{ needs.build-arm64.outputs.artifact-id }}"
merge-multiple: true
@@ -229,10 +229,10 @@ jobs:
"${target}" \
"build/container/${image_name}.oci.tar"
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v4
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v4
with:
name: "container-build-${{ inputs.image-name }}"
path: build/
if-no-files-found: error
retention-days: 2
include-hidden-files: true
include-hidden-files: true
+9 -9
View File
@@ -18,12 +18,12 @@ concurrency:
jobs:
lint:
runs-on: ubuntu-latest
runs-on: ubuntu-26.04
strategy:
fail-fast: false
matrix:
command:
- prettier-check
- check
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v5
- uses: pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413 # v6.1.0
@@ -31,7 +31,7 @@ jobs:
run: |
echo "PNPM_HOME=${RUNNER_TEMP}/pnpm-home" >> "$GITHUB_ENV"
echo "npm_config_store_dir=${RUNNER_TEMP}/pnpm-home/store" >> "$GITHUB_ENV"
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v4
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v4
with:
node-version-file: package.json
cache: pnpm
@@ -45,7 +45,7 @@ jobs:
- name: Lint
run: pnpm --dir website run ${{ matrix.command }}
build:
runs-on: ubuntu-latest
runs-on: ubuntu-26.04
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v5
@@ -54,7 +54,7 @@ jobs:
run: |
echo "PNPM_HOME=${RUNNER_TEMP}/pnpm-home" >> "$GITHUB_ENV"
echo "npm_config_store_dir=${RUNNER_TEMP}/pnpm-home/store" >> "$GITHUB_ENV"
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v4
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v4
with:
node-version-file: package.json
cache: pnpm
@@ -79,19 +79,19 @@ jobs:
env:
NODE_ENV: production
run: pnpm run build:api
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v4
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v4
with:
name: api-docs
path: website/api/build
retention-days: 7
deploy:
runs-on: ubuntu-latest
runs-on: ubuntu-26.04
needs:
- lint
- build
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v5
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v5
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v5
with:
name: api-docs
path: website/api/build
@@ -100,7 +100,7 @@ jobs:
run: |
echo "PNPM_HOME=${RUNNER_TEMP}/pnpm-home" >> "$GITHUB_ENV"
echo "npm_config_store_dir=${RUNNER_TEMP}/pnpm-home/store" >> "$GITHUB_ENV"
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v4
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v4
with:
node-version-file: package.json
cache: pnpm
+3 -3
View File
@@ -23,7 +23,7 @@ env:
jobs:
check-changes-applied:
runs-on: ubuntu-latest
runs-on: ubuntu-26.04
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v5
- name: Setup authentik env
@@ -33,7 +33,7 @@ jobs:
run: |
echo "PNPM_HOME=${RUNNER_TEMP}/pnpm-home" >> "$GITHUB_ENV"
echo "npm_config_store_dir=${RUNNER_TEMP}/pnpm-home/store" >> "$GITHUB_ENV"
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v4
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v4
with:
node-version-file: package.json
cache: pnpm
@@ -48,7 +48,7 @@ jobs:
if: always()
needs:
- check-changes-applied
runs-on: ubuntu-latest
runs-on: ubuntu-26.04
steps:
- uses: re-actors/alls-green@b5b5b37504aa4183270bd3d855c52a67f212be35 # release/v1
with:
+2 -2
View File
@@ -13,7 +13,7 @@ env:
jobs:
publish-source-docs:
runs-on: ubuntu-latest
runs-on: ubuntu-26.04
timeout-minutes: 120
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v5
@@ -22,7 +22,7 @@ jobs:
- name: generate docs
run: |
uv run make migrate
uv run ak build_source_docs
uv run python -m manage build_source_docs
- uses: nwtgck/actions-netlify@d22a32a27c918fe470bbc562e984f80ec48c2668 # v4.0.0
id: netlify
with:
+12 -12
View File
@@ -18,14 +18,14 @@ concurrency:
jobs:
lint:
runs-on: ubuntu-latest
runs-on: ubuntu-26.04
env:
NODE_ENV: production
strategy:
fail-fast: false
matrix:
command:
- prettier-check
- check
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v5
- uses: pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413 # v6.1.0
@@ -33,7 +33,7 @@ jobs:
run: |
echo "PNPM_HOME=${RUNNER_TEMP}/pnpm-home" >> "$GITHUB_ENV"
echo "npm_config_store_dir=${RUNNER_TEMP}/pnpm-home/store" >> "$GITHUB_ENV"
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v4
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v4
with:
node-version-file: package.json
cache: pnpm
@@ -47,7 +47,7 @@ jobs:
- name: Lint
run: pnpm --dir website run ${{ matrix.command }}
build-docs:
runs-on: ubuntu-latest
runs-on: ubuntu-26.04
env:
NODE_ENV: production
steps:
@@ -57,7 +57,7 @@ jobs:
run: |
echo "PNPM_HOME=${RUNNER_TEMP}/pnpm-home" >> "$GITHUB_ENV"
echo "npm_config_store_dir=${RUNNER_TEMP}/pnpm-home/store" >> "$GITHUB_ENV"
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v4
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v4
name: Setup Node.js
with:
node-version-file: package.json
@@ -72,7 +72,7 @@ jobs:
- name: Build Documentation via Docusaurus
run: pnpm --dir website run build
build-integrations:
runs-on: ubuntu-latest
runs-on: ubuntu-26.04
env:
NODE_ENV: production
steps:
@@ -82,7 +82,7 @@ jobs:
run: |
echo "PNPM_HOME=${RUNNER_TEMP}/pnpm-home" >> "$GITHUB_ENV"
echo "npm_config_store_dir=${RUNNER_TEMP}/pnpm-home/store" >> "$GITHUB_ENV"
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v4
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v4
with:
node-version-file: package.json
cache: pnpm
@@ -96,7 +96,7 @@ jobs:
- name: Build Integrations via Docusaurus
run: pnpm --dir website run build:integrations
build-container:
runs-on: ubuntu-latest
runs-on: ubuntu-26.04
permissions:
# Needed to upload container images to ghcr.io
packages: write
@@ -111,9 +111,9 @@ jobs:
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Set up QEMU
uses: docker/setup-qemu-action@1f40c72289eff860ee54a304f1438e3cff362e0a # v4.3.0
uses: docker/setup-qemu-action@99012661954931238ded8c8b007157a8430204e1 # v4.4.0
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@37fe631027851001ddb9b187196cc803df7f5f0e # v4.3.0
uses: docker/setup-buildx-action@594f3bf4285d9ea8dc53c9a0c9c4092420091003 # v4.4.0
- name: Login to Container Registry
if: "${{ github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository) }}"
uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4.6.0
@@ -122,7 +122,7 @@ jobs:
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build Docker Image
uses: docker/build-push-action@53b7df96c91f9c12dcc8a07bcb9ccacbed38856a # v7.3.0
uses: docker/build-push-action@c3c9e263c25d99ce0380d002d59b67737d91b0dc # v7.4.0
with:
file: website/Dockerfile
context: .
@@ -141,7 +141,7 @@ jobs:
- build-docs
- build-integrations
- build-container
runs-on: ubuntu-latest
runs-on: ubuntu-26.04
steps:
- uses: re-actors/alls-green@b5b5b37504aa4183270bd3d855c52a67f212be35 # release/v1
with:
+1 -1
View File
@@ -13,7 +13,7 @@ on:
jobs:
test-container:
runs-on: ubuntu-latest
runs-on: ubuntu-26.04
strategy:
fail-fast: false
matrix:
+185 -25
View File
@@ -29,7 +29,7 @@ permissions:
jobs:
build-compute-tags:
runs-on: ubuntu-latest
runs-on: ubuntu-26.04
outputs:
safe-branch-name: "${{ steps.compute-tags.outputs.safe-branch-name }}"
tag-full: "${{ steps.compute-tags.outputs.tag-full }}"
@@ -84,6 +84,10 @@ jobs:
deps: node
- job: catalogs
deps: node
- job: locales
deps: python
- job: oxlint-fixtures
deps: node
- job: pending-migrations
deps: python,runtime
- job: ruff
@@ -98,7 +102,7 @@ jobs:
deps: rust
- job: rustfmt
deps: rust-nightly
runs-on: ubuntu-latest
runs-on: ubuntu-26.04
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v5
- name: Setup authentik env
@@ -114,7 +118,7 @@ jobs:
- name: run job
run: make ci-lint-${{ matrix.job }}
test-gen:
runs-on: ubuntu-latest
runs-on: ubuntu-26.04
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v5
with:
@@ -130,7 +134,7 @@ jobs:
- name: ensure schema is up-to-date
run: git diff --exit-code -- schema.yml blueprints/schema.json packages/client-go packages/client-rust packages/client-ts
test-migrations:
runs-on: ubuntu-latest
runs-on: ubuntu-26.04
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v5
- name: Setup authentik env
@@ -138,7 +142,7 @@ jobs:
- name: run migrations
run: uv run python -m lifecycle.migrate
test-make-seed:
runs-on: ubuntu-latest
runs-on: ubuntu-26.04
steps:
- id: seed
run: |
@@ -147,7 +151,7 @@ jobs:
seed: ${{ steps.seed.outputs.seed }}
test-migrations-from-stable:
name: test-migrations-from-stable - PostgreSQL ${{ matrix.psql }} - Run ${{ matrix.run_id }}/10
runs-on: ubuntu-latest
runs-on: ubuntu-26.04
timeout-minutes: 30
needs: test-make-seed
strategy:
@@ -230,7 +234,7 @@ jobs:
flags: unit-migrate
test-unittest:
name: test-unittest - PostgreSQL ${{ matrix.psql }} - Run ${{ matrix.run_id }}/10
runs-on: ubuntu-latest
runs-on: ubuntu-26.04
timeout-minutes: 30
needs: test-make-seed
strategy:
@@ -258,14 +262,14 @@ jobs:
with:
flags: unit
test-integration:
runs-on: ubuntu-latest
runs-on: ubuntu-26.04
timeout-minutes: 30
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v5
- name: Setup authentik env
uses: ./.github/actions/setup
- name: Create k8s Kind Cluster
uses: helm/kind-action@06c1ae10762d3b9c1644e7fe69596ae519e015a2 # v1.15.0
uses: helm/kind-action@1544676c07bb3570fcb70166beaa07c4528fd4aa # v1.15.1
- name: run integration
run: |
uv run coverage run manage.py test tests/integration
@@ -277,7 +281,7 @@ jobs:
flags: integration
test-e2e:
name: test-e2e (${{ matrix.job.name }})
runs-on: ubuntu-latest
runs-on: ubuntu-26.04
timeout-minutes: 30
needs:
- build-compute-tags
@@ -317,7 +321,7 @@ jobs:
glob: tests/e2e/test_endpoints_*
profiles: selenium
steps:
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v5
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v5
with:
pattern: container-build-*-amd64
merge-multiple: true
@@ -341,7 +345,7 @@ jobs:
run: |
echo "PNPM_HOME=${RUNNER_TEMP}/pnpm-home" >> "$GITHUB_ENV"
echo "npm_config_store_dir=${RUNNER_TEMP}/pnpm-home/store" >> "$GITHUB_ENV"
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v4
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v4
with:
node-version-file: package.json
cache: pnpm
@@ -374,7 +378,7 @@ jobs:
flags: e2e
test-openid-conformance:
name: test-openid-conformance (${{ matrix.job.name }})
runs-on: ubuntu-latest
runs-on: ubuntu-26.04
timeout-minutes: 30
strategy:
fail-fast: false
@@ -429,12 +433,12 @@ jobs:
with:
flags: conformance
- if: ${{ !cancelled() }}
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: conformance-certification-${{ matrix.job.name }}
path: tests/openid_conformance/exports/
test-rust:
runs-on: ubuntu-latest
runs-on: ubuntu-26.04
timeout-minutes: 30
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v5
@@ -461,10 +465,134 @@ jobs:
files: target/llvm-cov-target/rust.json
flags: rust
- if: ${{ !cancelled() }}
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: test-rust
path: target/llvm-cov-target/rust.json
test-e2e-web:
name: test-e2e (web)
runs-on: ubuntu-26.04
timeout-minutes: 60
needs:
- build
permissions:
contents: read
# Required so the "Comment on PR" step can create and update the run's
# shared comment through the issues API.
pull-requests: write
# Required so the codecov upload below can mint an OIDC token.
id-token: write
services:
# setup-authentik brings authentik up through the published compose file,
# which pulls its image — a locally loaded tag is not pullable. Pushing the
# image built by `build` here first gives compose something to pull.
registry:
image: registry:2
ports:
- 5000:5000
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v5
- name: Setup authentik env
uses: ./.github/actions/setup
with:
dependencies: node
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v5
with:
name: container-build-server-amd64
- name: Push the built server image to the local registry
run: | # shell
skopeo copy --dest-tls-verify=false \
"oci-archive:container/server-amd64.oci.tar" \
"docker://127.0.0.1:5000/server:e2e"
- name: Resolve Playwright version
id: playwright-version
working-directory: web
run: | # shell
version=$(node -p "require('@playwright/test/package.json').version")
if [ -z "$version" ]; then
echo "Failed to resolve @playwright/test version" >&2
exit 1
fi
echo "version=${version}" >> "$GITHUB_OUTPUT"
- name: Cache Playwright browsers
id: playwright-cache
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v4
with:
path: ~/.cache/ms-playwright
key: ${{ runner.os }}-playwright-${{ steps.playwright-version.outputs.version }}
- name: Install Playwright browsers
working-directory: web
run: | # shell
if [ "${{ steps.playwright-cache.outputs.cache-hit }}" = "true" ]; then
pnpm exec playwright install-deps chromium
else
pnpm exec playwright install --with-deps chromium
fi
- name: Start authentik
id: authentik
uses: goauthentik/action-setup-authentik@d6c4c8f677abc2a9839b855100ab6c56eddacab5 # v3.4.0
with:
version: 127.0.0.1:5000/server:e2e
blueprints_path: web/test/blueprints
# The image tag is per-commit, so the cache key never hits and every run
# would `docker save` a gigabyte for nothing.
cache: false
wait: true
enterprise_license: true
- name: Run Playwright tests
working-directory: web
env:
AK_TEST_RUNNER_PAGE_URL: ${{ steps.authentik.outputs.http_url }}
run: pnpm run test:e2e
# Reporting / upload steps below intentionally use `!cancelled()` rather
# than `failure()`: a cancelled run (e.g. superseded by a newer push) is
# not a real result and shouldn't produce reviewer-facing artifacts or
# comments. `if-no-files-found: ignore` keeps the "passed" case quiet.
# Server logs need no step of their own: the action's post step dumps the
# logs of every compose service into the job log.
- name: Upload Playwright HTML report
if: ${{ !cancelled() }}
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: playwright-report
path: web/playwright-report/
retention-days: 14
if-no-files-found: ignore
- name: Upload Playwright traces and videos
if: ${{ !cancelled() }}
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: playwright-traces
path: web/test-results/
retention-days: 14
if-no-files-found: ignore
# Test analytics only — no coverage is collected for the browser suite.
- name: Upload Playwright results to codecov
if: ${{ !cancelled() }}
uses: codecov/codecov-action@303a32d7a59b442fa8d48b6a1cc6825c09c847a5 # v5
with:
files: web/playwright-report/results.xml
flags: e2e-web
use_oidc: true
report_type: test_results
# Pass or fail, the artifacts are only useful if a reviewer knows how to get
# them; the results themselves live in codecov. Skipped for pushes, and for
# fork pull requests: those run with a read-only GITHUB_TOKEN even after
# maintainer approval, so commenting would 403.
- name: Comment on PR
if: "${{ !cancelled() && github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository }}"
uses: ./.github/actions/comment-pr
with:
section: playwright
body: |
## Playwright e2e
Download this run's HTML report and traces, then open the report:
```shell
gh run download ${{ github.run_id }} -D playwright-artifacts
npx playwright show-report playwright-artifacts/playwright-report
```
ci-core-mark:
if: always()
needs:
@@ -477,7 +605,7 @@ jobs:
- test-integration
- test-e2e
- test-rust
runs-on: ubuntu-latest
runs-on: ubuntu-26.04
steps:
- uses: re-actors/alls-green@b5b5b37504aa4183270bd3d855c52a67f212be35 # release/v1
with:
@@ -487,7 +615,6 @@ jobs:
needs:
- build-compute-tags
- build
- ci-core-mark
permissions:
# Needed to upload container images to ghcr.io
packages: write
@@ -497,7 +624,7 @@ jobs:
artifact-metadata: write
# Needed for checkout
contents: read
runs-on: ubuntu-latest
runs-on: ubuntu-26.04
strategy:
fail-fast: false
matrix:
@@ -508,16 +635,16 @@ jobs:
- radius
- rac
steps:
- uses: regclient/actions/regctl-installer@bb562fac724b7b37c17f19671df07fe34fabc376
- uses: regclient/actions/regctl-installer@dd58ad94f76adb73d8ac1bf75ed25f01545d5b32
# logs in to ghcr.io by default
- uses: regclient/actions/regctl-login@bb562fac724b7b37c17f19671df07fe34fabc376
- uses: regclient/actions/regctl-login@dd58ad94f76adb73d8ac1bf75ed25f01545d5b32
# Docker login is required for attestations
- uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f
with:
registry: ghcr.io
username: "${{ github.actor }}"
password: "${{ secrets.GITHUB_TOKEN }}"
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v5
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v5
with:
name: "container-build-${{ matrix.name }}"
- id: publish
@@ -538,7 +665,7 @@ jobs:
needs:
- build-compute-tags
- publish
runs-on: ubuntu-latest
runs-on: ubuntu-26.04
permissions:
# Needed to write comments on PRs
pull-requests: write
@@ -546,6 +673,39 @@ jobs:
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v5
- name: Comment on PR
uses: ./.github/actions/comment-pr-instructions
uses: ./.github/actions/comment-pr
with:
tag: "${{ needs.build-compute-tags.outputs.tag-full }}"
section: install
body: |
## Installation instructions
<details>
<summary>Instructions for docker-compose</summary>
Add the following block to your `.env` file:
```shell
AUTHENTIK_IMAGE=ghcr.io/goauthentik/dev-server
AUTHENTIK_TAG=${{ needs.build-compute-tags.outputs.tag-full }}
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.
</details>
<details>
<summary>Instructions for Kubernetes</summary>
Add the following block to your `values.yml` file:
```yaml
authentik:
outposts:
container_image_base: ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s
global:
image:
repository: ghcr.io/goauthentik/dev-server
tag: ${{ needs.build-compute-tags.outputs.tag-full }}
```
Afterwards, run the upgrade commands from the latest release notes.
</details>
@@ -0,0 +1,221 @@
---
name: CI - Cross-branch migrations
on:
workflow_dispatch:
schedule:
- cron: "41 4 * * *"
pull_request:
paths:
- .github/workflows/ci-migrations-cross-branch.yml
jobs:
discover-release-branches:
name: Find the adjacent release branches
runs-on: ubuntu-26.04
outputs:
pairs: "${{ steps.pairs.outputs.pairs }}"
steps:
- id: pairs
# Release branches are named version-<family> and sort with `sort -V`,
# so the supported upgrade steps are derived here instead of being
# listed
env:
REPO_URL: "${{ github.server_url }}/${{ github.repository }}"
run: |
set -euo pipefail
mapfile -t branches < <(
git ls-remote --heads "${REPO_URL}" 'refs/heads/version-*' \
| sed 's#.*refs/heads/##' \
| sort -V
)
if [ "${#branches[@]}" -lt 2 ]; then
echo "::error::Found ${#branches[@]} release branches, need at least two"
exit 1
fi
newest="${branches[-1]}"
previous="${branches[-2]}"
echo "::notice::Checking ${previous} -> ${newest} and ${newest} -> main"
pairs="$(jq -nc --arg p "${previous}" --arg n "${newest}" \
'{include: [{old: $p, new: $n}, {old: $n, new: "main"}]}')"
echo "pairs=${pairs}" >> "$GITHUB_OUTPUT"
test-migrations-cross-branch:
name: Migrate ${{ matrix.old }} to ${{ matrix.new }}
needs: discover-release-branches
runs-on: ubuntu-26.04
timeout-minutes: 20
strategy:
fail-fast: false
matrix: ${{ fromJson(needs.discover-release-branches.outputs.pairs) }}
env:
IMAGE_REPO: ghcr.io/goauthentik/dev-server
PG_IMAGE: postgres:16-alpine
PG_NAME: ak-migrate-postgres
PG_NETWORK: ak-migrate
steps:
- id: images
name: Resolve the branch images
env:
OLD_BRANCH: "${{ matrix.old }}"
NEW_BRANCH: "${{ matrix.new }}"
run: |
set -euo pipefail
resolve() {
local branch="$1" dashed dotted tag
# version-2026.8 and newer replace the dot with a dash in the tag.
# Remove once every branch uses compute-container-tags.
dashed="gh-$(printf '%s' "${branch}" | sed 's/[^a-zA-Z0-9-]/-/g')"
dotted="gh-${branch}"
for tag in "${dashed}" "${dotted}"; do
if docker manifest inspect "${IMAGE_REPO}:${tag}" >/dev/null 2>&1; then
printf '%s' "${IMAGE_REPO}:${tag}"
return 0
fi
done
return 1
}
missing=""
old_image="$(resolve "${OLD_BRANCH}")" || missing="${OLD_BRANCH}"
new_image="$(resolve "${NEW_BRANCH}")" || missing="${missing:+${missing} and }${NEW_BRANCH}"
if [ -n "${missing}" ]; then
# A branch has no image until its own ci-main publish job runs, so
# this is normal right after a branch-off and while that branch is
# red. It is not a migration problem, so the step exits zero and
# nothing is posted to Slack.
note="No published image for ${missing}, skipped ${OLD_BRANCH} -> ${NEW_BRANCH}."
echo "::warning::${note}"
echo "${note}" >> "$GITHUB_STEP_SUMMARY"
echo "ready=false" >> "$GITHUB_OUTPUT"
exit 0
fi
echo "::notice::${old_image} -> ${new_image}"
{
echo "old-image=${old_image}"
echo "new-image=${new_image}"
echo "ready=true"
} >> "$GITHUB_OUTPUT"
- name: Start PostgreSQL
if: ${{ steps.images.outputs.ready == 'true' }}
run: |
set -euo pipefail
docker network create "${PG_NETWORK}"
docker run --detach --name "${PG_NAME}" --network "${PG_NETWORK}" \
-e POSTGRES_USER=authentik \
-e POSTGRES_PASSWORD=authentik \
-e POSTGRES_DB=authentik \
"${PG_IMAGE}"
ready=false
for _ in $(seq 1 60); do
if docker exec "${PG_NAME}" pg_isready -U authentik -d authentik >/dev/null 2>&1; then
ready=true
break
fi
sleep 1
done
if [ "${ready}" != "true" ]; then
docker logs "${PG_NAME}"
echo "::error::PostgreSQL did not become ready"
exit 1
fi
echo "AUTHENTIK_SECRET_KEY=$(openssl rand -hex 32)" >> "$GITHUB_ENV"
- name: Migrate to ${{ matrix.old }}
if: ${{ steps.images.outputs.ready == 'true' }}
env:
IMAGE: "${{ steps.images.outputs.old-image }}"
run: |
set -euo pipefail
# lifecycle/ sits at /lifecycle and the working directory is /, so
# the entrypoint is overridden rather than using `ak migrate`, which
# would skip the lifecycle system migrations.
docker run --rm --network "${PG_NETWORK}" \
-e AUTHENTIK_POSTGRESQL__HOST="${PG_NAME}" \
-e AUTHENTIK_POSTGRESQL__USER=authentik \
-e AUTHENTIK_POSTGRESQL__NAME=authentik \
-e AUTHENTIK_POSTGRESQL__PASSWORD=authentik \
-e AUTHENTIK_SECRET_KEY="${AUTHENTIK_SECRET_KEY}" \
-e AUTHENTIK_AVATARS=none \
--entrypoint bash "${IMAGE}" \
-c 'cd / && python -m lifecycle.migrate'
- name: Migrate to ${{ matrix.new }}
if: ${{ steps.images.outputs.ready == 'true' }}
env:
IMAGE: "${{ steps.images.outputs.new-image }}"
run: |
set -euo pipefail
docker run --rm --network "${PG_NETWORK}" \
-e AUTHENTIK_POSTGRESQL__HOST="${PG_NAME}" \
-e AUTHENTIK_POSTGRESQL__USER=authentik \
-e AUTHENTIK_POSTGRESQL__NAME=authentik \
-e AUTHENTIK_POSTGRESQL__PASSWORD=authentik \
-e AUTHENTIK_SECRET_KEY="${AUTHENTIK_SECRET_KEY}" \
-e AUTHENTIK_AVATARS=none \
--entrypoint bash "${IMAGE}" \
-c 'cd / && python -m lifecycle.migrate'
notify-migration-divergence:
name: Notify migration divergence
# Only the nightly run posts to Slack when something failed.
# A manual run/PR show up in the Actions tab.
if: >-
${{ always() && github.event_name == 'schedule'
&& (needs.discover-release-branches.result != 'success'
|| needs.test-migrations-cross-branch.result != 'success') }}
needs:
- discover-release-branches
- test-migrations-cross-branch
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Build the Slack message
env:
DISCOVERY_RESULT: "${{ needs.discover-release-branches.result }}"
PAIRS: "${{ needs.discover-release-branches.outputs.pairs }}"
REPO: "${{ github.repository }}"
RUN_URL: "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
run: |
set -euo pipefail
if [ "${DISCOVERY_RESULT}" = "success" ]; then
headline="Nightly cross-branch migration check failed"
intro="An upgrade between two release branches is broken. Django rejects the migration history, so the server crash-loops on start."
pairs_list="$(printf '%s' "${PAIRS:-}" \
| jq -r '.include[] | "• `\(.old)` -> `\(.new)`"' 2>/dev/null || true)"
[ -n "${pairs_list}" ] || pairs_list="• the checked pairs are unknown"
body="$(printf '%s\n\n%s' "${intro}" "${pairs_list}")"
link_text="Open the failing run to see which pair failed"
else
headline="Nightly cross-branch migration check could not run"
body="Branch discovery finished with \`${DISCOVERY_RESULT}\`, so no upgrade path was checked."
link_text="Open the failing run"
fi
jq -n \
--arg headline "${headline}" \
--arg body "${body}" \
--arg link_text "${link_text}" \
--arg repo "${REPO}" \
--arg run_url "${RUN_URL}" \
'{
text: $headline,
blocks: [
{type: "section", text: {type: "mrkdwn",
text: ("*" + $headline + "*\n" + $body)}},
{type: "context", elements: [
{type: "mrkdwn",
text: ("`" + $repo + "` · <" + $run_url + "|" + $link_text + ">")}
]}
]
}' > "${RUNNER_TEMP}/slack-payload.json"
- name: Post to Slack
uses: slackapi/slack-github-action@dcb1066f776dd043e64d0e8ba94ca15cc7e1875d # v4.0.0
with:
webhook: "${{ secrets.RELEASE_SLACK_WEBHOOK_URL }}"
webhook-type: incoming-webhook
payload-file-path: "${{ runner.temp }}/slack-payload.json"
errors: "true"
+5 -5
View File
@@ -23,7 +23,7 @@ env:
jobs:
lint-golint:
runs-on: ubuntu-latest
runs-on: ubuntu-26.04
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v5
- uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
@@ -38,10 +38,10 @@ jobs:
- name: golangci-lint
uses: golangci/golangci-lint-action@ba0d7d2ec06a0ea1cb5fa41b2e4a3ab91d21278a # v8
with:
args: --timeout 5000s --verbose
args: --timeout 5000s --verbose --config .github/golangci.yml
skip-cache: true
test-unittest:
runs-on: ubuntu-latest
runs-on: ubuntu-26.04
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v5
- uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
@@ -60,7 +60,7 @@ jobs:
needs:
- lint-golint
- test-unittest
runs-on: ubuntu-latest
runs-on: ubuntu-26.04
steps:
- uses: re-actors/alls-green@b5b5b37504aa4183270bd3d855c52a67f212be35 # release/v1
with:
@@ -69,7 +69,7 @@ jobs:
timeout-minutes: 120
needs:
- ci-outpost-mark
runs-on: ubuntu-latest
runs-on: ubuntu-26.04
strategy:
fail-fast: false
matrix:
+9 -171
View File
@@ -23,7 +23,7 @@ env:
jobs:
lint:
runs-on: ubuntu-latest
runs-on: ubuntu-26.04
timeout-minutes: 15
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v5
@@ -32,7 +32,7 @@ jobs:
run: |
echo "PNPM_HOME=${RUNNER_TEMP}/pnpm-home" >> "$GITHUB_ENV"
echo "npm_config_store_dir=${RUNNER_TEMP}/pnpm-home/store" >> "$GITHUB_ENV"
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v4
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v4
with:
node-version-file: package.json
cache: pnpm
@@ -44,16 +44,16 @@ jobs:
pnpm install --frozen-lockfile
pnpm --dir web install --frozen-lockfile
- name: Lint
run: pnpm --dir web run lint-check
run: pnpm --dir web run lint:check
- name: Check types
run: pnpm --dir web run tsc
- name: Check formatting
run: pnpm --dir web run prettier-check
run: pnpm --dir web run format:check
- name: Lit analyse
run: pnpm --dir web run lit-analyse
build:
runs-on: ubuntu-latest
runs-on: ubuntu-26.04
timeout-minutes: 15
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v5
@@ -62,7 +62,7 @@ jobs:
run: |
echo "PNPM_HOME=${RUNNER_TEMP}/pnpm-home" >> "$GITHUB_ENV"
echo "npm_config_store_dir=${RUNNER_TEMP}/pnpm-home/store" >> "$GITHUB_ENV"
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v4
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v4
with:
node-version-file: package.json
cache: pnpm
@@ -78,174 +78,12 @@ jobs:
NODE_ENV: "production"
working-directory: web/
run: pnpm run build
e2e:
name: e2e (playwright)
runs-on: ubuntu-latest
timeout-minutes: 60
permissions:
contents: read
# Required so the codecov upload below can mint an OIDC token.
id-token: write
env:
# Drives blueprints/system/bootstrap.yaml at startup: creates akadmin with
# these credentials, which are the ones SessionFixture logs in with. Without
# them the bootstrap blueprint leaves the user without a usable password and
# the root URL bounces through /setup.
AUTHENTIK_BOOTSTRAP_EMAIL: "[email protected]"
AUTHENTIK_BOOTSTRAP_PASSWORD: "test-runner"
# The embedded outpost wants to reconcile against Docker/Kubernetes, which
# isn't available here and only produces noise in the logs.
AUTHENTIK_OUTPOSTS__DISABLE_EMBEDDED_OUTPOST: "true"
# Both default to the container layout (`/blueprints`, `/certs`), which does
# not exist in a source checkout. Without these the bootstrap blueprint
# cannot be read, gunicorn's workers fail to boot, and :9000 never opens —
# the readiness gate then just times out with nothing useful on stdout.
AUTHENTIK_BLUEPRINTS_DIR: "./blueprints"
AUTHENTIK_CERT_DISCOVERY_DIR: "./certs"
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v5
- name: Setup authentik env
uses: ./.github/actions/setup
with:
dependencies: system,python,node,rust,runtime
# The web build has to run before cargo: src/server/core.rs embeds
# web/dist/standalone/loading/startup.html with include_str!, so the Rust
# build fails to compile without it.
- name: Build web UI
env:
NODE_ENV: "production"
run: pnpm --dir web run build
- name: Build authentik
run: |
cargo build --release
sudo install -m 0755 ./target/release/authentik /usr/local/bin/authentik
- name: Apply migrations
run: uv run python -m lifecycle.migrate
- name: Resolve Playwright version
id: playwright-version
working-directory: web
run: | # shell
version=$(node -p "require('@playwright/test/package.json').version")
if [ -z "$version" ]; then
echo "Failed to resolve @playwright/test version" >&2
exit 1
fi
echo "version=${version}" >> "$GITHUB_OUTPUT"
- name: Cache Playwright browsers
id: playwright-cache
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v4
with:
path: ~/.cache/ms-playwright
key: ${{ runner.os }}-playwright-${{ steps.playwright-version.outputs.version }}
- name: Install Playwright browsers
working-directory: web
run: | # shell
if [ "${{ steps.playwright-cache.outputs.cache-hit }}" = "true" ]; then
pnpm exec playwright install-deps chromium
else
pnpm exec playwright install --with-deps chromium
fi
# `ak allinone` runs the server and the worker in a single process, so
# there is only one listener on :9000 and no need to shuffle the worker's
# HTTP/metrics ports out of the way.
- name: Start authentik
run: | # shell
set -euo pipefail
mkdir -p /tmp/ak-logs
# The certificate discovery watcher inotify-watches this directory and
# raises if it is absent; a checkout has no `certs/`.
mkdir -p certs
uv run ak allinone > /tmp/ak-logs/authentik.log 2>&1 &
echo $! > /tmp/ak-logs/authentik.pid
- name: Wait for authentik to be ready
run: | # shell
set -uo pipefail
pid="$(cat /tmp/ak-logs/authentik.pid)"
# Poll until the URL answers, giving up when the deadline passes or the
# server process is gone. The liveness check matters: without it a boot
# failure is indistinguishable from a slow start and burns the whole
# timeout emitting connection-refused, with the real cause only in the
# uploaded log.
await() {
local url="$1"
local deadline=$(( SECONDS + $2 ))
until curl -fsS -o /dev/null "$url"; do
if ! kill -0 "$pid" 2>/dev/null; then
echo "authentik exited before ${url} became ready" >&2
return 1
fi
if (( SECONDS >= deadline )); then
echo "timed out after $2s waiting for ${url}" >&2
return 1
fi
sleep 2
done
}
# Readiness only covers the HTTP listener and the database. The default
# flows the tests drive arrive later, when the worker finishes applying
# blueprints/default/, so gate on the flow executor actually resolving
# `default-authentication-flow` rather than on the SPA shell rendering
# (which it does regardless of whether the flow exists).
if await "http://localhost:9000/-/health/ready/" 240 \
&& await "http://localhost:9000/api/v3/flows/executor/default-authentication-flow/?query=" 300; then
exit 0
fi
echo "::group::authentik.log (last 200 lines)"
tail -n 200 /tmp/ak-logs/authentik.log || true
echo "::endgroup::"
exit 1
- name: Run Playwright tests
working-directory: web
env:
AK_TEST_RUNNER_PAGE_URL: http://localhost:9000
run: pnpm run test:e2e
# Reporting / upload steps below intentionally use `!cancelled()` rather
# than `failure()`: a cancelled run (e.g. superseded by a newer push) is
# not a real result and shouldn't be reported. `if-no-files-found: ignore`
# keeps the "passed" case quiet.
- name: Upload Playwright HTML report
if: ${{ !cancelled() }}
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: playwright-report
path: web/playwright-report/
retention-days: 14
if-no-files-found: ignore
- name: Upload Playwright traces and videos
if: ${{ !cancelled() }}
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: playwright-traces
path: web/test-results/
retention-days: 14
if-no-files-found: ignore
- name: Upload authentik logs
if: ${{ !cancelled() }}
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: authentik-logs
path: /tmp/ak-logs/
retention-days: 14
if-no-files-found: ignore
# Test analytics only — no coverage is collected for the browser suite.
- name: Upload Playwright results to codecov
if: ${{ !cancelled() }}
uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v5
with:
files: web/playwright-report/results.xml
flags: e2e-web
use_oidc: true
report_type: test_results
ci-web-mark:
if: always()
needs:
- build
- lint
runs-on: ubuntu-latest
runs-on: ubuntu-26.04
steps:
- uses: re-actors/alls-green@b5b5b37504aa4183270bd3d855c52a67f212be35 # release/v1
with:
@@ -253,7 +91,7 @@ jobs:
test:
needs:
- ci-web-mark
runs-on: ubuntu-latest
runs-on: ubuntu-26.04
timeout-minutes: 30
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v5
@@ -262,7 +100,7 @@ jobs:
run: |
echo "PNPM_HOME=${RUNNER_TEMP}/pnpm-home" >> "$GITHUB_ENV"
echo "npm_config_store_dir=${RUNNER_TEMP}/pnpm-home/store" >> "$GITHUB_ENV"
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v4
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v4
with:
node-version-file: package.json
cache: pnpm
+2 -2
View File
@@ -20,12 +20,12 @@ on:
jobs:
compress:
name: compress
runs-on: ubuntu-latest
runs-on: ubuntu-26.04
# Don't run on forks. Token will not be available. Will run on main and open a PR anyway
if: "${{ github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository) }}"
steps:
- id: generate_token
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v2
uses: actions/create-github-app-token@64ab729a6294000f5aa4a4bc0b73d1f32bc45510 # v2
with:
client-id: ${{ secrets.GH_APP_ID }}
private-key: ${{ secrets.GH_APP_PRIV_KEY }}
@@ -13,10 +13,10 @@ env:
jobs:
build:
runs-on: ubuntu-latest
runs-on: ubuntu-26.04
steps:
- id: generate_token
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v2
uses: actions/create-github-app-token@64ab729a6294000f5aa4a4bc0b73d1f32bc45510 # v2
with:
client-id: ${{ secrets.GH_APP_ID }}
private-key: ${{ secrets.GH_APP_PRIV_KEY }}
@@ -25,7 +25,7 @@ jobs:
token: ${{ steps.generate_token.outputs.token }}
- name: Setup authentik env
uses: ./.github/actions/setup
- run: uv run ak update_webauthn_mds
- run: uv run python -m manage update_webauthn_mds
- uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v7
id: cpr
with:
+1 -1
View File
@@ -13,7 +13,7 @@ permissions:
jobs:
cleanup:
runs-on: ubuntu-latest
runs-on: ubuntu-26.04
steps:
- name: Check out code
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v5
+2 -2
View File
@@ -13,10 +13,10 @@ on:
jobs:
clean-ghcr:
name: Delete old unused container images
runs-on: ubuntu-latest
runs-on: ubuntu-26.04
steps:
- id: generate_token
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v2
uses: actions/create-github-app-token@64ab729a6294000f5aa4a4bc0b73d1f32bc45510 # v2
with:
app-id: ${{ secrets.GH_APP_ID }}
private-key: ${{ secrets.GH_APP_PRIV_KEY }}
+11 -7
View File
@@ -6,8 +6,10 @@ on:
branches: [main]
paths:
- packages/tsconfig/**
- packages/eslint-config/**
- packages/prettier-config/**
- packages/oxlint-config/**
- packages/oxfmt-config/**
- packages/fonts/**
- packages/theme/**
- packages/docusaurus-config/**
- packages/logger-js/**
- packages/esbuild-plugin-live-reload/**
@@ -20,17 +22,19 @@ permissions:
jobs:
publish:
runs-on: ubuntu-latest
runs-on: ubuntu-26.04
strategy:
fail-fast: false
matrix:
package:
# The order of the `*config` packages should not be changed, as they depend on each other.
- packages/tsconfig
- packages/eslint-config
- packages/prettier-config
- packages/docusaurus-config
- packages/oxlint-config
- packages/oxfmt-config
- packages/fonts
- packages/logger-js
- packages/theme
- packages/docusaurus-config
- packages/esbuild-plugin-live-reload
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v5
@@ -41,7 +45,7 @@ jobs:
run: |
echo "PNPM_HOME=${RUNNER_TEMP}/pnpm-home" >> "$GITHUB_ENV"
echo "npm_config_store_dir=${RUNNER_TEMP}/pnpm-home/store" >> "$GITHUB_ENV"
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v4
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v4
with:
node-version-file: package.json
registry-url: https://registry.npmjs.org
+4 -4
View File
@@ -12,7 +12,7 @@ on:
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
runs-on: ubuntu-26.04
permissions:
actions: read
contents: read
@@ -28,10 +28,10 @@ jobs:
- name: Setup authentik env
uses: ./.github/actions/setup
- name: Initialize CodeQL
uses: github/codeql-action/init@cdf488f595d80d6e07e03d4674febd5ab45fa938 # v4.37.9
uses: github/codeql-action/init@24c54180a607b1449ed407dd24f251e4e9147c8d # v4.38.3
with:
languages: ${{ matrix.language }}
- name: Autobuild
uses: github/codeql-action/autobuild@cdf488f595d80d6e07e03d4674febd5ab45fa938 # v4.37.9
uses: github/codeql-action/autobuild@24c54180a607b1449ed407dd24f251e4e9147c8d # v4.38.3
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@cdf488f595d80d6e07e03d4674febd5ab45fa938 # v4.37.9
uses: github/codeql-action/analyze@24c54180a607b1449ed407dd24f251e4e9147c8d # v4.38.3
+1 -1
View File
@@ -17,7 +17,7 @@ permissions:
jobs:
dependency-review:
name: dependency-review
runs-on: ubuntu-latest
runs-on: ubuntu-26.04
timeout-minutes: 5
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v5
+1 -1
View File
@@ -17,7 +17,7 @@ on:
jobs:
semgrep:
name: semgrep/ci
runs-on: ubuntu-latest
runs-on: ubuntu-26.04
permissions:
contents: read
env:
+5 -5
View File
@@ -17,7 +17,7 @@ env:
jobs:
check-inputs:
name: Check inputs validity
runs-on: ubuntu-latest
runs-on: ubuntu-26.04
steps:
- run: |
echo "${{ inputs.next_version }}" | grep -E "^[0-9]{4}\.[0-9]{1,2}$"
@@ -25,11 +25,11 @@ jobs:
name: Branch-off
needs:
- check-inputs
runs-on: ubuntu-latest
runs-on: ubuntu-26.04
steps:
- id: app-token
name: Generate app token
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v2
uses: actions/create-github-app-token@64ab729a6294000f5aa4a4bc0b73d1f32bc45510 # v2
with:
client-id: ${{ secrets.GH_APP_ID }}
private-key: ${{ secrets.GH_APP_PRIV_KEY }}
@@ -54,10 +54,10 @@ jobs:
name: Open version bump PR
needs:
- branch-off
runs-on: ubuntu-latest
runs-on: ubuntu-26.04
steps:
- id: generate_token
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v2
uses: actions/create-github-app-token@64ab729a6294000f5aa4a4bc0b73d1f32bc45510 # v2
with:
client-id: ${{ secrets.GH_APP_ID }}
private-key: ${{ secrets.GH_APP_PRIV_KEY }}
+1 -1
View File
@@ -12,7 +12,7 @@ permissions:
jobs:
update-next:
runs-on: ubuntu-latest
runs-on: ubuntu-26.04
environment: internal-production
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v5
+26 -45
View File
@@ -7,12 +7,13 @@ on:
jobs:
metadata:
runs-on: ubuntu-latest
runs-on: ubuntu-26.04
outputs:
tag-name: "${{ steps.metadata.outputs.tag-name }}"
version: "${{ steps.metadata.outputs.version }}"
version-family: "${{ steps.metadata.outputs.version-family }}"
release-reason: "${{ steps.metadata.outputs.release-reason }}"
changelog-url: "${{ steps.metadata.outputs.changelog-url }}"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
@@ -29,7 +30,7 @@ jobs:
echo "release-reason=$(jq -r '.release_reason' < metadata.json)" >> "$GITHUB_OUTPUT"
echo "changelog-url=$(jq -r '.changelog_url' < metadata.json)" >> "$GITHUB_OUTPUT"
publish-containers:
runs-on: ubuntu-latest
runs-on: ubuntu-26.04
permissions:
contents: read
# Needed to upload container images to ghcr.io
@@ -52,10 +53,10 @@ jobs:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v5
- uses: regclient/actions/regctl-installer@bb562fac724b7b37c17f19671df07fe34fabc376
- uses: regclient/actions/regctl-installer@dd58ad94f76adb73d8ac1bf75ed25f01545d5b32
# logs in to ghcr.io by default
- uses: regclient/actions/regctl-login@bb562fac724b7b37c17f19671df07fe34fabc376
- uses: regclient/actions/regctl-login@bb562fac724b7b37c17f19671df07fe34fabc376
- uses: regclient/actions/regctl-login@dd58ad94f76adb73d8ac1bf75ed25f01545d5b32
- uses: regclient/actions/regctl-login@dd58ad94f76adb73d8ac1bf75ed25f01545d5b32
with:
registry: docker.io
username: "${{ secrets.DOCKER_CORP_USERNAME }}"
@@ -89,7 +90,7 @@ jobs:
publish-docs-container:
needs:
- metadata
runs-on: ubuntu-latest
runs-on: ubuntu-26.04
permissions:
# Needed to upload container images to ghcr.io
packages: write
@@ -101,9 +102,9 @@ jobs:
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v5
- name: Set up QEMU
uses: docker/setup-qemu-action@1f40c72289eff860ee54a304f1438e3cff362e0a # v4.3.0
uses: docker/setup-qemu-action@99012661954931238ded8c8b007157a8430204e1 # v4.4.0
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@37fe631027851001ddb9b187196cc803df7f5f0e # v4.3.0
uses: docker/setup-buildx-action@594f3bf4285d9ea8dc53c9a0c9c4092420091003 # v4.4.0
- name: Login to GitHub Container Registry
uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4.6.0
with:
@@ -112,7 +113,7 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}
- id: build
name: Build Docker Image
uses: docker/build-push-action@53b7df96c91f9c12dcc8a07bcb9ccacbed38856a # v7.3.0
uses: docker/build-push-action@c3c9e263c25d99ce0380d002d59b67737d91b0dc # v7.4.0
with:
tags: |
ghcr.io/goauthentik/docs:${{ needs.metadata.outputs.version }}
@@ -137,10 +138,10 @@ jobs:
env:
AWS_REGION: eu-central-1
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
runs-on: ubuntu-latest
runs-on: ubuntu-26.04
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v5
- uses: aws-actions/configure-aws-credentials@cbe3b392738ccf3f987d68400dafcf4b0624a56c # v6.2.4
- uses: aws-actions/configure-aws-credentials@e1253824e5c10ff9df46874f81ed3ec929e19cfd # v6.3.0
with:
role-to-assume: "arn:aws:iam::016170277896:role/github_goauthentik_authentik"
aws-region: ${{ env.AWS_REGION }}
@@ -148,14 +149,14 @@ jobs:
run: |
aws s3 cp --acl=public-read lifecycle/aws/template.yaml s3://authentik-cloudformation-templates/authentik.ecs.${{ github.ref }}.yaml
aws s3 cp --acl=public-read lifecycle/aws/template.yaml s3://authentik-cloudformation-templates/authentik.ecs.${{ needs.metadata.outputs.tag-name }}.yaml
if [ "$(gh release list --json tagName,isLatest --jq '.[] | select(.tagName=="${{ needs.metadata.outputs.tag-name }} ") | .isLatest')" = "true" ]; then
if [ "$(gh release list --json tagName,isLatest --jq '.[] | select(.tagName=="${{ needs.metadata.outputs.tag-name }}") | .isLatest')" = "true" ]; then
aws s3 cp --acl=public-read lifecycle/aws/template.yaml s3://authentik-cloudformation-templates/authentik.ecs.latest.yaml
fi
sentry-release:
needs:
- publish-containers
- metadata
runs-on: ubuntu-latest
runs-on: ubuntu-26.04
steps:
- name: Get static files from docker image
run: |
@@ -164,7 +165,7 @@ jobs:
container=$(docker container create "$image")
docker cp ${container}:web/ .
- name: Create a Sentry.io release
uses: getsentry/action-release@ff07929a6537bac57790c3451cf4d364aca38528 # v3
uses: getsentry/action-release@6fb9aeade7061441cf3864e34fbe11a1457ad7dc # v3
continue-on-error: true
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
@@ -180,55 +181,35 @@ jobs:
- metadata
- publish-containers
if: ${{ needs.metadata.outputs.release-reason != 'prerelease' }}
runs-on: ubuntu-latest
runs-on: ubuntu-26.04
steps:
- id: app-token
name: Generate app token
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v2
uses: actions/create-github-app-token@64ab729a6294000f5aa4a4bc0b73d1f32bc45510 # v2
with:
client-id: ${{ secrets.GH_APP_ID }}
private-key: ${{ secrets.GH_APP_PRIV_KEY }}
repositories: version
- id: get-user-id
name: Get GitHub app user ID
run: echo "user-id=$(gh api "/users/${{ steps.app-token.outputs.app-slug }}[bot]" --jq .id)" >> "$GITHUB_OUTPUT"
env:
GH_TOKEN: "${{ steps.app-token.outputs.token }}"
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v5
with:
repository: "${{ github.repository_owner }}/version"
token: "${{ steps.app-token.outputs.token }}"
- name: Bump version
run: |
jq \
--arg version "${{ needs.metadata.outputs.version }}" \
--arg changelog "See ${{ needs.metadata.outputs.changelog-url }}" \
--arg changelog_url "${{ needs.metadata.outputs.changelog-url }}" \
--arg reason "${{ needs.metadata.outputs.release-reason }}" \
'.stable.version = $version | .stable.changelog = $changelog | .stable.changelog_url = $changelog_url | .stable.reason = $reason' version.json > version.new.json
mv version.new.json version.json
- name: Create pull request
uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v7
uses: goauthentik/version@main
with:
token: "${{ steps.app-token.outputs.token }}"
branch: bump-${{ needs.metadata.outputs.version }}
commit-message: "version: bump to ${{ needs.metadata.outputs.version }}"
title: "version: bump to ${{ needs.metadata.outputs.version }}"
body: "See ${{ needs.metadata.outputs.changelog-url }}"
delete-branch: true
signoff: true
author: "${{ steps.app-token.outputs.app-slug }}[bot] <${{ steps.get-user-id.outputs.user-id }}+${{ steps.app-token.outputs.app-slug }}[bot]@users.noreply.github.com>"
product: authentik
new-version: ${{ needs.metadata.outputs.version }}
changelog-url: ${{ needs.metadata.outputs.changelog-url }}
reason: ${{ needs.metadata.outputs.release-reason }}
token: ${{ steps.app-token.outputs.token }}
github-app-slug: ${{ steps.app-token.outputs.app-slug }}
bump-helm:
name: Bump Helm version
needs:
- metadata
- publish-containers
if: ${{ needs.metadata.outputs.release-reason != 'prerelease' }}
runs-on: ubuntu-latest
runs-on: ubuntu-26.04
steps:
- id: app-token
name: Generate app token
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v2
uses: actions/create-github-app-token@64ab729a6294000f5aa4a4bc0b73d1f32bc45510 # v2
with:
client-id: ${{ secrets.GH_APP_ID }}
private-key: ${{ secrets.GH_APP_PRIV_KEY }}
+15 -15
View File
@@ -27,7 +27,7 @@ env:
jobs:
check-inputs:
name: Check inputs validity
runs-on: ubuntu-latest
runs-on: ubuntu-26.04
steps:
- id: check
env:
@@ -52,7 +52,7 @@ jobs:
elif [ "${{ inputs.release_reason }}" = "prerelease" ]; then
changelog_url="https://next.goauthentik.io/docs/releases/${{ steps.check.outputs.version-family }}"
else
changelog_url="https://docs.goauthentik.io/docs/releases/${{ steps.check.outputs.version-family }}#fixed-in-$(echo -n "${{ steps.check.outputs.version }}" | sed 's/\.//g')"}
changelog_url="https://docs.goauthentik.io/docs/releases/${{ steps.check.outputs.version-family }}#fixed-in-$(echo -n "${{ steps.check.outputs.version }}" | sed 's/\.//g')"
fi
echo "changelog-url=${changelog_url}" >> "$GITHUB_OUTPUT"
outputs:
@@ -63,13 +63,13 @@ jobs:
name: Bump authentik version
needs:
- check-inputs
runs-on: ubuntu-latest
runs-on: ubuntu-26.04
outputs:
release-commit: "${{ steps.commit.outputs.release-commit }}"
steps:
- id: app-token
name: Generate app token
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v2
uses: actions/create-github-app-token@64ab729a6294000f5aa4a4bc0b73d1f32bc45510 # v2
with:
client-id: ${{ secrets.GH_APP_ID }}
private-key: ${{ secrets.GH_APP_PRIV_KEY }}
@@ -138,7 +138,7 @@ jobs:
needs:
- bump-version
timeout-minutes: 120
runs-on: ubuntu-latest
runs-on: ubuntu-26.04
permissions:
# Needed for checkout
contents: read
@@ -165,7 +165,7 @@ jobs:
export GOARCH=${{ matrix.goarch }}
export CGO_ENABLED=0
go build -tags=outpost_static_embed -v -o ./build/binaries/authentik-outpost-${{ matrix.type }}_${{ matrix.goos }}_${{ matrix.goarch }} ./cmd/${{ matrix.type }}
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v4
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v4
with:
name: "binaries-build-${{ matrix.type }}-${{ matrix.goos }}-${{ matrix.goarch }}"
path: build/
@@ -186,9 +186,9 @@ jobs:
- proxy
target:
- triple: x86_64-unknown-linux-gnu
runs-on: ubuntu-latest
runs-on: ubuntu-26.04
- triple: aarch64-unknown-linux-gnu
runs-on: ubuntu-24.04-arm
runs-on: ubuntu-26.04-arm
- triple: x86_64-apple-darwin
runs-on: macos-15-intel
- triple: aarch64-apple-darwin
@@ -214,7 +214,7 @@ jobs:
mkdir -p build/binaries/
cargo build --package authentik --no-default-features --features "${{ matrix.type }}" --locked --release --target "${{ matrix.target.triple }}"
cp "./target/${{ matrix.target.triple }}/release/authentik" "build/binaries/authentik-outpost-${{ matrix.type }}-${{ matrix.target.triple }}"
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v4
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v4
with:
name: "binaries-build-${{ matrix.type }}-${{ matrix.target.triple }}"
path: build/
@@ -223,14 +223,14 @@ jobs:
include-hidden-files: true
test:
name: Pre-release test
runs-on: ubuntu-latest
runs-on: ubuntu-26.04
needs:
- check-inputs
- bump-version
- build-container
steps:
- name: Fetch container images
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v5
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v5
with:
name: container-build-server-amd64
- name: Load container images
@@ -255,7 +255,7 @@ jobs:
- build-go-binaries
- build-rust-binaries
- test
runs-on: ubuntu-latest
runs-on: ubuntu-26.04
permissions:
id-token: write
attestations: write
@@ -263,7 +263,7 @@ jobs:
steps:
- id: app-token
name: Generate app token
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v2
uses: actions/create-github-app-token@64ab729a6294000f5aa4a4bc0b73d1f32bc45510 # v2
with:
client-id: ${{ secrets.GH_APP_ID }}
private-key: ${{ secrets.GH_APP_PRIV_KEY }}
@@ -287,12 +287,12 @@ jobs:
run: |
echo '{"version": "${{ needs.check-inputs.outputs.version }}", "version_family": "${{ needs.check-inputs.outputs.version-family }}", "release_reason": "${{ inputs.release_reason }}", "changelog_url": "${{ needs.check-inputs.outputs.changelog-url }}"}' > metadata.json
- name: Fetch container images
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v5
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v5
with:
pattern: container-build-*
merge-multiple: true
- name: Fetch binaries
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v5
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v5
with:
pattern: binaries-build-*
merge-multiple: true
+2 -2
View File
@@ -12,10 +12,10 @@ permissions:
jobs:
stale:
runs-on: ubuntu-latest
runs-on: ubuntu-26.04
steps:
- id: generate_token
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v2
uses: actions/create-github-app-token@64ab729a6294000f5aa4a4bc0b73d1f32bc45510 # v2
with:
client-id: ${{ secrets.GH_APP_ID }}
private-key: ${{ secrets.GH_APP_PRIV_KEY }}
+1 -1
View File
@@ -17,7 +17,7 @@ permissions:
jobs:
post-comment:
runs-on: ubuntu-latest
runs-on: ubuntu-26.04
steps:
- name: Find Comment
uses: peter-evans/find-comment@b30e6a3c0ed37e7c023ccd3f1db5c6c0b0c23aad # v4
@@ -17,11 +17,11 @@ env:
jobs:
compile:
runs-on: ubuntu-latest
runs-on: ubuntu-26.04
steps:
- id: generate_token
if: ${{ github.event_name != 'pull_request' }}
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v2
uses: actions/create-github-app-token@64ab729a6294000f5aa4a4bc0b73d1f32bc45510 # v2
with:
client-id: ${{ secrets.GH_APP_ID }}
private-key: ${{ secrets.GH_APP_PRIV_KEY }}
@@ -38,7 +38,7 @@ jobs:
uv run make i18n-extract
- name: run compile
run: |
uv run ak compilemessages
uv run python -m manage compilemessages
make web-check-compile
- name: Create Pull Request
if: ${{ github.event_name != 'pull_request' }}
@@ -0,0 +1,54 @@
---
name: Translation - Normalize locale paths
# Moves catalogs in Transifex pull requests to the paths listed in locales.yaml,
# then pushes the result back to the pull request.
# `make ci-lint-locales` in ci-main checks the outcome.
on:
pull_request:
branches:
- main
paths:
- "locale/**"
- "web/xliff/**"
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
cancel-in-progress: true
jobs:
normalize:
if: ${{ github.event.pull_request.user.login == 'transifex-integration[bot]' && github.event.pull_request.head.repo.full_name == github.repository }}
runs-on: ubuntu-26.04
steps:
- id: generate_token
uses: actions/create-github-app-token@64ab729a6294000f5aa4a4bc0b73d1f32bc45510 # v2
with:
client-id: ${{ secrets.GH_APP_ID }}
private-key: ${{ secrets.GH_APP_PRIV_KEY }}
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v5
with:
ref: ${{ github.event.pull_request.head.ref }}
token: ${{ steps.generate_token.outputs.token }}
- name: Setup authentik env
uses: ./.github/actions/setup
with:
dependencies: python
- name: Normalize
run: make locales-normalize gen-locales
- name: Push corrections
run: |
if [ -z "$(git status --porcelain)" ]; then
echo "Nothing to normalize."
exit 0
fi
git config user.name "authentik-automation[bot]"
# ID from https://api.github.com/users/authentik-automation[bot]
git config user.email "135050075+authentik-automation[bot]@users.noreply.github.com"
git add -A locale web/xliff web/lit-localize.json web/src/common/ui/locale/definitions.ts .github/transifex.yml
git commit --signoff -m "translate: normalize locale paths"
git push
+3
View File
@@ -247,3 +247,6 @@ compose.override.yml
# Claude Local Instructions
# https://code.claude.com/docs/en/memory#choose-where-to-put-claude-md-files
CLAUDE.local.md
# Generated by `packages/oxlint-config/scripts/verify-fixtures.mjs`.
.oxlintrc.generated.json
-56
View File
@@ -1,56 +0,0 @@
# Prettier Ignorefile
## Static Files
CODEOWNERS
**/LICENSE
authentik/stages/**/*
## Build asset directories
coverage
dist
out
.docusaurus
# TODO Replace after moving website to docs
website/api/reference
## Environment
*.env
## Secrets
*.secrets
## Yarn
.yarn/**/*
# PNPM
pnpm-workspace.yaml
pnpm-lock.yaml
## Node
node_modules
coverage
## Vendored files
vendored
*.min.js
## Configs
*.log
*.yaml
*.yml
# Templates
# TODO: Rename affected files to *.template.* or similar.
*.html
*.mdx
*.md
## Import order matters
poly.ts
src/locale-codes.ts
src/locales/
# Storybook
storybook-static/
.storybook/css-import-maps*
+2 -3
View File
@@ -3,19 +3,18 @@
"bashmish.es6-string-css",
"bpruitt-goddard.mermaid-markdown-syntax-highlighting",
"charliermarsh.ruff",
"dbaeumer.vscode-eslint",
"EditorConfig.EditorConfig",
"esbenp.prettier-vscode",
"github.vscode-github-actions",
"golang.go",
"Gruntfuggly.todo-tree",
"mechatroner.rainbow-csv",
"ms-python.black-formatter",
"ms-python.black-formatter",
"ms-python.debugpy",
"ms-python.python",
"ms-python.vscode-pylance",
"oxc.oxc-vscode",
"redhat.vscode-yaml",
"rust-lang.rust-analyzer",
"Tobermory.es6-string-html",
"unifiedjs.vscode-mdx"
]
+26 -4
View File
@@ -1,7 +1,28 @@
{
"editor.defaultFormatter": "oxc.oxc-vscode",
"editor.codeActionsOnSave": {
"source.fixAll.oxc": "explicit"
},
"[css]": {
"editor.minimap.markSectionHeaderRegex": "#\\bregion\\s*(?<separator>-?)\\s*(?<label>.*)\\*/$"
},
"[markdown]": {
"editor.colorDecorators": false
},
"[yaml]": {
"editor.autoIndent": "advanced",
"editor.insertSpaces": true,
"editor.tabSize": 2
},
"[python]": {
"editor.defaultFormatter": "ms-python.black-formatter"
},
"[go]": {
"editor.defaultFormatter": "golang.go"
},
"[rust]": {
"editor.defaultFormatter": "rust-lang.rust-analyzer"
},
"[makefile]": {
"editor.minimap.markSectionHeaderRegex": "^#{25}\n##\\s\\s*(?<separator>-?)\\s*(?<label>[^\n]*)\n#{25}$"
},
@@ -9,6 +30,7 @@
"editor.minimap.markSectionHeaderRegex": "\\bStage\\s*\\d:(?<separator>-?)\\s*(?<label>.*)$"
},
"[jsonc]": {
"editor.defaultFormatter": "oxc.oxc-vscode",
"editor.minimap.markSectionHeaderRegex": "#\\bregion\\s*(?<separator>-?)\\s*(?<label>.*)$"
},
"[xml]": {
@@ -18,11 +40,9 @@
// The built-in "ignore" language gives us enough syntax highlighting to make these files readable.
"**/dictionaries/*.txt": "ignore"
},
"oxc.fixKind": "safe_fix_or_suggestion",
"todo-tree.tree.showCountsInTree": true,
"todo-tree.tree.showBadges": true,
"yaml.format.printWidth": 200,
"yaml.format.singleQuote": true,
"yaml.format.bracketSpacing": false,
"yaml.customTags": [
"!Condition sequence",
"!Context scalar",
@@ -60,7 +80,9 @@
"go.testEnvVars": {
"WORKSPACE_DIR": "${workspaceFolder}"
},
"github-actions.workflows.pinned.workflows": [".github/workflows/ci-main.yml"],
"github-actions.workflows.pinned.workflows": [
".github/workflows/ci-main.yml"
],
"search.exclude": {
"**/*.code-search": true,
"**/bower_components": true,
+6 -5
View File
@@ -18,7 +18,7 @@ The Python core and the web UI talk through a **generated OpenAPI client** — n
```
authentik/ # Django core — the IdP itself (see "The authentik Django package" below)
lifecycle/ # Boot/runtime: migrations, gunicorn config, the `ak` CLI, container + AWS entrypoints
lifecycle/ # Boot/runtime: migrations, the prefork Python server, the `ak` CLI, container + AWS entrypoints
cmd/ # Go entrypoints: ldap/ rac/ radius/ outposts
internal/ # Shared Go: outpost implementations, config
src/ # Rust server/worker (ak-axum based; gated behind cargo features)
@@ -26,7 +26,7 @@ packages/ # Shared workspace packages, polyglot:
# client-go / client-rust / client-ts — GENERATED API clients (do not hand-edit)
# ak-axum / ak-common / ak-guardian — Rust crates
# django-* — reusable Django apps (channels, dramatiq, cache)
# eslint-config / prettier-config / tsconfig / theme / docusaurus-config — shared JS config
# oxlint-config / oxfmt-config / tsconfig / theme / docusaurus-config — shared JS config
web/ # TypeScript web UI (own AGENTS.md)
website/ # Docs / integrations / API sites (own AGENTS.md)
blueprints/ # YAML declarative config (default/ system/ example/) applied at startup
@@ -52,7 +52,7 @@ go.mod # Go module (module path: goauthentik.io)
- **`sources/`** — inbound identity (LDAP, OAuth, SAML, SCIM, Kerberos source).
- **`providers/`** — outbound protocols authentik exposes (SAML, OAuth2/OIDC, Proxy, LDAP, RADIUS, SCIM, RAC).
- **`outposts/`** — management/coordination of the Go outposts.
- **`brands/`** + **`tenants/`** — branding/theming and multi-tenancy (`django-tenants`).
- **`brands/`** — branding/theming per domain.
- **`blueprints/`** — the engine that applies the YAML under the top-level `blueprints/` directory.
- **`rbac/`**, **`crypto/`**, **`events/`** (audit log), **`enterprise/`** (EE-licensed features), **`api/`** - **`admin/`** (REST surfaces), **`root/`** (Django project: settings, URLs, ASGI/WSGI).
@@ -64,7 +64,7 @@ Most tasks land in one subtree and have one follow-up step. Find the row, then r
| ------------------------------------------------------------------ | ------------------------------ | ------------------------------------------------------------------------------------ |
| Add or change a REST endpoint, model field, or serializer | `authentik/` (Python) | `make gen` to refresh `schema.yml` + clients, and commit the generated migration |
| Change UI behavior, a flow screen, or an admin page | `web/` | [`web/AGENTS.md`](web/AGENTS.md) — call the API only through `@goauthentik/api` |
| Write or edit docs, an integration guide, or a glossary term | `website/` | [`website/AGENTS.md`](website/AGENTS.md), then `make docs` / `make integrations` |
| Write or edit docs or an integration guide | `website/` | [`website/AGENTS.md`](website/AGENTS.md), then `make docs` / `make integrations` |
| Change an outpost (LDAP, proxy, RAC, RADIUS) or the front proxy | `cmd/` + `internal/` (Go) | `make go-test` |
| Change a native server/worker component or shared crate | `src/` + `packages/ak-*` (Rust)| `make rust-test` |
| Seed or reconcile a managed object (flow, stage, policy, brand) | `blueprints/` (YAML) | prefer a blueprint over an ad-hoc data migration |
@@ -108,6 +108,7 @@ make lint-fix # Auto-fix: black + ruff (Python) and rustfmt (Rust)
make lint # Check: bandit, mypy --strict, golangci-lint, cargo deny/machete
make lint-spellcheck # cspell across the repo (typo-only mode: reports known misspellings and forbidden British spellings, not unknown words)
make lint-catalogs # pnpm catalog pins in sync across the root/web/website workspaces
make lint-locales # translation files + generated locale lists match locales.yaml (`make gen-locales` regenerates)
```
CI mirrors these as `ci-lint-*` / `ci-test` targets. Run the matching `make lint` / `make test` (plus `make web` / `make docs` for those subtrees) before pushing — CI runs the same checks.
@@ -154,7 +155,7 @@ Authoritative contributor docs live under `website/docs/developer-docs/` and are
| --------------- | ------------------------------------------------------------------------ |
| Core server | Python 3.14, Django 5.2 + Django REST Framework, Channels (ASGI) |
| Background work | Dramatiq (Postgres broker) |
| Datastore | PostgreSQL (multi-tenant via `django-tenants`) |
| Datastore | PostgreSQL |
| Outposts | Go 1.26 (`goauthentik.io` module) — LDAP, proxy, RAC, RADIUS |
| Native services | Rust (2024 edition, `axum`) — server/worker components + shared crates |
| Web UI | TypeScript, Lit 3, PatternFly 4 (see `web/`) |
+2 -2
View File
@@ -44,9 +44,9 @@ pnpm-workspace.yaml @goauthentik/frontend
/packages/client-ts @goauthentik/frontend
/packages/docusaurus-config @goauthentik/frontend
/packages/esbuild-plugin-live-reload @goauthentik/frontend
/packages/eslint-config @goauthentik/frontend
/packages/oxlint-config @goauthentik/frontend
/packages/oxfmt-config @goauthentik/frontend
/packages/fonts @goauthentik/frontend
/packages/prettier-config @goauthentik/frontend
/packages/logger-js @goauthentik/frontend
/packages/theme @goauthentik/frontend
/packages/tsconfig @goauthentik/frontend
Generated
+109 -108
View File
@@ -223,7 +223,7 @@ dependencies = [
"nom",
"num-traits",
"rusticata-macros",
"thiserror 2.0.20",
"thiserror 2.0.21",
"time",
]
@@ -331,7 +331,8 @@ dependencies = [
"percent-encoding",
"pyo3",
"pyo3-build-config",
"rand 0.10.2",
"rand 0.10.3",
"rcgen",
"regex",
"reqwest",
"reqwest-middleware",
@@ -341,7 +342,7 @@ dependencies = [
"serde_repr",
"sqlx",
"tempfile",
"thiserror 2.0.20",
"thiserror 2.0.21",
"time",
"tokio",
"tokio-retry2",
@@ -416,7 +417,7 @@ dependencies = [
"serde_json",
"sqlx",
"tempfile",
"thiserror 2.0.20",
"thiserror 2.0.21",
"time",
"tokio",
"tokio-retry2",
@@ -451,9 +452,9 @@ dependencies = [
[[package]]
name = "aws-lc-rs"
version = "1.18.1"
version = "1.18.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b281d307588d634de920874890732659e2e7672f72b5e10e81badc1a8a83621e"
checksum = "faac5829c2b74c28f830747e7818ccfb684261b5f48a1118b1e2a13d36dfab13"
dependencies = [
"aws-lc-fips-sys",
"aws-lc-sys",
@@ -463,9 +464,9 @@ dependencies = [
[[package]]
name = "aws-lc-sys"
version = "0.45.0"
version = "0.46.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9bff6c3b54fad79a2e60b8102caf565819711497c1f5f092f49508e2f5c31b27"
checksum = "f1622d8446a2d4b2ce0c7eefc73dd43a99779028d5ee5c2dd8073a658ba8a2bc"
dependencies = [
"cc",
"cmake",
@@ -785,9 +786,9 @@ checksum = "613afe47fcd5fac7ccf1db93babcb082c5994d996f20b8b159f2ad1658eb5724"
[[package]]
name = "chacha20"
version = "0.10.0"
version = "0.10.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6f8d983286843e49675a4b7a2d174efe136dc93a18d69130dd18198a6c167601"
checksum = "65c35e4b699c7e15ccbe7ee35c005e4fc0a278d22238a2857e6ce2dadeda1b06"
dependencies = [
"cfg-if",
"cpufeatures 0.3.0",
@@ -821,9 +822,9 @@ dependencies = [
[[package]]
name = "clap"
version = "4.6.6"
version = "4.6.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "473c7e07f409a8d772161724aa8db6a765a2532a70f9667eeb7b49d3d02fbdca"
checksum = "aa8876b300ab35ba921adea3dfd70157a46249b33f95c9084ae5709785478946"
dependencies = [
"clap_builder",
"clap_derive",
@@ -831,9 +832,9 @@ dependencies = [
[[package]]
name = "clap_builder"
version = "4.6.6"
version = "4.6.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7b48fea5a88e9ae728a2dcbedbfc0e730f7d60da42e1cb049a83c9fb8b789889"
checksum = "ec0797fb7aeb1406c84efac526901f7ec3ead2124f946b494e72879d4b54704d"
dependencies = [
"anstream",
"anstyle",
@@ -843,9 +844,9 @@ dependencies = [
[[package]]
name = "clap_derive"
version = "4.6.4"
version = "4.6.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d012d2b9d65aca7f18f4d9878a045bc17899bba951561ba5ec3c2ba1eed9a061"
checksum = "f9c751b79415d4e559e3d1fcf128e09e720eb673a06d26cf6f392d37d75b66e0"
dependencies = [
"heck",
"proc-macro2",
@@ -1204,7 +1205,7 @@ version = "1.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "10d60334b3b2e7c9d91ef8150abfb6fa4c1c39ebbcf4a81c2e346aad939fee3e"
dependencies = [
"thiserror 2.0.20",
"thiserror 2.0.21",
]
[[package]]
@@ -1296,11 +1297,11 @@ checksum = "92773504d58c093f6de2459af4af33faa518c13451eb8f2b5698ed3d36e7c813"
[[package]]
name = "durstr"
version = "0.5.1"
version = "0.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "10f06c73c39c1530f8356f1da74713d41cfada2c59a042cfcb675ba33de396da"
checksum = "50749d4bad9666ddc255e232e25e98ab2dcc09854d107ebc6a6d5974f0e54428"
dependencies = [
"thiserror 2.0.20",
"thiserror 2.0.21",
]
[[package]]
@@ -1867,9 +1868,9 @@ dependencies = [
[[package]]
name = "hyper"
version = "1.11.1"
version = "1.12.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "27b501faa50e7a26c3d3560ca625132f4078a17771f4810baf70475ae48cbe43"
checksum = "2c3e324da4c95177d6291d4c8730197c0d1822f8a9766814a4a44fa5ab797c9c"
dependencies = [
"atomic-waker",
"bytes",
@@ -1889,9 +1890,9 @@ dependencies = [
[[package]]
name = "hyper-rustls"
version = "0.27.9"
version = "0.27.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "33ca68d021ef39cf6463ab54c1d0f5daf03377b70561305bb89a8f83aab66e0f"
checksum = "dfa8e654703247911e29c23fbeaa261834bd9bb74efba2f9acddc37bfb127f53"
dependencies = [
"http",
"hyper",
@@ -1918,11 +1919,10 @@ dependencies = [
[[package]]
name = "hyper-unix-socket"
version = "0.6.1"
version = "0.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "88978f1d73da0eb87d86555fcc40cbdd87bc86eb6525710b89db8c9278ec6a59"
checksum = "57d9d6b7df434b566b1bbfb464633e7ae23f93fc218afb38f3b8906a95535592"
dependencies = [
"bytes",
"hyper",
"hyper-util",
"pin-project-lite",
@@ -1932,16 +1932,17 @@ dependencies = [
[[package]]
name = "hyper-util"
version = "0.1.20"
version = "0.1.21"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "96547c2556ec9d12fb1578c4eaf448b04993e7fb79cbaad930a656880a6bdfa0"
checksum = "ddc03d96684f9226b8a787cdb71488417b53ab5ea8fdb1dac946cb9431cc8bff"
dependencies = [
"base64 0.22.1",
"base64 0.23.1",
"bytes",
"futures-channel",
"futures-util",
"http",
"http-body",
"httparse",
"hyper",
"ipnet",
"libc",
@@ -2256,9 +2257,9 @@ dependencies = [
[[package]]
name = "json-subscriber"
version = "0.3.0"
version = "0.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b1a3442048fd2d18bf39b182881bea8de640062f86cbacf6d949478af61651d6"
checksum = "7450152f0f81b8a1ad51e69fcc114ef6155d1a4efa076697471c4f572067de15"
dependencies = [
"serde",
"serde_json",
@@ -2271,9 +2272,9 @@ dependencies = [
[[package]]
name = "jsonwebtoken"
version = "11.0.0"
version = "11.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "881733cbc631fc9e472e24447ce32a64bedf2da498d6d8570b08edc87de71f65"
checksum = "e75fe14a82d81e5f5af639997db37d8b96045938a7ac6ab18cdbe1c7467e05e1"
dependencies = [
"aws-lc-rs",
"base64 0.22.1",
@@ -2455,7 +2456,7 @@ dependencies = [
"metrics",
"metrics-util",
"quanta",
"thiserror 2.0.20",
"thiserror 2.0.21",
]
[[package]]
@@ -3053,9 +3054,9 @@ dependencies = [
[[package]]
name = "pyo3"
version = "0.29.0"
version = "0.29.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cd274650b21d4bfc26a0a47587962c1edb425f69287324355cd040c3ea66071c"
checksum = "fc153f5fd745cc038b5eed86622125969f8a39834a57bc96beaaf2512b1da729"
dependencies = [
"libc",
"once_cell",
@@ -3067,18 +3068,18 @@ dependencies = [
[[package]]
name = "pyo3-build-config"
version = "0.29.0"
version = "0.29.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c5e2a7d2f0d013342f295c048ad19237add5154a55b1c5a254c0ec93d4109078"
checksum = "bb77d9aa6d647507b55c69ee714d266d84c526c78ff0bc6dd8757f58591e64d1"
dependencies = [
"target-lexicon",
]
[[package]]
name = "pyo3-ffi"
version = "0.29.0"
version = "0.29.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ca85c467da1bbc8d866eea5deff9cf29ea5f7785054a17da36e65bda9c05845b"
checksum = "3160087aa5733bce7d9a729f8c55f85a2a53b74742a09613178eeebff0722253"
dependencies = [
"libc",
"pyo3-build-config",
@@ -3086,9 +3087,9 @@ dependencies = [
[[package]]
name = "pyo3-macros"
version = "0.29.0"
version = "0.29.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9ac53762fd065daa3194dd09337a38bd793a188100fd1a9304c4ab312d901771"
checksum = "91f9d455db760a9a0b0ddeaac25f1390b8a36ba73dfbda9f127cac6fc340d4d5"
dependencies = [
"proc-macro2",
"pyo3-macros-backend",
@@ -3098,9 +3099,9 @@ dependencies = [
[[package]]
name = "pyo3-macros-backend"
version = "0.29.0"
version = "0.29.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4ca3a1557399783172dc5bf39cfca835157732532cba56b71d2292161e53b362"
checksum = "e343bcec300ff262f5806a33a4e51b6d097a8a46435f512fcb83e95592581625"
dependencies = [
"heck",
"proc-macro2",
@@ -3137,7 +3138,7 @@ dependencies = [
"rustc-hash",
"rustls",
"socket2",
"thiserror 2.0.20",
"thiserror 2.0.21",
"tokio",
"tracing",
"web-time",
@@ -3153,14 +3154,14 @@ dependencies = [
"bytes",
"getrandom 0.4.2",
"lru-slab",
"rand 0.10.2",
"rand 0.10.3",
"rand_pcg",
"ring",
"rustc-hash",
"rustls",
"rustls-pki-types",
"slab",
"thiserror 2.0.20",
"thiserror 2.0.21",
"tinyvec",
"tracing",
"web-time",
@@ -3224,9 +3225,9 @@ dependencies = [
[[package]]
name = "rand"
version = "0.10.2"
version = "0.10.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c7f5fa3a058cd35567ef9bfa5e75732bee0f9e4c55fa90477bef2dfcdbc4be80"
checksum = "65c9fb96cbc91e3478eaae79a69fcd3f1ae4ad052e471fe6732fff548984b4af"
dependencies = [
"chacha20",
"getrandom 0.4.2",
@@ -3366,11 +3367,11 @@ checksum = "d6f6ff9a378485b298a5286656da665ba74413d36db0979633275d2e708145d4"
[[package]]
name = "reqwest"
version = "0.13.4"
version = "0.13.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "219c5811de6525e5416c7d5d53bb656d3afdbc6c5af816e0802bcfa42dbdc1c3"
checksum = "16a1cfa75cc186dd73d5818e510e042e40927bccc9c236b061cea97e1eb08029"
dependencies = [
"base64 0.22.1",
"base64 0.23.1",
"bytes",
"encoding_rs",
"futures-channel",
@@ -3421,7 +3422,7 @@ dependencies = [
"http",
"reqwest",
"serde",
"thiserror 2.0.20",
"thiserror 2.0.21",
"tower-service",
]
@@ -3484,9 +3485,9 @@ dependencies = [
[[package]]
name = "rustls"
version = "0.23.44"
version = "0.23.46"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6725596c3f2c3a0aef021139e145d4eafe314a6623e4680ca83852b2c67ab2ba"
checksum = "48e13bd8c0e9365c43cfa5c9e8f9ad49d3c8444926c9aac819e0e4dc503c8fdf"
dependencies = [
"aws-lc-rs",
"log",
@@ -3632,9 +3633,9 @@ checksum = "d767eb0aabc880b29956c35734170f26ed551a859dbd361d140cdbeca61ab1e2"
[[package]]
name = "sentry"
version = "0.49.2"
version = "0.49.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "76a88b65feb368d9dde5d531a2b59b25016e36fd6e4978432371a3ee77746ca2"
checksum = "9fa951f4e644464ebfd2347a7ab03b0828c512d2448a76262cad2607b343dff4"
dependencies = [
"cfg_aliases",
"httpdate",
@@ -3653,9 +3654,9 @@ dependencies = [
[[package]]
name = "sentry-backtrace"
version = "0.49.2"
version = "0.49.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2c51511d67ed670266a93afeaa26a08019b04ad1420cb9191da30f2338d22c48"
checksum = "f4f27cf048aa63ccd5bc94c29989133eabb82e9c6bf7441b58e9d4a95837a105"
dependencies = [
"backtrace",
"regex",
@@ -3664,9 +3665,9 @@ dependencies = [
[[package]]
name = "sentry-contexts"
version = "0.49.2"
version = "0.49.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4b757ac1f335856e8d7f5062a1fd9bc07a05a7eb3cc48247db79bf2618a490bd"
checksum = "c5ed680585dbdacdf9859c2b4dc53358ff02bd256766882e22e343836db36b22"
dependencies = [
"hostname",
"libc",
@@ -3678,11 +3679,11 @@ dependencies = [
[[package]]
name = "sentry-core"
version = "0.49.2"
version = "0.49.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d889520a375e5b93efb0a66def1630d21d168b0251eb55b286b03fa940ccfc84"
checksum = "c3ed398494bb8fc412a11a182c1883a10ae147587b8f6314abd222d1d626f31b"
dependencies = [
"rand 0.9.4",
"rand 0.10.3",
"sentry-types",
"serde",
"serde_json",
@@ -3691,9 +3692,9 @@ dependencies = [
[[package]]
name = "sentry-debug-images"
version = "0.49.2"
version = "0.49.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "656487fd5f7b7c0105b2e82171982aac64489e0cb679436038febf070f2f76d6"
checksum = "55854bb40681e84ffd2a69578ad4ef9bfaf5bf2bf1380a745578b591fa24af22"
dependencies = [
"findshlibs",
"sentry-core",
@@ -3701,9 +3702,9 @@ dependencies = [
[[package]]
name = "sentry-panic"
version = "0.49.2"
version = "0.49.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5e0fe456a7380e9df875a1ef4df1e468d35b19b9051599845fab9d8f0c71c4ae"
checksum = "b7153e68642b761ed3aa62c022795c11b2facc728b2db7484084492373c944f9"
dependencies = [
"sentry-backtrace",
"sentry-core",
@@ -3711,9 +3712,9 @@ dependencies = [
[[package]]
name = "sentry-tower"
version = "0.49.2"
version = "0.49.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d3481bd6aabb99f331e5f32c0fba7c2c22f41282219e7011e100263cb47e335f"
checksum = "624ee2c60caf72fa2cd6be00334b3a3ce0c6df3b1f01941ea62e3d244492d334"
dependencies = [
"sentry-core",
"tower-layer",
@@ -3722,9 +3723,9 @@ dependencies = [
[[package]]
name = "sentry-tracing"
version = "0.49.2"
version = "0.49.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "77796d14eedbef22c2fe78e9c69fb09f14c7ad607e624d48dce92eedc17a136e"
checksum = "e7e7db1aefdf623f4e48e21ec9e4af535024187aeafb2a4cc7e29d035def5a13"
dependencies = [
"bitflags 2.11.0",
"sentry-backtrace",
@@ -3735,16 +3736,16 @@ dependencies = [
[[package]]
name = "sentry-types"
version = "0.49.2"
version = "0.49.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fc71f5ca55942d9b2901af95d5df5c5d65c164134c22a83682cac3d0b6c7ef2d"
checksum = "1c18bf7b159bdfc7c8f97816f476b4947a1937fb6bea9d38d3479e58631614ac"
dependencies = [
"debugid",
"hex",
"rand 0.9.4",
"rand 0.10.3",
"serde",
"serde_json",
"thiserror 2.0.20",
"thiserror 2.0.21",
"time",
"url",
"uuid",
@@ -3782,9 +3783,9 @@ dependencies = [
[[package]]
name = "serde_json"
version = "1.0.151"
version = "1.0.154"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c841b55ecdae098c80dcae9cf767f6f8a0c2cdb3416bbef72181df4d0fe73f14"
checksum = "e7e9cc8b1b85264074fbcc02a88680c4096b1e47df8f739dceb03bf482f04bd6"
dependencies = [
"itoa",
"memchr",
@@ -3829,11 +3830,11 @@ dependencies = [
[[package]]
name = "serde_with"
version = "3.22.0"
version = "3.24.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ee78f1fbe43ac4a0e47aadb3dbd357b69eb0d3793e948624cd03dd2750ab1c0a"
checksum = "df9adc193c780ef8f159aee8b61e2d5801aaa555e6eb0947fe45530ec506296f"
dependencies = [
"base64 0.22.1",
"base64 0.23.1",
"bs58",
"chrono",
"hex",
@@ -3935,7 +3936,7 @@ checksum = "0d585997b0ac10be3c5ee635f1bab02d512760d14b7c468801ac8a01d9ae5f1d"
dependencies = [
"num-bigint",
"num-traits",
"thiserror 2.0.20",
"thiserror 2.0.21",
"time",
]
@@ -4022,7 +4023,7 @@ dependencies = [
"serde_json",
"sha2 0.10.9",
"smallvec",
"thiserror 2.0.20",
"thiserror 2.0.21",
"tokio",
"tokio-stream",
"tracing",
@@ -4065,7 +4066,7 @@ dependencies = [
"sqlx-postgres",
"sqlx-sqlite",
"syn 2.0.117",
"thiserror 2.0.20",
"thiserror 2.0.21",
"tokio",
"url",
]
@@ -4093,7 +4094,7 @@ dependencies = [
"sha1 0.11.0",
"sha2 0.11.0",
"sqlx-core",
"thiserror 2.0.20",
"thiserror 2.0.21",
"tracing",
"uuid",
]
@@ -4123,14 +4124,14 @@ dependencies = [
"log",
"md-5",
"memchr",
"rand 0.10.2",
"rand 0.10.3",
"serde",
"serde_json",
"sha2 0.11.0",
"smallvec",
"sqlx-core",
"stringprep",
"thiserror 2.0.20",
"thiserror 2.0.21",
"tracing",
"uuid",
"whoami",
@@ -4156,7 +4157,7 @@ dependencies = [
"percent-encoding",
"serde",
"sqlx-core",
"thiserror 2.0.20",
"thiserror 2.0.21",
"tracing",
"url",
"uuid",
@@ -4290,11 +4291,11 @@ dependencies = [
[[package]]
name = "thiserror"
version = "2.0.20"
version = "2.0.21"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ec86235f5fcc2a73650310756d2ac5b138a5780bbbdfae3eeccec992c435ba4f"
checksum = "09e52cb86a36cede5cb101bf8908837b3e4c6e5e59fe7fd85c23fb56200d189e"
dependencies = [
"thiserror-impl 2.0.20",
"thiserror-impl 2.0.21",
]
[[package]]
@@ -4310,9 +4311,9 @@ dependencies = [
[[package]]
name = "thiserror-impl"
version = "2.0.20"
version = "2.0.21"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bc04cd3e1236dd4a98afca4569f2deb3f120e5422a4023be2cb683f8486292af"
checksum = "fe5197923287db20a58125f0bc85c062f7f2c892de97b18c356f9efb14b28524"
dependencies = [
"proc-macro2",
"quote",
@@ -4387,9 +4388,9 @@ checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20"
[[package]]
name = "tokio"
version = "1.53.1"
version = "1.53.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "202caea871b69668250d242070849eb495be178ed697a3e98aebce5bc81a0bed"
checksum = "ce3335fa71841cda333a58d7615b03901380ecf09d59b3296d21f8bbac0dde4e"
dependencies = [
"bytes",
"libc",
@@ -4426,9 +4427,9 @@ dependencies = [
[[package]]
name = "tokio-rustls"
version = "0.26.5"
version = "0.26.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b0c85f2c3ef0b1cd58b36682f4b17aaa995f0e5db534d85692b4903abce21f67"
checksum = "c9cc2678c2cdd569ef8215e2afd7954ada2ae20b4fdd2c5fe6139a3b02d105db"
dependencies = [
"rustls",
"tokio",
@@ -4475,9 +4476,9 @@ dependencies = [
[[package]]
name = "tokio-util"
version = "0.7.19"
version = "0.7.20"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "494815d09bf52b5548659851081238f0ca39ff638363907596da739561c62c52"
checksum = "e464cf451ba96ebfc6f9b6542f17ee8b8956e33f1e40d9690624e59d7a7f8a4b"
dependencies = [
"bytes",
"futures-core",
@@ -4711,7 +4712,7 @@ dependencies = [
"log",
"rand 0.9.4",
"sha1 0.10.6",
"thiserror 2.0.20",
"thiserror 2.0.21",
]
[[package]]
@@ -4725,11 +4726,11 @@ dependencies = [
"http",
"httparse",
"log",
"rand 0.10.2",
"rand 0.10.3",
"rustls",
"rustls-pki-types",
"sha1 0.11.0",
"thiserror 2.0.20",
"thiserror 2.0.21",
"url",
]
@@ -4860,9 +4861,9 @@ checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821"
[[package]]
name = "uuid"
version = "1.26.0"
version = "1.28.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b5772d71c9be8a8a6ac2117d949c5b224c1b72241bb611d9a3012edcf8af7812"
checksum = "7cc1186384beb7dd8eedea376413fd654937285ea6c9cfbb928dc3043ea4b606"
dependencies = [
"getrandom 0.4.2",
"js-sys",
@@ -4900,9 +4901,9 @@ dependencies = [
[[package]]
name = "want"
version = "0.3.1"
version = "0.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bfa7760aed19e106de2c7c0b581b509f2f25d3dacaf737cb82ac61bc6d760b0e"
checksum = "ec4cdd0dd910afe868b7ef477227d8d538b46b3075031afee8a9f2acb0a2ed0b"
dependencies = [
"try-lock",
]
@@ -5530,7 +5531,7 @@ dependencies = [
"nom",
"oid-registry",
"rusticata-macros",
"thiserror 2.0.20",
"thiserror 2.0.21",
"time",
]
+30 -23
View File
@@ -23,14 +23,14 @@ arc-swap = "= 1.9.2"
argh = "= 0.1.19"
askama = "= 0.16.1"
axum-server = { version = "= 0.8.0", features = ["tls-rustls-no-provider"] }
aws-lc-rs = { version = "= 1.18.1", features = ["fips"] }
aws-lc-rs = { version = "= 1.18.2", features = ["fips"] }
axum = { version = "= 0.8.9", features = ["http2", "macros", "ws"] }
axum-extra = { version = "= 0.12.6", default-features = false, features = [
"cookie-signed",
"cookie-key-expansion",
] }
base64 = "= 0.23.1"
clap = { version = "= 4.6.6", features = ["derive", "env"] }
clap = { version = "= 4.6.7", features = ["derive", "env"] }
chrono = { version = "0.4.45", features = ["serde"] }
color-eyre = "= 0.6.5"
colored = "= 3.1.1"
@@ -40,48 +40,54 @@ config-rs = { package = "config", version = "= 0.15.22", default-features = fals
] }
console-subscriber = "= 0.5.0"
dotenvy = "= 0.15.7"
durstr = "= 0.5.1"
durstr = "= 0.6.0"
eyre = "= 0.6.14"
futures = "= 0.3.34"
glob = "= 0.3.4"
http-body-util = "= 0.1.5"
hyper = { version = "= 1.11.1", features = ["client", "http1", "http2"] }
hyper-rustls = { version = "= 0.27.9", default-features = false, features = [
hyper = { version = "= 1.12.0", features = ["client", "http1", "http2"] }
hyper-rustls = { version = "= 0.27.10", default-features = false, features = [
"aws-lc-rs",
"http1",
"http2",
"native-tokio",
"tls12",
] }
hyper-unix-socket = "= 0.6.1"
hyper-util = { version = "= 0.1.20", features = [
hyper-unix-socket = "= 0.7.0"
hyper-util = { version = "= 0.1.21", features = [
"client-legacy",
"http1",
"http2",
"tokio",
] }
ipnet = { version = "= 2.12.2", features = ["serde"] }
json-subscriber = "= 0.3.0"
jsonwebtoken = { version = "= 11.0.0", features = ["aws_lc_rs"] }
json-subscriber = "= 0.3.1"
jsonwebtoken = { version = "= 11.1.0", features = ["aws_lc_rs"] }
metrics = "= 0.24.6"
metrics-exporter-prometheus = { version = "= 0.18.3", default-features = false }
moka = { version = "= 0.12.16", default-features = false, features = [
"future",
] }
nix = { version = "= 0.31.3", features = ["hostname", "signal"] }
nix = { version = "= 0.31.3", features = [
"fs",
"hostname",
"process",
"signal",
"user",
] }
notify = "= 8.2.0"
pem = "= 4.0.0"
percent-encoding = "= 2.3.2"
pin-project-lite = "= 0.2.17"
pyo3 = "= 0.29.0"
pyo3-build-config = "= 0.29.0"
rand = "= 0.10.2"
pyo3 = "= 0.29.1"
pyo3-build-config = "= 0.29.1"
rand = "= 0.10.3"
rcgen = { version = "= 0.14.10", default-features = false, features = [
"aws_lc_rs",
"fips",
] }
regex = "= 1.13.1"
reqwest = { version = "= 0.13.4", features = [
reqwest = { version = "= 0.13.5", features = [
"form",
"json",
"multipart",
@@ -96,8 +102,8 @@ reqwest-middleware = { version = "= 0.5.2", features = [
"query",
"rustls",
] }
rustls = { version = "= 0.23.44", features = ["fips"] }
sentry = { version = "= 0.49.2", default-features = false, features = [
rustls = { version = "= 0.23.46", features = ["fips"] }
sentry = { version = "= 0.49.3", default-features = false, features = [
"backtrace",
"contexts",
"debug-images",
@@ -108,9 +114,9 @@ sentry = { version = "= 0.49.2", default-features = false, features = [
"tracing",
] }
serde = { version = "= 1.0.229", features = ["derive"] }
serde_json = "= 1.0.151"
serde_json = "= 1.0.154"
serde_repr = "= 0.1.21"
serde_with = { version = "= 3.22.0", default-features = false, features = [
serde_with = { version = "= 3.24.0", default-features = false, features = [
"base64",
] }
sqlx = { version = "= 0.9.0", default-features = false, features = [
@@ -125,16 +131,16 @@ sqlx = { version = "= 0.9.0", default-features = false, features = [
"json",
] }
tempfile = "= 3.27.0"
thiserror = "= 2.0.20"
thiserror = "= 2.0.21"
time = { version = "= 0.3.55", features = ["macros"] }
tokio = { version = "= 1.53.1", features = ["full", "tracing"] }
tokio = { version = "= 1.53.3", features = ["full", "tracing"] }
tokio-retry2 = "= 0.9.1"
tokio-rustls = "= 0.26.5"
tokio-rustls = "= 0.26.6"
tokio-tungstenite = { version = "= 0.30.0", features = [
"rustls-tls-webpki-roots",
"url",
] }
tokio-util = { version = "= 0.7.19", features = ["full"] }
tokio-util = { version = "= 0.7.20", features = ["full"] }
tower = "= 0.5.3"
tower-http = { version = "= 0.7.1", features = [
"compression-full",
@@ -151,7 +157,7 @@ tracing-subscriber = { version = "= 0.3.23", features = [
"tracing-log",
] }
url = "= 2.5.8"
uuid = { version = "= 1.26.0", features = ["serde", "v4"] }
uuid = { version = "= 1.28.0", features = ["serde", "v4"] }
ak-axum = { package = "authentik-axum", version = "2026.11.0-rc1", path = "./packages/ak-axum" }
ak-client = { package = "authentik-client", version = "2026.11.0-rc1", path = "./packages/client-rust" }
@@ -360,6 +366,7 @@ url.workspace = true
uuid.workspace = true
[dev-dependencies]
rcgen.workspace = true
tempfile.workspace = true
[lints]
+83 -41
View File
@@ -1,4 +1,4 @@
.PHONY: gen dev-reset all clean test web docs
.PHONY: gen dev-reset all test web docs core-install i18n-extract gen-locales locales-normalize install bump gen-changelog integrations
SHELL := /usr/bin/env bash
.SHELLFLAGS += ${SHELLFLAGS} -e -o pipefail
@@ -54,7 +54,7 @@ else
NPM_VERSION = $(shell python -m scripts.generate_semver)
endif
all: lint-fix lint gen web test ## Lint, build, and test everything
all: lint-fix lint gen web test ## Lint-fix, lint, generate the schema, generate the client libraries, lint the front end, run the python tests
HELP_WIDTH := $(shell grep -h '^[a-z][^ ]*:.*\#\#' $(MAKEFILE_LIST) 2>/dev/null | \
cut -d':' -f1 | awk '{printf "%d\n", length}' | sort -rn | head -1)
@@ -72,16 +72,16 @@ go-test: ## Run the golang tests
rust-test: ## Run the Rust tests
$(CARGO) nextest run --workspace
test: ## Run the server tests and produce a coverage report (locally)
test: ## Run the server tests and produce a coverage report (locally). Usage: make test [path]
$(UV) run coverage run manage.py test --keepdb $(or $(filter-out $@ all,$(MAKECMDGOALS)),authentik)
$(UV) run coverage combine
$(UV) run coverage html
$(UV) run coverage report
lint-fix-rust:
lint-fix-rust: ## Format Rust sources (rustfmt)
$(CARGO) +nightly fmt --all -- --config-path "${PWD}/.cargo/rustfmt.toml"
lint-fix: lint-fix-rust ## Lint and automatically fix errors in the python source code. Reports spelling errors.
lint-fix: lint-fix-rust ## Format and automatically fix Python (black, ruff) and Rust (rustfmt) sources
$(UV) run black $(PY_SOURCES)
$(UV) run ruff check --fix $(PY_SOURCES)
@@ -91,14 +91,17 @@ lint-spellcheck: ## Reports spelling errors.
lint-catalogs: ## Reports pnpm catalog pins, and pnpm's own version pin, that drifted between workspaces.
node ./scripts/node/lint-catalogs.ts
lint-check-types: ## Type-check the repository's Node.js scripts.
pnpm run check-types
lint-locales: ## Reports translation files and generated locale lists that drifted from locales.yaml.
$(UV) run python scripts/locales.py check
lint: ci-lint-bandit ci-lint-mypy ci-lint-cargo-deny ci-lint-cargo-machete ## Lint the python and golang sources
golangci-lint run -v
lint-check-types: ## Type-check the repository's Node.js scripts.
pnpm run build:types
lint: ci-lint-bandit ci-lint-mypy ci-lint-cargo-deny ci-lint-cargo-machete ## Check Python (bandit, mypy), Go (golangci) and Rust dependencies (cargo deny, machete)
golangci-lint run -v --config .github/golangci.yml
core-install:
ifdef ($(BREW_EXISTS))
ifneq ($(BREW_EXISTS),)
# Clear cache to ensure fresh compilation
$(UV) cache clean
# Force compilation from source for lxml and xmlsec with correct environment
@@ -107,12 +110,18 @@ else
$(UV) sync --frozen
endif
migrate: ## Run the Authentik Django server's migrations
migrate: ## Apply and check system and Django migrations
$(UV) run python -m lifecycle.migrate
i18n-extract: core-i18n-extract web-i18n-extract ## Extract strings that require translation into files to send to a translation service
aws-cfn: node-install
gen-locales: ## Regenerate lit-localize.json, the web locale loaders, and the Transifex language mapping from locales.yaml
$(UV) run python scripts/locales.py gen
locales-normalize: ## Move translation files that Transifex wrote under non-canonical names to their canonical paths
$(UV) run python scripts/locales.py normalize
aws-cfn: node-install ## Generate the AWS Cloudformation template
pnpm --dir lifecycle/aws install
$(UV) run pnpm --dir lifecycle/aws run aws-cfn
@@ -123,7 +132,7 @@ run-watch: ## Run the authentik server and worker, with auto reloading
watchexec --on-busy-update=restart --stop-signal=SIGINT --exts py,rs --no-meta --notify -- $(UV) run ak allinone
core-i18n-extract:
$(UV) run ak makemessages \
$(UV) run python -m manage makemessages \
--add-location file \
--no-obsolete \
--ignore web \
@@ -132,7 +141,7 @@ core-i18n-extract:
--ignore website \
-l en
install: node-install web-install core-install ## Install all requires dependencies for `node`, `web` and `core`
install: node-install web-install core-install ## Install all required dependencies for `node`, `web` and `core`
dev-drop-db:
$(eval pg_user := $(shell $(UV) run python -m authentik.lib.config postgresql.user 2>/dev/null))
@@ -148,7 +157,10 @@ dev-create-db:
$(eval pg_name := $(shell $(UV) run python -m authentik.lib.config postgresql.name 2>/dev/null))
createdb -U ${pg_user} -h ${pg_host} ${pg_name}
dev-reset: dev-drop-db dev-create-db migrate ## Drop and restore the Authentik PostgreSQL instance to a "fresh install" state.
dev-reset: dev-drop-db dev-create-db migrate ## Drop and restore the authentik PostgreSQL instance to a "fresh install" state.
make-migrations: ## Create Django migrations for model changes (pgtrigger-aware)
$(UV) run ak makemigrations
update-test-mmdb: ## Update test GeoIP and ASN Databases
curl \
@@ -176,11 +188,10 @@ endif
## API Schema
#########################
gen-build: ## Extract the schema from the database
gen-build: ## Generate schema.yml and blueprints/schema.json from Django model definitions
AUTHENTIK_DEBUG=true \
AUTHENTIK_TENANTS__ENABLED=true \
AUTHENTIK_OUTPOSTS__DISABLE_EMBEDDED_OUTPOST=true \
$(UV) run ak build_schema
$(UV) run python -m manage build_schema
gen-compose:
$(UV) run scripts/generate_compose.py
@@ -196,7 +207,7 @@ gen-changelog: ## (Release) generate the changelog based from the commits since
rm merged_to_current
rm merged_to_last
rm cherry_picked_to_last
npx prettier --write changelog.md
pnpm exec oxfmt --write changelog.md
gen-diff: ## (Release) generate the changelog diff between the current schema and the last version
$(eval last_version := $(shell git tag --list 'version/*' --sort 'version:refname' | grep -vE 'rc[0-9]+$$' | tail -1))
@@ -209,7 +220,7 @@ gen-diff: ## (Release) generate the changelog diff between the current schema a
rm schema-old.yml
$(SED_INPLACE) 's/{/\&#123;/g' diff.md
$(SED_INPLACE) 's/}/\&#125;/g' diff.md
npx prettier --write diff.md
pnpm exec oxfmt --write diff.md
gen-client-go: ## Build and install the authentik API for Golang
$(UV) run make -C "${PWD}/packages/client-go" build
@@ -242,37 +253,52 @@ gen-dev-config: ## Generate a local development config file
node-preinstall: ## Verify the active Node.js and pnpm versions match what's in package.json.
node ./scripts/node/lint-runtime.ts
node-install: node-preinstall ## Install the necessary libraries to build Node.js packages
node-install: node-preinstall ## Install the necessary libraries to build Node.js packages and build the shared lint configs
pnpm install --frozen-lockfile
pnpm run build:lint-config
#########################
## Web
#########################
web-install: ## Install the necessary libraries to build the Authentik UI
web-install: ## Install the necessary libraries to build the authentik front end
pnpm --dir web install --frozen-lockfile
web-build: node-install ## Build the Authentik UI
web-build: node-install ## Build the authentik front end
pnpm --dir web run build
web: web-lint-fix web-lint web-check-compile ## Automatically fix formatting issues in the Authentik UI source code, lint the code, and compile it
web: web-lint-fix web-lint web-check-compile ## Format and lint the front-end, run lit-analyzer and type-check
web-test: ## Run tests for the Authentik UI
web-check: ## Run front-end lint and format checks (does no modifications)
pnpm --dir web lint:check
pnpm --dir web format:check
web-test-unit: ## Run web front-end tests once
pnpm --dir web run test:unit
web-test: ## Run tests for the authentik front end in watch mode
pnpm --dir web run test
web-watch: ## Build and watch the Authentik UI for changes, updating automatically
web-test-e2e: ## Run front end Playwright end-to-end tests
pnpm --dir web run test:e2e
web-test-visual: ## Run visual regression tests for the front-end
pnpm --dir web run test:visual
web-watch: ## Build and watch the authentik front end for changes, updating automatically
pnpm --dir web run watch
web-storybook-watch: ## Build and run the storybook documentation server
pnpm --dir web run storybook
web-lint-fix:
pnpm --dir web run prettier
web-lint-fix: ## Format the front end source (oxfmt)
pnpm --dir web run format
web-lint:
web-lint: ## Lint the front end (oxfmt) and run lit-analyzer
pnpm --dir web run lint
pnpm --dir web run lit-analyse
web-check-compile:
web-check-compile: ## Type-check the front end
pnpm --dir web run tsc
web-i18n-extract:
@@ -282,30 +308,39 @@ web-i18n-extract:
## Docs
#########################
docs: docs-lint-fix docs-build ## Automatically fix formatting issues in the Authentik docs source code, lint the code, and compile it
docs: docs-lint-fix docs-build ## Spellcheck, format, and build the docs website
docs-install: node-install ## Install the necessary libraries to build the Authentik documentation
docs-install: node-install ## Install the necessary libraries to build the authentik documentation
pnpm --dir website install --frozen-lockfile
docs-lint-fix: lint-spellcheck
pnpm --dir website run prettier
docs-lint-fix: lint-spellcheck ## Spellcheck and format the documentation site
pnpm --dir website run lint
pnpm --dir website run format
docs-build:
docs-build: ## Build the docs website
node ./scripts/node/lint-runtime.ts website
pnpm --dir website run build
docs-watch: ## Build and watch the topics documentation
pnpm --dir website run start
integrations: docs-lint-fix integrations-build ## Fix formatting issues in the integrations source code, lint the code, and compile it
docs-test: ## Run the documentation website tests
pnpm --dir website run test
integrations-build:
docs-check: ## Run documentation lint, typecheck, and format (does no modifications)
pnpm --dir website run lint:check
pnpm --dir website run build:types
pnpm --dir website run format:check
integrations: docs-lint-fix integrations-build ## Spellcheck, format, and build the integrations website
integrations-build: ## Build the integrations website
pnpm --dir website run build:integrations
integrations-watch: ## Build and watch the Integrations documentation
pnpm --dir website/integrations run start
docs-api-build:
docs-api-build: ## Build the API reference site
pnpm --dir website run build:api
docs-api-watch: ## Build and watch the API documentation
@@ -322,7 +357,7 @@ docs-api-clean: ## Clean generated API documentation
docker: ## Build a docker image of the current source tree
DOCKER_BUILDKIT=1 docker build . -f lifecycle/container/Dockerfile --progress plain --tag ${DOCKER_IMAGE}
test-docker:
test-docker: ## Build docker image and run full test suite in the container compose stack
BUILD=true ${PWD}/scripts/test_docker.sh
#########################
@@ -352,7 +387,7 @@ ci-lint-bandit: ci--meta-debug
$(UV) run bandit -c pyproject.toml -r $(PY_SOURCES) -iii
ci-lint-pending-migrations: ci--meta-debug
$(UV) run ak makemigrations --check
$(UV) run python -m manage makemigrations --check
ci-lint-cargo-deny: ci--meta-debug
$(CARGO) deny --config "${PWD}/.cargo/deny.toml" --locked --workspace check
@@ -369,8 +404,15 @@ ci-lint-clippy: ci--meta-debug
ci-lint-catalogs: ci--meta-debug
node ./scripts/node/lint-catalogs.ts
ci-lint-locales: ci--meta-debug
$(UV) run python scripts/locales.py check
ci-lint-oxlint-fixtures: ci--meta-debug
pnpm --filter @goauthentik/oxlint-config run build
pnpm --filter @goauthentik/oxlint-config run verify
ci-lint-check-types: ci--meta-debug
pnpm run check-types
pnpm run build:types
ci-test: ci--meta-debug
$(UV) run coverage run manage.py test --keepdb --parallel auto authentik
+1 -1
View File
@@ -1,5 +1,5 @@
<p align="center">
<img src="https://goauthentik.io/img/icon_top_brand_colour.svg" height="150" alt="authentik logo">
<img src="https://docs.goauthentik.io/img/icon_top_brand_colour.svg" height="150" alt="authentik logo">
</p>
---
+15 -5
View File
@@ -2,7 +2,7 @@ authentik takes security very seriously. We follow the rules of [responsible di
## Independent audits and pentests
We are committed to engaging in regular pentesting and security audits of authentik. Defining and adhering to a cadence of external testing ensures a stronger probability that our code base, our features, and our architecture is as secure and non-exploitable as possible. For more details about specific audits and pentests, refer to "Audits and Certificates" in our [Security documentation](https://docs.goauthentik.io/docs/security).
We are committed to engaging in regular pentesting and security audits of authentik. Defining and adhering to a cadence of external testing ensures a stronger probability that our code base, our features, and our architecture is as secure and non-exploitable as possible. For more details about specific audits and pentests, refer to [Audits and Certificates](https://docs.goauthentik.io/security/audits-and-certs/).
## What authentik classifies as a CVE
@@ -14,6 +14,14 @@ If it is determined that the issue does qualify as a CVE, a CVE number will be i
Even if the issue is not a CVE, we still greatly appreciate your help in hardening authentik.
## Our CNA
GitHub is the CNA (CVE Numbering Authority) for authentik. We request every authentik CVE ID from GitHub through the [repository security advisory](https://docs.github.com/en/code-security/security-advisories/working-with-repository-security-advisories/about-repository-security-advisories) that the report was filed under. This places authentik vulnerabilities in the scope of [GitHub, Inc. (CNA-2019-0009)](https://www.cve.org/PartnerInformation/ListofPartners/partner/GitHub_M).
Please do not reserve or assign a CVE ID for authentik from any other CNA, including your own. A second ID creates a duplicate record for the same vulnerability. If you have already reserved an ID, please withdraw it and use the ID that GitHub assigns.
GitHub reviews each request, so assignment can take several weeks. We publish the advisory without waiting for the ID, and the ID is added to the advisory once GitHub assigns it.
## Supported Versions
(.x being the latest patch release for each version)
@@ -96,10 +104,12 @@ The destinations of outgoing network requests (HTTP, TCP, etc.) made by authenti
1. Vulnerability is reported via a GitHub Security Advisory, as listed above.
2. The authentik Security team will try to reproduce the issue and ask for more information if required.
3. A severity level is assigned.
4. A fix is created, and if possible tested by the issue reporter.
5. The fix is backported to other supported versions, and if possible a workaround for other versions is created.
6. An announcement is sent out with a fixed release date and severity level of the issue. The announcement will be sent at least 24 hours before the release of the security fix.
7. The fixed version is released for the supported versions.
4. If the issue qualifies as a CVE, a CVE ID is requested from GitHub, our CNA. See [Our CNA](#our-cna).
5. A fix is created, and if possible tested by the issue reporter.
6. The fix is backported to other supported versions, and if possible a workaround for other versions is created.
7. An announcement is sent out with a fixed release date and severity level of the issue. The announcement will be sent at least 24 hours before the release of the security fix.
8. The fixed version is released for the supported versions.
9. The security advisory is published. If GitHub has not assigned the CVE ID by then, the ID is added to the advisory once it arrives.
## Getting security notifications
@@ -1,9 +1,8 @@
"""Serializer for tenants models"""
"""Serializer for system settings"""
from typing import get_args
from django.utils.translation import gettext_lazy as _
from django_tenants.utils import get_public_schema_name
from drf_spectacular.extensions import OpenApiSerializerFieldExtension
from drf_spectacular.plumbing import build_basic_type, build_object_type
from rest_framework.exceptions import ValidationError
@@ -11,11 +10,11 @@ from rest_framework.fields import JSONField
from rest_framework.generics import RetrieveUpdateAPIView
from rest_framework.permissions import SAFE_METHODS
from authentik.admin.flags import Flag
from authentik.admin.models import SystemSettings
from authentik.admin.utils import get_system_settings, normalize_base_url
from authentik.core.api.utils import JSONDictField, ModelSerializer
from authentik.rbac.permissions import HasPermission
from authentik.tenants.flags import Flag
from authentik.tenants.models import Tenant
from authentik.tenants.utils import normalize_base_url
class FlagJSONField(JSONDictField):
@@ -57,7 +56,7 @@ class FlagJSONField(JSONDictField):
class FlagsJSONExtension(OpenApiSerializerFieldExtension):
"""Generate API Schema for JSON fields as"""
target_class = "authentik.tenants.api.settings.FlagJSONField"
target_class = "authentik.admin.api.settings.FlagJSONField"
def map_serializer_field(self, auto_schema, direction):
props = {}
@@ -81,7 +80,7 @@ class SettingsSerializer(ModelSerializer):
flags = FlagJSONField()
class Meta:
model = Tenant
model = SystemSettings
fields = [
"avatars",
"base_url",
@@ -109,7 +108,7 @@ class SettingsSerializer(ModelSerializer):
class SettingsView(RetrieveUpdateAPIView):
"""Settings view"""
queryset = Tenant.objects.filter(ready=True)
queryset = SystemSettings.objects.all()
serializer_class = SettingsSerializer
filter_backends = []
@@ -123,11 +122,6 @@ class SettingsView(RetrieveUpdateAPIView):
]
def get_object(self):
obj = self.request.tenant
obj = get_system_settings()
self.check_object_permissions(self.request, obj)
return obj
def perform_update(self, serializer):
# We need to be in the public schema to actually modify a tenant
with Tenant.objects.get(schema_name=get_public_schema_name()):
super().perform_update(serializer)
+2 -2
View File
@@ -17,13 +17,13 @@ from rest_framework.response import Response
from rest_framework.views import APIView
from authentik import authentik_full_version
from authentik.admin.utils import get_system_settings
from authentik.core.api.utils import PassiveSerializer
from authentik.lib.config import CONFIG
from authentik.lib.utils.reflection import get_env
from authentik.outposts.apps import MANAGED_OUTPOST
from authentik.outposts.models import Outpost
from authentik.rbac.permissions import HasPermission
from authentik.tenants.utils import get_current_tenant
def fips_enabled():
@@ -118,7 +118,7 @@ class SystemInfoSerializer(PassiveSerializer):
def get_base_url(self, request: Request) -> str:
"""Configured external base URL. Can be empty"""
return get_current_tenant().base_url
return get_system_settings().base_url
class SystemView(APIView):
+7 -18
View File
@@ -1,7 +1,5 @@
"""authentik administration overview"""
from django.core.cache import cache
from django_tenants.utils import get_public_schema_name
from drf_spectacular.utils import extend_schema
from packaging.version import parse
from rest_framework.fields import SerializerMethodField
@@ -11,10 +9,9 @@ from rest_framework.response import Response
from rest_framework.views import APIView
from authentik import authentik_build_hash, authentik_version
from authentik.admin.tasks import VERSION_CACHE_KEY, VERSION_NULL, update_latest_version
from authentik.admin.tasks import UpdateVersionInfo
from authentik.core.api.utils import PassiveSerializer
from authentik.outposts.models import Outpost
from authentik.tenants.utils import get_current_tenant
class VersionSerializer(PassiveSerializer):
@@ -22,7 +19,6 @@ class VersionSerializer(PassiveSerializer):
version_current = SerializerMethodField()
version_latest = SerializerMethodField()
version_latest_valid = SerializerMethodField()
build_hash = SerializerMethodField()
outdated = SerializerMethodField()
outpost_outdated = SerializerMethodField()
@@ -35,23 +31,16 @@ class VersionSerializer(PassiveSerializer):
"""Get current version"""
return authentik_version()
def get_version_latest(self, _) -> str:
def get_version_latest(self, _) -> UpdateVersionInfo:
"""Get latest version from cache"""
if get_current_tenant().schema_name != get_public_schema_name():
return authentik_version()
version_in_cache = cache.get(VERSION_CACHE_KEY)
if not version_in_cache: # pragma: no cover
update_latest_version.send()
return authentik_version()
return version_in_cache
def get_version_latest_valid(self, _) -> bool:
"""Check if latest version is valid"""
return cache.get(VERSION_CACHE_KEY) != VERSION_NULL
return UpdateVersionInfo.get_cached().model_dump(mode="json")
def get_outdated(self, instance) -> bool:
"""Check if we're running the latest version"""
return parse(self.get_version_current(instance)) < parse(self.get_version_latest(instance))
cached = UpdateVersionInfo.get_cached()
if not cached:
return False
return parse(self.get_version_current(instance)) < parse(cached.version)
def get_outpost_outdated(self, _) -> bool:
"""Check if any outpost is outdated/has a version mismatch"""
+47 -2
View File
@@ -1,15 +1,25 @@
"""authentik admin app config"""
from django.db import DEFAULT_DB_ALIAS
from django.db.models.signals import post_migrate
from prometheus_client import Info
from authentik.blueprints.apps import ManagedAppConfig
from authentik.lib.config import CONFIG
from authentik.lib.utils.time import fqdn_rand
from authentik.outposts.apps import MANAGED_OUTPOST
from authentik.tasks.schedules.common import ScheduleSpec
PROM_INFO = Info("authentik_version", "Currently running authentik version")
def ensure_system_settings(*args, using=DEFAULT_DB_ALIAS, **kwargs):
"""Make sure the system settings exist"""
from authentik.admin.models import SystemSettings
SystemSettings.objects.using(using).get_or_create(pk=True)
class AuthentikAdminConfig(ManagedAppConfig):
"""authentik admin app config"""
@@ -18,7 +28,42 @@ class AuthentikAdminConfig(ManagedAppConfig):
verbose_name = "authentik Admin"
default = True
@ManagedAppConfig.reconcile_global
@ManagedAppConfig.reconcile
def system_settings(self):
"""Make sure the system settings exist, especially after a migration"""
post_migrate.connect(ensure_system_settings)
ensure_system_settings()
self._backfill_base_url()
def _backfill_base_url(self):
"""Backfill base_url when it hasn't been set yet. Sources: AUTHENTIK_WEB__BASE_URL config
value, then the embedded outpost's configured host."""
from django.core.exceptions import ValidationError
from authentik.admin.models import SystemSettings
from authentik.admin.utils import get_system_settings, normalize_base_url
from authentik.outposts.models import Outpost
settings = get_system_settings()
if settings.base_url:
return # Already set
base_url = normalize_base_url(CONFIG.get("web.base_url", ""))
if not base_url:
outpost = Outpost.objects.filter(managed=MANAGED_OUTPOST).first()
if outpost:
base_url = normalize_base_url(outpost.config.authentik_host)
if base_url:
try:
SystemSettings._meta.get_field("base_url").run_validators(base_url)
except ValidationError:
self.logger.warning("Discarding invalid base_url", base_url=base_url)
base_url = ""
if not base_url: # No source available
return
SystemSettings.objects.filter(pk=settings.pk).update(base_url=base_url)
self.logger.info("Backfilled base_url", base_url=base_url)
@ManagedAppConfig.reconcile
def clear_update_notifications(self):
"""Clear update notifications on startup if the notification was for the version
we're running now."""
@@ -35,7 +80,7 @@ class AuthentikAdminConfig(ManagedAppConfig):
notification.delete()
@property
def global_schedule_specs(self) -> list[ScheduleSpec]:
def schedule_specs(self) -> list[ScheduleSpec]:
from authentik.admin.tasks import update_latest_version
return [
@@ -9,7 +9,7 @@ from django.db.models import F, Func, JSONField, Value
from authentik.lib.utils.reflection import all_subclasses
if TYPE_CHECKING:
from authentik.tenants.models import Tenant
from authentik.admin.models import SystemSettings
class Flag[T]:
@@ -28,15 +28,14 @@ class Flag[T]:
return self.__key
@classmethod
def get(cls, tenant: Tenant | None = None) -> T | None:
from authentik.tenants.utils import get_current_tenant
if not tenant:
tenant = get_current_tenant(["flags"])
def get(cls, settings: SystemSettings | None = None) -> T | None:
from authentik.admin.utils import get_system_settings
flags = {}
try:
flags: dict[str, Any] = tenant.flags
if not settings:
settings = get_system_settings()
flags: dict[str, Any] = settings.flags
except DatabaseError, ProgrammingError, InternalError:
pass
value = flags.get(cls.__key, None)
@@ -45,14 +44,14 @@ class Flag[T]:
return value
@classmethod
def set(cls, value: T, tenant: Tenant | None = None) -> T | None:
from authentik.tenants.models import Tenant
from authentik.tenants.utils import get_current_tenant
def set(cls, value: T, settings: SystemSettings | None = None) -> T | None:
from authentik.admin.models import SystemSettings
from authentik.admin.utils import clear_system_settings_cache, get_system_settings
if not tenant:
tenant = get_current_tenant()
if not settings:
settings = get_system_settings()
Tenant.objects.filter(pk=tenant.pk).update(
SystemSettings.objects.filter(pk=settings.pk).update(
flags=Func(
F("flags"),
Value([cls.__key]),
@@ -60,6 +59,7 @@ class Flag[T]:
function="jsonb_set",
)
)
clear_system_settings_cache()
def get_default(self) -> T | None:
return self.default
@@ -83,24 +83,24 @@ def patch_flag[T](flag: Flag[T], value: T):
def wrapper_outer(func: Callable):
"""Set a flag for a test"""
from authentik.tenants.utils import get_current_tenant
from authentik.admin.utils import get_system_settings
def cleanup(tenant: Tenant, flags: dict[str, Any]):
tenant.flags = flags
tenant.save()
def cleanup(settings: SystemSettings, flags: dict[str, Any]):
settings.flags = flags
settings.save()
@wraps(func)
def wrapper(*args, **kwargs):
tenant = get_current_tenant()
old_flags = copy(tenant.flags)
tenant.flags[flag().key] = value
tenant.save()
settings = get_system_settings()
old_flags = copy(settings.flags)
settings.flags[flag().key] = value
settings.save()
try:
res = func(*args, **kwargs)
cleanup(tenant, old_flags)
cleanup(settings, old_flags)
return res
finally:
cleanup(tenant, old_flags)
cleanup(settings, old_flags)
return wrapper
File renamed without changes.
@@ -1,19 +1,20 @@
from argparse import ArgumentParser
from typing import Any
from authentik.tenants.management import TenantCommand
from authentik.tenants.utils import get_current_tenant
from django.core.management.base import BaseCommand
from authentik.admin.utils import get_system_settings
class Command(TenantCommand):
class Command(BaseCommand):
def add_arguments(self, parser: ArgumentParser):
parser.add_argument("flag_key", type=str)
parser.add_argument("flag_value", type=str)
def handle(self, *, flag_key: str, flag_value: Any, **options):
tenant = get_current_tenant()
settings = get_system_settings()
val = flag_value.lower() == "true"
tenant.flags[flag_key] = val
tenant.save()
settings.flags[flag_key] = val
settings.save()
self.stdout.write(f"Set flag '{flag_key}' to {val}.")
+18
View File
@@ -0,0 +1,18 @@
from collections.abc import Callable
from django.http import HttpRequest, HttpResponse
from authentik.admin.utils import system_settings_cache
class SystemSettingsMiddleware:
"""Read the system settings at most once per request"""
get_response: Callable[[HttpRequest], HttpResponse]
def __init__(self, get_response: Callable[[HttpRequest], HttpResponse]):
self.get_response = get_response
def __call__(self, request: HttpRequest) -> HttpResponse:
with system_settings_cache():
return self.get_response(request)
+220
View File
@@ -0,0 +1,220 @@
# Generated by Django 5.2.17 on 2026-09-15 08:23
from json import loads
import authentik.lib.models
import authentik.lib.utils.time
import django.core.validators
from authentik.lib.config import CONFIG
from django.db import connections, migrations, models
JSON_FIELDS = ("footer_links", "flags")
FIELDS = [
"avatars",
"base_url",
"default_user_change_name",
"default_user_change_email",
"default_user_change_username",
"event_retention",
"reputation_lower_limit",
"reputation_upper_limit",
"footer_links",
"gdpr_compliance",
"impersonation",
"impersonation_require_reason",
"default_token_duration",
"default_token_length",
"pagination_default_page_size",
"pagination_max_page_size",
"flags",
]
def create_system_settings(apps, schema_editor):
db_alias = schema_editor.connection.alias
SystemSettings = apps.get_model("authentik_admin", "SystemSettings")
if SystemSettings.objects.using(db_alias).exists():
return
settings = {}
with connections[db_alias].cursor() as cursor:
cursor.execute(
"SELECT 1 FROM information_schema.tables WHERE table_name = 'authentik_tenants_tenant'"
)
if cursor.fetchone() is not None:
cursor.execute(
f"SELECT {', '.join(FIELDS)} FROM authentik_tenants_tenant WHERE schema_name = %s", # nosec
[CONFIG.get("postgresql.default_schema")],
)
tenant = cursor.fetchone()
if tenant is not None:
settings = dict(zip(FIELDS, tenant, strict=True))
# The raw cursor returns jsonb as str, which JSONField would encode again
for field in JSON_FIELDS:
if isinstance(settings[field], str):
settings[field] = loads(settings[field])
SystemSettings.objects.using(db_alias).create(**settings)
class Migration(migrations.Migration):
initial = True
dependencies = [
("authentik_tenants", "0009_alter_tenant_base_url"),
]
operations = [
migrations.CreateModel(
name="VersionHistory",
fields=[
("id", models.BigAutoField(primary_key=True, serialize=False)),
("timestamp", models.DateTimeField()),
("version", models.TextField()),
("build", models.TextField()),
],
options={
"verbose_name": "Version history",
"verbose_name_plural": "Version history",
"db_table": "authentik_version_history",
"ordering": ("-timestamp",),
"managed": False,
"default_permissions": [],
},
),
migrations.CreateModel(
name="SystemSettings",
fields=[
("id", models.BooleanField(default=True, primary_key=True, serialize=False)),
(
"avatars",
models.TextField(
default="gravatar,initials",
help_text="Configure how authentik should show avatars for users.",
),
),
(
"base_url",
models.TextField(
blank=True,
default="",
help_text="Configure the base URL under which this authentik instance is reachable, e.g. https://authentik.company",
validators=[
authentik.lib.models.DomainlessURLValidator(
message="Enter a valid URL, for example https://authentik.company",
schemes=("http", "https"),
)
],
),
),
(
"default_user_change_name",
models.BooleanField(
default=True, help_text="Enable the ability for users to change their name."
),
),
(
"default_user_change_email",
models.BooleanField(
default=False,
help_text="Enable the ability for users to change their email address.",
),
),
(
"default_user_change_username",
models.BooleanField(
default=False,
help_text="Enable the ability for users to change their username.",
),
),
(
"event_retention",
models.TextField(
default="days=365",
help_text="Events will be deleted after this duration.(Format: weeks=3;days=2;hours=3,seconds=2).",
validators=[authentik.lib.utils.time.timedelta_string_validator],
),
),
(
"reputation_lower_limit",
models.IntegerField(
default=-5,
help_text="Reputation cannot decrease lower than this value. Zero or negative.",
validators=[django.core.validators.MaxValueValidator(0)],
),
),
(
"reputation_upper_limit",
models.IntegerField(
default=5,
help_text="Reputation cannot increase higher than this value. Zero or positive.",
validators=[django.core.validators.MinValueValidator(0)],
),
),
(
"footer_links",
models.JSONField(
blank=True,
default=list,
help_text="The option configures the footer links on the flow executor pages.",
),
),
(
"gdpr_compliance",
models.BooleanField(
default=True,
help_text="When enabled, all the events caused by a user will be deleted upon the user's deletion.",
),
),
(
"impersonation",
models.BooleanField(
default=True, help_text="Globally enable/disable impersonation."
),
),
(
"impersonation_require_reason",
models.BooleanField(
default=True,
help_text="Require administrators to provide a reason for impersonating a user.",
),
),
(
"default_token_duration",
models.TextField(
default="days=1",
help_text="Default token duration",
validators=[authentik.lib.utils.time.timedelta_string_validator],
),
),
(
"default_token_length",
models.PositiveIntegerField(
default=60,
help_text="Default token length",
validators=[django.core.validators.MinValueValidator(1)],
),
),
(
"pagination_default_page_size",
models.PositiveIntegerField(
default=20,
help_text="Default page size for API responses, if no size was requested.",
),
),
(
"pagination_max_page_size",
models.PositiveIntegerField(default=100, help_text="Maximum page size"),
),
("flags", models.JSONField(default=dict)),
],
options={
"verbose_name": "System settings",
"verbose_name_plural": "System settings",
"default_permissions": [],
},
bases=(authentik.lib.models.InternallyManagedMixin, models.Model),
),
migrations.RunPython(code=create_system_settings, reverse_code=migrations.RunPython.noop),
]
@@ -0,0 +1,28 @@
# Generated by Django 5.2.17 on 2026-09-30 08:15
import authentik.lib.models
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("authentik_admin", "0001_initial"),
]
operations = [
migrations.AlterField(
model_name="systemsettings",
name="base_url",
field=models.TextField(
default="",
help_text="Configure the base URL under which this authentik instance is reachable, e.g. https://authentik.company",
validators=[
authentik.lib.models.DomainlessURLValidator(
message="Enter a valid URL, for example https://authentik.company",
schemes=("http", "https"),
)
],
),
),
]
File renamed without changes.
+124 -1
View File
@@ -1,7 +1,130 @@
"""authentik admin models"""
from django.db import models
from django.core.validators import MaxValueValidator, MinValueValidator
from django.db import IntegrityError, models
from django.utils.translation import gettext_lazy as _
from rest_framework.serializers import Serializer
from authentik.lib.models import (
DomainlessURLValidator,
InternallyManagedMixin,
SerializerModel,
)
from authentik.lib.utils.time import timedelta_string_validator
DEFAULT_TOKEN_DURATION = "days=1" # nosec
DEFAULT_TOKEN_LENGTH = 60
DEFAULT_REPUTATION_LOWER_LIMIT = -5
DEFAULT_REPUTATION_UPPER_LIMIT = 5
class SystemSettings(InternallyManagedMixin, SerializerModel):
"""Global settings for this authentik instance"""
id = models.BooleanField(primary_key=True, default=True)
avatars = models.TextField(
help_text=_("Configure how authentik should show avatars for users."),
default="gravatar,initials",
)
base_url = models.TextField(
default="",
validators=[
DomainlessURLValidator(
schemes=("http", "https"),
message=_("Enter a valid URL, for example https://authentik.company"),
)
],
help_text=_(
"Configure the base URL under which this authentik instance is "
"reachable, e.g. https://authentik.company"
),
)
default_user_change_name = models.BooleanField(
help_text=_("Enable the ability for users to change their name."), default=True
)
default_user_change_email = models.BooleanField(
help_text=_("Enable the ability for users to change their email address."), default=False
)
default_user_change_username = models.BooleanField(
help_text=_("Enable the ability for users to change their username."), default=False
)
event_retention = models.TextField(
default="days=365",
validators=[timedelta_string_validator],
help_text=_(
"Events will be deleted after this duration.(Format: weeks=3;days=2;hours=3,seconds=2)."
),
)
reputation_lower_limit = models.IntegerField(
help_text=_("Reputation cannot decrease lower than this value. Zero or negative."),
default=DEFAULT_REPUTATION_LOWER_LIMIT,
validators=[MaxValueValidator(0)],
)
reputation_upper_limit = models.IntegerField(
help_text=_("Reputation cannot increase higher than this value. Zero or positive."),
default=DEFAULT_REPUTATION_UPPER_LIMIT,
validators=[MinValueValidator(0)],
)
footer_links = models.JSONField(
help_text=_("The option configures the footer links on the flow executor pages."),
default=list,
blank=True,
)
gdpr_compliance = models.BooleanField(
help_text=_(
"When enabled, all the events caused by a user "
"will be deleted upon the user's deletion."
),
default=True,
)
impersonation = models.BooleanField(
help_text=_("Globally enable/disable impersonation."), default=True
)
impersonation_require_reason = models.BooleanField(
help_text=_("Require administrators to provide a reason for impersonating a user."),
default=True,
)
default_token_duration = models.TextField(
help_text=_("Default token duration"),
default=DEFAULT_TOKEN_DURATION,
validators=[timedelta_string_validator],
)
default_token_length = models.PositiveIntegerField(
help_text=_("Default token length"),
default=DEFAULT_TOKEN_LENGTH,
validators=[MinValueValidator(1)],
)
pagination_default_page_size = models.PositiveIntegerField(
help_text=_("Default page size for API responses, if no size was requested."),
default=20,
)
pagination_max_page_size = models.PositiveIntegerField(
help_text=_("Maximum page size"),
default=100,
)
flags = models.JSONField(default=dict)
def save(self, *args, **kwargs):
if not self.pk:
raise IntegrityError("Only one instance of system settings is allowed")
super().save(*args, **kwargs)
@property
def serializer(self) -> Serializer:
from authentik.admin.api.settings import SettingsSerializer
return SettingsSerializer
def __str__(self) -> str:
return "System settings"
class Meta:
verbose_name = _("System settings")
verbose_name_plural = _("System settings")
default_permissions = []
class VersionHistory(models.Model):
+8
View File
@@ -1,9 +1,17 @@
from django.db.models.signals import post_save
from django.dispatch import receiver
from authentik.admin.models import SystemSettings
from authentik.admin.tasks import _set_prom_info
from authentik.admin.utils import clear_system_settings_cache
from authentik.root.signals import post_startup
@receiver(post_startup)
def post_startup_admin_metrics(sender, **_):
_set_prom_info()
@receiver(post_save, sender=SystemSettings)
def system_settings_saved(**_):
clear_system_settings_cache()
+62 -17
View File
@@ -1,9 +1,12 @@
"""authentik admin tasks"""
from enum import StrEnum
from django.core.cache import cache
from django.utils.translation import gettext_lazy as _
from dramatiq import actor
from packaging.version import parse
from pydantic import BaseModel, Field, HttpUrl, ValidationError
from requests import RequestException
from structlog.stdlib import get_logger
@@ -15,10 +18,10 @@ from authentik.lib.utils.http import get_http_session
from authentik.tasks.middleware import CurrentTask
LOGGER = get_logger()
VERSION_NULL = "0.0.0"
VERSION_CACHE_KEY = "authentik_latest_version"
VERSION_CACHE_KEY = "goauthentik.io/admin/latest_version"
VERSION_CACHE_TIMEOUT = 8 * 60 * 60 # 8 hours
LOCAL_VERSION = parse(authentik_version())
VERSION_URL = "https://version.goauthentik.io/versions/authentik/latest.json"
def _set_prom_info():
@@ -26,48 +29,90 @@ def _set_prom_info():
PROM_INFO.info(
{
"version": authentik_version(),
"latest": cache.get(VERSION_CACHE_KEY, ""),
"latest": UpdateVersionInfo.get_cached().version,
"build_hash": authentik_build_hash(),
}
)
class UpdateVersionReason(StrEnum):
"""Reason why an authentik update was released"""
bugfix = "bugfix"
feature = "feature"
security = "security"
other = "other"
class UpdateVersionInfo(BaseModel):
version: str
changelog: str
changelog_url: HttpUrl
reason: UpdateVersionReason
valid: bool = Field(default=True)
@staticmethod
def get_invalid() -> UpdateVersionInfo:
return UpdateVersionInfo(
version="0.0.0",
changelog="",
changelog_url="https://docs.goauthentik.io",
reason=UpdateVersionReason.other,
valid=False,
)
@staticmethod
def get_cached() -> UpdateVersionInfo:
return cache.get(VERSION_CACHE_KEY, UpdateVersionInfo.get_invalid())
@staticmethod
def cache_invalid():
cache.set(
VERSION_CACHE_KEY,
UpdateVersionInfo(
version="0.0.0",
changelog="",
changelog_url="",
reason=UpdateVersionReason.other,
valid=False,
),
VERSION_CACHE_TIMEOUT,
)
@actor(description=_("Update latest version info."))
def update_latest_version():
self = CurrentTask.get_task()
if CONFIG.get_bool("disable_update_check"):
cache.set(VERSION_CACHE_KEY, VERSION_NULL, VERSION_CACHE_TIMEOUT)
UpdateVersionInfo.cache_invalid()
self.info("Version check disabled.")
return
try:
response = get_http_session().get(
"https://version.goauthentik.io/version.json",
)
response = get_http_session().get(VERSION_URL)
response.raise_for_status()
data = response.json()
upstream_version = data.get("stable", {}).get("version")
upstream_version = UpdateVersionInfo.model_validate(data.get("stable", {}))
cache.set(VERSION_CACHE_KEY, upstream_version, VERSION_CACHE_TIMEOUT)
self.info("Successfully updated latest Version")
_set_prom_info()
# Check if upstream version is newer than what we're running,
# and if no event exists yet, create one.
if LOCAL_VERSION < parse(upstream_version):
if LOCAL_VERSION < parse(upstream_version.version):
# Event has already been created, don't create duplicate
if Event.objects.filter(
action=EventAction.UPDATE_AVAILABLE,
context__new_version=upstream_version,
context__new_version=upstream_version.version,
).exists():
return
Event.new(
EventAction.UPDATE_AVAILABLE,
message=_(
"New version {version} available!".format(
version=upstream_version,
)
"New version {version} available!".format(version=upstream_version.version)
),
new_version=upstream_version,
changelog=data.get("stable", {}).get("changelog_url"),
new_version=upstream_version.version,
changelog=upstream_version.changelog_url,
reason=upstream_version.reason,
).save()
except (RequestException, IndexError) as exc:
cache.set(VERSION_CACHE_KEY, VERSION_NULL, VERSION_CACHE_TIMEOUT)
except (RequestException, IndexError, ValidationError) as exc:
UpdateVersionInfo.cache_invalid()
raise exc
@@ -0,0 +1,74 @@
"""Tests for backfilling base_url during the system settings reconcile"""
from django.apps import apps
from django.test import TestCase
from authentik.admin.utils import get_system_settings
from authentik.blueprints.tests import reconcile_app
from authentik.events.logs import capture_logs
from authentik.lib.config import CONFIG
from authentik.outposts.apps import MANAGED_OUTPOST
from authentik.outposts.models import Outpost, OutpostConfig
class TestBaseURLBackfill(TestCase):
"""The system settings reconcile seeds base_url from the config value or the embedded
outpost host"""
def setUp(self):
super().setUp()
self.settings = get_system_settings()
self.settings.base_url = ""
self.settings.save()
@reconcile_app("authentik_outposts")
def test_backfill_from_outpost(self):
"""base_url is backfilled from the embedded outpost host, without a trailing slash"""
outpost = Outpost.objects.get(managed=MANAGED_OUTPOST)
outpost.config = OutpostConfig(authentik_host="https://outpost.example.com/")
outpost.save()
with CONFIG.patch("web.base_url", ""):
apps.get_app_config("authentik_admin").system_settings()
self.settings.refresh_from_db()
self.assertEqual(self.settings.base_url, "https://outpost.example.com")
@reconcile_app("authentik_outposts")
def test_backfill_from_config(self):
"""The AUTHENTIK_WEB__BASE_URL config value takes precedence over the outpost host"""
outpost = Outpost.objects.get(managed=MANAGED_OUTPOST)
outpost.config = OutpostConfig(authentik_host="https://outpost.example.com")
outpost.save()
with CONFIG.patch("web.base_url", "https://config.example.com"):
apps.get_app_config("authentik_admin").system_settings()
self.settings.refresh_from_db()
self.assertEqual(self.settings.base_url, "https://config.example.com")
def test_backfill_does_not_overwrite(self):
"""A configured base_url is never overwritten by the backfill"""
self.settings.base_url = "https://set.example.com"
self.settings.save()
with CONFIG.patch("web.base_url", "https://config.example.com"):
apps.get_app_config("authentik_admin").system_settings()
self.settings.refresh_from_db()
self.assertEqual(self.settings.base_url, "https://set.example.com")
@reconcile_app("authentik_outposts")
def test_backfill_discards_invalid_outpost_host(self):
"""An outpost host the settings API would reject is discarded rather than written,
since the backfill's `.update()` skips field validation"""
outpost = Outpost.objects.get(managed=MANAGED_OUTPOST)
outpost.config = OutpostConfig(authentik_host="outpost.example.com")
outpost.save()
with CONFIG.patch("web.base_url", ""), capture_logs() as logs:
apps.get_app_config("authentik_admin").system_settings()
self.settings.refresh_from_db()
self.assertEqual(self.settings.base_url, "")
self.assertTrue(any("Discarding invalid base_url" in log.event for log in logs))
def test_backfill_no_outpost(self):
"""With no embedded outpost and no config value, base_url stays empty"""
Outpost.objects.filter(managed=MANAGED_OUTPOST).delete()
with CONFIG.patch("web.base_url", ""):
apps.get_app_config("authentik_admin").system_settings()
self.settings.refresh_from_db()
self.assertEqual(self.settings.base_url, "")
@@ -3,8 +3,8 @@
from django.urls import reverse
from rest_framework.test import APITestCase
from authentik.admin.utils import get_system_settings
from authentik.core.tests.utils import create_test_admin_user
from authentik.tenants.utils import get_current_tenant
class TestBaseURLSettings(APITestCase):
@@ -12,25 +12,25 @@ class TestBaseURLSettings(APITestCase):
def setUp(self):
super().setUp()
self.tenant = get_current_tenant()
self.tenant.base_url = ""
self.tenant.save()
self.settings = get_system_settings()
self.settings.base_url = ""
self.settings.save()
self.client.force_login(create_test_admin_user())
def test_settings_roundtrip(self):
"""base_url can be written and read back through the settings API"""
response = self.client.patch(
reverse("authentik_api:tenant_settings"),
reverse("authentik_api:system_settings"),
data={"base_url": "https://authentik.company"},
)
self.assertEqual(response.status_code, 200)
self.tenant.refresh_from_db()
self.assertEqual(self.tenant.base_url, "https://authentik.company")
self.settings.refresh_from_db()
self.assertEqual(self.settings.base_url, "https://authentik.company")
def test_settings_rejects_invalid(self):
"""A value that is not a URL is rejected"""
response = self.client.patch(
reverse("authentik_api:tenant_settings"),
reverse("authentik_api:system_settings"),
data={"base_url": "not-a-url"},
)
self.assertEqual(response.status_code, 400)
@@ -38,54 +38,55 @@ class TestBaseURLSettings(APITestCase):
def test_settings_accepts_internal_hostname(self):
"""A hostname without a public-suffix shaped last label is accepted."""
response = self.client.patch(
reverse("authentik_api:tenant_settings"),
reverse("authentik_api:system_settings"),
data={"base_url": "https://auth.svr001"},
)
self.assertEqual(response.status_code, 200)
self.tenant.refresh_from_db()
self.assertEqual(self.tenant.base_url, "https://auth.svr001")
self.settings.refresh_from_db()
self.assertEqual(self.settings.base_url, "https://auth.svr001")
def test_settings_saves_with_internal_hostname_stored(self):
"""An unrelated setting can still be saved."""
self.tenant.base_url = "https://auth.svr001"
self.tenant.save()
current = self.client.get(reverse("authentik_api:tenant_settings")).json()
self.settings.base_url = "https://auth.svr001"
self.settings.save()
current = self.client.get(reverse("authentik_api:system_settings")).json()
response = self.client.put(
reverse("authentik_api:tenant_settings"),
reverse("authentik_api:system_settings"),
data={**current, "avatars": "initials"},
format="json",
)
self.assertEqual(response.status_code, 200)
self.tenant.refresh_from_db()
self.assertEqual(self.tenant.avatars, "initials")
self.assertEqual(self.tenant.base_url, "https://auth.svr001")
self.settings.refresh_from_db()
self.assertEqual(self.settings.avatars, "initials")
self.assertEqual(self.settings.base_url, "https://auth.svr001")
def test_settings_accepts_empty(self):
"""The field can be cleared, which means no base URL is configured"""
self.tenant.base_url = "https://auth.svr001"
self.tenant.save()
def test_settings_rejects_empty(self):
"""The field cannot be cleared, a base URL is required"""
self.settings.base_url = "https://auth.svr001"
self.settings.save()
response = self.client.patch(
reverse("authentik_api:tenant_settings"),
reverse("authentik_api:system_settings"),
data={"base_url": ""},
)
self.assertEqual(response.status_code, 200)
self.tenant.refresh_from_db()
self.assertEqual(self.tenant.base_url, "")
self.assertEqual(response.status_code, 400)
self.assertJSONEqual(response.content, {"base_url": ["This field may not be blank."]})
self.settings.refresh_from_db()
self.assertEqual(self.settings.base_url, "https://auth.svr001")
def test_settings_normalizes_trailing_slash(self):
"""A trailing slash is stripped when saving through the settings API"""
response = self.client.patch(
reverse("authentik_api:tenant_settings"),
reverse("authentik_api:system_settings"),
data={"base_url": "https://authentik.company/"},
)
self.assertEqual(response.status_code, 200)
self.tenant.refresh_from_db()
self.assertEqual(self.tenant.base_url, "https://authentik.company")
self.settings.refresh_from_db()
self.assertEqual(self.settings.base_url, "https://authentik.company")
def test_system_info_exposes_base_url(self):
"""The admin system info endpoint exposes the configured base_url"""
self.tenant.base_url = "https://info.example.com"
self.tenant.save()
self.settings.base_url = "https://info.example.com"
self.settings.save()
response = self.client.get(reverse("authentik_api:admin_system"))
self.assertEqual(response.status_code, 200)
self.assertEqual(response.json()["base_url"], "https://info.example.com")
@@ -2,7 +2,7 @@
from django.test import SimpleTestCase
from authentik.tenants.utils import normalize_base_url
from authentik.admin.utils import normalize_base_url
class TestNormalizeBaseURL(SimpleTestCase):
@@ -4,9 +4,9 @@ from django.core.management import call_command
from django.urls import reverse
from rest_framework.test import APITestCase
from authentik.admin.flags import Flag
from authentik.admin.utils import get_system_settings
from authentik.core.tests.utils import create_test_admin_user
from authentik.tenants.flags import Flag
from authentik.tenants.utils import get_current_tenant
class TestLocalSettingsAPI(APITestCase):
@@ -15,17 +15,17 @@ class TestLocalSettingsAPI(APITestCase):
def setUp(self):
super().setUp()
self.local_admin = create_test_admin_user()
self.tenant = get_current_tenant()
self.settings = get_system_settings()
def tearDown(self):
super().tearDown()
self.tenant.flags = {}
self.tenant.save()
self.settings.flags = {}
self.settings.save()
def test_settings_flags(self):
"""Test settings API"""
self.tenant.flags = {}
self.tenant.save()
self.settings.flags = {}
self.settings.save()
class _TestFlag(Flag[bool], key="tenants_test_flag_bool"):
@@ -34,19 +34,19 @@ class TestLocalSettingsAPI(APITestCase):
self.client.force_login(self.local_admin)
response = self.client.patch(
reverse("authentik_api:tenant_settings"),
reverse("authentik_api:system_settings"),
data={
"flags": {"tenants_test_flag_bool": True},
},
)
self.assertEqual(response.status_code, 200)
self.tenant.refresh_from_db()
self.assertEqual(self.tenant.flags["tenants_test_flag_bool"], True)
self.settings.refresh_from_db()
self.assertEqual(self.settings.flags["tenants_test_flag_bool"], True)
def test_settings_flags_incorrect(self):
"""Test settings API"""
self.tenant.flags = {}
self.tenant.save()
self.settings.flags = {}
self.settings.save()
class _TestFlag(Flag[bool], key="tenants_test_flag_incorrect"):
@@ -55,7 +55,7 @@ class TestLocalSettingsAPI(APITestCase):
self.client.force_login(self.local_admin)
response = self.client.patch(
reverse("authentik_api:tenant_settings"),
reverse("authentik_api:system_settings"),
data={
"flags": {"tenants_test_flag_incorrect": 123},
},
@@ -65,13 +65,13 @@ class TestLocalSettingsAPI(APITestCase):
response.content,
{"flags": ["Value for flag tenants_test_flag_incorrect needs to be of type bool."]},
)
self.tenant.refresh_from_db()
self.assertEqual(self.tenant.flags, {})
self.settings.refresh_from_db()
self.assertEqual(self.settings.flags, {})
def test_settings_flags_system(self):
"""Test settings API"""
self.tenant.flags = {}
self.tenant.save()
self.settings.flags = {}
self.settings.save()
class _TestFlag(Flag[bool], key="tenants_test_flag_sys"):
@@ -80,19 +80,19 @@ class TestLocalSettingsAPI(APITestCase):
self.client.force_login(self.local_admin)
response = self.client.patch(
reverse("authentik_api:tenant_settings"),
reverse("authentik_api:system_settings"),
data={
"flags": {"tenants_test_flag_sys": 123},
},
)
self.assertEqual(response.status_code, 200)
self.tenant.refresh_from_db()
self.assertEqual(self.tenant.flags, {"setup": False, "tenants_test_flag_sys": False})
self.settings.refresh_from_db()
self.assertEqual(self.settings.flags, {"setup": False, "tenants_test_flag_sys": False})
def test_settings_flags_system_empty_put(self):
"""Test settings API"""
self.tenant.flags = {}
self.tenant.save()
self.settings.flags = {}
self.settings.save()
class _TestFlag(Flag[bool], key="tenants_test_flag_sys"):
@@ -101,20 +101,20 @@ class TestLocalSettingsAPI(APITestCase):
self.client.force_login(self.local_admin)
response = self.client.patch(
reverse("authentik_api:tenant_settings"),
reverse("authentik_api:system_settings"),
data={
"flags": {},
},
)
self.assertEqual(response.status_code, 200)
self.tenant.refresh_from_db()
self.assertEqual(self.tenant.flags, {"setup": False, "tenants_test_flag_sys": False})
self.settings.refresh_from_db()
self.assertEqual(self.settings.flags, {"setup": False, "tenants_test_flag_sys": False})
def test_command(self):
self.tenant.flags = {}
self.tenant.save()
self.settings.flags = {}
self.settings.save()
call_command("set_flag", "foo", "true")
self.tenant.refresh_from_db()
self.assertTrue(self.tenant.flags["foo"])
self.settings.refresh_from_db()
self.assertTrue(self.settings.flags["foo"])
@@ -0,0 +1,32 @@
from django.http import HttpRequest, HttpResponse
from django.test import RequestFactory, TestCase
from authentik.admin.middleware import SystemSettingsMiddleware
from authentik.admin.models import SystemSettings
from authentik.admin.utils import get_system_settings
class TestSystemSettingsCache(TestCase):
def test_scoped_to_request(self):
"""Settings are only cached within a single request"""
seen = []
def view(request: HttpRequest) -> HttpResponse:
seen.extend([get_system_settings(), get_system_settings()])
return HttpResponse()
middleware = SystemSettingsMiddleware(view)
middleware(RequestFactory().get("/"))
middleware(RequestFactory().get("/"))
self.assertIs(seen[0], seen[1])
self.assertIsNot(seen[1], seen[2])
self.assertIs(seen[2], seen[3])
self.assertIsNot(get_system_settings(), get_system_settings())
def test_fresh_outside_requests(self):
"""System settings cache is not used outside of a request"""
first = get_system_settings()
SystemSettings.objects.filter(pk=True).update(avatars="none")
second = get_system_settings()
self.assertIsNot(first, second)
self.assertEqual(second.avatars, "none")
+7 -7
View File
@@ -1,12 +1,12 @@
"""test admin tasks"""
from django.apps import apps
from django.core.cache import cache
from django.test import TestCase
from requests_mock import Mocker
from authentik.admin.tasks import (
VERSION_CACHE_KEY,
VERSION_URL,
UpdateVersionInfo,
update_latest_version,
)
from authentik.events.models import Event, EventAction
@@ -29,9 +29,9 @@ class TestAdminTasks(TestCase):
def test_version_valid_response(self):
"""Test Update checker with valid response"""
with Mocker() as mocker, CONFIG.patch("disable_update_check", False):
mocker.get("https://version.goauthentik.io/version.json", json=RESPONSE_VALID)
mocker.get(VERSION_URL, json=RESPONSE_VALID)
update_latest_version.send()
self.assertEqual(cache.get(VERSION_CACHE_KEY), "99999999.9999999")
self.assertEqual(UpdateVersionInfo.get_cached().version, "99999999.9999999")
self.assertTrue(
Event.objects.filter(
action=EventAction.UPDATE_AVAILABLE,
@@ -55,9 +55,9 @@ class TestAdminTasks(TestCase):
def test_version_error(self):
"""Test Update checker with invalid response"""
with Mocker() as mocker:
mocker.get("https://version.goauthentik.io/version.json", status_code=400)
mocker.get(VERSION_URL, status_code=400)
update_latest_version.send()
self.assertEqual(cache.get(VERSION_CACHE_KEY), "0.0.0")
self.assertFalse(UpdateVersionInfo.get_cached().valid)
self.assertFalse(
Event.objects.filter(
action=EventAction.UPDATE_AVAILABLE, context__new_version="0.0.0"
@@ -68,7 +68,7 @@ class TestAdminTasks(TestCase):
"""Test Update checker while its disabled"""
with CONFIG.patch("disable_update_check", True):
update_latest_version.send()
self.assertEqual(cache.get(VERSION_CACHE_KEY), "0.0.0")
self.assertFalse(UpdateVersionInfo.get_cached().valid)
def test_clear_update_notifications(self):
"""Test clear of previous notification"""
@@ -3,14 +3,14 @@
from django.core.exceptions import ValidationError
from django.test import SimpleTestCase
from authentik.tenants.models import Tenant
from authentik.admin.models import SystemSettings
class TestValidateBaseURL(SimpleTestCase):
"""base_url accepts an http or https URL whose host needs no domain part"""
def test_validate(self):
field = Tenant._meta.get_field("base_url")
field = SystemSettings._meta.get_field("base_url")
cases = {
"https://authentik.company": True,
"http://authentik.company": True,
+2
View File
@@ -3,6 +3,7 @@
from django.urls import path
from authentik.admin.api.meta import AppsViewSet, ModelViewSet
from authentik.admin.api.settings import SettingsView
from authentik.admin.api.system import SystemView
from authentik.admin.api.version import VersionView
from authentik.admin.api.version_history import VersionHistoryViewSet
@@ -10,6 +11,7 @@ from authentik.admin.api.version_history import VersionHistoryViewSet
api_urlpatterns = [
("admin/apps", AppsViewSet, "apps"),
("admin/models", ModelViewSet, "models"),
path("admin/settings/", SettingsView.as_view(), name="system_settings"),
path("admin/version/", VersionView.as_view(), name="admin_version"),
("admin/version/history", VersionHistoryViewSet, "version_history"),
path("admin/system/", SystemView.as_view(), name="admin_system"),
+39
View File
@@ -0,0 +1,39 @@
"""authentik admin utils"""
from collections.abc import Iterator
from contextlib import contextmanager
from contextvars import ContextVar
from authentik.admin.models import SystemSettings
_CTX_SYSTEM_SETTINGS = ContextVar[dict[str, SystemSettings] | None](
"authentik_system_settings", default=None
)
def get_system_settings() -> SystemSettings:
cache = _CTX_SYSTEM_SETTINGS.get()
if cache is None:
return SystemSettings.objects.get(pk=True)
if "settings" not in cache:
cache["settings"] = SystemSettings.objects.get(pk=True)
return cache["settings"]
@contextmanager
def system_settings_cache() -> Iterator[None]:
token = _CTX_SYSTEM_SETTINGS.set({})
try:
yield
finally:
_CTX_SYSTEM_SETTINGS.reset(token)
def clear_system_settings_cache() -> None:
if (cache := _CTX_SYSTEM_SETTINGS.get()) is not None:
cache.clear()
def normalize_base_url(value: str | None) -> str:
"""Normalize a configured base URL: strip whitespace and trailing slashes."""
return (value or "").strip().rstrip("/")
+4 -2
View File
@@ -6,6 +6,7 @@ from drf_spectacular.plumbing import build_object_type
from rest_framework import pagination
from rest_framework.response import Response
from authentik.admin.utils import get_system_settings
from authentik.api.search.ql import QLSearch
from authentik.api.v3.schema.pagination import PAGINATION
from authentik.api.v3.schema.search import AUTOCOMPLETE_SCHEMA
@@ -22,11 +23,12 @@ class Pagination(pagination.PageNumberPagination):
page_size_query_param = "page_size"
def get_page_size(self, request: Request) -> int:
settings = get_system_settings()
if self.page_size_query_param in request.query_params:
page_size = super().get_page_size(request)
if page_size is not None:
return min(super().get_page_size(request), request.tenant.pagination_max_page_size)
return request.tenant.pagination_default_page_size
return min(page_size, settings.pagination_max_page_size)
return settings.pagination_default_page_size
def get_paginated_response(self, data) -> Response:
previous_page_number = 0
+2
View File
@@ -11,6 +11,8 @@ class AKQLSchemaSerializer(DjangoQLSchemaSerializer):
if not isinstance(field, JSONSearchField):
continue
serialization["models"].update(field.get_nested_options(self))
# Ensure the related model exists, even with no suggested keys
serialization["models"].setdefault(field.relation(), {})
return serialization
def serialize_field(self, field):
+11
View File
@@ -96,3 +96,14 @@ class QLTest(APITestCase):
content = loads(res.content)
self.assertEqual(content["pagination"]["count"], 1)
self.assertEqual(content["results"][0]["username"], self.user.username)
def test_autocomplete_json_relation(self):
"""Test that the autocomplete schema includes the model a JSON field relates to,
even when no nested keys are suggested"""
self.client.force_login(self.user)
res = self.client.get(reverse("authentik_api:user-list"))
self.assertEqual(res.status_code, 200)
autocomplete = loads(res.content)["autocomplete"]
attributes = autocomplete["models"]["authentik_core.user"]["attributes"]
self.assertEqual(attributes["type"], "relation")
self.assertIn(attributes["relation"], autocomplete["models"])
+1 -6
View File
@@ -10,9 +10,6 @@ from authentik.admin.api.version_history import VersionHistoryViewSet
from authentik.api.v3.urls import router
from authentik.core.tests.utils import RequestFactory, create_test_admin_user
from authentik.lib.generators import generate_id
from authentik.tenants.api.domains import DomainViewSet
from authentik.tenants.api.tenants import TenantViewSet
from authentik.tenants.utils import get_current_tenant
class TestModelViewSets(TestCase):
@@ -42,7 +39,6 @@ def viewset_tester_factory(test_viewset: type[ModelViewSet], full=True) -> dict[
req = self.factory.get(
f"/?{urlencode({'ordering': ordering_field}, doseq=True)}", user=self.user
)
req.tenant = get_current_tenant()
res = view(req)
self.assertEqual(res.status_code, 200)
@@ -52,7 +48,6 @@ def viewset_tester_factory(test_viewset: type[ModelViewSet], full=True) -> dict[
req = self.factory.get(
f"/?{urlencode({'search': generate_id()}, doseq=True)}", user=self.user
)
req.tenant = get_current_tenant()
res = view(req)
self.assertEqual(res.status_code, 200)
@@ -68,6 +63,6 @@ def viewset_tester_factory(test_viewset: type[ModelViewSet], full=True) -> dict[
for _, viewset, _ in router.registry:
if not issubclass(viewset, ModelViewSet | ReadOnlyModelViewSet):
continue
full = viewset not in [VersionHistoryViewSet, DomainViewSet, TenantViewSet]
full = viewset not in [VersionHistoryViewSet]
for test, case in viewset_tester_factory(viewset, full=full).items():
setattr(TestModelViewSets, f"test_viewset_{viewset.__name__}_{test}", case)
+1 -1
View File
@@ -13,7 +13,7 @@ class LocalAnonRateThrottle(AnonRateThrottle):
protective layer amplifies DB load under flood.
Points the throttle's cache at the ``throttle`` LocMemCache alias instead.
Counters are per-process (per gunicorn worker)
Counters are per-process (per server worker)
"""
cache = caches["throttle"]
+2 -1
View File
@@ -20,6 +20,7 @@ from rest_framework.views import APIView
from authentik.admin.files.manager import get_file_manager
from authentik.admin.files.usage import FileUsage
from authentik.admin.utils import get_system_settings
from authentik.core.api.utils import PassiveSerializer
from authentik.events.context_processors.base import get_context_processors
from authentik.lib.config import CONFIG
@@ -78,7 +79,7 @@ class ConfigView(APIView):
for processor in get_context_processors():
if cap := processor.capability():
caps.append(cap)
if request.tenant.impersonation:
if get_system_settings().impersonation:
caps.append(Capabilities.CAN_IMPERSONATE)
if settings.DEBUG: # pragma: no cover
caps.append(Capabilities.CAN_DEBUG)
+48 -12
View File
@@ -175,6 +175,7 @@ class BlueprintInstanceViewSet(UsedByMixin, ModelViewSet):
logs = LogEventSerializer(many=True, read_only=True)
success = BooleanField(read_only=True)
imported = BooleanField(read_only=True)
@extend_schema(
responses={
@@ -211,16 +212,7 @@ class BlueprintInstanceViewSet(UsedByMixin, ModelViewSet):
apply_blueprint.send_with_options(args=(blueprint.pk,), rel_obj=blueprint)
return self.retrieve(request, *args, **kwargs)
@extend_schema(
request={"multipart/form-data": BlueprintUploadSerializer},
responses={200: BlueprintImportResultSerializer},
)
@action(url_path="import", detail=False, methods=["POST"], parser_classes=(MultiPartParser,))
@validate(
BlueprintUploadSerializer,
)
def import_(self, request: Request, body: BlueprintUploadSerializer) -> Response:
"""Import blueprint from .yaml file and apply it once, without creating an instance"""
def _blueprint_from_upload(self, body: BlueprintUploadSerializer) -> Importer:
string_contents = ""
if body.validated_data.get("file"):
file = cast(InMemoryUploadedFile, body.validated_data["file"])
@@ -237,19 +229,63 @@ class BlueprintInstanceViewSet(UsedByMixin, ModelViewSet):
except EntryInvalidError as exc:
raise ValidationError(_("Invalid blueprint file: {exc}".format(exc=str(exc)))) from None
check_blueprint_perms(importer.blueprint, request.user)
check_blueprint_perms(importer.blueprint, self.request.user)
return importer
@extend_schema(
request={"multipart/form-data": BlueprintUploadSerializer},
responses={200: BlueprintImportResultSerializer},
)
@action(
url_path="validate",
url_name="validate",
detail=False,
methods=["POST"],
parser_classes=(MultiPartParser,),
)
@validate(BlueprintUploadSerializer)
def validate_(self, request: Request, body: BlueprintUploadSerializer) -> Response:
"""Validate blueprint from .yaml file and return any errors"""
importer = self._blueprint_from_upload(body)
valid, logs = importer.validate()
import_response = self.BlueprintImportResultSerializer(
data={
"logs": [LogEventSerializer(log).data for log in logs],
"success": valid,
"imported": False,
}
)
import_response.is_valid(raise_exception=True)
return Response(data=import_response.initial_data, status=200)
@extend_schema(
request={"multipart/form-data": BlueprintUploadSerializer},
responses={200: BlueprintImportResultSerializer},
)
@action(
url_path="import",
url_name="import",
detail=False,
methods=["POST"],
parser_classes=(MultiPartParser,),
)
@validate(BlueprintUploadSerializer)
def import_(self, request: Request, body: BlueprintUploadSerializer) -> Response:
"""Import blueprint from .yaml file and apply it once, without creating an instance"""
importer = self._blueprint_from_upload(body)
valid, logs = importer.validate()
import_response = self.BlueprintImportResultSerializer(
data={
"logs": [LogEventSerializer(log).data for log in logs],
"success": valid,
"imported": False,
}
)
import_response.is_valid(raise_exception=True)
if valid:
import_response.initial_data["success"] = importer.apply()
import_response.initial_data["imported"] = importer.apply()
import_response.is_valid()
return Response(data=import_response.initial_data, status=200)
+14 -58
View File
@@ -20,9 +20,6 @@ class ManagedAppConfig(AppConfig):
logger: BoundLogger
RECONCILE_GLOBAL_CATEGORY: str = "global"
RECONCILE_TENANT_CATEGORY: str = "tenant"
def __init__(self, app_name: str, *args, **kwargs) -> None:
super().__init__(app_name, *args, **kwargs)
self.logger = get_logger().bind(app_name=app_name)
@@ -33,8 +30,7 @@ class ManagedAppConfig(AppConfig):
return super().ready()
def _on_startup_callback(self, sender, **_):
self._reconcile_global()
self._reconcile_tenant()
self._reconcile()
def import_related(self):
"""Automatically import related modules which rely on just being imported
@@ -69,22 +65,20 @@ class ManagedAppConfig(AppConfig):
"""Load module"""
import_module(path)
def _reconcile(self, prefix: str) -> None:
for meth_name in dir(self):
def _reconcile(self) -> None:
for name in dir(self):
# Check the attribute on the class to avoid evaluating @property descriptors.
# Using getattr(self, ...) on a @property would evaluate it, which can trigger
# expensive side effects (e.g. tenant_schedule_specs iterating all providers
# expensive side effects (e.g. schedule_specs iterating all providers
# and running PolicyEngine queries for every user).
class_attr = getattr(type(self), meth_name, None)
class_attr = getattr(type(self), name, None)
if class_attr is None or isinstance(class_attr, property):
continue
if not callable(class_attr):
continue
category = getattr(class_attr, "_authentik_managed_reconcile", None)
if category != prefix:
if not getattr(class_attr, "_authentik_managed_reconcile", False):
continue
meth = getattr(self, meth_name)
name = meth_name.replace(prefix, "")
meth = getattr(self, name)
try:
self.logger.debug("Starting reconciler", name=name)
meth()
@@ -93,54 +87,16 @@ class ManagedAppConfig(AppConfig):
self.logger.warning("Failed to run reconcile", name=name, exc=exc)
@staticmethod
def reconcile_tenant(func: Callable):
"""Mark a function to be called on startup (for each tenant)"""
func._authentik_managed_reconcile = ManagedAppConfig.RECONCILE_TENANT_CATEGORY
return func
@staticmethod
def reconcile_global(func: Callable):
"""Mark a function to be called on startup (globally)"""
func._authentik_managed_reconcile = ManagedAppConfig.RECONCILE_GLOBAL_CATEGORY
def reconcile(func: Callable):
"""Mark a function to be called on startup"""
func._authentik_managed_reconcile = True
return func
@property
def tenant_schedule_specs(self) -> list[ScheduleSpec]:
"""Get a list of schedule specs that must exist in each tenant"""
def schedule_specs(self) -> list[ScheduleSpec]:
"""Get a list of schedule specs that must exist"""
return []
@property
def global_schedule_specs(self) -> list[ScheduleSpec]:
"""Get a list of schedule specs that must exist in the default tenant"""
return []
def _reconcile_tenant(self) -> None:
"""reconcile ourselves for tenanted methods"""
from authentik.tenants.models import Tenant
try:
tenants = list(Tenant.objects.filter(ready=True))
except (DatabaseError, ProgrammingError, InternalError) as exc:
self.logger.debug("Failed to get tenants to run reconcile", exc=exc)
return
for tenant in tenants:
with tenant:
self._reconcile(self.RECONCILE_TENANT_CATEGORY)
def _reconcile_global(self) -> None:
"""
reconcile ourselves for global methods.
Used for signals, tasks, etc. Database queries should not be made in here.
"""
from django_tenants.utils import get_public_schema_name, schema_context
try:
with schema_context(get_public_schema_name()):
self._reconcile(self.RECONCILE_GLOBAL_CATEGORY)
except (DatabaseError, ProgrammingError, InternalError) as exc:
self.logger.debug("Failed to access database to run reconcile", exc=exc)
return
class AuthentikBlueprintsConfig(ManagedAppConfig):
"""authentik Blueprints app"""
@@ -154,14 +110,14 @@ class AuthentikBlueprintsConfig(ManagedAppConfig):
super().import_models()
self.import_module("authentik.blueprints.v1.meta.apply_blueprint")
@ManagedAppConfig.reconcile_global
@ManagedAppConfig.reconcile
def tasks_middlewares(self):
from authentik.blueprints.v1.tasks import BlueprintWatcherMiddleware
get_broker().add_middleware(BlueprintWatcherMiddleware())
@property
def tenant_schedule_specs(self) -> list[ScheduleSpec]:
def schedule_specs(self) -> list[ScheduleSpec]:
from authentik.blueprints.v1.tasks import blueprints_discovery, clear_failed_blueprints
return [
@@ -8,7 +8,6 @@ from structlog.stdlib import get_logger
from authentik.blueprints.models import BlueprintInstance
from authentik.blueprints.v1.importer import Importer
from authentik.tenants.models import Tenant
LOGGER = get_logger()
@@ -19,21 +18,19 @@ class Command(BaseCommand):
@no_translations
def handle(self, *args, blueprints: list[str], dry_run: bool, **options):
"""Apply all blueprints in order, abort when one fails to import"""
for tenant in Tenant.objects.filter(ready=True):
with tenant:
for blueprint_path in blueprints:
content = BlueprintInstance(path=blueprint_path).retrieve()
importer = Importer.from_string(content)
valid, logs = importer.validate()
if not valid:
self.stderr.write("Blueprint invalid")
for log in logs:
self.stderr.write(f"\t{log.logger}: {log.event}: {log.attributes}")
sys_exit(1)
if not dry_run:
importer.apply()
else:
LOGGER.info("Dry-run enabled, not applying blueprint")
for blueprint_path in blueprints:
content = BlueprintInstance(path=blueprint_path).retrieve()
importer = Importer.from_string(content)
valid, logs = importer.validate()
if not valid:
self.stderr.write("Blueprint invalid")
for log in logs:
self.stderr.write(f"\t{log.logger}: {log.event}: {log.attributes}")
sys_exit(1)
if not dry_run:
importer.apply()
else:
LOGGER.info("Dry-run enabled, not applying blueprint")
def add_arguments(self, parser: ArgumentParser):
parser.add_argument("--dry-run", action="store_true", default=False)
@@ -1,19 +1,18 @@
"""Export blueprint of current authentik install"""
from django.core.management.base import no_translations
from django.core.management.base import BaseCommand, no_translations
from structlog.stdlib import get_logger
from authentik.blueprints.v1.exporter import Exporter
from authentik.tenants.management import TenantCommand
LOGGER = get_logger()
class Command(TenantCommand):
class Command(BaseCommand):
"""Export blueprint of current authentik install"""
@no_translations
def handle_per_tenant(self, *args, **options):
def handle(self, *args, **options):
"""Export blueprint of current authentik install"""
exporter = Exporter()
self.stdout.write(exporter.export_to_string())
+109 -3
View File
@@ -1,14 +1,19 @@
"""Test blueprints v1"""
from os import chmod, environ, unlink, write
from pathlib import Path
from tempfile import mkstemp
from uuid import UUID
from django.db.models.signals import post_save
from django.test import TransactionTestCase
from django.utils.text import slugify
from yaml import load
from authentik.blueprints.models import BlueprintInstance
from authentik.blueprints.tests import apply_blueprint
from authentik.blueprints.v1.common import BlueprintLoader
from authentik.blueprints.v1.exporter import FlowExporter
from authentik.blueprints.v1.common import BlueprintLoader, KeyOf
from authentik.blueprints.v1.exporter import Exporter, FlowExporter
from authentik.blueprints.v1.importer import Importer, transaction_rollback
from authentik.core.models import Group
from authentik.flows.models import Flow, FlowDesignation, FlowStageBinding
@@ -323,12 +328,113 @@ class TestBlueprintsV1(TransactionTestCase):
exporter = FlowExporter(flow)
export_yaml = exporter.export_to_string()
binding_pks = []
def capture_binding_pk(sender, instance, **kwargs):
binding_pks.append(instance.policy_binding_uuid)
# Inspect the signal instance: reloading from the database would hide a string UUID.
post_save.connect(capture_binding_pk, sender=PolicyBinding)
try:
importer = Importer.from_string(export_yaml)
self.assertTrue(importer.validate()[0])
self.assertTrue(importer.apply())
finally:
post_save.disconnect(capture_binding_pk, sender=PolicyBinding)
self.assertTrue(binding_pks)
for binding_pk in binding_pks:
self.assertIsInstance(binding_pk, UUID)
self.assertTrue(UserLoginStage.objects.filter(name=stage_name).exists())
self.assertTrue(Flow.objects.filter(slug=flow_slug).exists())
def test_export_uses_keyof_references(self):
"""Test that exporting a flow rewrites references between exported objects
as !KeyOf tags instead of raw primary keys"""
flow_slug = generate_id()
stage_name = generate_id()
policy_name = generate_id()
with transaction_rollback():
flow_policy = ExpressionPolicy.objects.create(
name=policy_name,
expression="return True",
)
flow = Flow.objects.create(
slug=flow_slug,
designation=FlowDesignation.AUTHENTICATION,
name=generate_id(),
title=generate_id(),
)
PolicyBinding.objects.create(policy=flow_policy, target=flow, order=0)
user_login = UserLoginStage.objects.create(name=stage_name)
fsb = FlowStageBinding.objects.create(target=flow, stage=user_login, order=0)
PolicyBinding.objects.create(policy=flow_policy, target=fsb, order=0)
exporter = FlowExporter(flow)
export = exporter.export()
export_yaml = exporter.export_to_string()
entries_by_model = {}
for entry in export.entries:
entries_by_model.setdefault(entry.model, []).append(entry)
flow_entry = entries_by_model["authentik_flows.flow"][0]
stage_entry = entries_by_model["authentik_stages_user_login.userloginstage"][0]
stage_binding_entry = entries_by_model["authentik_flows.flowstagebinding"][0]
policy_entry = entries_by_model["authentik_policies_expression.expressionpolicy"][0]
policy_binding_entries = entries_by_model["authentik_policies.policybinding"]
self.assertIsNotNone(flow_entry.id)
self.assertIsNotNone(stage_entry.id)
# ids are derived from a readable, unique, non-UUID field (slug/name) when available,
# rather than an opaque counter
self.assertEqual(flow_entry.id, f"flow-{slugify(flow_slug)}")
self.assertEqual(stage_entry.id, f"userloginstage-{slugify(stage_name)}")
# Policy is exported without any explicit extra identifiers, but its unique,
# non-UUID `name` field is still picked up automatically as a stable identifier
self.assertEqual(policy_entry.identifiers.get("name"), policy_name)
# The primary key is instance-local and not portable, so it must not be used as
# an identifier whenever a stable identifier could be found instead
for entry in (flow_entry, stage_entry, policy_entry):
self.assertNotIn("pk", entry.identifiers)
self.assertIsInstance(stage_binding_entry.identifiers["target"], KeyOf)
self.assertEqual(stage_binding_entry.identifiers["target"].id_from, flow_entry.id)
self.assertIsInstance(stage_binding_entry.identifiers["stage"], KeyOf)
self.assertEqual(stage_binding_entry.identifiers["stage"].id_from, stage_entry.id)
binding_targets = {pb.identifiers["target"].id_from for pb in policy_binding_entries}
self.assertIn(flow_entry.id, binding_targets)
self.assertIn(stage_binding_entry.id, binding_targets)
for policy_binding_entry in policy_binding_entries:
self.assertIsInstance(policy_binding_entry.identifiers["policy"], KeyOf)
self.assertEqual(policy_binding_entry.identifiers["policy"].id_from, policy_entry.id)
self.assertIn("!KeyOf", export_yaml)
importer = Importer.from_string(export_yaml)
self.assertTrue(importer.validate()[0])
self.assertTrue(importer.apply())
self.assertTrue(UserLoginStage.objects.filter(name=stage_name).exists())
self.assertTrue(Flow.objects.filter(slug=flow_slug).exists())
def test_export_default_blueprints_no_static_identifiers(self):
"""Test that exporting a full instance after applying all default blueprints
never falls back to an opaque, non-portable `pk` identifier, e.g. for models
such as FlowStageBinding that have no unique text field of their own"""
for blueprint_file in sorted(Path("blueprints/default").glob("*.yaml")):
rel_path = str(blueprint_file.relative_to("blueprints"))
importer = Importer.from_string(BlueprintInstance(path=rel_path).retrieve())
self.assertTrue(importer.validate()[0])
self.assertTrue(importer.apply())
export = Exporter().export()
for entry in export.entries:
self.assertNotIn(
"pk", entry.identifiers, f"{entry.model} entry has a static pk identifier"
)
def test_export_validate_import_prompt(self):
"""Test export and validate it"""
with transaction_rollback():
+38 -8
View File
@@ -12,6 +12,7 @@ from authentik.core.tests.utils import create_test_admin_user
from authentik.flows.models import Flow
from authentik.lib.config import CONFIG
from authentik.lib.generators import generate_id
from authentik.providers.oauth2.models import ScopeMapping
from authentik.stages.invitation.models import InvitationStage
from authentik.stages.user_write.models import UserWriteStage
@@ -95,7 +96,7 @@ class TestBlueprintsV1API(APITestCase):
continue_without_invitation = True
res = self.client.post(
reverse("authentik_api:blueprintinstance-import-"),
reverse("authentik_api:blueprintinstance-import"),
data={
"path": "example/flows-invitation-enrollment-minimal.yaml",
"context": dumps(
@@ -112,6 +113,7 @@ class TestBlueprintsV1API(APITestCase):
)
self.assertEqual(res.status_code, 200)
self.assertTrue(res.json()["success"])
self.assertTrue(res.json()["imported"])
flow = Flow.objects.get(slug=slug)
self.assertEqual(flow.name, flow_name)
@@ -136,7 +138,7 @@ class TestBlueprintsV1API(APITestCase):
file.flush()
file.seek(0)
res = self.client.post(
reverse("authentik_api:blueprintinstance-import-"),
reverse("authentik_api:blueprintinstance-import"),
data={"path": "", "file": file},
format="multipart",
)
@@ -147,13 +149,14 @@ class TestBlueprintsV1API(APITestCase):
file = SimpleUploadedFile("invalid-blueprint.yaml", b'{"version": 3}')
res = self.client.post(
reverse("authentik_api:blueprintinstance-import-"),
reverse("authentik_api:blueprintinstance-import"),
data={"file": file},
format="multipart",
)
self.assertEqual(res.status_code, 200)
self.assertFalse(res.json()["success"])
self.assertFalse(res.json()["imported"])
self.assertGreater(len(res.json()["logs"]), 0)
def test_api_import_invalid_blueprint_with_yaml_tag_returns_result_payload(self):
@@ -181,19 +184,20 @@ class TestBlueprintsV1API(APITestCase):
file = SimpleUploadedFile("invalid-blueprint-tag.yaml", content.encode())
res = self.client.post(
reverse("authentik_api:blueprintinstance-import-"),
reverse("authentik_api:blueprintinstance-import"),
data={"file": file},
format="multipart",
)
self.assertEqual(res.status_code, 200)
self.assertFalse(res.json()["success"])
self.assertFalse(res.json()["imported"])
self.assertGreater(len(res.json()["logs"]), 0)
def test_api_import_unknown_path(self):
"""Path not in available blueprints is rejected (covers api.py:56)."""
res = self.client.post(
reverse("authentik_api:blueprintinstance-import-"),
reverse("authentik_api:blueprintinstance-import"),
data={"path": "does/not/exist.yaml"},
format="multipart",
)
@@ -203,7 +207,7 @@ class TestBlueprintsV1API(APITestCase):
def test_api_import_blank_context(self):
"""Blank context is normalized to empty dict (covers api.py:62)."""
res = self.client.post(
reverse("authentik_api:blueprintinstance-import-"),
reverse("authentik_api:blueprintinstance-import"),
data={
"path": "example/flows-invitation-enrollment-minimal.yaml",
"context": "",
@@ -215,7 +219,7 @@ class TestBlueprintsV1API(APITestCase):
def test_api_import_invalid_json_context(self):
"""Malformed JSON context raises ValidationError (covers api.py:65-66)."""
res = self.client.post(
reverse("authentik_api:blueprintinstance-import-"),
reverse("authentik_api:blueprintinstance-import"),
data={
"path": "example/flows-invitation-enrollment-minimal.yaml",
"context": "{not json",
@@ -228,7 +232,7 @@ class TestBlueprintsV1API(APITestCase):
def test_api_import_non_object_context(self):
"""JSON context that isn't an object is rejected (covers api.py:68)."""
res = self.client.post(
reverse("authentik_api:blueprintinstance-import-"),
reverse("authentik_api:blueprintinstance-import"),
data={
"path": "example/flows-invitation-enrollment-minimal.yaml",
"context": "[1, 2, 3]",
@@ -237,3 +241,29 @@ class TestBlueprintsV1API(APITestCase):
)
self.assertEqual(res.status_code, 400)
self.assertIn("Context must be a JSON object", res.content.decode())
def test_api_validate(self):
"""Test that the import endpoint applies the supplied context to the real blueprint"""
content = """
version: 1
entries:
- model: authentik_providers_oauth2.scopemapping
id: sm
identifiers: { scope_name: test-tag-scope }
attrs:
name: test-tag-scope
scope_name: test-tag-scope
expression: "return {}"
"""
file = SimpleUploadedFile("test.yaml", content.encode())
res = self.client.post(
reverse("authentik_api:blueprintinstance-validate"),
data={"file": file},
format="multipart",
)
self.assertEqual(res.status_code, 200)
self.assertTrue(res.json()["success"])
self.assertFalse(res.json()["imported"])
self.assertFalse(ScopeMapping.objects.filter(scope_name="test-tag-scope"))
+214
View File
@@ -1,6 +1,7 @@
"""Test blueprints v1 tasks"""
from hashlib import sha512
from pathlib import Path
from tempfile import NamedTemporaryFile, mkdtemp
from django.test import TransactionTestCase
@@ -156,3 +157,216 @@ class TestBlueprintsV1Tasks(TransactionTestCase):
instance.status,
BlueprintInstanceStatus.UNKNOWN,
)
@CONFIG.patch("blueprints_dir", TMP)
def test_valid_crlf(self):
"""Test discovered hash matches the applied hash for a file with CRLF line endings"""
blueprint_id = generate_id()
with NamedTemporaryFile(suffix=".yaml", dir=TMP) as file:
file.write(
f"version: 1\r\nentries: []\r\nmetadata:\r\n name: {blueprint_id}\r\n".encode()
)
file.flush()
file_hash = sha512(Path(file.name).read_text(encoding="utf-8").encode()).hexdigest()
for _ in range(2):
blueprints_discovery.send()
instance = BlueprintInstance.objects.filter(name=blueprint_id).first()
self.assertEqual(instance.status, BlueprintInstanceStatus.SUCCESSFUL)
found = next(
found for found in blueprints_find() if found.path == Path(file.name).name
)
self.assertEqual(found.hash, file_hash)
self.assertEqual(instance.last_applied_hash, found.hash)
file.seek(0)
self.assertIn(b"\r\n", file.read())
def write_blueprint(self, file, value: str):
file.seek(0)
file.truncate()
file.write(f"version: 1\nentries: []\ncontext:\n secret: {value}\n")
file.flush()
return next(found for found in blueprints_find() if found.path == Path(file.name).name).hash
def write_secret(self, file, value: str):
file.seek(0)
file.truncate()
file.write(value)
file.flush()
@CONFIG.patch("blueprints_dir", TMP)
def test_file_tag_content_changed(self):
"""Test hash changes when the contents of a referenced `!File` change"""
with NamedTemporaryFile(mode="w+", dir=TMP) as secret:
for label, reference in (
("direct", f"!File {secret.name}"),
("argument of another tag", f'!Format ["client-%s", !File {secret.name}]'),
("reached through a cycle", f"&anchor [*anchor, !File {secret.name}]"),
("reached through an alias", f"&anchor [!File {secret.name}]\n other: *anchor"),
):
with (
self.subTest(label),
NamedTemporaryFile(mode="w+", suffix=".yaml", dir=TMP) as file,
):
self.write_secret(secret, "initial")
before = self.write_blueprint(file, reference)
self.write_secret(secret, "rotated")
self.assertNotEqual(before, self.write_blueprint(file, reference))
@CONFIG.patch("blueprints_dir", TMP)
def test_file_tag_created(self):
"""Test hash changes when a referenced `!File` that was missing appears"""
with NamedTemporaryFile(mode="w+", suffix=".yaml", dir=TMP) as file:
secret_path = Path(TMP) / generate_id()
reference = f"!File {secret_path}"
before = self.write_blueprint(file, reference)
secret_path.write_text("created")
try:
after = self.write_blueprint(file, reference)
finally:
secret_path.unlink()
self.assertNotEqual(before, after)
@CONFIG.patch("blueprints_dir", TMP)
def test_file_tag_removed(self):
"""Test hash changes when a referenced `!File` that existed disappears"""
with NamedTemporaryFile(mode="w+", suffix=".yaml", dir=TMP) as file:
secret_path = Path(TMP) / generate_id()
secret_path.write_text("present")
reference = f"!File {secret_path}"
try:
before = self.write_blueprint(file, reference)
finally:
secret_path.unlink()
self.assertNotEqual(before, self.write_blueprint(file, reference))
@CONFIG.patch("blueprints_dir", TMP)
def test_file_tag_contents_swapped(self):
"""Test hash changes when two referenced `!File`s exchange their contents"""
with (
NamedTemporaryFile(mode="w+", dir=TMP) as first,
NamedTemporaryFile(mode="w+", dir=TMP) as second,
):
self.write_secret(first, "alpha")
self.write_secret(second, "beta")
with NamedTemporaryFile(mode="w+", suffix=".yaml", dir=TMP) as file:
reference = f"[!File {first.name}, !File {second.name}]"
before = self.write_blueprint(file, reference)
self.write_secret(first, "beta")
self.write_secret(second, "alpha")
self.assertNotEqual(before, self.write_blueprint(file, reference))
@CONFIG.patch("blueprints_dir", TMP)
def test_file_tag_missing_and_readable_swapped(self):
"""Test hash changes when one referenced `!File` disappears as another appears
with the same contents"""
first = Path(TMP) / generate_id()
second = Path(TMP) / generate_id()
with NamedTemporaryFile(mode="w+", suffix=".yaml", dir=TMP) as file:
reference = f"[!File {first}, !File {second}]"
second.write_text("shared")
try:
before = self.write_blueprint(file, reference)
finally:
second.unlink()
first.write_text("shared")
try:
after = self.write_blueprint(file, reference)
finally:
first.unlink()
self.assertNotEqual(before, after)
@CONFIG.patch("blueprints_dir", TMP)
def test_file_tag_hashed_once_per_route(self):
"""Test a referenced `!File` is folded into the hash once for each route to it"""
with NamedTemporaryFile(mode="w+", dir=TMP) as secret:
self.write_secret(secret, "initial")
for label, reference, routes in (
("cycle", f"&anchor [*anchor, !File {secret.name}]", 1),
("alias", f"&anchor [!File {secret.name}]\n other: *anchor", 2),
):
with (
self.subTest(label),
NamedTemporaryFile(mode="w+", suffix=".yaml", dir=TMP) as file,
):
content = f"version: 1\nentries: []\ncontext:\n secret: {reference}\n"
expected = sha512(content.encode())
for _ in range(routes):
expected.update(sha512(b"initial").digest())
self.assertEqual(self.write_blueprint(file, reference), expected.hexdigest())
@CONFIG.patch("blueprints_dir", TMP)
def test_file_tag_content_unchanged(self):
"""Test hash is stable when a referenced `!File` does not change"""
with NamedTemporaryFile(mode="w+", dir=TMP) as secret:
self.write_secret(secret, "initial")
with NamedTemporaryFile(mode="w+", suffix=".yaml", dir=TMP) as file:
reference = f"!File {secret.name}"
self.assertEqual(
self.write_blueprint(file, reference),
self.write_blueprint(file, reference),
)
@CONFIG.patch("blueprints_dir", TMP)
def test_file_tag_unreadable_hash_stable(self):
"""Test hash is stable when a referenced `!File` cannot be read"""
for label, reference in (
("missing file", f"!File {Path(TMP) / generate_id()}"),
("path from a tag", f'!File [!Env [{generate_id()}, "{TMP}/fallback"], "default"]'),
("path from a mapping", f'!File {{path: "{TMP}/fallback"}}'),
("path no syscall can take", '!File "\\0"'),
("deeply nested", "[" * 50 + f'!File "{TMP}/fallback"' + "]" * 50),
):
with (
self.subTest(label),
NamedTemporaryFile(mode="w+", suffix=".yaml", dir=TMP) as file,
):
self.assertEqual(
self.write_blueprint(file, reference),
self.write_blueprint(file, reference),
)
@CONFIG.patch("blueprints_dir", TMP)
def test_file_tag_unreadable_discovery_continues(self):
"""Test a blueprint that cannot be hashed does not stop others being discovered"""
for label, reference in (
("path from a mapping", f'!File {{path: "{TMP}/fallback"}}'),
("path no syscall can take", '!File "\\0"'),
("path outside the filesystem encoding", '!File "\\ud800"'),
("sequence containing itself", "&anchor [*anchor]"),
("mapping containing itself", "&anchor {key: *anchor}"),
("two anchors containing each other", "&outer [{inner: &inner [*outer]}, *inner]"),
):
with (
self.subTest(label),
NamedTemporaryFile(mode="w+", suffix=".yaml", dir=TMP) as broken,
NamedTemporaryFile(mode="w+", suffix=".yaml", dir=TMP) as healthy,
):
broken.write(f"version: 1\nentries: []\ncontext:\n secret: {reference}\n")
broken.flush()
healthy.write(f"version: 1\nentries: []\nmetadata:\n name: {generate_id()}\n")
healthy.flush()
found = [blueprint.path for blueprint in blueprints_find()]
self.assertIn(Path(healthy.name).name, found)
self.assertIn(Path(broken.name).name, found)
@CONFIG.patch("blueprints_dir", TMP)
def test_file_tag_applied_on_change(self):
"""Test blueprint is re-applied when the contents of a referenced `!File` change"""
blueprint_id = generate_id()
with NamedTemporaryFile(mode="w+", dir=TMP) as secret:
self.write_secret(secret, "initial")
with NamedTemporaryFile(mode="w+", suffix=".yaml", dir=TMP) as file:
file.write(
f"version: 1\nentries: []\n"
f"metadata:\n name: {blueprint_id}\n"
f"context:\n secret: !File {secret.name}\n"
)
file.flush()
blueprints_discovery.send()
instance = BlueprintInstance.objects.filter(name=blueprint_id).first()
before = instance.last_applied_hash
self.assertEqual(instance.status, BlueprintInstanceStatus.SUCCESSFUL)
self.write_secret(secret, "rotated")
blueprints_discovery.send()
instance.refresh_from_db()
self.assertNotEqual(instance.last_applied_hash, before)
+187 -13
View File
@@ -6,6 +6,7 @@ from copy import copy
from dataclasses import asdict, dataclass, field, is_dataclass
from enum import Enum
from functools import reduce
from itertools import count
from json import JSONDecodeError, loads
from operator import ixor
from os import getenv
@@ -14,9 +15,11 @@ from uuid import UUID
from deepmerge import always_merger
from django.apps import apps
from django.db.models import Model, Q
from django.db.models import CharField, Model, Q, TextField, UniqueConstraint
from django.utils.text import slugify
from rest_framework.exceptions import ValidationError
from rest_framework.fields import Field
from rest_framework.relations import ManyRelatedField, PrimaryKeyRelatedField
from rest_framework.serializers import Serializer
from structlog.stdlib import get_logger
from yaml import SafeDumper, SafeLoader, ScalarNode, SequenceNode
@@ -32,7 +35,7 @@ class UNSET:
"""Used to test whether a key has not been set."""
def get_attrs(obj: SerializerModel) -> dict[str, Any]:
def get_attrs(obj: SerializerModel) -> tuple[dict[str, Any], dict[str, Field]]:
"""Get object's attributes via their serializer, and convert it to a normal dict"""
serializer: Serializer = obj.serializer(obj)
data = dict(serializer.data)
@@ -45,7 +48,151 @@ def get_attrs(obj: SerializerModel) -> dict[str, Any]:
data.pop(field_name, None)
if field_name.endswith("_set"):
data.pop(field_name, None)
return data
return data, serializer.fields
def _relation_target_model(ser_field: Field) -> type[Model] | None:
"""Get the model a relational serializer field points to, if any"""
if isinstance(ser_field, ManyRelatedField):
ser_field = ser_field.child_relation
if isinstance(ser_field, PrimaryKeyRelatedField) and ser_field.queryset is not None:
return ser_field.queryset.model
return None
def resolve_references(
attrs: dict[str, Any], fields: dict[str, Field], reference_index: ReferenceIndex
) -> dict[str, Any]:
"""Replace any attrs value that references another exported object with a `KeyOf` tag"""
for name, _field in fields.items():
if name not in attrs or attrs[name] is None:
continue
target_model = _relation_target_model(_field)
if target_model is None:
continue
if isinstance(_field, ManyRelatedField):
attrs[name] = [
(
KeyOf(id_from=entry_id)
if (entry_id := reference_index.lookup(value, target_model))
else value
)
for value in attrs[name]
]
else:
entry_id = reference_index.lookup(attrs[name], target_model)
if entry_id:
attrs[name] = KeyOf(id_from=entry_id)
return attrs
def _stable_identifier_fields(model_class: type[Model]) -> list[str]:
"""List the names of unique, non-relational text fields on a model (other than its
primary key) that could serve as stable identifiers, portable across authentik instances"""
return [
model_field.attname
for model_field in model_class._meta.fields
if not model_field.primary_key
and isinstance(model_field, CharField | TextField)
and model_field.unique
]
def _is_stable_value(value: Any) -> bool:
"""A value is considered stable (portable across instances) if it's a non-empty
string that isn't a UUID, which is almost always instance-local (e.g. a random default)"""
if not value or not isinstance(value, str):
return False
try:
UUID(value)
return False
except ValueError:
return True
def _readable_key(obj: Model) -> str | None:
"""Find a unique, human-readable text field on `obj` (not a UUID) to make
a !KeyOf id easier to read than a bare counter, e.g. a slug or name."""
for field_name in _stable_identifier_fields(type(obj)):
value = getattr(obj, field_name, None)
if not _is_stable_value(value):
continue
slug = slugify(value)
if slug:
return slug
return None
def _unique_together_groups(model_class: type[Model]) -> Iterable[tuple[str, ...]]:
"""Field-name groups declared unique together on a model, via either the legacy
Meta.unique_together or a plain (unconditional) Meta.constraints UniqueConstraint"""
yield from model_class._meta.unique_together
for constraint in model_class._meta.constraints:
if not isinstance(constraint, UniqueConstraint):
continue
if not constraint.condition and constraint.fields:
yield constraint.fields
def _composite_identifier_fields(
model_class: type[Model], all_attrs: dict[str, Any], fields: dict[str, Field]
) -> list[str]:
"""When no single field can serve as a stable identifier, fall back to a composite
of fields that together identify the instance: a declared unique-together group if
one is fully known, otherwise every populated relation to another exported object
(e.g. a binding's target and policy), mirroring how such join objects are naturally
keyed. Portable across instances, as relations are resolved to !KeyOf tags."""
for group in _unique_together_groups(model_class):
if all(name in all_attrs and all_attrs[name] is not None for name in group):
return list(group)
return [
name
for name, ser_field in fields.items()
if name in all_attrs
and all_attrs[name] is not None
and _relation_target_model(ser_field) is not None
]
class ReferenceIndex:
"""Tracks exported model instances so relations between them can be
rewritten as !KeyOf references instead of raw primary keys."""
def __init__(self):
self._entries: dict[Any, tuple[type[Model], str]] = {}
self._used: set[str] = set()
self._seen_ids: set[str] = set()
self._counter = count(1)
def register(self, obj: Model) -> str:
"""Register an exported model instance, returning the id assigned to it"""
readable_key = _readable_key(obj)
entry_id = f"{obj._meta.model_name}-{readable_key or next(self._counter)}"
if entry_id in self._seen_ids:
entry_id = f"{entry_id}-{next(self._counter)}"
self._seen_ids.add(entry_id)
self._entries[obj.pk] = (type(obj), entry_id)
return entry_id
def id_for(self, obj: Model) -> str | None:
"""Get the id assigned to a previously registered model instance, if any"""
entry = self._entries.get(obj.pk)
return entry[1] if entry else None
def lookup(self, value: Any, target_model: type[Model]) -> str | None:
"""Look up the id of a registered model instance by its primary key,
provided it is an instance of `target_model`"""
entry = self._entries.get(value)
if entry and issubclass(entry[0], target_model):
self._used.add(entry[1])
return entry[1]
return None
def clear_unused_ids(self, entries: Iterable[BlueprintEntry], objects: Iterable[Model]) -> None:
"""Strip the id from any entry that is never referenced by a !KeyOf tag"""
for entry, obj in zip(entries, objects, strict=True):
if self.id_for(obj) not in self._used:
entry.id = None
@dataclass
@@ -92,20 +239,39 @@ class BlueprintEntry:
self.__tag_contexts: list[YAMLTagContext] = []
@staticmethod
def from_model(model: SerializerModel, *extra_identifier_names: str) -> BlueprintEntry:
def from_model(
model: SerializerModel,
reference_index: ReferenceIndex | None = None,
) -> BlueprintEntry:
"""Convert a SerializerModel instance to a blueprint Entry"""
identifiers = {
"pk": model.pk,
}
all_attrs = get_attrs(model)
all_attrs, fields = get_attrs(model)
if reference_index is not None:
all_attrs = resolve_references(all_attrs, fields, reference_index)
for extra_identifier_name in extra_identifier_names:
identifiers[extra_identifier_name] = all_attrs.pop(extra_identifier_name, None)
return BlueprintEntry(
identifier_names = [
field_name
for field_name in _stable_identifier_fields(type(model))
if field_name in all_attrs and _is_stable_value(all_attrs[field_name])
]
if not identifier_names:
identifier_names = _composite_identifier_fields(type(model), all_attrs, fields)
identifiers = {}
for identifier_name in identifier_names:
identifiers[identifier_name] = all_attrs.pop(identifier_name, None)
# Only fall back to the (instance-local, non-portable) primary key when no other
# stable identifier could be found
if not identifiers:
identifiers["pk"] = model.pk
entry = BlueprintEntry(
identifiers=identifiers,
model=f"{model._meta.app_label}.{model._meta.model_name}",
attrs=all_attrs,
)
if reference_index is not None:
entry.id = reference_index.id_for(model)
return entry
def get_tag_context(
self,
@@ -232,9 +398,14 @@ class KeyOf(YAMLTag):
id_from: str
def __init__(self, loader: BlueprintLoader, node: ScalarNode) -> None:
def __init__(
self,
loader: BlueprintLoader | None = None,
node: ScalarNode | None = None,
id_from: str | None = None,
) -> None:
super().__init__()
self.id_from = node.value
self.id_from = node.value if node is not None else id_from
def resolve(self, entry: BlueprintEntry, blueprint: Blueprint) -> Any:
for _entry in blueprint.iter_entries():
@@ -733,6 +904,9 @@ class BlueprintDumper(SafeDumper):
self.add_representer(
BlueprintEntryDesiredState, lambda self, data: self.represent_str(data.value)
)
self.add_representer(
KeyOf, lambda self, data: self.represent_scalar("!KeyOf", data.id_from)
)
self.add_representer(None, lambda self, data: self.represent_str(str(data)))
def ignore_aliases(self, data):
+67 -37
View File
@@ -1,6 +1,7 @@
"""Blueprint exporter"""
from collections.abc import Iterable
from typing import Any
from uuid import UUID
from django.apps import apps
@@ -15,13 +16,14 @@ from authentik.blueprints.v1.common import (
BlueprintDumper,
BlueprintEntry,
BlueprintMetadata,
ReferenceIndex,
)
from authentik.blueprints.v1.importer import is_model_allowed
from authentik.blueprints.v1.labels import LABEL_AUTHENTIK_GENERATED
from authentik.events.models import Event
from authentik.flows.models import Flow, FlowStageBinding, Stage
from authentik.policies.models import Policy, PolicyBinding
from authentik.stages.prompt.models import PromptStage
from authentik.stages.prompt.models import Prompt, PromptStage
class Exporter:
@@ -36,13 +38,21 @@ class Exporter:
def get_entries(self) -> Iterable[BlueprintEntry]:
"""Get blueprint entries"""
reference_index = ReferenceIndex()
instances: list[Model] = []
for model in apps.get_models():
if not is_model_allowed(model):
continue
if model in self.excluded_models:
continue
for obj in self.get_model_instances(model):
yield BlueprintEntry.from_model(obj)
instances.append(obj)
reference_index.register(obj)
entries = [
BlueprintEntry.from_model(obj, reference_index=reference_index) for obj in instances
]
reference_index.clear_unused_ids(entries, instances)
return entries
def get_model_instances(self, model: type[Model]) -> QuerySet:
"""Return a queryset for `model`. Can be used to filter some
@@ -96,54 +106,74 @@ class FlowExporter(Exporter):
"pbm_uuid", flat=True
)
def walk_stages(self) -> Iterable[BlueprintEntry]:
"""Convert all stages attached to self.flow into BlueprintEntry objects"""
stages = Stage.objects.filter(flow=self.flow).select_related().select_subclasses()
for stage in stages:
if isinstance(stage, PromptStage):
pass
yield BlueprintEntry.from_model(stage, "name")
def _stages(self) -> Iterable[Stage]:
"""Get all stages attached to self.flow"""
return Stage.objects.filter(flow=self.flow).select_related().select_subclasses()
def walk_stage_bindings(self) -> Iterable[BlueprintEntry]:
"""Convert all bindings attached to self.flow into BlueprintEntry objects"""
bindings = FlowStageBinding.objects.filter(target=self.flow).select_related()
for binding in bindings:
yield BlueprintEntry.from_model(binding, "target", "stage", "order")
def _stage_bindings(self) -> Iterable[FlowStageBinding]:
"""Get all bindings attached to self.flow"""
return FlowStageBinding.objects.filter(target=self.flow).select_related()
def walk_policies(self) -> Iterable[BlueprintEntry]:
"""Walk over all policies. This is done at the beginning of the export for stages that have
def _policies(self) -> Iterable[Policy]:
"""Get all policies. This is done at the beginning of the export for stages that have
a direct foreign key to a policy."""
# Special case for PromptStage as that has a direct M2M to policy, we have to ensure
# all policies referenced in there we also include here
prompt_stages = PromptStage.objects.filter(flow=self.flow).values_list("pk", flat=True)
query = Q(bindings__in=self.pbm_uuids) | Q(promptstage__in=prompt_stages)
policies = Policy.objects.filter(query).select_related()
for policy in policies:
yield BlueprintEntry.from_model(policy)
return Policy.objects.filter(query).select_related()
def walk_policy_bindings(self) -> Iterable[BlueprintEntry]:
"""Walk over all policybindings relative to us. This is run at the end of the export, as
def _policy_bindings(self) -> Iterable[PolicyBinding]:
"""Get all policybindings relative to us. This is run at the end of the export, as
we are sure all objects exist now."""
bindings = PolicyBinding.objects.filter(target__in=self.pbm_uuids).select_related()
for binding in bindings:
yield BlueprintEntry.from_model(binding, "policy", "target", "order")
return PolicyBinding.objects.filter(target__in=self.pbm_uuids).select_related()
def walk_stage_prompts(self) -> Iterable[BlueprintEntry]:
"""Walk over all prompts associated with any PromptStages"""
def _stage_prompts(self) -> Iterable[Prompt]:
"""Get all prompts associated with any PromptStages, deduplicated as multiple stages
may share the same prompt"""
prompt_stages = PromptStage.objects.filter(flow=self.flow)
prompts: dict[Any, Prompt] = {}
for stage in prompt_stages:
for prompt in stage.fields.all():
yield BlueprintEntry.from_model(prompt)
prompts[prompt.pk] = prompt
return prompts.values()
def get_entries(self) -> Iterable[BlueprintEntry]:
entries = []
entries.append(BlueprintEntry.from_model(self.flow, "slug"))
if self.with_stage_prompts:
entries.extend(self.walk_stage_prompts())
if self.with_policies:
entries.extend(self.walk_policies())
entries.extend(self.walk_stages())
entries.extend(self.walk_stage_bindings())
if self.with_policies:
entries.extend(self.walk_policy_bindings())
reference_index = ReferenceIndex()
reference_index.register(self.flow)
prompts = list(self._stage_prompts()) if self.with_stage_prompts else []
policies = list(self._policies()) if self.with_policies else []
stages = list(self._stages())
stage_bindings = list(self._stage_bindings())
policy_bindings = list(self._policy_bindings()) if self.with_policies else []
for obj in (*prompts, *policies, *stages, *stage_bindings, *policy_bindings):
reference_index.register(obj)
objects = [self.flow, *prompts, *policies, *stages, *stage_bindings, *policy_bindings]
entries = [
BlueprintEntry.from_model(self.flow, reference_index=reference_index),
*(
BlueprintEntry.from_model(prompt, reference_index=reference_index)
for prompt in prompts
),
*(
BlueprintEntry.from_model(policy, reference_index=reference_index)
for policy in policies
),
*(
BlueprintEntry.from_model(stage, reference_index=reference_index)
for stage in stages
),
*(
BlueprintEntry.from_model(binding, reference_index=reference_index)
for binding in stage_bindings
),
*(
BlueprintEntry.from_model(binding, reference_index=reference_index)
for binding in policy_bindings
),
]
reference_index.clear_unused_ids(entries, objects)
return entries
+60
View File
@@ -0,0 +1,60 @@
"""Blueprint hashing"""
from collections.abc import Generator
from hashlib import sha512
from pathlib import Path
from typing import Any
from yaml import load
from yaml.error import YAMLError
from authentik.blueprints.v1.common import BlueprintLoader, File, YAMLTag
def iter_file_tags(value: Any, ancestors: frozenset[int] = frozenset()) -> Generator[File]:
"""Find all `!File` tags in a loaded blueprint, including tags used as arguments
of other tags. A node is not descended into again below itself; a node reached by
several routes is visited once per route."""
if id(value) in ancestors:
return
ancestors = ancestors | {id(value)}
if isinstance(value, File):
yield value
if isinstance(value, dict):
children = value.values()
elif isinstance(value, list | tuple):
children = value
elif isinstance(value, YAMLTag):
children = vars(value).values()
else:
return
for child in children:
yield from iter_file_tags(child, ancestors)
# One byte where a readable reference contributes a 64-byte digest
MISSING_FILE_MARKER = b"\0"
def blueprint_hash(content: str) -> str:
"""Hash a blueprint's content and the contents of the files it references with
`!File` tags"""
hasher = sha512(content.encode())
try:
raw_blueprint = load(content, BlueprintLoader)
except YAMLError:
return hasher.hexdigest()
for tag in iter_file_tags(raw_blueprint):
# Mapping-node tags have no path; nested tags cannot be resolved here
path = getattr(tag, "path", None)
if not isinstance(path, str):
continue
try:
referenced = Path(path).read_bytes()
except OSError, ValueError:
# An unreadable reference still takes its place in the sequence, so a file
# that goes missing while another appears cannot leave the hash unchanged
hasher.update(MISSING_FILE_MARKER)
continue
hasher.update(sha512(referenced).digest())
return hasher.hexdigest()
+1 -1
View File
@@ -323,7 +323,7 @@ class Importer:
model_instance = model()
# pk needs to be set on the model instance otherwise a new one will be generated
if "pk" in updated_identifiers:
model_instance.pk = updated_identifiers["pk"]
model_instance.pk = model._meta.pk.to_python(updated_identifiers["pk"])
serializer.instance = model_instance
return serializer
+1 -1
View File
@@ -44,7 +44,7 @@ class MetaModelRegistry:
def get_models(self):
"""Wrapper for django's `get_models` to list all models"""
models = apps.get_models()
models = list(apps.get_models())
for _, value in self.models.items():
models.append(value)
return sorted(models, key=str)
+9 -13
View File
@@ -1,7 +1,6 @@
"""v1 blueprints tasks"""
from dataclasses import asdict, dataclass, field
from hashlib import sha512
from pathlib import Path
from sys import platform
from uuid import UUID
@@ -31,6 +30,7 @@ from authentik.blueprints.models import (
BlueprintRetrievalFailed,
)
from authentik.blueprints.v1.common import BlueprintLoader, BlueprintMetadata, EntryInvalidError
from authentik.blueprints.v1.hash import blueprint_hash
from authentik.blueprints.v1.importer import Importer
from authentik.blueprints.v1.labels import LABEL_AUTHENTIK_INSTANTIATE
from authentik.blueprints.v1.oci import OCI_PREFIX
@@ -40,7 +40,6 @@ from authentik.lib.config import CONFIG
from authentik.tasks.apps import PRIORITY_HIGH
from authentik.tasks.middleware import CurrentTask
from authentik.tasks.schedules.models import Schedule
from authentik.tenants.models import Tenant
LOGGER = get_logger()
@@ -92,20 +91,16 @@ class BlueprintEventHandler(FileSystemEventHandler):
def on_created(self, event: FileSystemEvent):
"""Process file creation"""
LOGGER.debug("new blueprint file created, starting discovery")
for tenant in Tenant.objects.filter(ready=True):
with tenant:
Schedule.dispatch_by_actor(blueprints_discovery)
Schedule.dispatch_by_actor(blueprints_discovery)
def on_modified(self, event: FileSystemEvent):
"""Process file modification"""
path = Path(event.src_path)
root = Path(CONFIG.get("blueprints_dir")).absolute()
rel_path = str(path.relative_to(root))
for tenant in Tenant.objects.filter(ready=True):
with tenant:
for instance in BlueprintInstance.objects.filter(path=rel_path, enabled=True):
LOGGER.debug("modified blueprint file, starting apply", instance=instance)
apply_blueprint.send_with_options(args=(instance.pk,), rel_obj=instance)
for instance in BlueprintInstance.objects.filter(path=rel_path, enabled=True):
LOGGER.debug("modified blueprint file, starting apply", instance=instance)
apply_blueprint.send_with_options(args=(instance.pk,), rel_obj=instance)
@actor(
@@ -129,8 +124,9 @@ def blueprints_find() -> list[BlueprintFile]:
if any(part for part in rel_path.parts if part.startswith(".")):
continue
with open(path, encoding="utf-8") as blueprint_file:
content = blueprint_file.read()
try:
raw_blueprint = load(blueprint_file.read(), BlueprintLoader)
raw_blueprint = load(content, BlueprintLoader)
except YAMLError as exc:
raw_blueprint = None
LOGGER.warning("failed to parse blueprint", exc=exc, path=str(rel_path))
@@ -141,7 +137,7 @@ def blueprints_find() -> list[BlueprintFile]:
if version != 1:
LOGGER.warning("invalid blueprint version", version=version, path=str(rel_path))
continue
file_hash = sha512(path.read_bytes()).hexdigest()
file_hash = blueprint_hash(content)
blueprint = BlueprintFile(str(rel_path), version, file_hash, int(path.stat().st_mtime))
blueprint.meta = from_dict(BlueprintMetadata, metadata) if metadata else None
blueprints.append(blueprint)
@@ -202,7 +198,7 @@ def apply_blueprint(instance_pk: UUID):
self.info(f"Blueprint {instance.name} is disabled, skipping")
return
blueprint_content = instance.retrieve()
file_hash = sha512(blueprint_content.encode()).hexdigest()
file_hash = blueprint_hash(blueprint_content)
importer = Importer.from_string(blueprint_content, instance.context)
if importer.blueprint.metadata:
instance.metadata = asdict(importer.blueprint.metadata)
+5 -5
View File
@@ -21,15 +21,15 @@ from rest_framework.response import Response
from rest_framework.validators import UniqueValidator
from rest_framework.viewsets import ModelViewSet
from authentik.admin.api.settings import FlagJSONField
from authentik.admin.flags import Flag
from authentik.admin.utils import get_system_settings
from authentik.brands.models import Brand
from authentik.brands.utils import session_safe_mode
from authentik.core.api.used_by import UsedByMixin
from authentik.core.api.utils import ModelSerializer, PassiveSerializer, ThemedUrlsSerializer
from authentik.crypto.validators import TLS_KEY_TYPES, KeyTypeValidator
from authentik.rbac.filters import SecretKeyFilter
from authentik.tenants.api.settings import FlagJSONField
from authentik.tenants.flags import Flag
from authentik.tenants.utils import get_current_tenant
class FooterLinkSerializer(PassiveSerializer):
@@ -95,8 +95,8 @@ class Themes(models.TextChoices):
def get_default_ui_footer_links():
"""Get default UI footer links based on current tenant settings"""
return get_current_tenant().footer_links
"""Get default UI footer links based on current system settings"""
return get_system_settings().footer_links
class PublicFlagsField(FlagJSONField):
+2 -1
View File
@@ -7,9 +7,10 @@ from django.http.response import HttpResponse
from django.utils.translation import override
from authentik.brands.utils import get_brand_for_request
from authentik.lib.tracing.otel_django_middleware import TracedMiddleware
class BrandMiddleware:
class BrandMiddleware(TracedMiddleware):
"""Add current brand to http request"""
get_response: Callable[[HttpRequest], HttpResponse]
+1 -1
View File
@@ -5,6 +5,7 @@ from json import loads
from django.urls import reverse
from rest_framework.test import APITestCase
from authentik.admin.flags import Flag
from authentik.blueprints.tests import apply_blueprint
from authentik.brands.models import SESSION_KEY_BRAND_SAFE_MODE, Brand
from authentik.core.models import Application
@@ -12,7 +13,6 @@ from authentik.core.tests.utils import create_test_admin_user, create_test_brand
from authentik.lib.generators import generate_id
from authentik.providers.oauth2.models import OAuth2Provider
from authentik.providers.saml.models import SAMLProvider
from authentik.tenants.flags import Flag
class TestBrands(APITestCase):
+7 -3
View File
@@ -9,9 +9,10 @@ from django.utils.html import _json_script_escapes
from django.utils.safestring import mark_safe
from authentik import authentik_full_version
from authentik.admin.models import SystemSettings
from authentik.admin.utils import get_system_settings
from authentik.brands.models import _BRAND_RELATED_FK_FIELDS, SESSION_KEY_BRAND_SAFE_MODE, Brand
from authentik.lib.tracing import active_tracer
from authentik.tenants.models import Tenant
_q_default = Q(default=True)
DEFAULT_BRAND = Brand(domain="fallback")
@@ -65,7 +66,10 @@ def get_brand_for_request(request: HttpRequest) -> Brand:
def context_processor(request: HttpRequest) -> dict[str, Any]:
"""Context Processor that injects brand object into every template"""
brand = getattr(request, "brand", DEFAULT_BRAND)
tenant = getattr(request, "tenant", Tenant())
try:
footer_links = get_system_settings().footer_links
except SystemSettings.DoesNotExist:
footer_links = []
# Suppress custom CSS for safe-mode sessions so misconfigured branding can't lock a
# user out of the UI needed to fix it.
safe_mode = session_safe_mode(request)
@@ -78,7 +82,7 @@ def context_processor(request: HttpRequest) -> dict[str, Any]:
"brand": brand,
"brand_css": brand_css,
"safe_mode": safe_mode,
"footer_links": tenant.footer_links,
"footer_links": footer_links,
"html_meta": {**active_tracer().get_http_meta()},
"version": authentik_full_version(),
}
@@ -1,7 +1,7 @@
from django_tenants.management.commands.migrate import Command as BaseCommand
from django.core.management.commands.migrate import Command as BaseCommand
from authentik.commands.management.commands import MigrationAutodetector
class Command(BaseCommand):
autodetector = MigrationAutodetector # type: ignore[assignment]
autodetector = MigrationAutodetector
@@ -1,7 +0,0 @@
from django_tenants.management.commands.migrate_schemas import Command as BaseCommand
from authentik.commands.management.commands import MigrationAutodetector
class Command(BaseCommand):
autodetector = MigrationAutodetector # type: ignore[assignment]
+15
View File
@@ -0,0 +1,15 @@
"""Common SAML Exceptions"""
from django.utils.translation import gettext_lazy as _
from authentik.lib.tracing.exceptions import TracingIgnoredException
ERROR_CANNOT_DECODE_REQUEST = _("Cannot decode SAML request.")
ERROR_SIGNATURE_REQUIRED_BUT_ABSENT = _(
"Verification Certificate configured, but request is not signed."
)
ERROR_FAILED_TO_VERIFY = _("Failed to verify signature")
class CannotHandleAssertion(TracingIgnoredException):
"""This processor does not handle this assertion."""
Whitespace-only changes.
@@ -6,9 +6,7 @@ from dataclasses import dataclass
from defusedxml import ElementTree
from authentik.common.saml.constants import NS_SAML_ASSERTION, NS_SAML_PROTOCOL
from authentik.providers.saml.exceptions import CannotHandleAssertion
from authentik.providers.saml.models import SAMLProvider
from authentik.providers.saml.processors.authn_request_parser import ERROR_CANNOT_DECODE_REQUEST
from authentik.common.saml.exceptions import ERROR_CANNOT_DECODE_REQUEST, CannotHandleAssertion
from authentik.providers.saml.utils.encoding import decode_base64_and_inflate
@@ -32,11 +30,6 @@ class LogoutRequest:
class LogoutRequestParser:
"""LogoutRequest Parser"""
provider: SAMLProvider
def __init__(self, provider: SAMLProvider):
self.provider = provider
def _parse_xml(self, decoded_xml: str | bytes, relay_state: str | None = None) -> LogoutRequest:
root = ElementTree.fromstring(decoded_xml)
request = LogoutRequest(
+10
View File
@@ -1,8 +1,11 @@
"""Shared SAML XML helpers"""
import base64
from collections.abc import Iterator
from typing import cast
from cryptography.hazmat.primitives.serialization import Encoding
from cryptography.x509 import Certificate
from lxml.etree import _Element
@@ -17,3 +20,10 @@ def get_element_text(element: _Element) -> str:
Reading the text via ``itertext()`` keeps the value equal to what was signed.
"""
return "".join(cast(Iterator[str], element.itertext()))
def x509_certificate_b64(cert: Certificate) -> str:
"""Encode a single certificate as base64 DER, the format used by ds:X509Certificate.
Encodes the parsed certificate, so a keypair holding a chain only yields the leaf."""
return base64.b64encode(cert.public_bytes(Encoding.DER)).decode()
Loaded 100 of 3288 files, more files were not shown because too many files have changed in this diff. Show more