Compare commits

...
Author SHA1 Message Date
Teffen Ellis 5ceb78db72 web/elements: add Python suggestions to the code editor
- Suggest the keywords and builtins Monaco highlights Python with
- Suggest names already in the expression, found with Monaco's tokenizer
- Add block snippets
- Indent Python by four spaces

Expressions are the body of a function the server wraps them in, so the
context variables are not known here yet.
2026-11-04 17:50:25 +00:00
Teffen Ellis 86e347a6eb web/elements: add CSS suggestions to the code editor
- Run Monaco's CSS language service on the page for suggestions, hovers and validation
- Load each language's service with the first editor that uses it
- Add the suggestion widget, hovers and snippets

Monaco's own CSS entry point starts a worker whose setup loads every editor
feature, including the ones the editor leaves out.
2026-11-04 17:50:25 +00:00
Teffen EllisandDominic R e1669e3685 web/elements: replace CodeMirror with Monaco in the code editor
- Replace CodeMirror with Monaco, imported once the editor is shown
- Pick Monaco's editing features instead of loading all of them
- Add the One Dark theme, vendored from azemoh/vscode-onedark (MIT)
- Hold the field's height until the editor loads
- Follow changes to `mode`, `readonly` and `disabled`
- Honor `readonly`, which the CodeMirror element ignored

Co-authored-by: Dominic R <[email protected]>
2026-11-04 17:50:24 +00:00
Teffen EllisandDominic R 7961cc5a5d web/elements: rename ak-codemirror to ak-code-editor (#27406)
Name the element after what it is, not the library behind it, ahead of
replacing CodeMirror.

- Rename `<ak-codemirror>` to `<ak-code-editor>`
- Move `#elements/CodeMirror` to `#elements/CodeEditor`
- Rename `CodeMirrorMode` and the source helpers to match

Co-authored-by: Dominic R <[email protected]>
2026-11-04 17:50:19 +00:00
be54152697 website/integrations: add Google Cloud Workforce Identity Federation guide (#27571)
* adding google cloud integration documentation

* integrations: touch up

---------

Co-authored-by: Dominic R <[email protected]>
Co-authored-by: Dewi Roberts <[email protected]>
2026-11-04 17:46:42 +00:00
Emil Burzo 4569c221c1 root: test that FIPS mode refuses non-approved algorithms (#27536)
* root: test that FIPS mode refuses non-approved algorithms

* fix comment
2026-11-04 17:08:40 +00:00
dependabot[bot] f8cd97ebfb web: bump nanoid from 3.3.16 to 3.3.20 in /website (#27599)
Bumps [nanoid](https://github.com/ai/nanoid) from 3.3.16 to 3.3.20.
- [Release notes](https://github.com/ai/nanoid/releases)
- [Changelog](https://github.com/ai/nanoid/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ai/nanoid/compare/3.3.16...3.3.20)

---
updated-dependencies:
- dependency-name: nanoid
  dependency-version: 3.3.20
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-04 16:52:38 +00:00
dependabot[bot] a445660fa6 web: bump baseline-browser-mapping from 2.10.43 to 2.11.35 in /website (#27600)
Bumps [baseline-browser-mapping](https://github.com/web-platform-dx/baseline-browser-mapping) from 2.10.43 to 2.11.35.
- [Release notes](https://github.com/web-platform-dx/baseline-browser-mapping/releases)
- [Commits](https://github.com/web-platform-dx/baseline-browser-mapping/compare/v2.10.43...v2.11.35)

---
updated-dependencies:
- dependency-name: baseline-browser-mapping
  dependency-version: 2.11.35
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-04 16:52:32 +00:00
dependabot[bot] a6f130bcc3 web: bump mermaid from 11.16.1 to 11.17.2 in /web (#27603)
Bumps [mermaid](https://github.com/mermaid-js/mermaid) from 11.16.1 to 11.17.2.
- [Release notes](https://github.com/mermaid-js/mermaid/releases)
- [Commits](https://github.com/mermaid-js/mermaid/compare/[email protected]@11.17.2)

---
updated-dependencies:
- dependency-name: mermaid
  dependency-version: 11.17.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-11-04 16:52:26 +00:00
dependabot[bot] dc057d465b web: bump nanoid from 3.3.15 to 3.3.20 in /web (#27605)
Bumps [nanoid](https://github.com/ai/nanoid) from 3.3.15 to 3.3.20.
- [Release notes](https://github.com/ai/nanoid/releases)
- [Changelog](https://github.com/ai/nanoid/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ai/nanoid/compare/3.3.15...3.3.20)

---
updated-dependencies:
- dependency-name: nanoid
  dependency-version: 3.3.20
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-04 16:52:20 +00:00
dependabot[bot] 941b6bc9c0 web: bump postcss from 8.5.26 to 8.5.32 (#27607)
Bumps [postcss](https://github.com/postcss/postcss) from 8.5.26 to 8.5.32.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/8.5.26...8.5.32)

---
updated-dependencies:
- dependency-name: postcss
  dependency-version: 8.5.32
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-04 16:52:14 +00:00
dependabot[bot] ca5ce170d7 web: bump svgo from 3.3.4 to 3.3.5 (#27609)
Bumps [svgo](https://github.com/svg/svgo) from 3.3.4 to 3.3.5.
- [Release notes](https://github.com/svg/svgo/releases)
- [Commits](https://github.com/svg/svgo/compare/v3.3.4...v3.3.5)

---
updated-dependencies:
- dependency-name: svgo
  dependency-version: 3.3.5
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-04 16:52:07 +00:00
dependabot[bot] cd61e91eb8 web: bump baseline-browser-mapping from 2.10.43 to 2.11.35 (#27610)
Bumps [baseline-browser-mapping](https://github.com/web-platform-dx/baseline-browser-mapping) from 2.10.43 to 2.11.35.
- [Release notes](https://github.com/web-platform-dx/baseline-browser-mapping/releases)
- [Commits](https://github.com/web-platform-dx/baseline-browser-mapping/compare/v2.10.43...v2.11.35)

---
updated-dependencies:
- dependency-name: baseline-browser-mapping
  dependency-version: 2.11.35
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-04 16:52:01 +00:00
Ken Sternberg b9e1016592 web/admin: Fix “toggle group not centered on PolicyBindingForms” (#27543)
## Description

This commit adds a little CSS to ensure the toggle group is centered on the PolicyBindingForms.

The rule that “child components should not enforce their position or dimension; leave that to the client code to make those decisions” can sometimes make for awkward fits; in this case, a flex-wrapper to ensure centering.

The toggle group is also used in:

- ProxyProviderForm
- Ak-Application-Wizard-Edit-Binding-Steps
- BlueprintForm
- BlueprintImportForm

I have checked all five locations (the above, and PolicyBindingForms), and the toggle group is now centered in the Form in all cases.

Closes \#27357
2026-11-04 15:46:58 +00:00
Jens L. 5734217bc4 ci: fix codeql for python (#27611) 2026-11-04 15:39:17 +00:00
Emil Burzo bbd324fb19 core: bump fips-python from 3.14.10 to 3.14.10-p1 (#27597) 2026-11-04 15:33:49 +00:00
Jens L. f1341f57c0 flows: format titles correct on first render if possible (#27589)
Signed-off-by: Jens Langhammer <[email protected]>
2026-11-04 14:36:08 +00:00
Connor PeshekandJens Langhammer 2db2805965 common/saml: Add ability to select nameid unspecified (#27027)
* common/saml: Add ability to select nameid unspecified

* update help text for saml source nameid

* update ws-fed for unspecified and update provider docs

* no new migration

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

---------

Signed-off-by: Jens Langhammer <[email protected]>
Co-authored-by: Jens Langhammer <[email protected]>
2026-11-04 12:47:26 +00:00
dependabot[bot] d11d12a63f core: bump cachetools from 7.2.7 to 7.2.8 (#27575)
Bumps [cachetools](https://github.com/tkem/cachetools) from 7.2.7 to 7.2.8.
- [Changelog](https://github.com/tkem/cachetools/blob/master/CHANGELOG.rst)
- [Commits](https://github.com/tkem/cachetools/compare/v7.2.7...v7.2.8)

---
updated-dependencies:
- dependency-name: cachetools
  dependency-version: 7.2.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-11-04 09:25:48 +00:00
dependabot[bot] 2c34d5995e core: bump pytest from 9.1.1 to 9.2.0 (#27573)
Bumps [pytest](https://github.com/pytest-dev/pytest) from 9.1.1 to 9.2.0.
- [Release notes](https://github.com/pytest-dev/pytest/releases)
- [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest/compare/9.1.1...9.2.0)

---
updated-dependencies:
- dependency-name: pytest
  dependency-version: 9.2.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-11-04 09:22:25 +00:00
dependabot[bot] b8e3227386 core: bump django from 5.2.18 to 5.2.19 (#27574)
Bumps [django](https://github.com/django/django) from 5.2.18 to 5.2.19.
- [Commits](https://github.com/django/django/compare/5.2.18...5.2.19)

---
updated-dependencies:
- dependency-name: django
  dependency-version: 5.2.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-11-04 09:19:26 +00:00
dependabot[bot] 88bd5bcf5a core: bump pydantic from 2.14.1 to 2.14.2 (#27576)
Bumps [pydantic](https://github.com/pydantic/pydantic) from 2.14.1 to 2.14.2.
- [Release notes](https://github.com/pydantic/pydantic/releases)
- [Changelog](https://github.com/pydantic/pydantic/blob/v2.14.2/HISTORY.md)
- [Commits](https://github.com/pydantic/pydantic/compare/v2.14.1...v2.14.2)

---
updated-dependencies:
- dependency-name: pydantic
  dependency-version: 2.14.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-11-04 09:07:37 +00:00
dependabot[bot] c684d7d665 ci: bump taiki-e/install-action from 2.88.1 to 2.89.0 in /.github/actions/setup (#27577)
ci: bump taiki-e/install-action in /.github/actions/setup

Bumps [taiki-e/install-action](https://github.com/taiki-e/install-action) from 2.88.1 to 2.89.0.
- [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/68a389c788b2cd04016ce8c80ee23b80d2ab3d68...1919c4a95903d2c33e4a221102edca87309fc14b)

---
updated-dependencies:
- dependency-name: taiki-e/install-action
  dependency-version: 2.89.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-11-04 09:07:26 +00:00
Connor Peshek f8dde2e253 common/saml: skip Ed25519 tests when FIPS is enabled (#27583) 2026-11-04 02:33:53 -06:00
Connor Peshek b70cff61be outposts/proxy: verify ML-DSA signed tokens (#27171) 2026-11-04 01:01:11 -06:00
dependabot[bot] 4b4c69a17e web: bump js-yaml from 4.3.0 to 4.3.2 (#27522)
Bumps [js-yaml](https://github.com/nodeca/js-yaml) from 4.3.0 to 4.3.2.
- [Changelog](https://github.com/nodeca/js-yaml/blob/4.3.2/CHANGELOG.md)
- [Commits](https://github.com/nodeca/js-yaml/compare/4.3.0...4.3.2)

---
updated-dependencies:
- dependency-name: js-yaml
  dependency-version: 4.3.2
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-03 19:25:20 +00:00
dependabot[bot] a9265211af web: bump shell-quote from 1.9.0 to 1.12.0 (#27531)
Bumps [shell-quote](https://github.com/ljharb/shell-quote) from 1.9.0 to 1.12.0.
- [Changelog](https://github.com/ljharb/shell-quote/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ljharb/shell-quote/compare/v1.9.0...v1.12.0)

---
updated-dependencies:
- dependency-name: shell-quote
  dependency-version: 1.12.0
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-03 17:58:55 +00:00
Jens L.andDewi Roberts f729a9318f web/admin: allow adding source to identification stage after creation (#27485)
* web/admin: allow adding source to identification stage after creation

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

* Update web/src/admin/sources/SourceLoginStagesWizardPage.ts

Co-authored-by: Dewi Roberts <[email protected]>
Signed-off-by: Jens L. <[email protected]>

* format

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

---------

Signed-off-by: Jens Langhammer <[email protected]>
Signed-off-by: Jens L. <[email protected]>
Co-authored-by: Dewi Roberts <[email protected]>
2026-11-03 17:18:38 +00:00
dependabot[bot] 6d5e0905b1 web: bump @xmldom/xmldom from 0.8.13 to 0.8.15 in /web (#27520)
Bumps [@xmldom/xmldom](https://github.com/xmldom/xmldom) from 0.8.13 to 0.8.15.
- [Release notes](https://github.com/xmldom/xmldom/releases)
- [Changelog](https://github.com/xmldom/xmldom/blob/master/CHANGELOG.md)
- [Commits](https://github.com/xmldom/xmldom/compare/0.8.13...0.8.15)

---
updated-dependencies:
- dependency-name: "@xmldom/xmldom"
  dependency-version: 0.8.15
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-03 17:07:20 +00:00
dependabot[bot] 1a5f8c0ed1 web: bump source-map-js from 1.2.1 to 1.2.2 (#27523)
Bumps [source-map-js](https://github.com/7rulnik/source-map-js) from 1.2.1 to 1.2.2.
- [Release notes](https://github.com/7rulnik/source-map-js/releases)
- [Changelog](https://github.com/7rulnik/source-map-js/blob/main/CHANGELOG.md)
- [Commits](https://github.com/7rulnik/source-map-js/compare/v1.2.1...v1.2.2)

---
updated-dependencies:
- dependency-name: source-map-js
  dependency-version: 1.2.2
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-03 17:07:12 +00:00
dependabot[bot] e9bd9f29dd web: bump follow-redirects from 1.16.0 to 1.16.2 (#27524)
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.16.0 to 1.16.2.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.16.0...v1.16.2)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-version: 1.16.2
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-03 17:07:05 +00:00
dependabot[bot] 2957bf0c9a web: bump joi from 17.13.4 to 17.13.9 (#27525)
Bumps [joi](https://github.com/hapijs/joi) from 17.13.4 to 17.13.9.
- [Commits](https://github.com/hapijs/joi/compare/v17.13.4...v17.13.9)

---
updated-dependencies:
- dependency-name: joi
  dependency-version: 17.13.9
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-03 17:06:59 +00:00
dependabot[bot] 2e44ef9450 web: bump smol-toml from 1.8.0 to 1.9.1 (#27526)
Bumps [smol-toml](https://github.com/squirrelchat/smol-toml) from 1.8.0 to 1.9.1.
- [Release notes](https://github.com/squirrelchat/smol-toml/releases)
- [Commits](https://github.com/squirrelchat/smol-toml/compare/v1.8.0...v1.9.1)

---
updated-dependencies:
- dependency-name: smol-toml
  dependency-version: 1.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-11-03 17:06:53 +00:00
dependabot[bot] 22a1a95dc2 web: bump markdown-it from 14.3.0 to 14.3.3 (#27528)
Bumps [markdown-it](https://github.com/markdown-it/markdown-it) from 14.3.0 to 14.3.3.
- [Changelog](https://github.com/markdown-it/markdown-it/blob/14.3.3/CHANGELOG.md)
- [Commits](https://github.com/markdown-it/markdown-it/compare/14.3.0...14.3.3)

---
updated-dependencies:
- dependency-name: markdown-it
  dependency-version: 14.3.3
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-03 17:06:47 +00:00
dependabot[bot] 29732d18af web: bump fast-uri from 3.1.8 to 3.1.9 (#27529)
Bumps [fast-uri](https://github.com/fastify/fast-uri) from 3.1.8 to 3.1.9.
- [Release notes](https://github.com/fastify/fast-uri/releases)
- [Commits](https://github.com/fastify/fast-uri/compare/v3.1.8...v3.1.9)

---
updated-dependencies:
- dependency-name: fast-uri
  dependency-version: 3.1.9
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-03 17:06:41 +00:00
dependabot[bot] 2c34e7480c web: bump image-size from 2.0.2 to 2.0.4 (#27530)
Bumps [image-size](https://github.com/image-size/image-size) from 2.0.2 to 2.0.4.
- [Release notes](https://github.com/image-size/image-size/releases)
- [Commits](https://github.com/image-size/image-size/commits)

---
updated-dependencies:
- dependency-name: image-size
  dependency-version: 2.0.4
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-03 17:06:35 +00:00
dependabot[bot] 7c8e63fefa web: bump proxy-addr from 2.0.7 to 2.0.8 (#27532)
Bumps [proxy-addr](https://github.com/jshttp/proxy-addr) from 2.0.7 to 2.0.8.
- [Release notes](https://github.com/jshttp/proxy-addr/releases)
- [Changelog](https://github.com/jshttp/proxy-addr/blob/master/HISTORY.md)
- [Commits](https://github.com/jshttp/proxy-addr/compare/v2.0.7...v2.0.8)

---
updated-dependencies:
- dependency-name: proxy-addr
  dependency-version: 2.0.8
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-03 17:06:29 +00:00
dependabot[bot] 3bac23f005 web: bump compression from 1.8.1 to 1.8.2 (#27533)
Bumps [compression](https://github.com/expressjs/compression) from 1.8.1 to 1.8.2.
- [Release notes](https://github.com/expressjs/compression/releases)
- [Changelog](https://github.com/expressjs/compression/blob/master/HISTORY.md)
- [Commits](https://github.com/expressjs/compression/compare/v1.8.1...v1.8.2)

---
updated-dependencies:
- dependency-name: compression
  dependency-version: 1.8.2
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-03 17:06:22 +00:00
dependabot[bot] 80a1953816 web: bump fast-copy from 4.0.3 to 4.3.1 (#27534)
Bumps [fast-copy](https://github.com/planttheidea/fast-copy) from 4.0.3 to 4.3.1.
- [Release notes](https://github.com/planttheidea/fast-copy/releases)
- [Changelog](https://github.com/planttheidea/fast-copy/blob/main/CHANGELOG.md)
- [Commits](https://github.com/planttheidea/fast-copy/compare/v4.0.3...v4.3.1)

---
updated-dependencies:
- dependency-name: fast-copy
  dependency-version: 4.3.1
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-03 17:06:16 +00:00
Alexander TereshkinandJens Langhammer 363cea56f6 web/admin: add user app entitelments screen (#24734)
* web/admin: add user app entitelments screen

* core: use ListPolicyEngine for querying user's app entitlements

* no policy engine

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

* gen

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

* fix typing and url

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

* fix styles

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

---------

Signed-off-by: Jens Langhammer <[email protected]>
Co-authored-by: Jens Langhammer <[email protected]>
2026-11-03 17:00:21 +00:00
Connor Peshek 07715bccd2 providers/saml: reject malformed requests with a 400 instead of a server error (#27153) 2026-11-03 10:37:49 -06:00
Connor Peshek 3ad16821a7 common/saml: Improve certificate filtering (#27445)
common/saml + wsfed: Improve ml-dsa filtering
2026-11-03 10:36:55 -06:00
Jens L.andTeffen Ellis 65808fd1db web/admin: add next steps in app wizard (#27470)
* web/admin: add next steps in app wizard

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

* Tidy types, labels.

---------

Signed-off-by: Jens Langhammer <[email protected]>
Co-authored-by: Teffen Ellis <[email protected]>
2026-11-03 16:32:47 +00:00
Jens L. 5c4d37cfd9 enterprise/providers/ssf: fix credential change event sent when using authenticator during sign in (#27519)
Signed-off-by: Jens Langhammer <[email protected]>
2026-11-03 16:32:24 +00:00
788317d117 rbac: custom permissions (#27051)
* move Initial Permissions to Customization

* fix get_perms() for superusers with an object

Due to shortcuts this doesn't actually ever run, but fixing it anyway

* validate blueprint permissions against the database

* add custom permissions

* log permission assignments

* route API authorization through one decision point per phase

* add permission checks

* add field rules to permission checks

* let permission checks alter responses

* web: manage custom permissions

* web: manage permission checks

* website: document custom permissions and permission checks

* `make gen`

* Docs changes

* website/docs: cleanup

* fix typo in the custom permissions flag help

* format custom permission help text

* reword docs

* select list items by `[pk=...]` in field rule paths

* prefix permission check function names with `RBAC_FUNC_`

* trace `visible_objects`

* inline test helpers

* check the custom permissions flag first

* fixup! Merge branch 'main' into rbac/custom-permissions

* fixup! fixup! Merge branch 'main' into rbac/custom-permissions

---------

Co-authored-by: Dewi Roberts <[email protected]>
Co-authored-by: Dominic R <[email protected]>
2026-11-03 17:29:33 +01:00
Emil Burzo 82c9a381a4 ci: run the distroless image tests with FIPS enabled (#27303) 2026-11-03 18:09:16 +02:00
Simonyi Gergő aad50f08a0 root: fix translations that never took effect (#27432)
* root: fix translations that never took effect

* remove `format_map`s in favor of just `format`

* fixup! Merge branch 'main' into core/fix-translations
2026-11-03 17:07:26 +01:00
dependabot[bot] 76595cca29 web: bump follow-redirects from 1.16.0 to 1.16.2 in /website (#27499)
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.16.0 to 1.16.2.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.16.0...v1.16.2)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-version: 1.16.2
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-03 16:05:57 +00:00
dependabot[bot] 218864b314 web: bump source-map-js from 1.2.1 to 1.2.2 in /website (#27498)
Bumps [source-map-js](https://github.com/7rulnik/source-map-js) from 1.2.1 to 1.2.2.
- [Release notes](https://github.com/7rulnik/source-map-js/releases)
- [Changelog](https://github.com/7rulnik/source-map-js/blob/main/CHANGELOG.md)
- [Commits](https://github.com/7rulnik/source-map-js/compare/v1.2.1...v1.2.2)

---
updated-dependencies:
- dependency-name: source-map-js
  dependency-version: 1.2.2
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-03 16:05:46 +00:00
dependabot[bot] c7fed87712 web: bump colord from 2.9.3 to 2.10.0 in /website (#27500)
Bumps [colord](https://github.com/omgovich/colord) from 2.9.3 to 2.10.0.
- [Release notes](https://github.com/omgovich/colord/releases)
- [Changelog](https://github.com/omgovich/colord/blob/master/CHANGELOG.md)
- [Commits](https://github.com/omgovich/colord/commits/v2.10)

---
updated-dependencies:
- dependency-name: colord
  dependency-version: 2.10.0
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-03 16:05:34 +00:00
dependabot[bot] 9793c7e82f web: bump shell-quote from 1.9.0 to 1.12.0 in /web (#27502)
Bumps [shell-quote](https://github.com/ljharb/shell-quote) from 1.9.0 to 1.12.0.
- [Changelog](https://github.com/ljharb/shell-quote/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ljharb/shell-quote/compare/v1.9.0...v1.12.0)

---
updated-dependencies:
- dependency-name: shell-quote
  dependency-version: 1.12.0
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-03 16:05:26 +00:00
dependabot[bot] 0874e4d2a7 web: bump smol-toml from 1.7.0 to 1.9.1 in /web (#27514)
Bumps [smol-toml](https://github.com/squirrelchat/smol-toml) from 1.7.0 to 1.9.1.
- [Release notes](https://github.com/squirrelchat/smol-toml/releases)
- [Commits](https://github.com/squirrelchat/smol-toml/compare/v1.7.0...v1.9.1)

---
updated-dependencies:
- dependency-name: smol-toml
  dependency-version: 1.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-11-03 16:05:06 +00:00
dependabot[bot] 6c2791e8f1 web: bump body-parser from 1.20.6 to 1.20.9 in /website (#27488)
Bumps [body-parser](https://github.com/expressjs/body-parser) from 1.20.6 to 1.20.9.
- [Release notes](https://github.com/expressjs/body-parser/releases)
- [Changelog](https://github.com/expressjs/body-parser/blob/1.20.9/HISTORY.md)
- [Commits](https://github.com/expressjs/body-parser/compare/1.20.6...1.20.9)

---
updated-dependencies:
- dependency-name: body-parser
  dependency-version: 1.20.9
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-03 16:04:59 +00:00
dependabot[bot] dcac96df5a web: bump brace-expansion from 1.1.15 to 1.1.21 in /website (#27489)
Bumps [brace-expansion](https://github.com/juliangruber/brace-expansion) from 1.1.15 to 1.1.21.
- [Release notes](https://github.com/juliangruber/brace-expansion/releases)
- [Commits](https://github.com/juliangruber/brace-expansion/compare/v1.1.15...v1.1.21)

---
updated-dependencies:
- dependency-name: brace-expansion
  dependency-version: 1.1.21
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-03 16:04:53 +00:00
dependabot[bot] f938acfebb web: bump dompurify from 3.4.12 to 3.4.17 in /website (#27490)
Bumps [dompurify](https://github.com/cure53/DOMPurify) from 3.4.12 to 3.4.17.
- [Release notes](https://github.com/cure53/DOMPurify/releases)
- [Commits](https://github.com/cure53/DOMPurify/compare/3.4.12...3.4.17)

---
updated-dependencies:
- dependency-name: dompurify
  dependency-version: 3.4.17
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-03 16:04:46 +00:00
dependabot[bot] 5efe4ea803 web: bump undici from 6.28.0 to 6.29.1 in /website (#27491)
Bumps [undici](https://github.com/nodejs/undici) from 6.28.0 to 6.29.1.
- [Release notes](https://github.com/nodejs/undici/releases)
- [Commits](https://github.com/nodejs/undici/compare/v6.28.0...v6.29.1)

---
updated-dependencies:
- dependency-name: undici
  dependency-version: 6.29.1
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-03 16:04:40 +00:00
dependabot[bot] c4782db593 web: bump image-size from 2.0.2 to 2.0.4 in /website (#27492)
Bumps [image-size](https://github.com/image-size/image-size) from 2.0.2 to 2.0.4.
- [Release notes](https://github.com/image-size/image-size/releases)
- [Commits](https://github.com/image-size/image-size/commits)

---
updated-dependencies:
- dependency-name: image-size
  dependency-version: 2.0.4
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-03 16:04:34 +00:00
dependabot[bot] 6aed2bfab2 web: bump compression from 1.8.1 to 1.8.2 in /website (#27493)
Bumps [compression](https://github.com/expressjs/compression) from 1.8.1 to 1.8.2.
- [Release notes](https://github.com/expressjs/compression/releases)
- [Changelog](https://github.com/expressjs/compression/blob/master/HISTORY.md)
- [Commits](https://github.com/expressjs/compression/compare/v1.8.1...v1.8.2)

---
updated-dependencies:
- dependency-name: compression
  dependency-version: 1.8.2
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-03 16:04:28 +00:00
dependabot[bot] 07cea7bfe5 web: bump svgo from 3.3.4 to 3.3.5 in /website (#27494)
Bumps [svgo](https://github.com/svg/svgo) from 3.3.4 to 3.3.5.
- [Release notes](https://github.com/svg/svgo/releases)
- [Commits](https://github.com/svg/svgo/compare/v3.3.4...v3.3.5)

---
updated-dependencies:
- dependency-name: svgo
  dependency-version: 3.3.5
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-03 16:04:22 +00:00
dependabot[bot] 2590eea362 web: bump proxy-addr from 2.0.7 to 2.0.8 in /website (#27495)
Bumps [proxy-addr](https://github.com/jshttp/proxy-addr) from 2.0.7 to 2.0.8.
- [Release notes](https://github.com/jshttp/proxy-addr/releases)
- [Changelog](https://github.com/jshttp/proxy-addr/blob/master/HISTORY.md)
- [Commits](https://github.com/jshttp/proxy-addr/compare/v2.0.7...v2.0.8)

---
updated-dependencies:
- dependency-name: proxy-addr
  dependency-version: 2.0.8
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-03 16:04:15 +00:00
dependabot[bot] a5a8d899a6 web: bump joi from 17.13.4 to 17.13.9 in /website (#27496)
Bumps [joi](https://github.com/hapijs/joi) from 17.13.4 to 17.13.9.
- [Commits](https://github.com/hapijs/joi/compare/v17.13.4...v17.13.9)

---
updated-dependencies:
- dependency-name: joi
  dependency-version: 17.13.9
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-03 16:04:09 +00:00
dependabot[bot] 4b4ad99907 web: bump shell-quote from 1.9.0 to 1.12.0 in /website (#27497)
Bumps [shell-quote](https://github.com/ljharb/shell-quote) from 1.9.0 to 1.12.0.
- [Changelog](https://github.com/ljharb/shell-quote/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ljharb/shell-quote/compare/v1.9.0...v1.12.0)

---
updated-dependencies:
- dependency-name: shell-quote
  dependency-version: 1.12.0
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-03 16:04:03 +00:00
dependabot[bot] a7c773e978 web: bump @xhmikosr/decompress from 11.1.3 to 11.1.4 in /web (#27501)
Bumps [@xhmikosr/decompress](https://github.com/XhmikosR/decompress) from 11.1.3 to 11.1.4.
- [Release notes](https://github.com/XhmikosR/decompress/releases)
- [Commits](https://github.com/XhmikosR/decompress/compare/v11.1.3...v11.1.4)

---
updated-dependencies:
- dependency-name: "@xhmikosr/decompress"
  dependency-version: 11.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-11-03 15:46:18 +00:00
dependabot[bot] bf5c169327 web: bump fast-uri from 3.1.3 to 3.1.9 in /web (#27503)
Bumps [fast-uri](https://github.com/fastify/fast-uri) from 3.1.3 to 3.1.9.
- [Release notes](https://github.com/fastify/fast-uri/releases)
- [Commits](https://github.com/fastify/fast-uri/compare/v3.1.3...v3.1.9)

---
updated-dependencies:
- dependency-name: fast-uri
  dependency-version: 3.1.9
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-03 15:46:11 +00:00
dependabot[bot] 8c51a83152 web: bump source-map-js from 1.2.1 to 1.2.2 in /web (#27504)
Bumps [source-map-js](https://github.com/7rulnik/source-map-js) from 1.2.1 to 1.2.2.
- [Release notes](https://github.com/7rulnik/source-map-js/releases)
- [Changelog](https://github.com/7rulnik/source-map-js/blob/main/CHANGELOG.md)
- [Commits](https://github.com/7rulnik/source-map-js/compare/v1.2.1...v1.2.2)

---
updated-dependencies:
- dependency-name: source-map-js
  dependency-version: 1.2.2
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-03 15:46:05 +00:00
dependabot[bot] 23b72a44e9 web: bump follow-redirects from 1.16.0 to 1.16.2 in /web (#27505)
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.16.0 to 1.16.2.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.16.0...v1.16.2)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-version: 1.16.2
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-03 15:45:58 +00:00
dependabot[bot] 8b73dae3b0 web: bump fast-copy from 4.0.3 to 4.3.1 in /web (#27506)
Bumps [fast-copy](https://github.com/planttheidea/fast-copy) from 4.0.3 to 4.3.1.
- [Release notes](https://github.com/planttheidea/fast-copy/releases)
- [Changelog](https://github.com/planttheidea/fast-copy/blob/main/CHANGELOG.md)
- [Commits](https://github.com/planttheidea/fast-copy/compare/v4.0.3...v4.3.1)

---
updated-dependencies:
- dependency-name: fast-copy
  dependency-version: 4.3.1
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-03 15:45:51 +00:00
dependabot[bot] e798627382 web: bump axios from 1.18.1 to 1.21.0 in /web (#27507)
Bumps [axios](https://github.com/axios/axios) from 1.18.1 to 1.21.0.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v1.18.1...v1.21.0)

---
updated-dependencies:
- dependency-name: axios
  dependency-version: 1.21.0
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-03 15:45:44 +00:00
dependabot[bot] 59787fa82a web: bump piscina from 4.9.3 to 4.9.4 in /web (#27508)
Bumps [piscina](https://github.com/piscinajs/piscina) from 4.9.3 to 4.9.4.
- [Release notes](https://github.com/piscinajs/piscina/releases)
- [Changelog](https://github.com/piscinajs/piscina/blob/v4.9.4/CHANGELOG.md)
- [Commits](https://github.com/piscinajs/piscina/compare/v4.9.3...v4.9.4)

---
updated-dependencies:
- dependency-name: piscina
  dependency-version: 4.9.4
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-03 15:45:37 +00:00
dependabot[bot] 53b2552c51 web: bump dompurify from 3.4.13 to 3.4.17 in /web (#27509)
Bumps [dompurify](https://github.com/cure53/DOMPurify) from 3.4.13 to 3.4.17.
- [Release notes](https://github.com/cure53/DOMPurify/releases)
- [Commits](https://github.com/cure53/DOMPurify/compare/3.4.13...3.4.17)

---
updated-dependencies:
- dependency-name: dompurify
  dependency-version: 3.4.17
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-03 15:45:31 +00:00
dependabot[bot] 697d23111b web: bump postcss-selector-parser from 7.1.4 to 7.1.7 in /web (#27511)
Bumps [postcss-selector-parser](https://github.com/postcss/postcss-selector-parser) from 7.1.4 to 7.1.7.
- [Release notes](https://github.com/postcss/postcss-selector-parser/releases)
- [Changelog](https://github.com/postcss/postcss-selector-parser/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss-selector-parser/compare/7.1.4...7.1.7)

---
updated-dependencies:
- dependency-name: postcss-selector-parser
  dependency-version: 7.1.7
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-03 15:45:21 +00:00
dependabot[bot] bc2131c555 web: bump zod from 4.4.3 to 4.6.7 in /web (#27512)
Bumps [zod](https://github.com/colinhacks/zod) from 4.4.3 to 4.6.7.
- [Release notes](https://github.com/colinhacks/zod/releases)
- [Commits](https://github.com/colinhacks/zod/compare/v4.4.3...v4.6.7)

---
updated-dependencies:
- dependency-name: zod
  dependency-version: 4.6.7
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-03 15:45:14 +00:00
dependabot[bot] d63d625759 web: bump js-yaml from 4.3.0 to 4.3.2 in /web (#27513)
Bumps [js-yaml](https://github.com/nodeca/js-yaml) from 4.3.0 to 4.3.2.
- [Changelog](https://github.com/nodeca/js-yaml/blob/4.3.2/CHANGELOG.md)
- [Commits](https://github.com/nodeca/js-yaml/compare/4.3.0...4.3.2)

---
updated-dependencies:
- dependency-name: js-yaml
  dependency-version: 4.3.2
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-03 15:45:07 +00:00
dependabot[bot] 217c327f1f web: bump storybook from 10.6.1 to 10.6.2 in /web (#27515)
Bumps [storybook](https://github.com/storybookjs/storybook/tree/HEAD/code/core) from 10.6.1 to 10.6.2.
- [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.2/code/core)

---
updated-dependencies:
- dependency-name: storybook
  dependency-version: 10.6.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-11-03 15:45:00 +00:00
Dominic Roy b5fd12c31f web: add refreshed source and provider icons in light and dark variants (#27374) 2026-11-03 09:30:15 -05:00
dependabot[bot]andJens Langhammer 3f8e5a1cb2 lifecycle/aws: bump aws-cdk from 2.1143.0 to 2.1146.0 in /lifecycle/aws (#27262)
* lifecycle/aws: bump aws-cdk from 2.1143.0 to 2.1146.0 in /lifecycle/aws

Bumps [aws-cdk](https://github.com/aws/aws-cdk-cli/tree/HEAD/packages/aws-cdk) from 2.1143.0 to 2.1146.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.1146.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

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

* fix

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

* fix

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-11-03 14:14:13 +00:00
Dewi Roberts 86c0d432be website/docs: minor fixes (#27482)
* Update index.mdx

* Minor fixes
2026-11-03 14:12:16 +00:00
dependabot[bot] 82ba75dbc2 core: bump sentry from 0.49.3 to 0.49.5 (#27421)
Bumps [sentry](https://github.com/getsentry/sentry-rust) from 0.49.3 to 0.49.5.
- [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.3...0.49.5)

---
updated-dependencies:
- dependency-name: sentry
  dependency-version: 0.49.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-11-03 12:57:18 +00:00
Dewi Roberts a80ec5ea18 web/admin: fix OAuth2 signing key selection (#26780)
* Change

* Tests

* Jason's changes
2026-11-03 12:35:21 +00:00
dependabot[bot] c7a0044336 core: bump library/nginx from 6e67f8e to 5ab5b0b in /website (#27473)
Bumps library/nginx from `6e67f8e` to `5ab5b0b`.

---
updated-dependencies:
- dependency-name: library/nginx
  dependency-version: 1.31.8-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-11-03 11:38:33 +00:00
dependabot[bot] 4bc86b87b5 core: bump jsonpatch from 1.36 to 1.38 (#27475)
Bumps [jsonpatch](https://github.com/stefankoegl/python-json-patch) from 1.36 to 1.38.
- [Release notes](https://github.com/stefankoegl/python-json-patch/releases)
- [Commits](https://github.com/stefankoegl/python-json-patch/compare/v1.36...1.38)

---
updated-dependencies:
- dependency-name: jsonpatch
  dependency-version: '1.38'
  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-11-03 08:25:56 +00:00
dependabot[bot] c35d7e469a core: bump aws-cdk-lib from 2.273.0 to 2.275.0 (#27474)
Bumps [aws-cdk-lib](https://github.com/aws/aws-cdk) from 2.273.0 to 2.275.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.273.0...v2.275.0)

---
updated-dependencies:
- dependency-name: aws-cdk-lib
  dependency-version: 2.275.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-11-03 08:23:42 +00:00
dependabot[bot] fc6c276b25 core: bump axllent/mailpit from v1.32.0 to v1.33.0 in /tests/e2e (#27471)
Bumps axllent/mailpit from v1.32.0 to v1.33.0.

---
updated-dependencies:
- dependency-name: axllent/mailpit
  dependency-version: v1.33.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-11-03 10:18:55 +02:00
dependabot[bot] 69969edc85 core: bump importlib-metadata from 9.0.1 to 9.1.0 (#27477)
Bumps [importlib-metadata](https://github.com/python/importlib_metadata) from 9.0.1 to 9.1.0.
- [Release notes](https://github.com/python/importlib_metadata/releases)
- [Changelog](https://github.com/python/importlib_metadata/blob/main/NEWS.rst)
- [Commits](https://github.com/python/importlib_metadata/compare/v9.0.1...v9.1.0)

---
updated-dependencies:
- dependency-name: importlib-metadata
  dependency-version: 9.1.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-11-03 10:17:59 +02:00
dependabot[bot] 863a7f1b3f core: bump cachetools from 7.2.6 to 7.2.7 (#27476)
Bumps [cachetools](https://github.com/tkem/cachetools) from 7.2.6 to 7.2.7.
- [Changelog](https://github.com/tkem/cachetools/blob/master/CHANGELOG.rst)
- [Commits](https://github.com/tkem/cachetools/compare/v7.2.6...v7.2.7)

---
updated-dependencies:
- dependency-name: cachetools
  dependency-version: 7.2.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-11-03 10:17:27 +02:00
dependabot[bot] dacf9cd98a core: bump astral-sh/uv from 0.13.6 to 0.13.7 in /lifecycle/container (#27472)
Bumps [astral-sh/uv](https://github.com/astral-sh/uv) from 0.13.6 to 0.13.7.
- [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.6...0.13.7)

---
updated-dependencies:
- dependency-name: astral-sh/uv
  dependency-version: 0.13.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-11-03 10:14:19 +02:00
Marcelo Elizeche Landó c10e86fa7c core: bump jsonpointer from 3.3 to v3.6 (#27223) 2026-11-03 10:12:32 +02:00
Teffen Ellis 7bc9d25f70 web/admin: keep earlier picks when assigning users to a group (#27468)
Confirming the "Select users" dialog replaced the pending list in the
"Assign Additional Users" form, so a second visit to the dialog dropped
the users picked in the first. Each confirm now merges its selection into
the pending list by primary key. The role assignment path shares the form.

The "Simple group" browser test now picks two users in separate visits to
the selection dialog and asserts both are members after assignment.

Fixes #27277
2026-11-02 23:17:26 +00:00
Teffen Ellis 39a7d8d4ed web: Keep brand form state after uploading a file (#27405)
* Open brand settings by default.

* Fix issue where refresh events bubble through dependent modals.
2026-11-02 21:46:32 +00:00
Dominic Roy 5dc7709431 website/docs: add password lockout 2026.11 release notes (#24801) 2026-11-02 20:36:44 +00:00
Dominic Roy 2e50b030d6 website/docs: document password lockout (#24799) 2026-11-02 20:05:31 +00:00
Dominic Roy b092dd76a2 web/admin: manage password lockout (#24798) 2026-11-02 19:41:46 +00:00
Dominic Roy 733d1315e0 stages/password: lock password login after failed attempts (#24794) 2026-11-02 19:01:30 +00:00
Dominic Roy 4f14fc58b5 web: share one brand CSS style sheet across elements (#27362)
Every AKElement built its own CSSStyleSheet from the brand's custom CSS,
so a page with N elements parsed the brand CSS N times and held N
copies. Lit's sheet cache never hit because createCSSResult wraps the
string in a new strings array each call. This hurts most when the brand
CSS inlines a font or image.

Build the sheet once and have every element and nested shadow root
adopt it. The cache is keyed on the CSS text so a re-read server
context, as injectBrand does in tests, still gets a matching sheet.
2026-11-02 18:22:22 +00:00
Dominic Roy ef6c7aade5 website: resolve links in the Markdown copies of docs pages (#27354) 2026-11-02 12:59:26 -05:00
Dominic Roy 23d587799f core: store passwords as authenticator devices (#24325)
* core: store passwords as authenticator devices

* core: address review feedback on password devices

* core: merge password device migration branches

* core: linearize password migrations and repair downgrade order

* core: simplify staged password accessors and saves

* core: update only the hash during password rehashing

* core: cover staged password writes and rollback

* stages/password: clarify device exclusions and verify single SSF events

* stages/user_write: persist password-only changes

* stages/user_write: format the password change snapshot

* core: load password dates with the user list

* core: return explicitly after saving a password device

* core: isolate password storage and preserve Django save semantics

* core: load password devices with nested user lists

* stages/password: regenerate the complete device schema in the base layer

* core: write passwords through the password device

Drop the PasswordUser adapter that staged password writes on the user
until save(). Callers now use PasswordDevice.set_password(),
set_password_from_hash() and set_unusable_password(), which write the
device immediately and then save the user, so outgoing sync and the
policy cache still see password changes.

User keeps read-only password and password_change_date properties
because property mappings (including the Google Workspace and Entra
system blueprints) and Django's session hash read them. Django's
password writes on User now raise instead of assigning the property, so
create_user(), `ak changepassword` and guardian's anonymous user go
through the device or skip the password.

The data migration copies passwords in Python with chunked_queryset and
skips unusable passwords, since a user without a device has no usable
password. It no longer copies passwords back on downgrade; the legacy
columns stay in place until a later release.

* sources/ldap: set password through PasswordDevice in AD error test
2026-11-02 11:57:18 -05:00
Teffen Ellis b606382aba web/flow: return to the base path after a Plex source error (#27315) 2026-11-02 16:47:50 +00:00
Teffen Ellis 23378da66e web/elements: keep dialog messages after the dialog closes (#27413)
* web/elements: keep dialog messages after the dialog closes

A dialog's messages render in its own container, above the modal backdrop.
Closing the dialog removed them, along with confirmations shown on submit.

- Move a closing dialog's messages to the next container: the dialog below, or the page
- Add `findMessageContainer()`, shared with `showMessage()`

* web/elements: remove the unused ak-message event listener

Every message container listened on `window` for `ak-message`, and never
stopped. Nothing dispatches the event. The listener kept each closed dialog's
container in memory.

- Remove the listener from `MessageContainer`
- Remove `AKMessageEvent`
2026-11-02 16:47:12 +00:00
Connor PeshekandDewi Roberts 5d82f6dbb6 stages/authenticator_webauthn: don't offer signature algorithms OpenSSL can't verify when FIPS is enabled (#27116)
* stages/authenticator_webauthn: don't offer signature algorithms OpenSSL can't verify, fixes WebAuthn under FIPS

* note fips mode enabled in error logs

* just make fips compatibility a static list

---------

Co-authored-by: Dewi Roberts <[email protected]>
2026-11-02 10:30:54 -06:00
Ken Sternberg 17462c41e7 root: Configure cspell to not print its progress messages (#27436)
Configure cspell to not print its progress messages (thousands and thousands of lines of files checked), as that obscured any actual error messages, but also ensure that it does display a summary message at the end of its run for auditing purposes.
2026-11-02 16:02:39 +00:00
Dominic RoyandJens L. 9b1f40a00d root: clear in-memory caches after test fixture setup (#27433)
* root: clear in-memory caches after test fixture setup

The first test's setup creates the test database, and its migrations
fill the system settings cache. When that takes longer than the cache
timeout, the test starts on a stale entry whose refresh runs on a
background thread. That thread's connection cannot see the test's
uncommitted writes, so the refresh undoes flags the test patched.

* Apply suggestion from @BeryJu

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

* sigh

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

---------

Signed-off-by: Jens L. <[email protected]>
Signed-off-by: Jens Langhammer <[email protected]>
Co-authored-by: Jens L. <[email protected]>
2026-11-02 15:20:48 +00:00
Hugh MessengerandJens L. 6919bf73ab outposts/ldap: apply provider changes to the cached binder on refresh (#27402)
In cached bind mode the refresh rebuilt the provider instance but kept
the previous session binder's direct binder, and that binder reads the
bind flow, the unbind flow, MFA support and the base DN from the
instance it was built with. A change to any of them on the provider
never reached a running outpost: it carried on executing the old bind
flow until the process was restarted, while the refresh log said the
new flow had been loaded. The cached results survived the refresh too,
so a bind refused under the old settings stayed refused, and one
accepted stayed accepted, for the life of its entry.

The direct binder is now always built from the new instance. The
session cache is carried over only when the settings that decide a
bind's outcome are unchanged; when one of them changes, the old cache
is stopped and a fresh one started, so every pair of credentials runs
the new flow once more and is cached again under it. The five-minute
refresh keeps the cache in the ordinary case; the cost lands only when
an administrator changed something, which is what the change was for.

Also fixes the comment on the caching line, which said the opposite of
what the code does: a result is cached whenever the bind itself
completed, refusals included; only a transport error is left uncached.

Tests: a refresh with unchanged settings keeps the cached sessions; a
changed bind flow, unbind flow, MFA setting or base DN discards them,
refusals included; and the direct binder answers for the new instance's
base DN after a refresh. The last two fail on the previous code.

Co-authored-by: Jens L. <[email protected]>
2026-11-02 15:15:37 +00:00
Emil Burzo 1cc011aab4 core: bump fips-python from 3.14.8 to 3.14.10, xmlsec from 1.3.17 to 1.3.18 (#27428) 2026-11-02 15:05:31 +00:00
Marcelo Elizeche Landó f59d67f498 core: bump microsoft-kiota-serialization-json from 1.12.0 to v1.16.0 (#27231) 2026-11-02 16:44:07 +02:00
Marcelo Elizeche Landó 24ca2d3fbe core: bump msgraph-core from 1.5.1 to v1.5.2 (#27236) 2026-11-02 16:43:12 +02:00
Marcelo Elizeche Landó 56539522b1 core: bump microsoft-kiota-serialization-text from 1.12.0 to v1.16.0 (#27233) 2026-11-02 16:43:09 +02:00
Marcelo Elizeche Landó a7ac77f9fe core: bump microsoft-kiota-serialization-multipart from 1.12.0 to v1.16.0 (#27232) 2026-11-02 16:42:28 +02:00
Marcelo Elizeche Landó 12f90e84ff core: bump microsoft-kiota-serialization-form from 1.12.0 to v1.16.0 (#27230) 2026-11-02 16:42:23 +02:00
Jens L. bee5e44322 enterprise/endpoints/connectors/agent: add PSSO state & de-register (#26212)
Signed-off-by: Jens Langhammer <[email protected]>

# Conflicts:
#	packages/client-ts/src/models/index.ts
2026-11-02 14:28:22 +00:00
Su-hyeon Forten Lee 534b06e8b9 providers/oauth2: use the Bearer scheme in WWW-Authenticate (#27390)
Signed-off-by: shlee1223 <[email protected]>
2026-11-02 12:38:07 +00:00
transifex-integration[bot]andauthentik-automation[bot] 536916132b translate: Updates for project authentik and language lv_LV (#27393)
* translate: Translate web/xliff/en.xlf in lv_LV

100% translated source file: 'web/xliff/en.xlf'
on 'lv_LV'.

* translate: Translate django.po in lv_LV

100% translated source file: 'django.po'
on 'lv_LV'.

* translate: normalize locale paths

Signed-off-by: authentik-automation[bot] <135050075+authentik-automation[bot]@users.noreply.github.com>

* translate: Translate web/xliff/en.xlf in lv_LV

100% translated source file: 'web/xliff/en.xlf'
on 'lv_LV'.

* translate: Translate django.po in lv_LV

100% translated source file: 'django.po'
on 'lv_LV'.

* translate: Translate web/xliff/en.xlf in lv_LV

100% translated source file: 'web/xliff/en.xlf'
on 'lv_LV'.

* translate: normalize locale paths

Signed-off-by: authentik-automation[bot] <135050075+authentik-automation[bot]@users.noreply.github.com>

---------

Signed-off-by: authentik-automation[bot] <135050075+authentik-automation[bot]@users.noreply.github.com>
Co-authored-by: transifex-integration[bot] <43880903+transifex-integration[bot]@users.noreply.github.com>
Co-authored-by: authentik-automation[bot] <135050075+authentik-automation[bot]@users.noreply.github.com>
2026-11-02 12:15:03 +00:00
dependabot[bot] 522ba65087 core: bump library/golang from fbb7ae4 to c65ecfe in /lifecycle/container (#27416)
core: bump library/golang in /lifecycle/container

Bumps library/golang from `fbb7ae4` to `c65ecfe`.

---
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-11-02 12:14:39 +00:00
dependabot[bot] b7a3a19bc3 core: bump library/node from 26.12.1-trixie-slim to 26.13.0-trixie-slim in /lifecycle/container (#27417)
core: bump library/node in /lifecycle/container

Bumps library/node from 26.12.1-trixie-slim to 26.13.0-trixie-slim.

---
updated-dependencies:
- dependency-name: library/node
  dependency-version: 26.13.0-trixie-slim
  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-11-02 12:14:34 +00:00
dependabot[bot] 3d2177afa4 core: bump library/node from 26.12.1-trixie to 26.13.0-trixie in /website (#27418)
core: bump library/node in /website

Bumps library/node from 26.12.1-trixie to 26.13.0-trixie.

---
updated-dependencies:
- dependency-name: library/node
  dependency-version: 26.13.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-11-02 12:14:27 +00:00
dependabot[bot] 241e4b467e ci: bump astral-sh/setup-uv from 10.3.2 to 10.3.3 in /.github/actions/setup (#27423)
ci: bump astral-sh/setup-uv in /.github/actions/setup

Bumps [astral-sh/setup-uv](https://github.com/astral-sh/setup-uv) from 10.3.2 to 10.3.3.
- [Release notes](https://github.com/astral-sh/setup-uv/releases)
- [Commits](https://github.com/astral-sh/setup-uv/compare/07a047e608db84b3d8c06cd9a7c7dcc9c355c18e...68559e99cc807c1eb7e9238fd43a15bba460eec2)

---
updated-dependencies:
- dependency-name: astral-sh/setup-uv
  dependency-version: 10.3.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-11-02 12:14:22 +00:00
dependabot[bot] 987a9b8a95 ci: bump taiki-e/install-action from 2.87.32 to 2.88.1 in /.github/actions/setup (#27424)
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.32 to 2.88.1.
- [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/5488ac5a951645ce95062214902ac4b6bc1a1037...68a389c788b2cd04016ce8c80ee23b80d2ab3d68)

---
updated-dependencies:
- dependency-name: taiki-e/install-action
  dependency-version: 2.88.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-11-02 12:14:17 +00:00
Emil Burzo 0667c27782 root: disable MPTCP on Go listeners (#27425) 2026-11-02 13:44:58 +02:00
dependabot[bot] 428e6b3fb2 core: bump pyasn1 from 0.6.4 to 0.6.5 (#27398)
Bumps [pyasn1](https://github.com/pyasn1/pyasn1) from 0.6.4 to 0.6.5.
- [Release notes](https://github.com/pyasn1/pyasn1/releases)
- [Changelog](https://github.com/pyasn1/pyasn1/blob/main/CHANGES.rst)
- [Commits](https://github.com/pyasn1/pyasn1/compare/v0.6.4...v0.6.5)

---
updated-dependencies:
- dependency-name: pyasn1
  dependency-version: 0.6.5
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-02 08:52:14 +00:00
dependabot[bot] 4cdc3ba23e core: bump uuid from 1.28.0 to 1.29.0 (#27422)
Bumps [uuid](https://github.com/uuid-rs/uuid) from 1.28.0 to 1.29.0.
- [Release notes](https://github.com/uuid-rs/uuid/releases)
- [Commits](https://github.com/uuid-rs/uuid/compare/v1.28.0...v1.29.0)

---
updated-dependencies:
- dependency-name: uuid
  dependency-version: 1.29.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-11-02 10:48:40 +02:00
dependabot[bot] b1db8669b0 core: bump msgraph-sdk from 1.64.0 to 1.65.0 (#27420)
Bumps [msgraph-sdk](https://github.com/microsoftgraph/msgraph-sdk-python) from 1.64.0 to 1.65.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.64.0...v1.65.0)

---
updated-dependencies:
- dependency-name: msgraph-sdk
  dependency-version: 1.65.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-11-02 10:47:18 +02:00
dependabot[bot] 4c491b2482 core: bump opentelemetry-propagator-b3 from 1.45.1 to 1.45.2 in the opentelemetry group (#27419)
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.1 to 1.45.2
- [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.1...v1.45.2)

---
updated-dependencies:
- dependency-name: opentelemetry-propagator-b3
  dependency-version: 1.45.2
  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-11-02 10:46:53 +02:00
Marcelo Elizeche Landó d6874b9e1a core: bump wcwidth from 0.8.3 to v0.9.4 (#27252) 2026-11-02 10:45:11 +02:00
Marcelo Elizeche Landó 71885a1e28 core: bump blessed from 1.49.0 to v1.52.0 (#27207) 2026-11-02 10:42:21 +02:00
dependabot[bot] 0d124f5095 core: bump github.com/go-openapi/runtime from 0.33.3 to 0.33.4 (#27414)
Bumps [github.com/go-openapi/runtime](https://github.com/go-openapi/runtime) from 0.33.3 to 0.33.4.
- [Release notes](https://github.com/go-openapi/runtime/releases)
- [Commits](https://github.com/go-openapi/runtime/compare/v0.33.3...v0.33.4)

---
updated-dependencies:
- dependency-name: github.com/go-openapi/runtime
  dependency-version: 0.33.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-11-02 10:40:02 +02:00
Dominic Roy a3de4cc458 web/admin: add a required actions card to the user page (#24850) 2026-11-01 22:06:16 +00:00
Dominic Roy 548cb61541 website/docs: add required actions to the 2026.11 release notes (#24848) 2026-11-01 21:24:32 +00:00
Dominic Roy d9fd839753 website/docs: document required actions (#24847)
* website/docs: document next actions on login

* website/docs: clarify required-action scope and recovery

* website/docs: explain required-action redirect limits

* website/docs: explain assigning next actions in user attributes

* website/docs: locate the advanced attributes editor

* website/docs: rename next actions to required actions

Actions now apply on the user's next request rather than at their next
login, and the user resumes the page or flow they were in afterwards.
Flows that redirect or send the user to a source can't be used, since
the action flow has to finish on its own.

* website/docs: document what required actions don't cover
2026-11-01 13:11:15 -05:00
Dominic RoyandSimonyi Gergő 1be557ed65 enterprise: add required actions for users (#24846)
* stages/user_login: restrict sessions with next actions

* core: return a fixed next-action validation error

* stages/user_login: keep malformed next actions restricted

* stages/user_login: preserve required flow plans on direct entry

* stages/user_login: preserve attribute updates during action completion

* stages/user_login: enforce next actions when adding an account

* stages/user_login: reuse Django routing for restricted sessions

* core: verify delegated next-action permissions

* stages/user_login: resolve required flows with Django in_bulk

* core: simplify next-action audit handling

* stages/redirect: retain required-action completion across flow handoffs

* stages/user_login: remove redundant next-action tests

* enterprise: own required-action enforcement and validation

* enterprise: simplify next-action audit changes

* stages/redirect: make cooperative initialization explicit

* core, enterprise, web: enforce required actions on every request

Review asked for three changes: pause and resume flows the way the
Source stage does instead of splicing a completion stage into other
flows, apply actions to sessions that already exist, and a clearer name.

The middleware now reads goauthentik.io/user/required-actions on every
authenticated request, so an action added to a logged-in user applies on
their next request and the User Login stage needs no hook. Starting an
action suspends what the user was doing: a flow in progress is kept on
the action's completion stage and restored afterwards, and any other
page is opened again. The Redirect stage hook is gone, so an action flow
can no longer hand off to another flow.

The set and removed events are dropped because the user's model_updated
event already records the attribute change. Validation only runs when
the value changes, so a deleted flow doesn't block unrelated edits.

* enterprise/required_actions: tighten validation and resumed requests

Reject flows that a logged-in user can never plan, such as the
unauthenticated recovery and enrollment flows, which would otherwise
lock the user out. Keep the body of a suspended POST in the session,
as the login redirect does, so a SAML POST binding still works once the
actions are done. Complete the action for the plan's pending user, so a
plan restored in another browser from an email link doesn't fail.

* set the pending user on action plans

Otherwise an Email stage can fail with "No pending user." and leave
the user stuck.

---------

Co-authored-by: Simonyi Gergő <[email protected]>
2026-11-01 12:42:44 -05:00
Ken SternbergandCopilot Autofix powered by AI 887869960a web/elements: ak-crontab (#26810)
* web/elements: formalize the timestamp display

## What

Update the timestamp display so that each component is labled, each feature has an external control made available through CSS custom properties.

The non-standard “true” default of “show-elapsed” has been reversed; it is now “hide-elapsed” and is treated correctly as a standard boolean attribute. The one place where this mattered has been updated correctly.

* Move constant to be, y'know, a constant.

* Potential fix for pull request finding 'Implicit operand conversion'

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

* web/elements: introduce the crontab component

## What

Provide a component that provides a textual representation for crontab entries.

## Why

Because I hate trying to interpret those things, and I can’t imagine I’m the only one.

* web/elements: formalize the timestamp display

## What

Update the timestamp display so that each component is labled, each feature has an external control made available through CSS custom properties.

The non-standard “true” default of “show-elapsed” has been reversed; it is now “hide-elapsed” and is treated correctly as a standard boolean attribute. The one place where this mattered has been updated correctly.

* Move constant to be, y'know, a constant.

* Potential fix for pull request finding 'Implicit operand conversion'

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

* web/elements: introduce the crontab component

## What

Provide a component that provides a textual representation for crontab entries.

## Why

Because I hate trying to interpret those things, and I can’t imagine I’m the only one.

* Spellcheckers.

* web/elements: introduce the crontab component

## What

Provide a component that provides a textual representation for crontab entries.

## Why

Because I hate trying to interpret those things, and I can’t imagine I’m the only one.

---------

Signed-off-by: Ken Sternberg <[email protected]>
Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
2026-10-30 16:15:20 -07:00
Jens L. 02b2212c1a policies: optimise policy engine for no policy or no cache (#27396)
* check pk first before doing expensive query

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

* dont write to cache if not reading from cache

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

* set gil_only false in pyroscope

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

* Revert "set gil_only false in pyroscope"

This reverts commit ca597736c2.

---------

Signed-off-by: Jens Langhammer <[email protected]>
2026-10-30 22:52:52 +00:00
Ken SternbergandCopilot Autofix powered by AI 428f06b6db web/elements: formalize the timestamp display (#26809)
* web/elements: formalize the timestamp display

## What

Update the timestamp display so that each component is labled, each feature has an external control made available through CSS custom properties.

The non-standard “true” default of “show-elapsed” has been reversed; it is now “hide-elapsed” and is treated correctly as a standard boolean attribute. The one place where this mattered has been updated correctly.

* Move constant to be, y'know, a constant.

* Potential fix for pull request finding 'Implicit operand conversion'

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

* web/elements: formalize the timestamp display

## What

Update the timestamp display so that each component is labled, each feature has an external control made available through CSS custom properties.

The non-standard “true” default of “show-elapsed” has been reversed; it is now “hide-elapsed” and is treated correctly as a standard boolean attribute. The one place where this mattered has been updated correctly.

* Move constant to be, y'know, a constant.

* Potential fix for pull request finding 'Implicit operand conversion'

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

* Spellcheckers.

---------

Signed-off-by: Ken Sternberg <[email protected]>
Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
2026-10-30 15:43:33 -07:00
Jens L. 77fe944589 lib/tracing: use BatchSpanProcessor (#27387)
Signed-off-by: Jens Langhammer <[email protected]>
2026-10-30 19:14:43 +00:00
Dewi Roberts 2e6d75d5f5 website/integrations: add planka sso requirement note (#27376)
Update index.mdx
2026-10-30 09:59:46 -04:00
dependabot[bot] 7905cc436a core: bump ruff from 0.17.2 to 0.17.3 (#27370)
Bumps [ruff](https://github.com/astral-sh/ruff) from 0.17.2 to 0.17.3.
- [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.17.2...0.17.3)

---
updated-dependencies:
- dependency-name: ruff
  dependency-version: 0.17.3
  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-30 08:33:40 +00:00
dependabot[bot] bd340bd17a core: bump cachetools from 7.2.5 to 7.2.6 (#27372)
Bumps [cachetools](https://github.com/tkem/cachetools) from 7.2.5 to 7.2.6.
- [Changelog](https://github.com/tkem/cachetools/blob/master/CHANGELOG.rst)
- [Commits](https://github.com/tkem/cachetools/compare/v7.2.5...v7.2.6)

---
updated-dependencies:
- dependency-name: cachetools
  dependency-version: 7.2.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-30 08:27:47 +00:00
dependabot[bot] 20c4f7b652 core: bump coverage[toml] from 7.16.2 to 7.17.0 (#27373)
Bumps [coverage[toml]](https://github.com/coveragepy/coveragepy) from 7.16.2 to 7.17.0.
- [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.2...7.17.0)

---
updated-dependencies:
- dependency-name: coverage[toml]
  dependency-version: 7.17.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-30 10:18:04 +02:00
dependabot[bot] 70597c2dc1 core: bump django from 5.2.17 to 5.2.18 (#27369)
Bumps [django](https://github.com/django/django) from 5.2.17 to 5.2.18.
- [Commits](https://github.com/django/django/compare/5.2.17...5.2.18)

---
updated-dependencies:
- dependency-name: django
  dependency-version: 5.2.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-10-30 10:10:01 +02:00
Marcelo Elizeche Landó 4517df06d3 core: bump google-api-core from 2.36.0 to v2.43.0 (#27214) 2026-10-30 09:44:19 +02:00
Marcelo Elizeche Landó 0416feba51 core: bump boto3 from 1.43.90 to v1.43.119 (#27208) 2026-10-30 09:43:44 +02:00
Marcelo Elizeche Landó e445f49e1d core: bump googleapis-common-protos from 1.75.3 to v1.76.0 (#27217) 2026-10-30 09:43:26 +02:00
Marcelo Elizeche Landó b34c7d79f0 core: bump msgpack from 1.2.3 to v1.2.4 (#27235) 2026-10-30 09:43:19 +02:00
Jens L. fa9abf12bb packages/django-dramatiq-postgres: limit task fetching (#27197)
* events: simplify execution of event rules/notifications

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

* remove policy engine changes

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

* separate pe

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

* sigh

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

* packages/django-dramatiq-postgres: limit task fetching

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

---------

Signed-off-by: Jens Langhammer <[email protected]>
2026-10-29 19:09:06 +00:00
Teffen Ellis 3f76e6abf9 web/admin: make flow execute links base-path aware (#27314) 2026-10-29 18:18:20 +00:00
Jens L. 1020466910 lib: fix capture_logs not thread safe (#27355)
Signed-off-by: Jens Langhammer <[email protected]>
2026-10-29 18:12:22 +00:00
Teffen Ellis 513ab3c99e web/user: keep configure URL query strings when adding next (#27313) 2026-10-29 17:34:01 +00:00
Jacob SachsandTeffen Ellis 3cfddf85be web/flow: refresh WebAuthn challenge on authentication retry (#26616)
* web/flow: refresh WebAuthn challenge on authentication retry

* web/tests: cover WebAuthn retry after challenge replacement across tabs

* web/flow: tidy WebAuthn retry refresh and drop redundant tests

---------

Co-authored-by: Teffen Ellis <[email protected]>
2026-10-29 17:32:53 +00:00
Dominic Roy 62d919f36e server, lifecycle: drop idle upstream connections before uvicorn does (#27192)
* server, lifecycle: drop idle upstream connections before uvicorn does

The server kept idle connections to uvicorn pooled for a minute, but
uvicorn closes them after gunicorn's keepalive of 2 seconds. A request
that reused a connection uvicorn was closing got reset after it was
sent, and the client received a 503 "authentik starting".

Drop idle connections a second before uvicorn's keep-alive runs out.
Raising gunicorn's keepalive above the pool timeout would also work,
but uvicorn before 0.53 keeps a connection open after a request with
`Connection: Close` and silently drops the next request on it, so on
2026.8 a longer keepalive would leave that connection in the pool for
a minute instead of 2 seconds.

* server, lifecycle: raise uvicorn keep-alive to 5 seconds
2026-10-29 16:49:58 +00:00
Dominic Roy 358eaba364 outposts: only write changed permissions, add endpoint to rebuild them (#26928)
* outposts: only write changed service account permissions

Closes: #26924

* outposts: add API endpoint to rebuild service account permissions

Saving an outpost no longer deletes and recreates every permission of
its service account, which was useful when troubleshooting a desync.
POST /outposts/instances/{uuid}/rebuild_permissions/ does that full
rebuild explicitly and requires permission to change the outpost.

* outposts: test that a missing permission keeps existing ones

* outposts: type and rename existing permission sets in build_user_permissions
2026-10-29 16:45:25 +00:00
Jens L. d0e544cc01 flows: fix planner not resolving stages causing extra queries (#27320)
* flows: fix planner not resolving stages causing extra queries

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

* fuckin bandit

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

---------

Signed-off-by: Jens Langhammer <[email protected]>
2026-10-29 16:17:22 +00:00
Dominic Roy 0dc918d7a2 outposts/proxy: honor X-Forwarded-Host in envoy forward auth (#26888)
* outposts/proxy: honor X-Forwarded-Host in envoy forward auth

The envoy handler built the post-login redirect from the raw Host
header, while the outpost picks the application with the ak-axum Host
extractor, which uses X-Forwarded-Host from trusted proxies. When a
front proxy rewrote :authority to an internal name, users landed on
that internal host after login. The Go outpost replaced the host with
X-Forwarded-Host for trusted proxies, so this broke in the Rust
rewrite.

Use the same extractor for the redirect target. Untrusted peers still
cannot pick the redirect host.

Closes: #26867

* outposts/proxy: drop envoy handler tests that repeat ak-axum coverage

* outposts/proxy: test that envoy forward auth uses the forwarded host

The envoy_forward_target unit tests pass a host string directly, so
they still pass if handle_envoy goes back to reading the raw Host
header. Drive the handler through host_middleware with a trusted
proxy instead. The untrusted-peer case stays out because ak-axum's
Host extractor tests already cover it.
2026-10-29 11:53:58 -04:00
Dewi Roberts aeed272ae3 website/docs: Update wording for internal and external users (#27345)
Update wording for internal and external users
2026-10-29 15:41:20 +00:00
Dominic Roy 2c34c1efb3 server: strip hop-by-hop headers before forwarding to the application (#27191)
The server passed hop-by-hop headers such as `Connection` through to
uvicorn. They describe the client's connection to the server, and
RFC 9110 requires proxies to remove them, as the Go server's reverse
proxy did. Passing `Connection: Close` on made uvicorn before 0.53
keep the upstream connection open and silently drop the next request
sent on it, which uvicorn 0.53 and hyper 1.12 now avoid.

Remove them, and the headers `Connection` names, before adding our own
forwarding headers. WebSocket upgrades keep them for the handshake.
2026-10-29 11:35:47 -04:00
Dominic Roy 560f14ad1f enterprise/lifecycle: record each review and its note as an event (#27286)
review_attested was defined with object lifecycle management but never
emitted, so a reviewer's note on an access review reached no review
event. Submitting a review now records review_attested for the
reviewer, with the note and the reviewed object.
2026-10-29 11:30:21 -04:00
Dominic Roy a96ef0eb3d lib/sync/outgoing: report conflicting objects instead of failing sync (#27287)
When a remote system answered 409 and the provider couldn't link the
existing object, ObjectExistsSyncException escaped the sync task. The
task failed with an error that named no object and said nothing about
how to resolve it, the rest of the page was never synced, and the full
sync failed before it synced groups and cleaned up. SCIM made it worse:
a search response that wasn't a ListResponse raised AttributeError and
hid the conflict.

Full, direct, delete, and membership sync now log a warning with the
object and the remote system's response, and continue. A conflict also
says what to change. Errors that don't belong to one object, from
discovery or cleanup, end the full sync with a task error, as StopSync
already did.

Several errors could not reach that log. StopSync never set the
response that str() reads, so printing it raised AttributeError, and
Google Workspace passed two arguments to exceptions that take one, so
every 400 raised TypeError. Entra ID turned every Graph error into
StopSync before checking its status, so its conflict and re-create
handling never ran. It now maps 400, 404, and 409 like the other
providers, keeps Graph's error message, and no longer compares
odata_count, which Graph only returns when a count is requested.

Linking after a conflict now only links the matching object. SCIM
checks the returned userName or displayName, since some servers ignore
the filter, and Google Workspace checks the primary address, so an
address held by another kind of object or an alias is reported instead
of linked. Removing a member who is already gone counts as done.

Closes: #26904
2026-10-29 11:29:40 -04:00
Dominic Roy 9a68e73d58 outposts, internal/outpost: keep the web path when outposts connect to authentik (#27290)
With authentik under AUTHENTIK_WEB__PATH, outposts could not reach it:

- The RAC outpost built its session websocket URL from the API client's
  scheme and host only, so it dialed /ws/outpost_rac/... and got a 404,
  while the control websocket already kept the path. Both now go
  through one dialer, which also gives the session websocket the unix
  socket support and query parameters of the control websocket.
- The API base was the path of AUTHENTIK_HOST with "api/v3" appended, so
  a path without a trailing slash, such as /authentik, became
  /authentikapi/v3. The websockets already joined the path correctly.
- The default outpost config, which the admin interface pre-fills for
  new outposts, set authentik_host to the server root.

Closes: #26803
2026-10-29 11:24:36 -04:00
Dominic Roy c8585f5238 web: keep the web path in URLs the interfaces build (#27291)
Some URLs were built from the page's origin instead of the web base
path, so with authentik under AUTHENTIK_WEB__PATH they pointed outside
of authentik: the RAC tunnel websocket, the flow "Execute" buttons,
invitation links, the AUTHENTIK_HOST shown in the outpost deployment
info, and the event map, about dialog and email preview assets. The RAC
websocket also missed the session cookie, which is scoped to the web
path, so authentik refused it even where a proxy rewrote the path.

Closes: #26803
2026-10-29 11:23:46 -04:00
Dominic RoyandJens L. 612a4435b4 website/docs: document exchanging a token for a SAML response (#27311)
* website/docs: document exchanging a token for a SAML response

* Update website/docs/add-secure-apps/providers/oauth2/token_exchange.mdx

Co-authored-by: Jens L. <[email protected]>
Signed-off-by: Dominic Roy <[email protected]>

---------

Signed-off-by: Dominic Roy <[email protected]>
Co-authored-by: Jens L. <[email protected]>
2026-10-29 15:13:27 +00:00
Jens L. 3f6a13c45a policies: optimize count in engine (#27322)
* policies: optimize count in engine

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

* optimize loading policy types

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

---------

Signed-off-by: Jens Langhammer <[email protected]>
2026-10-29 14:56:19 +00:00
Joel Town RoadandJens L. 7d4eabffb3 server: quiet health_live warn when upstream socket not ready (#26741)
* fix(server): quiet health_live warn when upstream socket not ready

Before the Unix socket exists, health_live (and the analogous path in
the worker) called the upstream via hyper_util's legacy Client.  A
connect failure with ENOENT (No such file or directory) was logged at
warn level, producing false-positive production warnings from the
in-process healthcheck during every normal startup.

Add a small helper  that walks the error's
source chain looking for an  with .
In  (server and worker), use it to downgrade that
specific case to ; all other connect/request failures continue
to log at  so real outages remain visible.

The fix still returns Err so the health endpoint correctly reports
not-live until the socket is up — it only adjusts the log level for
the expected startup race.

Signed-off-by: hippi345 <[email protected]>

* fix(server): suppress AppError warn for health_live on startup ENOENT

When the upstream Unix socket does not yet exist, the health_live
handler in src/server/core.rs used to call server.health_live().await?
which converted the eyre::Report into AppError.  AppError::into_response
unconditionally logs warn!(err = ?self.0, "error occurred"), producing a
second spurious warning on top of the one already silenced in the client
layer.

Replace the await? with an explicit match.  A Connect/NotFound error
(socket not ready) is now logged at debug and the handler returns
SERVICE_UNAVAILABLE directly, bypassing AppError entirely.  All other
errors continue to log at warn and return SERVICE_UNAVAILABLE; no error
is silently swallowed.

Apply the same debug/warn split to the worker healthcheck handler
(src/worker/healthcheck.rs), which also logged warn unconditionally in
its Err arm.  Expose is_connect_not_found as pub(crate) in both
server/mod.rs and worker/mod.rs so the respective handler files can
import it.

Signed-off-by: hippi345 <[email protected]>

* dedupe

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

* format

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

---------

Signed-off-by: hippi345 <[email protected]>
Signed-off-by: Jens Langhammer <[email protected]>
Co-authored-by: Jens L. <[email protected]>
2026-10-29 14:54:53 +00:00
Jens L. a47b4ad1ff packages/django-dramatiq-postgres: fix prometheus-related exception in tests (#27090)
* packages/django-dramatiq-postgres: fix prometheus-related exception in tests

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

* fix

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

---------

Signed-off-by: Jens Langhammer <[email protected]>
2026-10-29 14:53:57 +00:00
Jens L. 121dfe6eb3 website: remove docsmg (#27344)
if we ever need this again it'll be in the history

Signed-off-by: Jens Langhammer <[email protected]>
2026-10-29 14:52:11 +00:00
Marcelo Elizeche Landó a2f99cae2a core: bump pycparser from 3.0 to v3.12 (#27243) 2026-10-29 16:15:54 +02:00
dependabot[bot] 2bc3067b8a core: bump pyroscope-io from 1.3.0 to 1.4.0 (#27337)
Bumps pyroscope-io from 1.3.0 to 1.4.0.

---
updated-dependencies:
- dependency-name: pyroscope-io
  dependency-version: 1.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-10-29 14:03:28 +00:00
Dominic Roy c4aed255df blueprints: reapply when !Env values change and key the hashed values (#26932)
* blueprints: reapply when `!Env` or `!File` values change

The values are keyed with the secret key before they go into the hash, since
the hash is visible in the API and a plain hash of a short secret could be
guessed. Blueprints without these tags keep their current hash.

Closes: #26925

* website/docs: note that blueprints reapply when `!Env` or `!File` values change
2026-10-29 13:01:05 +00:00
dependabot[bot] 9e8e930507 core: bump sentry-sdk from 2.72.0 to 2.73.0 (#27336)
Bumps [sentry-sdk](https://github.com/getsentry/sentry-python) from 2.72.0 to 2.73.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.72.0...2.73.0)

---
updated-dependencies:
- dependency-name: sentry-sdk
  dependency-version: 2.73.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-29 13:00:02 +00:00
dependabot[bot] 19704222be core: bump kubernetes from 36.0.3 to 37.0.1 (#27161)
Bumps [kubernetes](https://github.com/kubernetes-client/python) from 36.0.3 to 37.0.1.
- [Release notes](https://github.com/kubernetes-client/python/releases)
- [Changelog](https://github.com/kubernetes-client/python/blob/master/CHANGELOG.md)
- [Commits](https://github.com/kubernetes-client/python/compare/v36.0.3...v37.0.1)

---
updated-dependencies:
- dependency-name: kubernetes
  dependency-version: 37.0.1
  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-29 12:45:51 +00:00
dependabot[bot] 45d3a4dfee core: bump goauthentik/fips-debian from 645e4cc to d363011 in /lifecycle/container (#27333)
core: bump goauthentik/fips-debian in /lifecycle/container

Bumps goauthentik/fips-debian from `645e4cc` to `d363011`.

---
updated-dependencies:
- dependency-name: goauthentik/fips-debian
  dependency-version: trixie-slim-fips
  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-29 12:38:17 +00:00
transifex-integration[bot]andauthentik-automation[bot] f8dd76a90b translate: Updates for project authentik and language ca_ES (#27150)
* translate: Translate web/xliff/en.xlf in ca_ES

100% translated source file: 'web/xliff/en.xlf'
on 'ca_ES'.

* translate: normalize locale paths

Signed-off-by: authentik-automation[bot] <135050075+authentik-automation[bot]@users.noreply.github.com>

---------

Signed-off-by: authentik-automation[bot] <135050075+authentik-automation[bot]@users.noreply.github.com>
Co-authored-by: transifex-integration[bot] <43880903+transifex-integration[bot]@users.noreply.github.com>
Co-authored-by: authentik-automation[bot] <135050075+authentik-automation[bot]@users.noreply.github.com>
2026-10-29 12:12:21 +00:00
transifex-integration[bot]andauthentik-automation[bot] 592c941f8a translate: Updates for project authentik and language sv_SE (#27317)
* 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: normalize locale paths

Signed-off-by: authentik-automation[bot] <135050075+authentik-automation[bot]@users.noreply.github.com>

---------

Signed-off-by: authentik-automation[bot] <135050075+authentik-automation[bot]@users.noreply.github.com>
Co-authored-by: transifex-integration[bot] <43880903+transifex-integration[bot]@users.noreply.github.com>
Co-authored-by: authentik-automation[bot] <135050075+authentik-automation[bot]@users.noreply.github.com>
2026-10-29 12:11:27 +00:00
Dominic Roy dbf9cc2390 enterprise/requests: record requester and reviewer notes on events (#27285)
The access request events only referenced the request, so the notes a
requester entered in the request flow and the notes reviewers left on
an approval or denial never reached the event log. The request is
created with auditing suppressed, so the requester's notes were not in
any event at all.

access_request_created now carries requester_data. The approved and
denied events carry every reviewer's decision with its notes, so
earlier approvers of a multi-reviewer rule are kept too. The approved,
denied and revoked events also resolve their targets to the
application or entitlement instead of the bare policy binding model.

Closes: #27185
2026-10-29 12:05:49 +00:00
Emil BurzoandJens L. fcf1eecac5 ci: ignore django major updates so dependabot opens 5.2.x patch PRs (#27307)
* ci: ignore django major updates so dependabot opens 5.2.x patch PRs

* 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-10-29 12:02:38 +00:00
dependabot[bot] a6dd7057fd ci: bump taiki-e/install-action from 2.87.31 to 2.87.32 in /.github/actions/setup (#27326)
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.31 to 2.87.32.
- [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/1e29709c0ec63babbe8f266397a465f29a825f91...5488ac5a951645ce95062214902ac4b6bc1a1037)

---
updated-dependencies:
- dependency-name: taiki-e/install-action
  dependency-version: 2.87.32
  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-29 11:20:56 +00:00
dependabot[bot] f20fc7e789 core: bump goauthentik/fips-debian from b97a9f4 to 645e4cc in /lifecycle/container (#21066)
core: bump goauthentik/fips-debian in /lifecycle/container

Bumps goauthentik/fips-debian from `b97a9f4` to `645e4cc`.

---
updated-dependencies:
- dependency-name: goauthentik/fips-debian
  dependency-version: trixie-slim-fips
  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-29 11:01:44 +00:00
dependabot[bot] 5cac608c47 core: bump tokio from 1.53.3 to 1.54.1 (#27324)
Bumps [tokio](https://github.com/tokio-rs/tokio) from 1.53.3 to 1.54.1.
- [Release notes](https://github.com/tokio-rs/tokio/releases)
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.53.3...tokio-1.54.1)

---
updated-dependencies:
- dependency-name: tokio
  dependency-version: 1.54.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-29 08:07:03 +00:00
dependabot[bot] 397b2f9d3d core: bump cachetools from 7.2.4 to 7.2.5 (#27325)
Bumps [cachetools](https://github.com/tkem/cachetools) from 7.2.4 to 7.2.5.
- [Changelog](https://github.com/tkem/cachetools/blob/master/CHANGELOG.rst)
- [Commits](https://github.com/tkem/cachetools/compare/v7.2.4...v7.2.5)

---
updated-dependencies:
- dependency-name: cachetools
  dependency-version: 7.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-29 09:54:07 +02:00
dependabot[bot] fedae9dc0a core: bump aws-lc-rs from 1.18.2 to 1.19.0 (#27323)
Bumps [aws-lc-rs](https://github.com/aws/aws-lc-rs) from 1.18.2 to 1.19.0.
- [Release notes](https://github.com/aws/aws-lc-rs/releases)
- [Commits](https://github.com/aws/aws-lc-rs/compare/v1.18.2...v1.19.0)

---
updated-dependencies:
- dependency-name: aws-lc-rs
  dependency-version: 1.19.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-29 09:53:08 +02:00
Jens L. 98c4b2866e root: improve middleware signal handling (#27196)
Signed-off-by: Jens Langhammer <[email protected]>
2026-10-29 01:52:01 +00:00
Jens L. c89fff5329 root: lazy imports for heavy modules (#27312)
* root: lazy imports for heavy modules

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

* ldap3 too

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

* fix outpost controllers

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

* fix xmlsec

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

---------

Signed-off-by: Jens Langhammer <[email protected]>
2026-10-28 19:47:21 +00:00
Dewi RobertsandDominic R 236e0ea909 website/docs: aws agent integration udpates (#27279)
* Update docs

* docs: !

* Address Jens' comments

* Update aws.mdx

---------

Co-authored-by: Dominic R <[email protected]>
2026-10-28 16:57:59 +00:00
Dominic Roy 54219d24e4 website/docs: document brand and system settings cache timeouts (#27310) 2026-10-28 16:21:18 +00:00
Marcelo Elizeche Landó e36f411840 providers/oauth2: fix authorization error routing and encoding (#27295) 2026-10-28 12:53:46 -03:00
dependabot[bot] b3a7d0b5f3 core: bump notify from 8.2.0 to 8.2.1 (#27299)
Bumps [notify](https://github.com/notify-rs/notify) from 8.2.0 to 8.2.1.
- [Release notes](https://github.com/notify-rs/notify/releases)
- [Changelog](https://github.com/notify-rs/notify/blob/notify-8.2.1/CHANGELOG.md)
- [Commits](https://github.com/notify-rs/notify/compare/notify-8.2.0...notify-8.2.1)

---
updated-dependencies:
- dependency-name: notify
  dependency-version: 8.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-28 15:06:00 +00:00
Teffen Ellis b579bb5c92 ci: fix changelog URLs in release workflow (#27276) 2026-10-28 15:05:11 +00:00
authentik-automation[bot] 0df71b7948 core, web: update translations (#27294)
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-28 15:04:14 +00:00
Emil Burzo 8b2496a4bc core: bump goauthentik/fips-debian from 7726387 to b97a9f4 in /lifecycle/container (#27306) 2026-10-28 13:18:40 +00:00
Emil Burzo c7020dff77 lifecycle/container: drop no-op curl purge (#27305) 2026-10-28 12:40:20 +00:00
Dominic Roy effa9e40b7 website/docs: document how property mapping results are merged (#27284) 2026-10-28 09:37:55 +00:00
Dominic Roy f04935ea2f website/docs: providers: document how sync conflicts are reported (#27288)
Describe when the SCIM, Google Workspace, and Entra ID providers link
an object that already exists in the remote system, what the sync task
logs when they can't, and how to resolve the conflict.
2026-10-28 09:32:20 +00:00
Marcelo Elizeche Landó 71117f1614 core: bump setuptools from 84.1.0 to v84.2.1 (#27248) 2026-10-28 10:00:02 +02:00
Marcelo Elizeche Landó 605faf5c6c core: bump jsii from 1.140.0 to v1.142.0 (#27222) 2026-10-28 09:59:42 +02:00
dependabot[bot] cf58c7e8fb core: bump goauthentik/platform-ssh from 26.04-ak-0.72.4 to 26.04-ak-0.72.5 in /tests/e2e (#27297)
core: bump goauthentik/platform-ssh in /tests/e2e

Bumps goauthentik/platform-ssh from 26.04-ak-0.72.4 to 26.04-ak-0.72.5.

---
updated-dependencies:
- dependency-name: goauthentik/platform-ssh
  dependency-version: 26.04-ak-0.72.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-28 09:56:25 +02:00
dependabot[bot] a442a0a692 core: bump goauthentik/selenium from 155.0-ak-0.72.4 to 155.0-ak-0.72.5 in /tests/e2e (#27296)
core: bump goauthentik/selenium in /tests/e2e

Bumps [goauthentik/selenium](https://github.com/SeleniumHQ/docker-selenium) from 155.0-ak-0.72.4 to 155.0-ak-0.72.5.
- [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: 155.0-ak-0.72.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-28 09:55:50 +02:00
Jacob Sachs 9bbdfd9ee0 providers/scim: scope-aware adoption (#26174)
* initial attempt at SCIM scope fix

* providers/scim: use SystemSettings in discovery tests
2026-10-27 16:14:19 -04:00
Jacob Sachs f38ea3da34 sources/ldap: respect accountExpires attributes (#26135)
* inital attempt to support ldap account expiration

* prefer MicrosoftActiveDirectory helpers

* sources/ldap: extract account status aggregation from user sync
2026-10-27 16:14:02 -04:00
5def7a7497 web/flows: never let continuous login block the final redirect (#26269)
* never let continuous login block the final redirect

The final redirect awaits continuous-login orchestration and the exit
bookkeeping before navigating, so any error or hang there leaves the
page on the spinner after the server has already finished the flow.
In Google's Android account setup WebView, localStorage is null and
the orchestrator throws (#23660, #26267).

- Catch and log orchestration errors in RedirectStage, then always
  navigate.
- Return a copy from discoverTabs(). waitForTabExit() rediscovers
  while the leader iterates the live Set, and entries re-added during
  for...of are visited again, so a follower that never exits was
  resumed forever.
- Resolve the wait when rediscovery rejects in the timer callback, and
  release the tab lock in a finally block.

* web/flow: elect continuous-login resume leader with a Web Lock

Replace the hand-rolled localStorage lock — a non-atomic check-then-set
guarded by a tab-liveness heuristic — with navigator.locks. `ifAvailable`
gives immediate leader election with no double-leader race, and the
browser releases the lock on navigation or close, so there is no stale
lock to reap and no manual cleanup.

* web/test: cover continuous-login multi-tab resume

Drive two real tabs in one browser context: authenticate in the leader
and assert the follower leaves the identification stage on its own. The
global flag is enabled in beforeAll and restored in afterAll; the file
carries the highest numeric prefix and runs serially so it does not race
the parallel login suite.

* Refine comments.

* web/test: align continuous-login e2e with suite conventions

Move the global-flag toggle into an e2e/ helper (setInstanceFlag) so the
test stops hand-constructing fixtures inline, and confirm the settings
save through its success toast instead of matching the settings network
response — keeping the flow on the UI like the rest of the suite.

* web/test: pad the continuous-login visibility assertions

* web/flow: rework continuous-login unit tests around the Web Lock

* web/test: wait for each tab to see the continuous-login flag

* web: share server-context document readers via @goauthentik/core/document

* web/flow: share a brand injection helper across continuous-login tests

* Clean up comment.

---------

Co-authored-by: Teffen Ellis <[email protected]>
Co-authored-by: Teffen Ellis <[email protected]>
2026-10-27 18:31:14 +00:00
Dominic Roy a1e049bae8 website: document password hash import restrictions (#24235)
* website/docs: document password hash import policy

* website/docs: document password salt entropy estimate

* website/docs: use password hash import settings terminology
2026-10-27 16:41:21 +00:00
Dominic RoyandSimonyi Gergő aa137a9099 core: restrict imported password hashers (#24234)
* core: restrict imported password hashers

* hmmm

* apply suggestions from aug25

* Gergo's comments

* api: remove password hash save error handling

* root: define password hash import algorithms

* api: list accepted password hash algorithms

* core: rename password hash override audit fact

* core: use Django password hasher update checks

* api: clarify password hash parameter errors

* core: stop translating bootstrap hash errors

* core: use password hashing settings terminology

* core: remove redundant password hash tests

* core: configure allowed password hashers

* events: record password hash overrides only

* core: default password hash override state

* core: clarify password hash validation flow

* fix lint

* core: remove unused API test import

* repharse salt error message

Since we can't know the alphabet with certainty, we can't know the
entropy with certainty either.

* simplify tests

This is probably enough and is less brittle.

* simplify password hash validation

* packages/client-ts: regenerate

---------

Co-authored-by: Simonyi Gergő <[email protected]>
2026-10-27 16:16:26 +00:00
authentik-automation[bot] c40dc3fe84 core, web: update translations (#27148)
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-27 15:43:15 +00:00
Andrew Berry 6c093564d5 server: retry requests on connections closed by a recycled worker (#27275)
When gunicorn recycles a worker after max_requests, the worker closes its
idle keep-alive connections. A request the server had already sent on one
of those pooled connections failed with a connection reset or broken pipe,
and was answered with a 503 "authentik starting" even though gunicorn was
healthy.

Retry such requests once on a new connection when they are safe (GET,
HEAD, OPTIONS, TRACE) and have no body, as Go's net/http transport did
for the previous server, and log upstream errors that still end in a 503.

Fixes #26274

Claude-Session: https://claude.ai/code/session_01WX2DCUMd7PSr17cXK69vQF
2026-10-27 15:34:25 +00:00
Dominic Roy aa020fd63f packages/django-postgres-cache, flows: count cache keys in the database (#25808)
* flows: count cache keys in the database

* fix lint

* flows: count cache entries without extending the cache backend

* packages/django-postgres-cache, flows: add keys_count to the cache backend

keys() is already a method of our backend rather than Django's cache
API, so counting belongs next to it instead of in a direct CacheEntry
query in the flow API. Both methods share one filter, so a count always
matches the length of the key list for the same pattern and version.

* packages/django-postgres-cache: type keys_count test against DatabaseCache
2026-10-27 14:31:52 +00:00
Jens L. 980d4dee74 events: simplify execution of event rules/notifications (#26873)
* events: simplify execution of event rules/notifications

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

* remove policy engine changes

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

* separate pe

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

* sigh

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

---------

Signed-off-by: Jens Langhammer <[email protected]>
2026-10-27 13:45:36 +00:00
dependabot[bot] 71e8d5b8b6 core: bump github.com/pires/go-proxyproto from 0.15.0 to 0.16.0 (#27260)
Bumps [github.com/pires/go-proxyproto](https://github.com/pires/go-proxyproto) from 0.15.0 to 0.16.0.
- [Release notes](https://github.com/pires/go-proxyproto/releases)
- [Commits](https://github.com/pires/go-proxyproto/compare/v0.15.0...v0.16.0)

---
updated-dependencies:
- dependency-name: github.com/pires/go-proxyproto
  dependency-version: 0.16.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-27 12:54:32 +00:00
dependabot[bot] f1f55b0b93 core: bump goauthentik/platform-ssh from 26.04-ak-0.72.3 to 26.04-ak-0.72.4 in /tests/e2e (#27263)
core: bump goauthentik/platform-ssh in /tests/e2e

Bumps goauthentik/platform-ssh from 26.04-ak-0.72.3 to 26.04-ak-0.72.4.

---
updated-dependencies:
- dependency-name: goauthentik/platform-ssh
  dependency-version: 26.04-ak-0.72.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-27 11:41:19 +00:00
dependabot[bot] 9eb7c1123f core: bump goauthentik/selenium from 155.0-ak-0.72.3 to 155.0-ak-0.72.4 in /tests/e2e (#27261)
core: bump goauthentik/selenium in /tests/e2e

Bumps [goauthentik/selenium](https://github.com/SeleniumHQ/docker-selenium) from 155.0-ak-0.72.3 to 155.0-ak-0.72.4.
- [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: 155.0-ak-0.72.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-27 11:40:25 +00:00
dependabot[bot] a16e4fbf4c core: bump astral-sh/uv from 0.13.5 to 0.13.6 in /lifecycle/container (#27264)
Bumps [astral-sh/uv](https://github.com/astral-sh/uv) from 0.13.5 to 0.13.6.
- [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.5...0.13.6)

---
updated-dependencies:
- dependency-name: astral-sh/uv
  dependency-version: 0.13.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-27 11:40:06 +00:00
dependabot[bot] 831997277c core: bump jsonpatch from 1.35 to 1.36 (#27269)
Bumps [jsonpatch](https://github.com/stefankoegl/python-json-patch) from 1.35 to 1.36.
- [Release notes](https://github.com/stefankoegl/python-json-patch/releases)
- [Commits](https://github.com/stefankoegl/python-json-patch/compare/v1.35...v1.36)

---
updated-dependencies:
- dependency-name: jsonpatch
  dependency-version: '1.36'
  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-27 11:39:33 +00:00
KetchupZandDewi Roberts d428a99d8e outposts: refresh channel groups on hello (#27136)
Co-authored-by: Dewi Roberts <[email protected]>
2026-10-27 11:26:04 +00:00
dependabot[bot] 54230000db core: bump certifi from 2026.10.19 to 2026.10.23 (#27266)
Bumps [certifi](https://github.com/certifi/python-certifi) from 2026.10.19 to 2026.10.23.
- [Commits](https://github.com/certifi/python-certifi/compare/2026.10.19...2026.10.23)

---
updated-dependencies:
- dependency-name: certifi
  dependency-version: 2026.10.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-27 11:23:54 +00:00
Marcelo Elizeche Landó 76caff2dea core: bump pluggy from 1.6.0 to v1.7.0 (#27238) 2026-10-27 10:11:58 +02:00
Marcelo Elizeche Landó 18e34f5f96 core: bump markupsafe from 3.0.3 to v3.0.4 (#27225) 2026-10-27 10:11:49 +02:00
Marcelo Elizeche Landó da32cba5ea core: bump httptools from 0.8.0 to v0.9.0 (#27219) 2026-10-27 10:11:46 +02:00
Marcelo Elizeche Landó 6242343d0d core: bump iniconfig from 2.3.0 to v2.3.1 (#27221) 2026-10-27 10:11:16 +02:00
Marcelo Elizeche Landó 527d782bb7 core: bump ast-serialize from 0.11.0 to v0.13.1 (#27205) 2026-10-27 10:11:09 +02:00
Marcelo Elizeche Landó 47865deea3 core: bump google-auth-httplib2 from 0.4.2 to v0.4.4 (#27216) 2026-10-27 10:11:06 +02:00
Marcelo Elizeche Landó ecea9e3f9e core: bump wrapt from 2.4.0 to v2.5.1 (#27254) 2026-10-27 10:04:44 +02:00
Marcelo Elizeche Landó c373184d43 core: bump uvloop from 0.22.1 to v0.23.0 (#27250) 2026-10-27 10:04:37 +02:00
Marcelo Elizeche Landó 54528dc899 core: bump proto-plus from 1.28.4 to v1.29.0 (#27240) 2026-10-27 10:04:21 +02:00
Marcelo Elizeche Landó 38070dd9b1 core: bump protobuf from 7.36.1 to v7.36.2 (#27241) 2026-10-27 10:04:18 +02:00
Marcelo Elizeche Landó eef0431a51 core: bump platformdirs from 4.11.8 to v4.13.5 (#27237) 2026-10-27 10:04:12 +02:00
Marcelo Elizeche Landó 0544d38293 core: bump greenlet from 3.5.5 to v3.5.6 (#27218) 2026-10-27 10:03:52 +02:00
Marcelo Elizeche Landó 117fdaff9a core: bump rpds-py from 2026.6.3 to v2026.9.1 (#27246) 2026-10-27 10:03:47 +02:00
Marcelo Elizeche Landó 814f505ca1 core: bump zope-interface from 8.6 to v8.7 (#27256) 2026-10-27 10:03:37 +02:00
Marcelo Elizeche Landó 138a37d66f core: bump pyparsing from 3.3.2 to v3.3.3 (#27244) 2026-10-27 10:03:35 +02:00
Marcelo Elizeche Landó 6686097cdf core: bump propcache from 0.5.2 to v0.5.4 (#27239) 2026-10-27 10:03:32 +02:00
Marcelo Elizeche Landó 465f4431a7 core: bump watchfiles from 1.2.0 to v1.3.0 (#27251) 2026-10-27 10:03:27 +02:00
Marcelo Elizeche Landó cd49bf348c core: bump ua-parser-builtins from 202606 to v202610 (#27249) 2026-10-27 10:03:23 +02:00
Marcelo Elizeche Landó 2fcfa9f3c7 core: bump s3transfer from 0.19.2 to v0.19.3 (#27247) 2026-10-27 10:03:20 +02:00
Marcelo Elizeche Landó 5e58666565 core: bump zipp from 4.1.0 to v4.1.2 (#27255) 2026-10-27 10:03:16 +02:00
Marcelo Elizeche Landó ecd2482047 core: bump websockets from 17.1 to v17.3 (#27253) 2026-10-27 10:03:14 +02:00
Marcelo Elizeche Landó 93454396d2 core: bump django-stubs-ext from 6.1.0 to v6.1.2 (#27212) 2026-10-27 10:03:11 +02:00
Marcelo Elizeche Landó b44537510d core: bump python-dotenv from 1.2.3 to v1.2.4 (#27245) 2026-10-27 10:03:07 +02:00
Marcelo Elizeche Landó c614d735c7 core: bump google-auth from 2.57.1 to v2.62.0 (#27215) 2026-10-27 10:03:04 +02:00
Marcelo Elizeche Landó f4d0ce5c7c core: bump dnspython from 2.8.0 to v2.9.0 (#27213) 2026-10-27 10:03:02 +02:00
Marcelo Elizeche Landó f88bbbfa92 core: bump psycopg-pool from 3.3.1 to v3.3.3 (#27242) 2026-10-27 10:02:57 +02:00
Marcelo Elizeche Landó 57ba7b3519 core: bump librt from 0.15.0 to v0.16.0 (#27224) 2026-10-27 10:02:55 +02:00
Marcelo Elizeche Landó c34dc76e8b core: bump cbor2 from 6.1.4 to v6.1.5 (#27210) 2026-10-27 10:02:47 +02:00
Marcelo Elizeche Landó 5aba7e5423 core: bump maxminddb from 3.1.1 to v3.2.0 (#27226) 2026-10-27 10:02:45 +02:00
Marcelo Elizeche Landó cb5bc90f15 core: bump idna from 3.19 to v3.20 (#27220) 2026-10-27 10:02:40 +02:00
Marcelo Elizeche Landó 107d250021 core: bump charset-normalizer from 3.5.1 to v3.5.2 (#27211) 2026-10-27 10:02:24 +02:00
Marcelo Elizeche Landó 34e0987859 core: bump cattrs from 26.2.0 to v26.2.1 (#27209) 2026-10-27 10:02:19 +02:00
Marcelo Elizeche Landó 06ad9b534b core: bump azure-identity from 1.25.3 to v1.27.0 (#27206) 2026-10-27 09:40:06 +02:00
Marcelo Elizeche Landó 3e12f0c913 core: bump anyio from 4.14.2 to v4.15.1 (#27203) 2026-10-27 09:39:40 +02:00
Marcelo Elizeche Landó aa5ea3f602 core: bump asgiref from 3.12.1 to v3.13.0 (#27204) 2026-10-27 09:39:32 +02:00
Marcelo Elizeche Landó ccd363e6b9 core: bump aiohttp from 3.14.4 to v3.14.5 (#27202) 2026-10-27 09:36:17 +02:00
ΕliandDominic R 2a63024a8b website/integrations: add fluxer (#27271)
* Add Fluxer integration documentation

Added documentation for integrating Fluxer with authentik, including configuration steps and optional settings.

Signed-off-by: Εli <[email protected]>

* integrations: cleanup

* integrations: cleanup

---------

Signed-off-by: Εli <[email protected]>
Co-authored-by: Dominic R <[email protected]>
2026-10-27 07:30:13 +00:00
Ken SternbergandTeffen Ellis c2bf7a42f6 web/elements: sidebar api disconnect (#27075)
* web/elements: prevent wizard double submission

Ignore Next while a step is saving and disable the button meanwhile, so
a second activation can't post the form again. Clear the busy state when
the save fails.

The provider tests' verification searched the table while the wizard was
still open. The modal kept the search field inert, so its Enter went to
the focused Create button and submitted the form a second time. Wait for
the wizard to close first.

Pad each byte in IDGenerator.randomID so IDs have the requested length.

* web/element: remove license & capabilities requirements from SidebarItem

This commit moves the “isLicensed” and “canEnterprise” checks in SidebarItem and instead decorates the SidebarEntries collection with additional flags and values to support holding the information entirely within the Admin UI.

SidebarItem takes two additional attributes: `notice`, which is where the “Enterprise Only” message goes, and `pathoverride`, which will override the default path if provided. This is hardly an elegant way to go around it, but it preserves the original `entries` tree, producing a new tree and not mutating the original. With this, SidebarItem (and Sidebar itself!) is completely generic and no longer needs to know anything at all about licensing or enterprise capability.

The CSS for SidebarItem has been modified: it’s just `notice` not `enterprise-ntice` now. Fit for any purpose under the sun.

A new function, `resolveSidebarEntries`, completely centralizes the logic for “do we even show Enterprise features” and “if the user isn’t licensed, decorate them with ‘enterprise only’ markers”; it contains the logic dictating, for each element in the SidebarEntries tree, if the instance isLicensed and canEnterprise; it filters out entries that are enterprise-only when the instance does not support enterprise features, then generates the new tree, decorating the `attributes` field with the “Enterprise only” message and path override as required. These generic features are passed to SidebarItem.

`ak-interface-admin` then needed only to <s>rip out</s> modify the navigationEntries method to use the `resolveSidebarEntries` function, and remove the redundant check for enterprise-only features in the palette-generator, since those features will not be present after the resolver does its magic.

Also: A couple of tests.

* web/admin: hide enterprise notices until the license summary loads

* web/admin: Make Sidebar a wholly coherent and independent entity

This commit revises how Sidebar works.

I introduce a new type that the Sidebar understands: `SidebarItem`:

``` javascript
export interface SidebarItem {
    label: string;
    key: string;
    expanded?: boolean;
    path?: string | null;
    notice?: string | TemplateResult | null;
    children?: SidebarItem[];
}
```

This type is meant to drive the Sidebar alone, independent of the needs of any client code (although it is, obviously, good enough to support ak-interface-admin).

I revise `Sidebar` to be the whole component; no SidebarItem renderer, no slots. The container into which it is rendered is the client code’s responsibility. There are two levels of rendering: the Groups and the Items, and right now they’re only distinguished by “Does it have children?” There were four renderers in SidebarItem, and two of them are gone since they were unused.

I have deliberately left room to revise this again so that a second-level can support a path *and* children. I have an idea for what to do with it.

The CSS has entirely been brought in to handle a single sidebar.

This is entirely in a controller now; it only needs to be included to do its magic, and it works quite well. I have also revised the very long function names in `expansion.ts` and treat the entire file as a single namespace. The names are shorter and more readable, and can be imported with the `* as SidebarExpansion` syntax to support the full namespace.

This makes Sidebar Session Persistence swappable with a Sidebar Device Persistence (using `localStorage`), should we so desire.

Functions in `expansion` that no one was using have been deleted. YAGNI forever.

*`sidebarEntries.ts`*

The navigation folder is split: the `Entries` file was always meant to be an easy-to-find collection of all the *Entries*, and nothing more, the Entries themselves were meant to be easily editable and fit within a visually informative table. All the tooling cluttered that. With one exception, all tooling has been mooved to the `Tools` file. That exception is a tool, *here*, that will either hand you a “plain” SidebarEntries, or a “can enterprise” SidebarEntries, based on a flag. That logic does not belong in the Interface file.

*`sidebarTools.ts`*

Contains two separate units: one converts the `SidebarEntries` collection into a `SidebarItems` collection fit for sending to the Sidebar. The others (a) assists the Interface in finding the right key to send to the Sidebar for the current path, and (b) assists the header in filling out the page title.

Due to some of the needs in the Interface, `resolveSidebarItems` is an `ExtendedSidebarItem`; it has extra fields to help the CommandPalette. The shape passed to Sidebar is an unchanged `SidebarItem`.

The palette code is revised to understand the new `ExtendedSidebarItem` format.

The `ak-page-navbar` and `ak-sidebar` calls have been revised to take the new format. The values are derived at the beginning of the `render()` function to avoid multiple calls to the resolvers.

* web/admin: drop redundant children fallback in sidebar resolver

* web/elements: separate the enterprise notice from the sidebar link label

---------

Co-authored-by: Teffen Ellis <[email protected]>
2026-10-27 06:33:58 +00:00
Teffen Ellis ec66a3a0ad web/elements: rebuild ak-checkbox-group as a form-associated element (#27048)
* web/elements: rebuild ak-checkbox-group as a form-associated element

ak-checkbox-group now extends FormAssociatedElement instead of the
deprecated AKControlElement, and is form-associated whether or not it has a
name.

`value` is the host's selection and `values` holds the user's choices. A
custom hasChanged compares the two selections as sets of names. Most call
sites compute `value` with map/filter on every render, so a new array with
the same names keeps the user's choices and different names replace them.
This replaces the "apply value on first update only" flag and drops the
write-back into `value`.

The change and input events now reach the host's ancestors. The old
connectedCallback stopped every change and input event on the element,
including its own, and re-added those listeners on each reconnect. Native
input events stop at the checkbox instead.

Form association brings form.elements membership, one FormData entry per
chosen option, formResetCallback restoring the host's value, and a missing
value reported on the first checkbox when `required`. Checkboxes bind
`.checked`, so a reset updates boxes the user already toggled.

* web/elements: return early from ak-checkbox-group validity sync
2026-10-27 05:26:44 +00:00
Ken SternbergandTeffen Ellis 39b0497f7a web/elements: re-arrange sidebar footer dependency (#27033)
* web/element: Move the SidebarVersion out of Elements.

# What

This commit moves the SidebarVersion element, which yes shows the version information in the sidebar. The component is moved into Admin, and the Sidebar now provides an active slot for it. Since it is now indpendent of and never even mentions “Sidebar” on its own, it’s now renamed `VersionDetails`.

# Why

SidebarVersion uses WithLicenseSummary, which has knowledge of the API. The long-term goal of the Elements is to extract from it every element that does *not* need to know about the API, and this was one of the first things I encountered while working on the SidebarIcons project.

# Details

SidebarVersion had a lot of aria that wasn’t necessary. The `aria-labels` overrode much of the text, so the user would hear that there was version information available, but would never actually hear the version information. Headers inside a button would get discarded by some screen-readers because that doesn’t make sense inside a button. Buttons can only contain “inline” content, so using `<span>` and then styling them to be block is the correct way to make sure the information remains accessible while meeting the expected layout.

`aria-controls` in the Interface pointed at nothing, because it was referencing an `id` that doesn’t cross a shadow-root. I’ve changed the target, so at least now that’s going to the right place.

The PFNav and PFAvatar imports were never used inside SidebarVersion. They’ve been removed.

The hover styling has been moved into SidebarVersion explicitly.

VersionDetails is now slotted into the Sidebar so it is visible in the Admin lightDOM, and in consequence it no longer needs its `exportparts`.

`@patterfly-element/pfe-core` has been a part of our product since we included some of the elements into our base, notably the original Tooltips. This only makes it explicit that we use it.

The check-for-undefined in the VersionDetails renderer did nothing; we already check if `this.version` is defined, and if it is, `versionCurrent` is not allowed to be null or undefined. If the type and the behavior don’t coincide, that’s a problem for the back-end team. 😈

Since we’re exposing `[part]` names for styleability, I’ve changed the class names inside VersionDetails into `[part~=]` selectors. We’re not performance-bound, and it reduced the clutter.

* Replace aria wayfinders used for testing with Open UI Automation identifiers.

* web/test: locate the about button by role and name

---------

Co-authored-by: Teffen Ellis <[email protected]>
2026-10-27 05:25:34 +00:00
Teffen Ellis 7dc50d2cf2 web/elements: rebuild ak-array-input as a form-associated element (#27046)
* web/elements: rebuild ak-array-input as a form-associated element

ak-array-input now extends FormAssociatedElement instead of the deprecated
AKControlElement.

`items` becomes a plain reactive property. Lit's identity check decides
when the host's list replaces the rows, so re-rendering with the same array
keeps the user's edits and a fresh fetch replaces them. A custom hasChanged
treats two empty lists as equal for hosts that pass `items ?? []`. This
replaces the JSON comparison from the previous commit.

The user's edits live in a `rows` state with keys assigned once per row.
Rows report their value through their change event instead of the element
scraping every row from the DOM. Row change events stop at the array
input, which dispatches one change per edit.

Form association brings form.elements membership, a JSON form value,
formResetCallback restoring the host's items, and native validity: with
`validate`, an invalid row sets a custom error anchored on that row, and
`required` reports a missing value when the list is empty. The element
implements SettlingFormField, so Form.submit() waits for the rows to render.

Footer link and OAuth2 redirect URI rows delegate focus, so a new row's
first control is focused after "Add entry".

* web/elements: match ak-array-input validity sync to the other form-associated elements

Radio, ak-codemirror and ak-search-select each keep a #syncValidity() that
sets the form value, builds the flags and message, and calls
internals.setValidity() once.

* web/elements: return early from ak-array-input validity sync
2026-10-27 05:07:11 +00:00
Ken SternbergandTeffen Ellis ef82977d7c web/admin: Simplify sidebar entries handling (#27112)
* web/admin: Simplify sidebar entries handling

This commit streamlines how sidebar entries are generated and validated. The `entries` field was only being used as a signal to `requestUpdate()`; the actual entries were being generated on the fly in `get navigateEntries()`.

We already had functions to generate the base entries and the enterprise entries, and putting the “just base or base + enterprise” function into the `sidebar.ts` file reduced the `navigateEntries` to two lines, and separates the “canEnterprise” from “what does that mean for sidebar” nicely.

@GirlBossRush, there’s a `validateRoutes` function in `./src/admin/navigation/sidebar.ts` that I tried to make into a unit test, but I could not get to run under Vitest, mostly because `Routes.ts` has exactly one side-effect import and Vitest cannot handle that. I didn’t want to make it a browser test, however. Any suggestions?

* That side effect infected downstream tests. Darnit.

* Formatter opinions.

* Moving the load of the AdminOverviewPage to the entrypoint. The idea is to have the dashboard as live as possible as early as possible.  Putting into Routes made Routes into a browser-only feature, and it could not be unit tested without this move.

* The test exists and passes.

* web/sidebar: move route validation into the unit test

---------

Co-authored-by: Teffen Ellis <[email protected]>
2026-10-27 04:13:00 +00:00
Jens L. 94fd54e694 revert: core: bump paramiko from 5.0.1 to 5.1.0 (#27258)
Revert "core: bump paramiko from 5.0.1 to 5.1.0 (#27164)"

This reverts commit cbbbb7b7ee.
2026-10-27 00:34:32 +00:00
Teffen Ellis 2ad893354c web: Flow overlays cleanup (#27028)
* web: move stylesheets into per-interface folders

Groups the entrypoints and flow stylesheets under styles/if/{authenticated,flow,shared}. Renames and path updates only.

* web/flow: widen login card and align breakpoints

Bumps the card width from 35rem to 36.25rem (matching the small dialog), raises the background-image height cutoff to 27.5rem, and makes the small/large media queries use <= and > consistently so no viewport size matches both.

* web/flow: add FlowMeta type and default flow metadata

* core: extract loading spinner template

Also makes the spinner's aria-valuetext translatable.

* web/flow: render loading overlays from server-provided slots

The flow template now ships card and viewport overlays as slotted light DOM, replacing ak-loading-overlay. The executor only exposes their slots while a challenge is reloading, and overlay.css picks which one is visible per layout and viewport size.
2026-10-26 19:53:28 +00:00
1c38087c0c website/integrations: add agent-claude code doc (#27195)
* Add docs

* Update website/integrations/development/claude-code/index.mdx

Co-authored-by: Jens L. <[email protected]>
Signed-off-by: Dewi Roberts <[email protected]>

* Update website/docs/endpoint-devices/authentik-agent/device-authentication/cli-app-authentication/index.mdx

Co-authored-by: Jens L. <[email protected]>
Signed-off-by: Dewi Roberts <[email protected]>

* Changes based on Jens' feedback

* website/docs: cleanup

---------

Signed-off-by: Dewi Roberts <[email protected]>
Co-authored-by: Jens L. <[email protected]>
Co-authored-by: Dominic R <[email protected]>
2026-10-26 14:14:52 -04:00
Jens L.andCopilot Autofix powered by AI 1fd6c73f7f providers/oauth2: support saml token exchange (#27135)
* providers/oauth2: add token exchange SAML2 support

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

* gen

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

* allow self

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

* format

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

* lookup by slug

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

---------

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-26 16:32:57 +00:00
Jens L. d5af6856e6 root: bump rust deps (#27190)
Signed-off-by: Jens Langhammer <[email protected]>
2026-10-26 15:24:02 +00:00
Teffen Ellis a0808db4db root: bump Go to 1.27.3 (#27151)
Standalone outpost binaries take their toolchain from go.mod and were built
with 1.27.0; the outpost images already use 1.27.3.
2026-10-26 15:09:29 +00:00
Dewi Roberts 1c664bdcda website/docs: update ha and LDAP provider docs (#27119)
Update ha and LDAP provider doc
2026-10-26 08:01:26 -07:00
Dewi Roberts 476308373f website/docs: events: change sidebar title and ordering (#27130)
Change sidebar title and ordering
2026-10-26 07:54:34 -07:00
dependabot[bot] d871a47233 core: bump library/golang from 1896654 to fbb7ae4 in /lifecycle/container (#27157)
core: bump library/golang in /lifecycle/container

Bumps library/golang from `1896654` to `fbb7ae4`.

---
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-26 12:58:33 +00:00
dependabot[bot] 43793dfee5 core: bump library/node from 1653c74 to 36793bc in /lifecycle/container (#27158)
core: bump library/node in /lifecycle/container

Bumps library/node from `1653c74` to `36793bc`.

---
updated-dependencies:
- dependency-name: library/node
  dependency-version: 26.12.1-trixie-slim
  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-26 12:58:27 +00:00
dependabot[bot] ea40165e3c core: bump library/node from 62314d9 to a98e6fd in /website (#27159)
Bumps library/node from `62314d9` to `a98e6fd`.

---
updated-dependencies:
- dependency-name: library/node
  dependency-version: 26.12.1-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-26 12:58:21 +00:00
dependabot[bot] 7d27cc8ccc core: bump library/nginx from 1.31.6-trixie to 1.31.8-trixie in /website (#27160)
Bumps library/nginx from 1.31.6-trixie to 1.31.8-trixie.

---
updated-dependencies:
- dependency-name: library/nginx
  dependency-version: 1.31.8-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-26 12:58:15 +00:00
dependabot[bot] f60f5c661e ci: bump the codeql group across 1 directory with 3 updates (#27165)
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.39.0 to 4.39.1
- [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/6f2ac81f5cd81fe351a197ba0b00d91d03cd2aee...9b3254085494b55a0f7c4c2b3d2d52cc712ce370)

Updates `github/codeql-action/autobuild` from 4.39.0 to 4.39.1
- [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/6f2ac81f5cd81fe351a197ba0b00d91d03cd2aee...9b3254085494b55a0f7c4c2b3d2d52cc712ce370)

Updates `github/codeql-action/analyze` from 4.39.0 to 4.39.1
- [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/6f2ac81f5cd81fe351a197ba0b00d91d03cd2aee...9b3254085494b55a0f7c4c2b3d2d52cc712ce370)

---
updated-dependencies:
- dependency-name: github/codeql-action/init
  dependency-version: 4.39.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: codeql
- dependency-name: github/codeql-action/autobuild
  dependency-version: 4.39.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: codeql
- dependency-name: github/codeql-action/analyze
  dependency-version: 4.39.1
  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-26 12:58:09 +00:00
dependabot[bot] 1761ed2586 ci: bump getsentry/action-release from 3.7.1 to 3.7.2 (#27166)
Bumps [getsentry/action-release](https://github.com/getsentry/action-release) from 3.7.1 to 3.7.2.
- [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/6fb9aeade7061441cf3864e34fbe11a1457ad7dc...e6703d0b00208e0b3687ba660d18ab5af7892821)

---
updated-dependencies:
- dependency-name: getsentry/action-release
  dependency-version: 3.7.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-26 12:58:04 +00:00
dependabot[bot] 259517f499 ci: bump actions/setup-python from 7.0.0 to 7.1.0 in /.github/actions/setup (#27167)
ci: bump actions/setup-python in /.github/actions/setup

Bumps [actions/setup-python](https://github.com/actions/setup-python) from 7.0.0 to 7.1.0.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/5fda3b95a4ea91299a34e894583c3862153e4b97...6d4fd22b20465ccc0f7354476588e8df7c9ca0e0)

---
updated-dependencies:
- dependency-name: actions/setup-python
  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-26 12:57:58 +00:00
dependabot[bot] 9646c34f7b ci: bump astral-sh/setup-uv from 10.3.0 to 10.3.2 in /.github/actions/setup (#27168)
ci: bump astral-sh/setup-uv in /.github/actions/setup

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

---
updated-dependencies:
- dependency-name: astral-sh/setup-uv
  dependency-version: 10.3.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-26 12:57:52 +00:00
dependabot[bot] cffca91de8 ci: bump taiki-e/install-action from 2.87.29 to 2.87.31 in /.github/actions/setup (#27169)
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.29 to 2.87.31.
- [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/8cca0918f8471c33515202b73f56ab27f2bed283...1e29709c0ec63babbe8f266397a465f29a825f91)

---
updated-dependencies:
- dependency-name: taiki-e/install-action
  dependency-version: 2.87.31
  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-26 12:57:46 +00:00
dependabot[bot] a2dc06e073 core: bump setuptools from 84.0.0 to 84.1.0 (#27175)
Bumps [setuptools](https://github.com/pypa/setuptools) from 84.0.0 to 84.1.0.
- [Release notes](https://github.com/pypa/setuptools/releases)
- [Changelog](https://github.com/pypa/setuptools/blob/main/NEWS.rst)
- [Commits](https://github.com/pypa/setuptools/compare/v84.0.0...v84.1.0)

---
updated-dependencies:
- dependency-name: setuptools
  dependency-version: 84.1.0
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-26 11:38:32 +02:00
dependabot[bot] cbbbb7b7ee core: bump paramiko from 5.0.1 to 5.1.0 (#27164)
Bumps [paramiko](https://github.com/paramiko/paramiko) from 5.0.1 to 5.1.0.
- [Commits](https://github.com/paramiko/paramiko/compare/5.0.1...5.1.0)

---
updated-dependencies:
- dependency-name: paramiko
  dependency-version: 5.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-26 08:37:21 +00:00
dependabot[bot] 6ee52753db core: bump ruff from 0.17.1 to 0.17.2 (#27163)
Bumps [ruff](https://github.com/astral-sh/ruff) from 0.17.1 to 0.17.2.
- [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.17.1...0.17.2)

---
updated-dependencies:
- dependency-name: ruff
  dependency-version: 0.17.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-26 10:06:49 +02:00
dependabot[bot] 99c57a6436 core: bump pyrad from 2.5.4 to 2.6.0 (#27162)
Bumps [pyrad](https://github.com/pyradius/pyrad) from 2.5.4 to 2.6.0.
- [Release notes](https://github.com/pyradius/pyrad/releases)
- [Changelog](https://github.com/pyradius/pyrad/blob/master/CHANGES.rst)
- [Commits](https://github.com/pyradius/pyrad/compare/2.5.4...2.6.0)

---
updated-dependencies:
- dependency-name: pyrad
  dependency-version: 2.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-10-26 10:05:15 +02:00
dependabot[bot] b1b8ce7185 core: bump axllent/mailpit from v1.31.6 to v1.32.0 in /tests/e2e (#27155)
Bumps axllent/mailpit from v1.31.6 to v1.32.0.

---
updated-dependencies:
- dependency-name: axllent/mailpit
  dependency-version: v1.32.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-26 10:03:45 +02:00
dependabot[bot] 223de58133 core: bump goauthentik/platform-ssh from 26.04-ak-0.72.1 to 26.04-ak-0.72.3 in /tests/e2e (#27156)
core: bump goauthentik/platform-ssh in /tests/e2e

Bumps goauthentik/platform-ssh from 26.04-ak-0.72.1 to 26.04-ak-0.72.3.

---
updated-dependencies:
- dependency-name: goauthentik/platform-ssh
  dependency-version: 26.04-ak-0.72.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-26 10:02:52 +02:00
dependabot[bot] 0267ff613b core: bump goauthentik/selenium from 152.0-ak-0.72.1 to 155.0-ak-0.72.3 in /tests/e2e (#27154)
core: bump goauthentik/selenium in /tests/e2e

Bumps [goauthentik/selenium](https://github.com/SeleniumHQ/docker-selenium) from 152.0-ak-0.72.1 to 155.0-ak-0.72.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: 155.0-ak-0.72.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-26 10:01:42 +02:00
Connor Peshek 3f10b64d70 stages/authenticator_webauthn: prevent duplicate enrollment via excludeCredentials (#24451)
* stages/authenticator_webauthn: remove prevent_duplicate_devices

* stages/authenticator_webauthn: prevent duplicate enrollment via excludeCredentials

* only exclude confirmed devices

* add feedback
2026-10-26 05:19:59 +00:00
aab9fb5fca website/integrations: add filex (#27152)
* website/integrations: add filex

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

* filex: clean up

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: Dominic R <[email protected]>
2026-10-26 01:31:04 +00:00
Jens L. 7ff197b50a enterprise: cache license summary in-memory (#27147)
Signed-off-by: Jens Langhammer <[email protected]>
2026-10-25 01:54:05 +00:00
Jens L. 64b803383e packages/django-postgres-cache: revert to plain SQL instead of ORM (#27146)
* packages/django-postgres-cache: revert to plain SQL instead of ORM

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

* remove django-postgres-extra

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

---------

Signed-off-by: Jens Langhammer <[email protected]>
2026-10-25 00:49:51 +01:00
Jens L. a25ffa9785 brands: in memory cache (#26926)
* brands: in memory cache

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

* fix tests

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

* same cache for system settings

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

* fix typing

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

* invalidate all via channels

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

* Revert "invalidate all via channels"

This reverts commit 6186875d77.

* fixup

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

* down to 1 min, add to API

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

* add ui

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

* fix gen

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

* Apply suggestion from @BeryJu

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

* fixes for web-e2e

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

---------

Signed-off-by: Jens Langhammer <[email protected]>
Signed-off-by: Jens L. <[email protected]>
2026-10-24 19:50:52 +01:00
Jens L. 71930c1da7 events: cache app lookup & optimize event user (#27143)
Signed-off-by: Jens Langhammer <[email protected]>
2026-10-24 17:23:59 +01:00
7a92c99821 sources/oauth: support Entra national cloud group membership (#27091)
* sources/oauth: support Entra national cloud group membership

* website/docs: align Entra cloud setup with style guide

* Docs update

* Spelling

* refactor URL

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

* removeSimpleTestCase

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-10-23 15:20:22 +01:00
Jens L. cd6f84fe4a website/docs: remove xattr workaround for agent (#27128)
since 0.72.3 the installer is correctly signed, notarised and stapled so this isnt needed anymore

Signed-off-by: Jens Langhammer <[email protected]>
2026-10-23 13:59:27 +01:00
Ken Sternberg 4aef2aa503 web/elements: make ak-toggle-group akForm-compatible and form-associated (#27092)
* Initial check-in, but I need the test harness cleared to do the other fixes.

* .
2026-10-23 13:29:37 +01:00
Jens L. 8a8c952998 root: bump ctutils (#27129)
Signed-off-by: Jens Langhammer <[email protected]>
2026-10-23 13:14:37 +01:00
Jens L.andKen Sternberg 0f5a9432b9 web/elements: make toggle group usable as input field (#27061)
Signed-off-by: Jens Langhammer <[email protected]>
Co-authored-by: Ken Sternberg <[email protected]>
2026-10-23 12:50:50 +01:00
Simonyi Gergő dfe71c6ccd sources/ldap: fix password write error message (#27076) 2026-10-23 12:48:33 +01:00
authentik-automation[bot] 757dabdab2 core, web: update translations (#27123)
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-23 12:46:06 +01:00
dependabot[bot] 545479ecad core: bump cachetools from 7.2.3 to 7.2.4 (#27125)
Bumps [cachetools](https://github.com/tkem/cachetools) from 7.2.3 to 7.2.4.
- [Changelog](https://github.com/tkem/cachetools/blob/master/CHANGELOG.rst)
- [Commits](https://github.com/tkem/cachetools/compare/v7.2.3...v7.2.4)

---
updated-dependencies:
- dependency-name: cachetools
  dependency-version: 7.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-10-23 11:11:44 +03:00
Connor Peshek 61e1f1d0a4 sources/saml: log response processing errors and show users a generic message (#27012)
* sources/saml: log response processing errors and show users a generic message

* pass full exception
2026-10-22 21:13:54 +00:00
Connor PeshekandDewi Roberts 46cbb1480c sources/saml: Tell IDP to use AES256-GCM by default (#27010)
* sources/saml: Tell IDP to use AES256-GCM by default

* update

* Docs tidy

---------

Co-authored-by: Dewi Roberts <[email protected]>
2026-10-22 15:57:18 -05:00
Dewi Roberts 678beb6f13 website/docs: fix mention of saml 1.1 assertion support for ws-fed (#27113)
Fix 1.1 vs 2.0 docs
2026-10-22 18:51:51 +00:00
Jan KahmenandTeffen Ellis aeb0989ea2 web/elements: test that ak-mdx does not evaluate API-supplied content (#24524)
Render <ak-mdx> with content that calls a probe from an expression and
from an ESM export, and assert the probe never runs, while Markdown
still renders.

Co-authored-by: Teffen Ellis <[email protected]>
2026-10-22 17:19:16 +00:00
Teffen Ellis c3b29d2187 root: require Node.js 24.22.1 (#27093)
* root: require Node.js 24.22.1

Raise the minimum Node.js version to the 24.22.1 security release
across `.nvmrc`, `engines.node`, and `devEngines.runtime`.

https://nodejs.org/en/blog/release/v24.22.1

* lifecycle/container, website: bump node images to 26.12.1

Pin both build images to the 26.12.1 security release. The server
image previously floated on the `26-trixie-slim` tag.

https://nodejs.org/en/blog/release/v26.12.1

* ci: fix stale setup-node version comments

The pinned commit is already v7.1.0 (#26852, #26854).

* scripts/node: support || and ^ ranges in lint-runtime

Check versions against every `||`-separated comparator instead of a single `>=` or exact pin.

* root: exclude unpatched Node.js 25 and 26 releases

Narrow the engines range to `^24.22.1 || >=26.12.1`. The previous
`>=24.22.1` also accepted 26.12.0 and every 25.x release.
2026-10-22 18:02:59 +01:00
Dewi Roberts 3abd6e5e51 website/docs: change routing info after 2026.8 changes (#27109)
Update embedded.mdx
2026-10-22 16:02:10 +00:00
dependabot[bot] 807cd00b3f core: bump astral-sh/uv from 0.13.4 to 0.13.5 in /lifecycle/container (#27096)
Bumps [astral-sh/uv](https://github.com/astral-sh/uv) from 0.13.4 to 0.13.5.
- [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.4...0.13.5)

---
updated-dependencies:
- dependency-name: astral-sh/uv
  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-10-22 12:28:40 +01:00
Jens L. adfca030c1 flows: avoid saving plan history when inspector inaccessible (#27089)
* flows: avoid saving plan history when inspector inaccessible

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

* fix lint & user delete tests

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

---------

Signed-off-by: Jens Langhammer <[email protected]>
2026-10-22 11:41:39 +01:00
dependabot[bot] 0a7b8705f6 core: bump pyo3 from 0.29.0 to 0.30.1 (#27099)
Bumps [pyo3](https://github.com/pyo3/pyo3) from 0.29.0 to 0.30.1.
- [Release notes](https://github.com/pyo3/pyo3/releases)
- [Changelog](https://github.com/PyO3/pyo3/blob/v0.30.1/CHANGELOG.md)
- [Commits](https://github.com/pyo3/pyo3/compare/v0.29.0...v0.30.1)

---
updated-dependencies:
- dependency-name: pyo3
  dependency-version: 0.30.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-22 07:55:05 +00:00
dependabot[bot] 6644b384ac core: bump arc-swap from 1.9.2 to 1.9.3 (#27098)
Bumps [arc-swap](https://github.com/vorner/arc-swap) from 1.9.2 to 1.9.3.
- [Changelog](https://github.com/vorner/arc-swap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/vorner/arc-swap/commits/v1.9.3)

---
updated-dependencies:
- dependency-name: arc-swap
  dependency-version: 1.9.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-22 10:13:31 +03:00
dependabot[bot] b2bdbd0bba core: bump pyroscope-io from 1.2.5 to 1.3.0 (#27100)
Bumps pyroscope-io from 1.2.5 to 1.3.0.

---
updated-dependencies:
- dependency-name: pyroscope-io
  dependency-version: 1.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-22 10:12:51 +03:00
dependabot[bot] f135df66b8 core: bump pyo3-build-config from 0.29.0 to 0.30.1 (#27097)
Bumps [pyo3-build-config](https://github.com/pyo3/pyo3) from 0.29.0 to 0.30.1.
- [Release notes](https://github.com/pyo3/pyo3/releases)
- [Changelog](https://github.com/PyO3/pyo3/blob/v0.30.1/CHANGELOG.md)
- [Commits](https://github.com/pyo3/pyo3/compare/v0.29.0...v0.30.1)

---
updated-dependencies:
- dependency-name: pyo3-build-config
  dependency-version: 0.30.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-22 10:11:54 +03:00
dependabot[bot] 4d11af21c2 core: bump dexidp/dex from v2.46.0 to v2.46.1 in /tests/e2e (#27095)
Bumps [dexidp/dex](https://github.com/dexidp/dex) from v2.46.0 to v2.46.1.
- [Release notes](https://github.com/dexidp/dex/releases)
- [Commits](https://github.com/dexidp/dex/compare/v2.46.0...v2.46.1)

---
updated-dependencies:
- dependency-name: dexidp/dex
  dependency-version: v2.46.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-22 10:11:16 +03:00
HenryandDominic R 63ab65f3e5 website/integrations: VCF 9: touch up (#27094)
* update 1

Signed-off-by: Henry <[email protected]>

* info

* rename + title on info section

* website/docs: !

---------

Signed-off-by: Henry <[email protected]>
Co-authored-by: Dominic R <[email protected]>
2026-10-21 23:51:02 +00:00
Emil BurzoandEmil Burzo 088d72e671 lifecycle/container: add a distroless version of the server image (#26321)
* lifecycle/container: build the server image distroless

* redo

* wip

* shorter comment

* update base images from fips#178

Co-authored-by: Emil Burzo <[email protected]>
Signed-off-by: Emil Burzo <[email protected]>

* non-PR fips image

---------

Signed-off-by: Emil Burzo <[email protected]>
2026-10-21 19:42:40 +03:00
Emil Burzo 5ed22141ee ci: run tests in the server image (#26510)
* ci: run tests on the distroless server image

* redo

* wip

* fix test_locales

* match main
2026-10-21 19:42:40 +03:00
Teffen Ellis 0643bba680 packages/client-ts: Generate imports with .js extensions (#27029)
Set `importFileExtension` so the generator emits Node-resolvable
relative imports, and switch the client to `nodenext` module
resolution in place of the bundler-only workaround.
2026-10-21 16:02:44 +00:00
dependabot[bot]andJens Langhammer 223f54ecfe core: bump djangorestframework from 3.18.1 to 3.18.3 (#26838)
* core: bump djangorestframework from 3.18.1 to 3.18.3

Bumps [djangorestframework](https://github.com/encode/django-rest-framework) from 3.18.1 to 3.18.3.
- [Release notes](https://github.com/encode/django-rest-framework/releases)
- [Commits](https://github.com/encode/django-rest-framework/compare/3.18.1...3.18.3)

---
updated-dependencies:
- dependency-name: djangorestframework
  dependency-version: 3.18.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

* gen

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

* fix tests

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-21 13:59:33 +01:00
Emil Burzo 052edb7d27 website/docs: add release notes for 2026.8.5 (#27084) 2026-10-21 11:34:06 +00:00
Emil Burzo d3176ae7d6 website/docs: add release notes for 2026.5.8 (#27083)
release notes for 2026.5.8
2026-10-21 14:15:11 +03:00
authentik-automation[bot] 74bba5bd21 core, web: update translations (#27035)
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-21 11:40:50 +01:00
dependabot[bot] 83109e16d2 core: bump twilio from 9.11.2 to 9.12.0 (#27081)
Bumps [twilio](https://github.com/twilio/twilio-python) from 9.11.2 to 9.12.0.
- [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.2...9.12.0)

---
updated-dependencies:
- dependency-name: twilio
  dependency-version: 9.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-21 08:17:53 +00:00
dependabot[bot] 4e59ecce27 core: bump cachetools from 7.2.2 to 7.2.3 (#27082)
Bumps [cachetools](https://github.com/tkem/cachetools) from 7.2.2 to 7.2.3.
- [Changelog](https://github.com/tkem/cachetools/blob/master/CHANGELOG.rst)
- [Commits](https://github.com/tkem/cachetools/compare/v7.2.2...v7.2.3)

---
updated-dependencies:
- dependency-name: cachetools
  dependency-version: 7.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-21 08:15:17 +00:00
dependabot[bot] 66fba9b87b core: bump paramiko from 5.0.0 to 5.0.1 (#27080)
Bumps [paramiko](https://github.com/paramiko/paramiko) from 5.0.0 to 5.0.1.
- [Commits](https://github.com/paramiko/paramiko/compare/5.0.0...5.0.1)

---
updated-dependencies:
- dependency-name: paramiko
  dependency-version: 5.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-10-21 10:53:15 +03:00
dependabot[bot] cce41038de core: bump ruff from 0.17.0 to 0.17.1 (#27077)
Bumps [ruff](https://github.com/astral-sh/ruff) from 0.17.0 to 0.17.1.
- [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.17.0...0.17.1)

---
updated-dependencies:
- dependency-name: ruff
  dependency-version: 0.17.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-21 10:52:19 +03:00
Jens L. ed243d60dc lib/tracing: fix sentry tracing when otel is enabled (#27066)
* lib/tracing: fix sentry tracing when otel is enabled

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

* remove from experiments

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

---------

Signed-off-by: Jens Langhammer <[email protected]>
2026-10-21 00:55:06 +01:00
pulgasa 7b653d4b0b website/integrations: audiobookshelf: Fix Post Logout URI (#27074)
Signed-off-by: pulgasa <[email protected]>
2026-10-20 23:21:10 +00:00
Jens L. aba73777c0 web/user: fix agents tab flashing without license (#27069)
* web/user: fix agents tab flashing without license

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

* format, sigh

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

---------

Signed-off-by: Jens Langhammer <[email protected]>
2026-10-20 22:29:44 +01:00
Jens L. d53447b6bc root: bump cert-related deps due to emudhra (#27068)
* root: bump cert-related deps due to emudhra

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

* bump

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

* update go too

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

* fix cargo deny

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

---------

Signed-off-by: Jens Langhammer <[email protected]>
2026-10-20 21:37:30 +01:00
Teffen Ellis 1b68f3c027 web: fix table fetch races and search select e2e lookups (#27059)
* web/elements: show the table loading state until the first response

Since #26423 dropped the visibility check from renderRows, a table whose
first fetch is deferred until it scrolls into view rendered its empty
state, including the empty state's own create button, until that fetch
started. Render the loading state whenever there's no data yet, which is
what #26423 describes, while still not reverting to it once data exists.

* web/elements: rerun a table fetch requested while one is in flight

Table.fetch() returned early while a request was in flight, so a search
typed during the first load was silently dropped: the box showed the
query while the table kept the unfiltered results. Queue the request
instead and run it once the in-flight one settles, with whatever
parameters are current by then. Repeated requests collapse into one
follow-up.

* web/e2e: filter search selects for plain-text patterns

selectSearchValue only typed a filter for string patterns, so a RegExp
like /default-authentication-flow/ searched the picker's first page of
options. Once a dev instance accumulates enough test flows, the stock
defaults drop off that page and unrelated provider and brand tests fail.
Type the pattern's text as a filter when it's plain, and fall back to
the unfiltered list for options the server doesn't search, such as the
blank choice.

* Format.
2026-10-20 20:56:22 +01:00
dependabot[bot] f6373b481a core: bump astral-sh/uv from 0.13.1 to 0.13.3 in /lifecycle/container (#27037)
Bumps [astral-sh/uv](https://github.com/astral-sh/uv) from 0.13.1 to 0.13.3.
- [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.1...0.13.3)

---
updated-dependencies:
- dependency-name: astral-sh/uv
  dependency-version: 0.13.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-20 18:26:16 +01:00
Jens L. 747243c69e policies: fix warning from setting non-string tracing data (#27062)
Signed-off-by: Jens Langhammer <[email protected]>
2026-10-20 18:19:35 +01:00
Jens L. 7968fb43c3 root: annotate hot paths (#27052)
Signed-off-by: Jens Langhammer <[email protected]>
2026-10-20 18:19:20 +01:00
Dominic Roy da2d83c318 website/docs: contributing: add guidelines for vendor contributions (#27032) 2026-10-20 16:59:54 +00:00
Connor PeshekandDewi Roberts f6e2acf6f5 providers/saml: Add ability to select encryption algorithm (#27009)
* providers/saml: add configurable assertion encryption algorithm

* update to main and add docs

* show only when encryption certificate is set, update help text

* default to aes256-gcm

* update wording

* update

* Docs tidy

* feedback

---------

Co-authored-by: Dewi Roberts <[email protected]>
2026-10-20 11:02:29 -05:00
Jens L. 98961371f0 lib: set postgres timezone on connection (#27053)
Signed-off-by: Jens Langhammer <[email protected]>
2026-10-20 14:45:09 +01:00
Emil BurzoandJens Langhammer f6b83e41b1 core: add postgres connection info (#27024)
* core: add postgres version and JIT setting in system info

* ssl info

* handle error

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

* format

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

---------

Signed-off-by: Jens Langhammer <[email protected]>
Co-authored-by: Jens Langhammer <[email protected]>
2026-10-20 14:43:22 +01:00
Jens L. bf9a3f7fcb ci: fix cargo deny for basic-toml (#27054)
Signed-off-by: Jens Langhammer <[email protected]>
2026-10-20 13:29:12 +01:00
Teffen Ellis 103b228fb2 web/elements: keep ak-array-input edits through form submission (#27045)
Form.submit() became async in #26566 and now awaits settleFormFields()
before serializing. That gives the host form a chance to re-render first,
and Lit re-assigns array property bindings on every render, so
`.items=${settings.footerLinks}` reset the list to the server's copy and
the PUT went out with stale values.

The items setter now ignores a list whose contents match the one the
parent last assigned.

This also fixes a long-standing keying bug. The setter's map callback had
its arguments swapped, so every row got a fresh key on each change and
`repeat` rebuilt it. Clicking from one field into another in the same row
sent the next keystrokes into a detached input. Edits, adds and deletes now
operate on the keyed list directly, and delete removes the clicked row by
key instead of by index.
2026-10-20 12:26:13 +01:00
Jens L. a6458625c4 enterprise: optimize middleware (#27015)
* enterprise: optimize middleware

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

* optimize more

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

---------

Signed-off-by: Jens Langhammer <[email protected]>
2026-10-20 11:54:31 +01:00
dependabot[bot] 30f7ffaaf4 core: bump goauthentik/platform-ssh from 26.04-ak-0.72.0 to 26.04-ak-0.72.1 in /tests/e2e (#27038)
core: bump goauthentik/platform-ssh in /tests/e2e

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

---
updated-dependencies:
- dependency-name: goauthentik/platform-ssh
  dependency-version: 26.04-ak-0.72.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-20 07:03:49 +00:00
dependabot[bot] 57e2ec1b67 core: bump ruff from 0.16.10 to 0.17.0 (#27044)
Bumps [ruff](https://github.com/astral-sh/ruff) from 0.16.10 to 0.17.0.
- [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.10...0.17.0)

---
updated-dependencies:
- dependency-name: ruff
  dependency-version: 0.17.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-20 09:47:39 +03:00
dependabot[bot] 6d69fb1041 core: bump sentry-sdk from 2.71.0 to 2.72.0 (#27043)
Bumps [sentry-sdk](https://github.com/getsentry/sentry-python) from 2.71.0 to 2.72.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.71.0...2.72.0)

---
updated-dependencies:
- dependency-name: sentry-sdk
  dependency-version: 2.72.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-20 09:47:11 +03:00
dependabot[bot] e02da24604 core: bump django-postgres-extra from 3.0.0 to 3.0.1 (#27042)
Bumps [django-postgres-extra](https://github.com/SectorLabs/django-postgres-extra) from 3.0.0 to 3.0.1.
- [Release notes](https://github.com/SectorLabs/django-postgres-extra/releases)
- [Commits](https://github.com/SectorLabs/django-postgres-extra/commits)

---
updated-dependencies:
- dependency-name: django-postgres-extra
  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-10-20 09:43:07 +03:00
dependabot[bot] 6ab4cc65e5 core: bump python-kadmin-rs from 0.7.4 to 0.7.5 (#27040)
Bumps [python-kadmin-rs](https://github.com/authentik-labs/kadmin-rs) from 0.7.4 to 0.7.5.
- [Release notes](https://github.com/authentik-labs/kadmin-rs/releases)
- [Commits](https://github.com/authentik-labs/kadmin-rs/compare/kadmin/version/0.7.4...kadmin/version/0.7.5)

---
updated-dependencies:
- dependency-name: python-kadmin-rs
  dependency-version: 0.7.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-20 09:42:40 +03:00
dependabot[bot] ab6e667f51 core: bump goauthentik/selenium from 152.0-ak-0.72.0 to 152.0-ak-0.72.1 in /tests/e2e (#27039)
core: bump goauthentik/selenium in /tests/e2e

Bumps [goauthentik/selenium](https://github.com/SeleniumHQ/docker-selenium) from 152.0-ak-0.72.0 to 152.0-ak-0.72.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.72.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-20 09:42:13 +03:00
dependabot[bot] e47f86b7d2 core: bump aiohttp from 3.14.3 to 3.14.4 (#27034)
---
updated-dependencies:
- dependency-name: aiohttp
  dependency-version: 3.14.4
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-20 09:39:54 +03:00
Shawn O'DellandTeffen Ellis 2eafedc1c1 web/flow: fix remember-me being cleared by CSRF token rotation (#25205)
* web: namespace storage keys and migrate legacy values

Split #common/storage into an accessor and shared types, and require
storage keys to use the ak: prefix via a PersistenceKey type. Values
under the old remember-me and library view mode keys are moved to the
new keys on load, so returning users keep their remembered username and
layout. The migrations are marked for removal in 2027.2 (#27036).

Remove ShowHintController, which has had no users since #21781.

* web/flow: fix remember-me being cleared by CSRF token rotation

The remembered username was keyed to a session ID derived from the CSRF
token, and cleared whenever the two didn't match. Django rotates the
CSRF token on every successful login, so the check failed on every
later visit and the username was always forgotten. Drop the check, so
the username is only cleared by switching the toggle off or following
"Not you?", and discard the session ID left by earlier versions.

Co-authored-by: Shawn O'Dell <[email protected]>

* web/flow: bind remember-me keystroke listener for returning users

The remember-me input listener was only attached from the toggle's change
handler, so a returning user, who arrives with the switch already checked,
never had it bound. A different user on the same device could type and
submit their own username without it ever reaching localStorage, leaving
the previous username prefilled forever, and auto-submitted in
identification-only flows.

Track whether the feature is on, seeded from the persisted value, and
reconcile the listener when the controller connects and after each update.
The stage adds the controller after it has rendered, so a further update
isn't guaranteed. Cancel a pending keystroke write when the listener is
detached, so switching the toggle off can't be undone by a write queued in
the same frame. Disconnect the controller before the stage removes it,
since removeController doesn't notify it and the listener would otherwise
keep recording after the server turns remember-me off.

Co-authored-by: Shawn O'Dell <[email protected]>

* web/flow: respect the remember-me toggle when auto-submitting

canAutoSubmit only checked whether a username was remembered when the
page loaded, so a returning user who switched the toggle off was kept
from being auto-submitted only by the one-shot attempt counter. Also
require the feature to still be on. Checking only the live toggle state
would instead auto-submit first-time visitors as soon as they opted in.

* web/e2e: wait for the login flow before running browser tests

The API answers before the worker has applied the default blueprints.
Until then `/` redirects to an authentication flow that doesn't exist
yet and 404s, so the availability check could fail on a slow start and
skip the whole suite. Poll until the redirect chain resolves, and run
the setup steps serially so the login step waits on it too.

---------

Co-authored-by: Teffen Ellis <[email protected]>
2026-10-20 05:17:01 +01:00
Ken Sternberg a749575a30 web/theme: Remove the categories build from the theme (#26982)
## What

This commit removes the generation of the seven categories from the Theme build:

- `./color.css`
- `./typography.css`
- `./spacing.css`
- `./shape.css`
- `./shadow.css`
- `./motion.css`
- `./z-index.css`

And correspondingly:

- The exports are removed from `package.json`
- The documentation has been updated to remove the reference to the category files
- Bumps the major version number to reflect that this is a major change, even if we have no one who uses the removed feature.

## Why

Mostly because we’re not using it, and we don’t know anyone else who is. Lines of code we run with every build, that builds tools we never use, is a liability in terms of maintenance, performance, test time, and code quality. These files are generated through regular expressions over the generated CSS, which is notoriously fragile; a change in the Styleframe output would require corresponding changes to the parser. There are no tests to validate the parser output.

If we need them back someday, (a) they’re still there, and still categorized, in the DTCG (Design Token Community Group) files and can be extracted at any time and (b) the original code is still in the git history, there for as long as the repo lasts.

Practically, *we* don’t even use the categories in Patternfly SASS files when we look something up; we just got to `patternfly.css` and look at the generated theme file. What `package.json` generates is the base theme for Authentik and the metadata necessary to make that theme malleable for agents and automation tools. The DTCG and Theme CSS Custom Property files are more than sufficient for that purpose; if anything, as a separate source of truth for “what is a property set to?” the category files are a barrier to tooling rather than a help.
2026-10-19 15:31:12 -07:00
dependabot[bot] 72d5a74797 core: bump library/golang from 2f84bc9 to 4766793 in /lifecycle/container (#26996)
core: bump library/golang in /lifecycle/container

Bumps library/golang from `2f84bc9` to `4766793`.

---
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-19 17:33:25 +01:00
Connor Peshek f1a8934934 providers/saml: verify logoutrequest/response signatures (#26534)
* providers/saml: verify logoutrequest/response signatures

* add feedback
2026-10-19 11:09:16 -05:00
Ken Sternberg b2d7466257 core/outposts: Move setOutpostHost() from the client to the server (#26979)
* core/outposts: Move `setOutpostHost()` from the client to the server

## What

Writes the `config.outpost.authentik_host` field from information derived on first set-up and available server-side, then removes the same transaction from the client.q

## Why

@beryju has proposed some changes to the Dashboard, and making them would be awkward if a critical infrastructure transaction like this were made “optional” to the system administrator. My first thought was to move just this transaction into a ReactiveController so we could hook it into the lifecycle of something else, like the Dashboard shell or even the entire Admin application shell in ak-interface-admin. He pointed out that the current `main` has `base_url` as a *required* field. So putting it into the server makes sense.

The port was straightforward. I’m not so confident about the tests, but I think they’re right. I’m not as comfortable with the reconciliation process as I should be. There’s some deep magic there. (And *why* is `ManagedAppConfig` in `blueprints`, of all places?)

* Sigh.

* Have I ever mentioned how much I hate side-effects?
2026-10-19 09:02:07 -07:00
dependabot[bot] 2765e2551f core: bump library/node from 26.11.1-trixie to 26.12.0-trixie in /website (#26999)
core: bump library/node in /website

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

---
updated-dependencies:
- dependency-name: library/node
  dependency-version: 26.12.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-10-19 16:04:18 +01:00
dependabot[bot] c2a9af999e ci: bump taiki-e/install-action from 2.87.28 to 2.87.29 in /.github/actions/setup (#27008)
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.28 to 2.87.29.
- [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/1168f6810a3cb30a3514bf5756a3b7f0422c6df8...8cca0918f8471c33515202b73f56ab27f2bed283)

---
updated-dependencies:
- dependency-name: taiki-e/install-action
  dependency-version: 2.87.29
  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 16:04:06 +01:00
Alexander Tereshkin d9f633652f stages/email: make rate limit apply across flow restarts, not just on "resend email" button (#25496) 2026-10-19 15:56:31 +01:00
Emil Burzo bd56b644c7 lifecycle: disable PostgreSQL JIT (#26970)
disable postgres JIT
2026-10-19 15:45:23 +01:00
dependabot[bot] 8c6b57018a ci: bump the codeql group across 1 directory with 3 updates (#27004)
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.3 to 4.39.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/24c54180a607b1449ed407dd24f251e4e9147c8d...6f2ac81f5cd81fe351a197ba0b00d91d03cd2aee)

Updates `github/codeql-action/autobuild` from 4.38.3 to 4.39.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/24c54180a607b1449ed407dd24f251e4e9147c8d...6f2ac81f5cd81fe351a197ba0b00d91d03cd2aee)

Updates `github/codeql-action/analyze` from 4.38.3 to 4.39.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/24c54180a607b1449ed407dd24f251e4e9147c8d...6f2ac81f5cd81fe351a197ba0b00d91d03cd2aee)

---
updated-dependencies:
- dependency-name: github/codeql-action/init
  dependency-version: 4.39.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: codeql
- dependency-name: github/codeql-action/autobuild
  dependency-version: 4.39.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: codeql
- dependency-name: github/codeql-action/analyze
  dependency-version: 4.39.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-10-19 15:31:29 +01:00
Dewi Roberts 76c97217b0 website/docs: kerberos: remove version frontmatter (#27019)
Remove version frontmatter
2026-10-19 14:22:49 +00:00
Jens L. 6002cf57a9 web/admin: fix duplicate locale ID (#27018)
Signed-off-by: Jens Langhammer <[email protected]>
2026-10-19 15:08:40 +01:00
Jens L. 12df5be965 providers/oauth2: token exchange support chained act (#26668)
Signed-off-by: Jens Langhammer <[email protected]>
2026-10-19 14:54:19 +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
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
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
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 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
2658 changed files with 115160 additions and 152926 deletions

No files matched your search

+6 -1
View File
@@ -7,7 +7,6 @@ allow = [
"CDLA-Permissive-2.0",
"ISC",
"MIT",
"MPL-2.0",
"OpenSSL",
"Unicode-3.0",
"Zlib",
@@ -45,3 +44,9 @@ allow = [
]
name = "aws-lc-rs"
exact = true
[advisories]
ignore = [
# https://github.com/askama-rs/askama/issues/594
{ id = "RUSTSEC-2026-0374", reason = "basic-toml is a build-time only dependency of the askama template engine, not shipped in the app or daemon; remove when askama drops basic-toml" },
]
@@ -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}"
+7 -4
View File
@@ -42,12 +42,12 @@ runs:
sudo rsync -a --delete /tmp/empty/ /usr/local/lib/android/
- name: Install uv
if: ${{ contains(inputs.dependencies, 'python') }}
uses: astral-sh/setup-uv@bec219d24cd3e171d82865faccec33120bb574f4 # v5
uses: astral-sh/setup-uv@68559e99cc807c1eb7e9238fd43a15bba460eec2 # v5
with:
enable-cache: true
- name: Setup python
if: ${{ contains(inputs.dependencies, 'python') }}
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v5
uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v5
with:
python-version-file: "${{ inputs.working-directory }}pyproject.toml"
- name: Install Python deps
@@ -69,7 +69,7 @@ runs:
rustflags: ""
- name: Setup rust dependencies
if: ${{ contains(inputs.dependencies, 'rust') }}
uses: taiki-e/install-action@4076c08d76dba979c11a7285295b0716c1d67908 # v2
uses: taiki-e/install-action@1919c4a95903d2c33e4a221102edca87309fc14b # 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 # v7.1.0
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 }}
+27 -45
View File
@@ -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"
@@ -155,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/*"
@@ -245,50 +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/oxlint-config"
- "@goauthentik/oxfmt-config"
- "@goauthentik/tsconfig"
oxc:
patterns:
- "@oxc-project/*"
- "oxc-*"
- "oxfmt"
- "oxlint"
#endregion
# AWS Lifecycle
#region AWS Lifecycle
- package-ecosystem: npm
directory: "/lifecycle/aws"
@@ -338,6 +310,12 @@ updates:
opentelemetry:
patterns:
- opentelemetry-*
ignore:
# Without this rule no 5.2.x patch PR gets opened.
# TODO: Remove this rule when moving to Django 6.
- dependency-name: "django"
update-types:
- "version-update:semver-major"
#endregion
@@ -357,6 +335,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
@@ -28,6 +28,14 @@ on:
description: "Build args to pass to Docker"
type: string
default: ""
image-target:
description: "Dockerfile stage to build. Empty builds the last stage."
type: string
default: ""
image-tag-suffix:
description: "Suffix for the tags and the artifacts of an image variant that is built from another stage"
type: string
default: ""
should-cache:
description: "Whether a build cache should be created"
type: boolean
@@ -47,7 +55,7 @@ jobs:
packages: write
# Needed for checkout
contents: read
name: "Build ${{ inputs.image-name }} on ${{ inputs.image-arch }}"
name: "Build ${{ inputs.image-name }}${{ inputs.image-tag-suffix }} on ${{ inputs.image-arch }}"
runs-on: "${{ inputs.runs-on }}"
outputs:
image-digest: "${{ steps.build.outputs.digest }}"
@@ -74,6 +82,7 @@ jobs:
# inputs
context: .
file: "${{ inputs.image-dockerfile }}"
target: "${{ inputs.image-target }}"
build-args: "${{ inputs.image-build-args }}"
secrets: |
GEOIPUPDATE_ACCOUNT_ID=${{ secrets.GEOIPUPDATE_ACCOUNT_ID }}
@@ -81,19 +90,19 @@ jobs:
# outputs
push: false
cache-from: |
type=registry,ref=ghcr.io/goauthentik/dev-${{ inputs.image-name }}:buildcache-${{ inputs.image-arch }}-main
type=registry,ref=ghcr.io/goauthentik/dev-${{ inputs.image-name }}:buildcache-${{ inputs.image-arch }}${{ inputs.cache-suffix }}
cache-to: "${{ inputs.should-cache && format('type=registry,ref=ghcr.io/goauthentik/dev-{0}:buildcache-{1}{2},mode=max', inputs.image-name, inputs.image-arch, inputs.cache-suffix) || '' }}"
type=registry,ref=ghcr.io/goauthentik/dev-${{ inputs.image-name }}:buildcache-${{ inputs.image-arch }}${{ inputs.image-tag-suffix }}-main
type=registry,ref=ghcr.io/goauthentik/dev-${{ inputs.image-name }}:buildcache-${{ inputs.image-arch }}${{ inputs.image-tag-suffix }}${{ inputs.cache-suffix }}
cache-to: "${{ inputs.should-cache && format('type=registry,ref=ghcr.io/goauthentik/dev-{0}:buildcache-{1}{2}{3},mode=max', inputs.image-name, inputs.image-arch, inputs.image-tag-suffix, inputs.cache-suffix) || '' }}"
attests: |
type=provenance,mode=max
outputs: |
type=oci,dest=build/container/${{ inputs.image-name }}-${{ inputs.image-arch }}.oci.tar
type=oci,dest=build/container/${{ inputs.image-name }}${{ inputs.image-tag-suffix }}-${{ inputs.image-arch }}.oci.tar
# 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 }}"
name: "container-build-${{ inputs.image-name }}${{ inputs.image-tag-suffix }}-${{ inputs.image-arch }}"
path: build/
if-no-files-found: error
retention-days: 2
@@ -12,6 +12,14 @@ on:
description: "Name of the image to build"
type: string
required: true
image-target:
description: "Dockerfile stage to build. Empty builds the last stage."
type: string
default: ""
image-tag-suffix:
description: "Suffix for the tags and the artifacts of an image variant that is built from another stage"
type: string
default: ""
image-dockerfile:
description: "Path to the Dockerfile to build from"
type: string
@@ -34,11 +42,13 @@ 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
image-dockerfile: "${{ inputs.image-dockerfile }}"
image-target: "${{ inputs.image-target }}"
image-tag-suffix: "${{ inputs.image-tag-suffix }}"
image-build-args: "${{ inputs.image-build-args }}"
should-cache: "${{ inputs.should-cache }}"
cache-suffix: "${{ inputs.cache-suffix }}"
@@ -47,23 +57,25 @@ 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
image-dockerfile: "${{ inputs.image-dockerfile }}"
image-target: "${{ inputs.image-target }}"
image-tag-suffix: "${{ inputs.image-tag-suffix }}"
image-build-args: "${{ inputs.image-build-args }}"
should-cache: "${{ inputs.should-cache }}"
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
@@ -73,7 +85,7 @@ jobs:
run: |
set -euo pipefail
image_name="${{ inputs.image-name }}"
image_name="${{ inputs.image-name }}${{ inputs.image-tag-suffix }}"
target="ocidir://${image_name}:build"
regctl image import \
@@ -229,10 +241,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 }}"
name: "container-build-${{ inputs.image-name }}${{ inputs.image-tag-suffix }}"
path: build/
if-no-files-found: error
retention-days: 2
include-hidden-files: true
include-hidden-files: true
+8 -8
View File
@@ -18,7 +18,7 @@ concurrency:
jobs:
lint:
runs-on: ubuntu-latest
runs-on: ubuntu-26.04
strategy:
fail-fast: false
matrix:
@@ -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 # v7.1.0
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 # v7.1.0
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 # v7.1.0
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 # v7.1.0
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:
+8 -8
View File
@@ -18,7 +18,7 @@ concurrency:
jobs:
lint:
runs-on: ubuntu-latest
runs-on: ubuntu-26.04
env:
NODE_ENV: production
strategy:
@@ -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 # v7.1.0
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 # v7.1.0
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 # v7.1.0
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
@@ -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:
+8 -6
View File
@@ -13,7 +13,7 @@ on:
jobs:
test-container:
runs-on: ubuntu-latest
runs-on: ubuntu-26.04
strategy:
fail-fast: false
matrix:
@@ -22,12 +22,14 @@ jobs:
- version-2026-5
- version-2026-8
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v5
- run: |
set -euo pipefail
current="$(pwd)"
dir="/tmp/authentik/${{ matrix.version }}"
mkdir -p "${dir}/lifecycle/container"
wget "https://${{ matrix.version }}.goauthentik.io/compose.yml" -O /tmp/compose.yml
# Test the release that the compose file runs, with that release's own script
tag="$(grep -m1 -o 'AUTHENTIK_TAG:-[^}]*' /tmp/compose.yml)"
tag="${tag#AUTHENTIK_TAG:-}"
git clone --depth 1 --branch "version/${tag}" https://github.com/goauthentik/authentik.git "${dir}"
cp /tmp/compose.yml "${dir}/lifecycle/container/compose.yml"
cd "${dir}"
wget "https://${{ matrix.version }}.goauthentik.io/compose.yml" -O "${dir}/lifecycle/container/compose.yml"
"${current}/scripts/test_docker.sh"
./scripts/test_docker.sh
+203 -33
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 }}"
@@ -53,6 +53,10 @@ jobs:
include:
- name: server
dockerfile: Dockerfile
- name: server
dockerfile: Dockerfile
target: distroless
tag-suffix: -distroless
- name: proxy
dockerfile: proxy.Dockerfile
- name: ldap
@@ -67,6 +71,8 @@ jobs:
ref: "${{ github.ref }}"
image-name: "${{ matrix.name }}"
image-dockerfile: "lifecycle/container/${{ matrix.dockerfile }}"
image-target: "${{ matrix.target || '' }}"
image-tag-suffix: "${{ matrix.tag-suffix || '' }}"
image-build-args: |
GIT_BUILD_HASH=${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
should-cache: "${{ github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository) }}"
@@ -84,6 +90,8 @@ jobs:
deps: node
- job: catalogs
deps: node
- job: locales
deps: python
- job: oxlint-fixtures
deps: node
- job: pending-migrations
@@ -100,7 +108,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
@@ -116,7 +124,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:
@@ -132,7 +140,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
@@ -140,7 +148,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: |
@@ -149,7 +157,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:
@@ -232,7 +240,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:
@@ -260,14 +268,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
@@ -279,7 +287,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
@@ -319,7 +327,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
@@ -343,7 +351,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 # v7.1.0
with:
node-version-file: package.json
cache: pnpm
@@ -374,9 +382,42 @@ jobs:
if: ${{ always() }}
with:
flags: e2e
test-container:
name: test-container - server${{ matrix.tag-suffix }}${{ matrix.fips && ' (FIPS)' || '' }} - Run ${{ matrix.run_id }}/10
runs-on: ubuntu-26.04
timeout-minutes: 30
needs:
- build
- test-make-seed
strategy:
fail-fast: false
matrix:
tag-suffix: ["", "-distroless"]
run_id: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
include:
- tag-suffix: "-distroless"
fips: true
steps:
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v5
with:
name: container-build-server${{ matrix.tag-suffix }}-amd64
- name: Load container image
run: |
skopeo copy "oci-archive:container/server${{ matrix.tag-suffix }}-amd64.oci.tar" "docker-daemon:authentik.invalid/goauthentik/server:ci${{ matrix.tag-suffix }}"
rm -rf container/
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v5
- name: Run tests in the server image
env:
AUTHENTIK_IMAGE: authentik.invalid/goauthentik/server
AUTHENTIK_TAG: ci${{ matrix.tag-suffix }}
CI_TEST_SEED: ${{ needs.test-make-seed.outputs.seed }}
CI_RUN_ID: ${{ matrix.run_id }}
CI_TOTAL_RUNS: "10"
AUTHENTIK_COMPLIANCE__FIPS__ENABLED: ${{ matrix.fips }}
run: ./scripts/test_docker.sh
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
@@ -431,12 +472,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
@@ -463,10 +504,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:
@@ -478,8 +643,9 @@ jobs:
- test-unittest
- test-integration
- test-e2e
- test-container
- test-rust
runs-on: ubuntu-latest
runs-on: ubuntu-26.04
steps:
- uses: re-actors/alls-green@b5b5b37504aa4183270bd3d855c52a67f212be35 # release/v1
with:
@@ -499,37 +665,39 @@ jobs:
artifact-metadata: write
# Needed for checkout
contents: read
runs-on: ubuntu-latest
runs-on: ubuntu-26.04
strategy:
fail-fast: false
matrix:
name:
- server
- proxy
- ldap
- radius
- rac
include:
- name: server
- name: server
tag-suffix: -distroless
- name: proxy
- name: ldap
- name: radius
- name: 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 }}"
name: "container-build-${{ matrix.name }}${{ matrix.tag-suffix }}"
- id: publish
name: publish
run: |
regctl image import "ocidir://${{ matrix.name }}:${{ needs.build-compute-tags.outputs.tag-full }}" "container/${{ matrix.name }}.oci.tar"
regctl image import "ocidir://${{ matrix.name }}:${{ needs.build-compute-tags.outputs.tag-full }}" "container/${{ matrix.name }}${{ matrix.tag-suffix }}.oci.tar"
echo "digest=$(regctl image digest "ocidir://${{ matrix.name }}:${{ needs.build-compute-tags.outputs.tag-full }}")" >> "$GITHUB_OUTPUT"
regctl image import "ghcr.io/goauthentik/dev-${{ matrix.name }}:${{ needs.build-compute-tags.outputs.tag-full }}" "container/${{ matrix.name }}.oci.tar"
regctl image import "ghcr.io/goauthentik/dev-${{ matrix.name }}:${{ needs.build-compute-tags.outputs.tag-branch }}" "container/${{ matrix.name }}.oci.tar"
regctl image import "ghcr.io/goauthentik/dev-${{ matrix.name }}:${{ needs.build-compute-tags.outputs.tag-flux }}" "container/${{ matrix.name }}.oci.tar"
regctl image import "ghcr.io/goauthentik/dev-${{ matrix.name }}:${{ needs.build-compute-tags.outputs.tag-full }}${{ matrix.tag-suffix }}" "container/${{ matrix.name }}${{ matrix.tag-suffix }}.oci.tar"
regctl image import "ghcr.io/goauthentik/dev-${{ matrix.name }}:${{ needs.build-compute-tags.outputs.tag-branch }}${{ matrix.tag-suffix }}" "container/${{ matrix.name }}${{ matrix.tag-suffix }}.oci.tar"
regctl image import "ghcr.io/goauthentik/dev-${{ matrix.name }}:${{ needs.build-compute-tags.outputs.tag-flux }}${{ matrix.tag-suffix }}" "container/${{ matrix.name }}${{ matrix.tag-suffix }}.oci.tar"
- uses: actions/attest@1e69f48acb82d1966a394da916b4c1698aa569d6
with:
subject-name: "ghcr.io/goauthentik/dev-${{ matrix.name }}"
@@ -540,7 +708,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
@@ -562,6 +730,7 @@ jobs:
```shell
AUTHENTIK_IMAGE=ghcr.io/goauthentik/dev-server
AUTHENTIK_TAG=${{ needs.build-compute-tags.outputs.tag-full }}
# Distroless image: AUTHENTIK_TAG=${{ needs.build-compute-tags.outputs.tag-full }}-distroless
AUTHENTIK_OUTPOSTS__CONTAINER_IMAGE_BASE=ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s
```
@@ -580,6 +749,7 @@ jobs:
image:
repository: ghcr.io/goauthentik/dev-server
tag: ${{ needs.build-compute-tags.outputs.tag-full }}
# Distroless image: tag: ${{ needs.build-compute-tags.outputs.tag-full }}-distroless
```
Afterwards, run the upgrade commands from the latest release notes.
@@ -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:
+7 -190
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 # v7.1.0
with:
node-version-file: package.json
cache: pnpm
@@ -53,7 +53,7 @@ jobs:
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 # v7.1.0
with:
node-version-file: package.json
cache: pnpm
@@ -78,195 +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 "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
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 produce reviewer-facing artifacts or
# comments. `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@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, traces and server logs, then open the report:
```shell
gh run download ${{ github.run_id }} -D playwright-artifacts
npx playwright show-report playwright-artifacts/playwright-report
```
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:
@@ -274,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
@@ -283,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 # v7.1.0
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 }}
+6 -2
View File
@@ -8,6 +8,8 @@ on:
- packages/tsconfig/**
- packages/oxlint-config/**
- packages/oxfmt-config/**
- packages/fonts/**
- packages/theme/**
- packages/docusaurus-config/**
- packages/logger-js/**
- packages/esbuild-plugin-live-reload/**
@@ -20,7 +22,7 @@ permissions:
jobs:
publish:
runs-on: ubuntu-latest
runs-on: ubuntu-26.04
strategy:
fail-fast: false
matrix:
@@ -29,7 +31,9 @@ jobs:
- packages/tsconfig
- packages/oxlint-config
- packages/oxfmt-config
- packages/fonts
- packages/logger-js
- packages/theme
- packages/docusaurus-config
- packages/esbuild-plugin-live-reload
steps:
@@ -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 # v7.1.0
with:
node-version-file: package.json
registry-url: https://registry.npmjs.org
+15 -7
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
@@ -21,17 +21,25 @@ jobs:
strategy:
fail-fast: false
matrix:
language: ["go", "javascript", "python"]
language:
- lang: "go"
deps: "system,go,runtime"
- lang: "javascript"
deps: "system,node,runtime"
- lang: "python"
deps: "system,python,rust,runtime"
steps:
- name: Checkout repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v5
- name: Setup authentik env
uses: ./.github/actions/setup
- name: Initialize CodeQL
uses: github/codeql-action/init@1c5b675653bb5c22dbe9b12b556ec555138e09fd # v4.38.1
with:
languages: ${{ matrix.language }}
dependencies: ${{ matrix.language.deps }}
- name: Initialize CodeQL
uses: github/codeql-action/init@9b3254085494b55a0f7c4c2b3d2d52cc712ce370 # v4.39.1
with:
languages: ${{ matrix.language.lang }}
- name: Autobuild
uses: github/codeql-action/autobuild@1c5b675653bb5c22dbe9b12b556ec555138e09fd # v4.38.1
uses: github/codeql-action/autobuild@9b3254085494b55a0f7c4c2b3d2d52cc712ce370 # v4.39.1
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@1c5b675653bb5c22dbe9b12b556ec555138e09fd # v4.38.1
uses: github/codeql-action/analyze@9b3254085494b55a0f7c4c2b3d2d52cc712ce370 # v4.39.1
+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
+36 -54
View File
@@ -7,7 +7,7 @@ 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 }}"
@@ -30,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
@@ -41,40 +41,42 @@ jobs:
strategy:
fail-fast: false
matrix:
name:
- server
- proxy
- ldap
- radius
- rac
include:
- name: server
- name: server
tag-suffix: -distroless
- name: proxy
- name: ldap
- name: radius
- name: rac
needs:
- metadata
env:
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 }}"
password: "${{ secrets.DOCKER_CORP_PASSWORD }}"
- name: Download release container artifact
run: |
gh release download "${{ needs.metadata.outputs.tag-name }}" --pattern "${{ matrix.name }}.oci.tar"
gh attestation verify "${{ matrix.name }}.oci.tar" --owner goauthentik
gh release download "${{ needs.metadata.outputs.tag-name }}" --pattern "${{ matrix.name }}${{ matrix.tag-suffix }}.oci.tar"
gh attestation verify "${{ matrix.name }}${{ matrix.tag-suffix }}.oci.tar" --owner goauthentik
- id: publish
name: Publish container
run: |
regctl image import "ocidir://${{ matrix.name }}:${{ needs.metadata.outputs.version }}" "${{ matrix.name }}.oci.tar"
regctl image import "ocidir://${{ matrix.name }}:${{ needs.metadata.outputs.version }}" "${{ matrix.name }}${{ matrix.tag-suffix }}.oci.tar"
echo "digest=$(regctl image digest "ocidir://${{ matrix.name }}:${{ needs.metadata.outputs.version }}")" >> "$GITHUB_OUTPUT"
regctl image import "ghcr.io/goauthentik/${{ matrix.name }}:${{ needs.metadata.outputs.version }}" "${{ matrix.name }}.oci.tar"
regctl image import "docker.io/authentik/${{ matrix.name }}:${{ needs.metadata.outputs.version }}" "${{ matrix.name }}.oci.tar"
regctl image import "ghcr.io/goauthentik/${{ matrix.name }}:${{ needs.metadata.outputs.version }}${{ matrix.tag-suffix }}" "${{ matrix.name }}${{ matrix.tag-suffix }}.oci.tar"
regctl image import "docker.io/authentik/${{ matrix.name }}:${{ needs.metadata.outputs.version }}${{ matrix.tag-suffix }}" "${{ matrix.name }}${{ matrix.tag-suffix }}.oci.tar"
if [ "${{ needs.metadata.outputs.release-reason }}" != "prerelease" ]; then
regctl image import "ghcr.io/goauthentik/${{ matrix.name }}:${{ needs.metadata.outputs.version-family }}" "${{ matrix.name }}.oci.tar"
regctl image import "docker.io/authentik/${{ matrix.name }}:${{ needs.metadata.outputs.version-family }}" "${{ matrix.name }}.oci.tar"
regctl image import "ghcr.io/goauthentik/${{ matrix.name }}:${{ needs.metadata.outputs.version-family }}${{ matrix.tag-suffix }}" "${{ matrix.name }}${{ matrix.tag-suffix }}.oci.tar"
regctl image import "docker.io/authentik/${{ matrix.name }}:${{ needs.metadata.outputs.version-family }}${{ matrix.tag-suffix }}" "${{ matrix.name }}${{ matrix.tag-suffix }}.oci.tar"
fi
# we need to re-login for the attestation to go through
- uses: docker/login-action@v4
@@ -90,7 +92,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
@@ -138,7 +140,7 @@ 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@e1253824e5c10ff9df46874f81ed3ec929e19cfd # v6.3.0
@@ -149,14 +151,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: |
@@ -165,7 +167,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@e6703d0b00208e0b3687ba660d18ab5af7892821 # v3
continue-on-error: true
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
@@ -181,55 +183,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 }}
+33 -21
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:
@@ -48,11 +48,11 @@ jobs:
- id: changelog-url
run: |
if [ "${{ inputs.release_reason }}" = "feature" ]; then
changelog_url="https://docs.goauthentik.io/docs/releases/${{ steps.check.outputs.version-family }}"
changelog_url="https://docs.goauthentik.io/releases/${{ steps.check.outputs.version-family }}"
elif [ "${{ inputs.release_reason }}" = "prerelease" ]; then
changelog_url="https://next.goauthentik.io/docs/releases/${{ steps.check.outputs.version-family }}"
changelog_url="https://next.goauthentik.io/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/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 }}
@@ -118,6 +118,10 @@ jobs:
include:
- name: server
dockerfile: Dockerfile
- name: server
dockerfile: Dockerfile
target: distroless
tag-suffix: -distroless
- name: proxy
dockerfile: proxy.Dockerfile
- name: ldap
@@ -132,13 +136,15 @@ jobs:
ref: "${{ needs.bump-version.outputs.release-commit }}"
image-name: "${{ matrix.name }}"
image-dockerfile: "lifecycle/container/${{ matrix.dockerfile }}"
image-target: "${{ matrix.target || '' }}"
image-tag-suffix: "${{ matrix.tag-suffix || '' }}"
image-build-args: |
VERSION=${{ needs.check-inputs.outputs.version }}
build-go-binaries:
needs:
- bump-version
timeout-minutes: 120
runs-on: ubuntu-latest
runs-on: ubuntu-26.04
permissions:
# Needed for checkout
contents: read
@@ -165,7 +171,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 +192,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 +220,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/
@@ -222,20 +228,24 @@ jobs:
retention-days: 2
include-hidden-files: true
test:
name: Pre-release test
runs-on: ubuntu-latest
name: Pre-release test (server${{ matrix.tag-suffix }})
runs-on: ubuntu-26.04
needs:
- check-inputs
- bump-version
- build-container
strategy:
fail-fast: false
matrix:
tag-suffix: ["", "-distroless"]
steps:
- name: Fetch container images
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v5
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v5
with:
name: container-build-server-amd64
name: container-build-server${{ matrix.tag-suffix }}-amd64
- name: Load container images
run: |
skopeo copy "oci-archive:container/server-amd64.oci.tar" "docker-daemon:authentik.invalid/goauthentik/server:${{ needs.check-inputs.outputs.version }}"
skopeo copy "oci-archive:container/server${{ matrix.tag-suffix }}-amd64.oci.tar" "docker-daemon:authentik.invalid/goauthentik/server:${{ needs.check-inputs.outputs.version }}${{ matrix.tag-suffix }}"
rm -rf container/
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v5
with:
@@ -244,7 +254,7 @@ jobs:
env:
COMPOSE_PROJECT_NAME: authentik-release-test
AUTHENTIK_IMAGE: authentik.invalid/goauthentik/server
AUTHENTIK_TAG: "${{ needs.check-inputs.outputs.version }}"
AUTHENTIK_TAG: "${{ needs.check-inputs.outputs.version }}${{ matrix.tag-suffix }}"
run: ./scripts/test_docker.sh
create-release:
name: Create release
@@ -255,7 +265,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 +273,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 +297,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
@@ -301,6 +311,7 @@ jobs:
subject-path: |
metadata.json
container/server.oci.tar
container/server-distroless.oci.tar
container/proxy.oci.tar
container/ldap.oci.tar
container/radius.oci.tar
@@ -320,6 +331,7 @@ jobs:
files: |
metadata.json
container/server.oci.tar
container/server-distroless.oci.tar
container/proxy.oci.tar
container/ldap.oci.tar
container/radius.oci.tar
+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
+1 -1
View File
@@ -1 +1 @@
24.20
24.22.1
+4 -3
View File
@@ -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/`) |
Generated
+147 -284
View File
File diff suppressed because it is too large. Load diff
+29 -26
View File
@@ -3,7 +3,6 @@ members = [
"packages/ak-axum",
"packages/ak-common",
"packages/client-rust",
"website/scripts/docsmg",
]
resolver = "3"
@@ -19,63 +18,66 @@ license-file = "LICENSE"
publish = false
[workspace.dependencies]
arc-swap = "= 1.9.2"
arc-swap = "= 1.9.3"
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.19.0", 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.7", features = ["derive", "env"] }
chrono = { version = "0.4.45", features = ["serde"] }
color-eyre = "= 0.6.5"
colored = "= 3.1.1"
config-rs = { package = "config", version = "= 0.15.22", default-features = false, features = [
"json",
"yaml",
] }
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"] }
notify = "= 8.2.0"
nix = { version = "= 0.31.3", features = [
"fs",
"hostname",
"signal",
"user",
] }
notify = "= 8.2.1"
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.30.1"
pyo3-build-config = "= 0.30.1"
rand = "= 0.10.3"
rcgen = { version = "= 0.14.10", default-features = false, features = [
"aws_lc_rs",
"fips",
@@ -96,8 +98,8 @@ reqwest-middleware = { version = "= 0.5.2", features = [
"query",
"rustls",
] }
rustls = { version = "= 0.23.45", features = ["fips"] }
sentry = { version = "= 0.49.2", default-features = false, features = [
rustls = { version = "= 0.23.46", features = ["fips"] }
sentry = { version = "= 0.49.5", default-features = false, features = [
"backtrace",
"contexts",
"debug-images",
@@ -108,9 +110,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.23.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 +127,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.54.1", 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 +153,7 @@ tracing-subscriber = { version = "= 0.3.23", features = [
"tracing-log",
] }
url = "= 2.5.8"
uuid = { version = "= 1.26.1", features = ["serde", "v4"] }
uuid = { version = "= 1.29.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 +362,7 @@ url.workspace = true
uuid.workspace = true
[dev-dependencies]
rcgen.workspace = true
tempfile.workspace = true
[lints]
+71 -34
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-locales: ## Reports translation files and generated locale lists that drifted from locales.yaml.
$(UV) run python scripts/locales.py check
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 ## Lint the python and golang sources
golangci-lint run -v
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
@@ -242,7 +253,7 @@ 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
@@ -250,30 +261,44 @@ node-install: node-preinstall ## Install the necessary libraries to build Node.
## 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:
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:
@@ -283,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
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
@@ -323,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
#########################
@@ -353,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
@@ -370,6 +404,9 @@ 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
+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>
---
@@ -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 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,7 @@ class SettingsView(RetrieveUpdateAPIView):
]
def get_object(self):
obj = self.request.tenant
# Fresh instance; the serializer mutates it on update
obj = SystemSettings.objects.get(pk=True)
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)
+36 -2
View File
@@ -8,6 +8,7 @@ from typing import TypedDict
from cryptography.hazmat.backends.openssl.backend import backend
from django.conf import settings
from django.db import Error, connection
from django.utils.timezone import now
from django.views.debug import SafeExceptionReporterFilter
from drf_spectacular.utils import extend_schema
@@ -17,13 +18,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():
@@ -48,6 +49,17 @@ class RuntimeDict(TypedDict):
authentik_version: str
class PostgreSQLDict(TypedDict):
"""PostgreSQL information"""
version: str
jit: str
jit_source: str
ssl: bool
ssl_version: str | None
ssl_cipher: str | None
class SystemInfoSerializer(PassiveSerializer):
"""Get system information."""
@@ -60,6 +72,7 @@ class SystemInfoSerializer(PassiveSerializer):
embedded_outpost_disabled = SerializerMethodField()
embedded_outpost_host = SerializerMethodField()
base_url = SerializerMethodField()
postgresql = SerializerMethodField(allow_null=True)
def get_http_headers(self, request: Request) -> dict[str, str]:
"""Get HTTP Request headers"""
@@ -118,7 +131,28 @@ 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
def get_postgresql(self, request: Request) -> PostgreSQLDict:
"""PostgreSQL information for this request's database connection"""
try:
with connection.cursor() as cursor:
cursor.execute(
"SELECT current_setting('server_version'), setting, source, ssl, "
"version, cipher FROM pg_settings, pg_stat_ssl WHERE name = 'jit' "
"AND pid = pg_backend_pid()"
)
version, jit, jit_source, ssl, ssl_version, ssl_cipher = cursor.fetchone()
except Error:
return None
return {
"version": version,
"jit": jit,
"jit_source": jit_source,
"ssl": ssl,
"ssl_version": ssl_version,
"ssl_cipher": ssl_cipher,
}
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 [
+2 -3
View File
@@ -106,9 +106,8 @@ class FileView(APIView):
raise ValidationError(
{
"file": [
_(
f"File size ({file.size}B) exceeds maximum allowed "
f"size ({MAX_FILE_SIZE_BYTES}B)."
_("File size ({size}B) exceeds maximum allowed size ({max_size}B).").format(
size=file.size, max_size=MAX_FILE_SIZE_BYTES
)
]
}
+11 -4
View File
@@ -1,12 +1,9 @@
from collections.abc import Generator, Iterator
from contextlib import contextmanager
from tempfile import SpooledTemporaryFile
from typing import Any, TypeVar
from typing import TYPE_CHECKING, Any, TypeVar
from urllib.parse import urlsplit, urlunsplit
import boto3
from botocore.config import Config
from botocore.exceptions import ClientError
from django.db import connection
from django.http.request import HttpRequest
@@ -15,6 +12,9 @@ from authentik.admin.files.usage import FileUsage
from authentik.lib.config import CONFIG
from authentik.lib.utils.time import timedelta_from_string
if TYPE_CHECKING:
import boto3
_ConfigValue = TypeVar("_ConfigValue")
@@ -74,6 +74,9 @@ class S3Backend(ManageableBackend):
@property
def session(self) -> boto3.Session:
"""Create boto3 session with configured credentials."""
# boto3 is heavy, only import it when S3 is used
import boto3
session_profile, session_profile_r = self._get_config("session_profile", None)
if session_profile is not None:
if session_profile_r or self._session is None:
@@ -100,6 +103,8 @@ class S3Backend(ManageableBackend):
@property
def client(self):
"""Create S3 client with configured endpoint and region."""
from botocore.config import Config
endpoint_url, endpoint_url_r = self._get_config("endpoint", None)
session = self.session
use_ssl, use_ssl_r = self._get_bool_config("use_ssl", True)
@@ -274,6 +279,8 @@ class S3Backend(ManageableBackend):
def file_exists(self, name: str) -> bool:
"""Check if a file exists in S3."""
from botocore.exceptions import ClientError
try:
self.client.head_object(
Bucket=self.bucket_name,
+35 -6
View File
@@ -1,9 +1,10 @@
from collections.abc import Generator
from pathlib import Path
from pathlib import Path, PurePosixPath
from django.conf import settings
from django.http.request import HttpRequest
from authentik.admin.files.backends.base import Backend
from authentik.admin.files.backends.base import THEME_VARIABLE, Backend, get_valid_themes
from authentik.admin.files.usage import FileUsage
from authentik.lib.config import CONFIG
@@ -12,6 +13,15 @@ STATIC_ASSETS_DIRS = [Path(p) for p in ("assets/icons", "assets/images")]
STATIC_ASSETS_SOURCES_DIR = Path("web/authentik/sources")
STATIC_FILE_EXTENSIONS = [".svg", ".png", ".jpg", ".jpeg"]
STATIC_PATH_PREFIX = "/static"
STATIC_SOURCES_PREFIX = f"{STATIC_PATH_PREFIX}/authentik/sources/"
def static_url_name(url: str | None) -> str | None:
"""Name of the static file behind a URL from Django's ``static()``, as this backend
names it. Models use ``static()`` for their default icons."""
if not url or not url.startswith(settings.STATIC_URL):
return None
return f"{STATIC_PATH_PREFIX}/{url.removeprefix(settings.STATIC_URL)}"
class StaticBackend(Backend):
@@ -30,11 +40,15 @@ class StaticBackend(Backend):
def list_files(self) -> Generator[str]:
"""List all static files."""
# List built-in source icons
# List built-in source icons, one folder per icon with a variant per theme
if STATIC_ASSETS_SOURCES_DIR.exists():
for file_path in STATIC_ASSETS_SOURCES_DIR.iterdir():
if file_path.is_file() and (file_path.suffix in STATIC_FILE_EXTENSIONS):
yield f"{STATIC_PATH_PREFIX}/authentik/sources/{file_path.name}"
for icon_dir in STATIC_ASSETS_SOURCES_DIR.iterdir():
if not icon_dir.is_dir():
continue
for light in icon_dir.glob("light.*"):
if light.suffix in STATIC_FILE_EXTENSIONS:
icon = f"{icon_dir.name}/{THEME_VARIABLE}{light.suffix}"
yield f"{STATIC_SOURCES_PREFIX}{icon}"
# List other static assets
for dir in STATIC_ASSETS_DIRS:
@@ -56,3 +70,18 @@ class StaticBackend(Backend):
if request is None:
return url
return request.build_absolute_uri(url)
def themed_urls(
self,
name: str,
request: HttpRequest | None = None,
use_cache: bool = True,
) -> dict[str, str] | None:
"""Theme variants of ``%(theme)s`` files, and of a single variant of a built-in
source icon, such as ``github/light.svg``, which models use as default icons."""
path = PurePosixPath(name)
if path.parent.parent == PurePosixPath(STATIC_SOURCES_PREFIX) and (
path.stem in get_valid_themes()
):
name = str(path.with_stem(THEME_VARIABLE))
return super().themed_urls(name, request, use_cache=use_cache)
@@ -19,7 +19,7 @@ class TestS3BackendClientCache(TestCase):
@CONFIG.patch("storage.s3.use_ssl", "true")
def test_client_reuses_boto_client(self):
"""Test repeated client access reuses the same boto client."""
with patch("authentik.admin.files.backends.s3.boto3.Session") as session_cls:
with patch("boto3.Session") as session_cls:
session = session_cls.return_value
client = Mock()
session.client.return_value = client
@@ -36,7 +36,7 @@ class TestS3BackendClientCache(TestCase):
def test_client_refreshes_when_config_changes(self):
"""Test client cache is invalidated when S3 client config changes."""
with CONFIG.patch("storage.s3.endpoint", "https://s3-1.example.com"):
with patch("authentik.admin.files.backends.s3.boto3.Session") as session_cls:
with patch("boto3.Session") as session_cls:
session = session_cls.return_value
first_client = Mock()
second_client = Mock()
@@ -34,9 +34,42 @@ class TestStaticBackend(TestCase):
self.assertFalse(self.backend.supports_file("test.jpg"))
def test_list_files(self):
"""Test list_files includes expected files"""
"""Test list_files lists built-in source icons with a variant per theme"""
files = list(self.backend.list_files())
self.assertIn("/static/authentik/sources/ldap.png", files)
self.assertIn("/static/authentik/sources/openidconnect.svg", files)
self.assertIn("/static/authentik/sources/saml.png", files)
self.assertIn("/static/authentik/sources/github/%(theme)s.svg", files)
self.assertIn("/static/authentik/sources/kerberos/%(theme)s.png", files)
self.assertNotIn("/static/authentik/sources/github/light.svg", files)
self.assertNotIn("/static/authentik/sources/github/dark.svg", files)
def test_themed_urls_source_icon(self):
"""Test themed_urls of a built-in source icon picked in the file picker"""
self.assertEqual(
self.backend.themed_urls("/static/authentik/sources/github/%(theme)s.svg"),
{
"light": "/static/authentik/sources/github/light.svg",
"dark": "/static/authentik/sources/github/dark.svg",
},
)
def test_themed_urls_source_icon_variant(self):
"""Test themed_urls of one variant of a built-in source icon, as used by defaults"""
github = {
"light": "/static/authentik/sources/github/light.svg",
"dark": "/static/authentik/sources/github/dark.svg",
}
self.assertEqual(
self.backend.themed_urls("/static/authentik/sources/github/light.svg"), github
)
self.assertEqual(
self.backend.themed_urls("/static/authentik/sources/github/dark.svg"), github
)
def test_themed_urls_other_static_files(self):
"""Test themed_urls returns None for other static files"""
self.assertIsNone(self.backend.themed_urls("/static/dist/assets/icons/icon.svg"))
self.assertIsNone(self.backend.themed_urls("/static/dist/assets/icons/light.svg"))
self.assertIsNone(self.backend.themed_urls("/static/authentik/sources/github/logo.svg"))
self.assertIsNone(
self.backend.themed_urls("/static/authentik/sources/github/../github/light.svg")
)
+8 -3
View File
@@ -5,7 +5,7 @@ from django.http.request import HttpRequest
from rest_framework.request import Request
from structlog.stdlib import get_logger
from authentik.admin.files.backends.base import ManageableBackend
from authentik.admin.files.backends.base import ManageableBackend, substitute_theme
from authentik.admin.files.backends.file import FileBackend
from authentik.admin.files.backends.passthrough import PassthroughBackend
from authentik.admin.files.backends.s3 import S3Backend
@@ -78,6 +78,9 @@ class FileManager:
Set ``use_cache=False`` when the caller needs a fresh signed URL instead
of a cached one, for example when serializing flow/login payloads that
may be refreshed after the previous JWT has expired.
A name with ``%(theme)s`` resolves to its light variant, so the URL always
points at a real file. Callers that know the theme use ``themed_urls()``.
"""
if not name:
return ""
@@ -85,6 +88,7 @@ class FileManager:
if isinstance(request, Request):
request = request._request
name = substitute_theme(name, "light")
for backend in self.backends:
if backend.supports_file(name):
return backend.file_url(name, request, use_cache=use_cache)
@@ -99,12 +103,13 @@ class FileManager:
use_cache: bool = True,
) -> dict[str, str] | None:
"""
Get URLs for each theme variant when filename contains %(theme)s.
Get URLs for each theme variant when filename contains %(theme)s, or when it is
one variant of a built-in source icon.
``use_cache`` has the same semantics as ``file_url()`` and allows
callers to force regeneration of expiring signed URLs.
Returns dict mapping theme to URL if %(theme)s present, None otherwise.
Returns dict mapping theme to URL if there are theme variants, None otherwise.
"""
if not name:
return None
+15 -9
View File
@@ -92,10 +92,13 @@ class TestFileAPI(FileTestFileBackendMixin, TestCase):
self.assertEqual(response.status_code, 200)
self.assertIn(
{
"name": "/static/authentik/sources/ldap.png",
"url": "http://testserver/static/authentik/sources/ldap.png",
"mime_type": "image/png",
"themed_urls": None,
"name": "/static/authentik/sources/ldap/%(theme)s.svg",
"url": "http://testserver/static/authentik/sources/ldap/light.svg",
"mime_type": "image/svg+xml",
"themed_urls": {
"light": "http://testserver/static/authentik/sources/ldap/light.svg",
"dark": "http://testserver/static/authentik/sources/ldap/dark.svg",
},
},
response.data,
)
@@ -120,7 +123,7 @@ class TestFileAPI(FileTestFileBackendMixin, TestCase):
reverse(
"authentik_api:files",
query={
"search": "LDAP.PNG",
"search": "LDAP/",
},
)
)
@@ -128,10 +131,13 @@ class TestFileAPI(FileTestFileBackendMixin, TestCase):
self.assertEqual(response.status_code, 200)
self.assertIn(
{
"name": "/static/authentik/sources/ldap.png",
"url": "http://testserver/static/authentik/sources/ldap.png",
"mime_type": "image/png",
"themed_urls": None,
"name": "/static/authentik/sources/ldap/%(theme)s.svg",
"url": "http://testserver/static/authentik/sources/ldap/light.svg",
"mime_type": "image/svg+xml",
"themed_urls": {
"light": "http://testserver/static/authentik/sources/ldap/light.svg",
"dark": "http://testserver/static/authentik/sources/ldap/dark.svg",
},
},
response.data,
)
@@ -54,6 +54,18 @@ class TestResolveFileUrlBasic(TestCase):
result = manager.file_url("/static/authentik/sources/icon.svg")
self.assertEqual(result, "/static/authentik/sources/icon.svg")
def test_file_url_theme_variable_uses_light(self):
"""Test file_url resolves %(theme)s to the light variant, never the placeholder"""
manager = FileManager(FileUsage.MEDIA)
self.assertEqual(
manager.file_url("/static/authentik/sources/kerberos/%(theme)s.png"),
"/static/authentik/sources/kerberos/light.png",
)
self.assertEqual(
manager.file_url("https://example.com/logo-%(theme)s.png"),
"https://example.com/logo-light.png",
)
def test_file_url_forwards_use_cache(self):
"""Test file_url forwards use_cache to backend."""
manager = FileManager(FileUsage.MEDIA)
+8 -2
View File
@@ -76,10 +76,16 @@ def validate_upload_file_name(
# Check path length limits
normalized = str(path)
if len(normalized) > MAX_FILE_NAME_LENGTH:
raise ValidationError(_(f"File name too long (max {MAX_FILE_NAME_LENGTH} characters)"))
raise ValidationError(
_("File name too long (max {MAX_FILE_NAME_LENGTH} characters)").format(
MAX_FILE_NAME_LENGTH=MAX_FILE_NAME_LENGTH
)
)
for part in path.parts:
if len(part) > MAX_PATH_COMPONENT_LENGTH:
raise ValidationError(
_(f"Path component too long (max {MAX_PATH_COMPONENT_LENGTH} characters)")
_("Path component too long (max {MAX_PATH_COMPONENT_LENGTH} characters)").format(
MAX_PATH_COMPONENT_LENGTH=MAX_PATH_COMPONENT_LENGTH
)
)
@@ -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 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]),
@@ -83,24 +82,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.
@@ -0,0 +1,34 @@
"""Change a user's password"""
from getpass import getpass
from django.core.management.base import BaseCommand, CommandError
from rest_framework.exceptions import ValidationError
from authentik.core.models import User
from authentik.stages.password.models import PasswordDevice
class Command(BaseCommand):
"""Change a user's password, replacing Django's command that writes to the user"""
help = "Change a user's password."
def add_arguments(self, parser):
parser.add_argument("username")
def handle(self, *args, username: str, **options):
user = User.objects.filter(username=username).first()
if not user:
raise CommandError(f"User '{username}' does not exist")
password = getpass("Password: ")
if password != getpass("Password (again): "):
raise CommandError("Passwords do not match")
if not password:
raise CommandError("Password cannot be empty")
try:
PasswordDevice.set_password(user, password)
except ValidationError as exc:
# An LDAP or Kerberos source refused the password
raise CommandError(str(exc)) from exc
self.stdout.write(f"Password changed for user '{username}'")
@@ -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}.")
+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.
+136 -1
View File
@@ -1,7 +1,142 @@
"""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 SystemSettingsQuerySet(models.QuerySet):
def update(self, **kwargs) -> int:
# Queryset updates skip post_save, so drop the cached settings here too
from authentik.admin.utils import get_system_settings
rows = super().update(**kwargs)
get_system_settings.cache_clear()
return rows
class SystemSettings(InternallyManagedMixin, SerializerModel):
"""Global settings for this authentik instance"""
id = models.BooleanField(primary_key=True, default=True)
objects = SystemSettingsQuerySet.as_manager()
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 get_system_settings
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(**_):
get_system_settings.cache_clear()
+63 -18
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,
)
message=_("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
+14
View File
@@ -2,6 +2,7 @@
from json import loads
from django.db import connection
from django.test import TestCase
from django.urls import reverse
@@ -44,3 +45,16 @@ class TestAdminAPI(TestCase):
"""Test system API"""
response = self.client.get(reverse("authentik_api:admin_system"))
self.assertEqual(response.status_code, 200)
def test_system_postgresql(self):
"""Test system API reports the JIT setting and TLS status of the database connection"""
with connection.cursor() as cursor:
cursor.execute("SET jit = off")
response = self.client.get(reverse("authentik_api:admin_system"))
self.assertEqual(response.status_code, 200)
postgresql = loads(response.content)["postgresql"]
self.assertEqual(postgresql["jit"], "off")
self.assertEqual(postgresql["jit_source"], "session")
self.assertTrue(postgresql["version"])
self.assertEqual(postgresql["ssl"], connection.connection.pgconn.ssl_in_use)
self.assertEqual(postgresql["ssl_version"] is not None, postgresql["ssl"])
@@ -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,20 @@
from django.test import TestCase
from authentik.admin.models import SystemSettings
from authentik.admin.utils import get_system_settings
class TestSystemSettingsCache(TestCase):
def test_cached(self):
"""Settings are cached across calls"""
self.assertIs(get_system_settings(), get_system_settings())
def test_cleared_on_save(self):
"""Saving the settings drops the cached instance"""
first = get_system_settings()
settings = SystemSettings.objects.get(pk=True)
settings.avatars = "none"
settings.save()
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"),
+16
View File
@@ -0,0 +1,16 @@
"""authentik admin utils"""
from authentik.admin.models import SystemSettings
from authentik.lib.config import CONFIG
from authentik.root.cache import in_memory_cache
@in_memory_cache(key=lambda: None, timeout=CONFIG.get_int("cache.timeout_system_settings", 30))
def get_system_settings() -> SystemSettings:
"""Get the system settings. The returned object is shared, don't mutate it."""
return SystemSettings.objects.get(pk=True)
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
+44 -3
View File
@@ -1,15 +1,19 @@
"""DjangoQL search"""
from django.db.models import QuerySet
from django.db.models.constants import LOOKUP_SEP
from djangoql.ast import Name
from djangoql.exceptions import DjangoQLError
from djangoql.queryset import apply_search
from djangoql.parser import DjangoQLParser
from djangoql.queryset import build_filter
from djangoql.schema import DjangoQLSchema
from rest_framework.filters import SearchFilter
from rest_framework.request import Request
from structlog.stdlib import get_logger
from authentik.api.search.fields import JSONSearchField
from authentik.rbac.endpoint_checks import EndpointChecks
from authentik.rbac.field_rules import FieldRules
LOGGER = get_logger()
@@ -33,12 +37,35 @@ class BaseSchema(DjangoQLSchema):
return super().resolve_name(name)
class HiddenFieldsSearchFilter(SearchFilter):
"""This is used to prevent unauthorized users from probing values of fields hidden to them."""
def __init__(self):
super().__init__()
self.hidden_whole_fields: set[str] = set()
def get_search_fields(self, view, request: Request):
fields = super().get_search_fields(view, request)
if not fields or not self.hidden_whole_fields:
return fields
return [
field for field in fields if self.searched_field(field) not in self.hidden_whole_fields
]
def searched_field(self, search_field: str) -> str:
"""The model field a `search_fields` entry starts from, without DRF's lookup prefix
(`^`, `=`, `@` or `$`) or a `__` path into related models"""
if search_field[:1] in self.lookup_prefixes:
search_field = search_field[1:]
return search_field.split(LOOKUP_SEP)[0]
class QLSearch(SearchFilter):
"""rest_framework search filter which uses DjangoQL"""
def __init__(self):
super().__init__()
self._fallback = SearchFilter()
self._fallback = HiddenFieldsSearchFilter()
def get_search_terms(self, request: Request) -> str:
"""Search terms are set by a ?search=... query parameter,
@@ -59,12 +86,26 @@ class QLSearch(SearchFilter):
return InlineSchema
def filter_queryset(self, request: Request, queryset: QuerySet, view) -> QuerySet:
rules = EndpointChecks.for_request(request).field_rules()
rules.refuse_hidden_parameters(request, view)
self._fallback.hidden_whole_fields = rules.hidden_whole_fields
search_query = self.get_search_terms(request)
schema = self.get_schema(request, view)
if len(search_query) == 0:
return self._fallback.filter_queryset(request, queryset, view)
try:
return apply_search(queryset, search_query, schema=schema)
return self.apply_search(queryset, search_query, schema, rules)
except DjangoQLError as exc:
LOGGER.debug("Failed to parse search expression", exc=exc)
return self._fallback.filter_queryset(request, queryset, view)
def apply_search(
self, queryset: QuerySet, search: str, schema: type[BaseSchema], rules: FieldRules
) -> QuerySet:
"""This is a rewrite of `djangoql.queryset.apply_search`"""
ast = DjangoQLParser().parse(search)
if rules.hidden:
rules.guard_search(ast)
schema_instance = schema(queryset.model)
schema_instance.validate(ast)
return queryset.filter(build_filter(ast, schema_instance))
+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)
+6 -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
@@ -60,6 +61,8 @@ class ConfigSerializer(PassiveSerializer):
cache_timeout = IntegerField(required=True)
cache_timeout_flows = IntegerField(required=True)
cache_timeout_policies = IntegerField(required=True)
cache_timeout_brands = IntegerField(required=True)
cache_timeout_system_settings = IntegerField(required=True)
class ConfigView(APIView):
@@ -78,7 +81,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)
@@ -105,6 +108,8 @@ class ConfigView(APIView):
"cache_timeout": CONFIG.get_int("cache.timeout"),
"cache_timeout_flows": CONFIG.get_int("cache.timeout_flows"),
"cache_timeout_policies": CONFIG.get_int("cache.timeout_policies"),
"cache_timeout_brands": CONFIG.get_int("cache.timeout_brands"),
"cache_timeout_system_settings": CONFIG.get_int("cache.timeout_system_settings"),
}
)
+2 -1
View File
@@ -12,6 +12,7 @@ from structlog.stdlib import get_logger
from authentik.api.v3.config import ConfigView
from authentik.api.views import APIBrowserView
from authentik.lib.utils.reflection import get_apps
from authentik.lib.utils.urls import sort_hot
LOGGER = get_logger()
@@ -45,7 +46,7 @@ for _authentik_app in get_apps():
)
urlpatterns = (
urlpatterns = sort_hot(
[
path("", APIBrowserView.as_view(), name="schema-browser"),
]
+1 -1
View File
@@ -227,7 +227,7 @@ class BlueprintInstanceViewSet(UsedByMixin, ModelViewSet):
try:
importer = Importer.from_string(string_contents, context)
except EntryInvalidError as exc:
raise ValidationError(_("Invalid blueprint file: {exc}".format(exc=str(exc)))) from None
raise ValidationError(_("Invalid blueprint file: {exc}").format(exc=str(exc))) from None
check_blueprint_perms(importer.blueprint, self.request.user)
return importer
+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,7 +1,6 @@
"""Test and debug Blueprints"""
import atexit
import readline
from pathlib import Path
from pprint import pformat
from sys import exit as sysexit
@@ -11,6 +10,12 @@ from django.core.management.base import BaseCommand, no_translations
from structlog.stdlib import get_logger
from yaml import load
try:
import readline
except ImportError: # pragma: no cover
# There's no libreadline in the distroless image, degrade instead of failing
readline = None
from authentik.blueprints.v1.common import BlueprintLoader, EntryInvalidError
from authentik.core.management.commands.shell import get_banner_text
from authentik.lib.utils.errors import exception_to_string
@@ -25,6 +30,9 @@ class Command(BaseCommand):
def __init__(self, *args, **kwargs) -> None:
super().__init__(*args, **kwargs)
if readline is None:
self.stderr.write("readline is not available, line editing and history are disabled")
return
histfolder = Path("~").expanduser() / Path(".local/share/authentik")
histfolder.mkdir(parents=True, exist_ok=True)
histfile = histfolder / Path("blueprint_shell_history")
@@ -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())
+92 -2
View File
@@ -1,16 +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
@@ -345,6 +348,93 @@ class TestBlueprintsV1(TransactionTestCase):
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(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,6 +38,16 @@ class TestBlueprintsV1RBAC(TransactionTestCase):
self.assertIsNotNone(role)
self.assertEqual(get_perms(role), {"authentik_blueprints.view_blueprintinstance"})
def test_role_unknown_permission(self):
"""Test that an unknown permission fails validation"""
uid = generate_id()
import_yaml = load_fixture("fixtures/rbac_role.yaml", id=uid).replace(
"authentik_blueprints.view_blueprintinstance", "authentik_blueprints.view_nothing"
)
importer = Importer.from_string(import_yaml)
self.assertFalse(importer.validate()[0])
def test_object_permission(self):
"""Test permissions"""
uid = generate_id()
+266
View File
@@ -1,9 +1,12 @@
"""Test blueprints v1 tasks"""
from hashlib import sha512
from pathlib import Path
from tempfile import NamedTemporaryFile, mkdtemp
from unittest.mock import patch
from django.test import TransactionTestCase
from django.utils.crypto import salted_hmac
from yaml import dump
from authentik.blueprints.models import BlueprintInstance, BlueprintInstanceStatus
@@ -124,6 +127,49 @@ class TestBlueprintsV1Tasks(TransactionTestCase):
},
)
@CONFIG.patch("blueprints_dir", TMP)
def test_valid_updated_external_values(self):
"""Test that changing only an `!Env` or `!File` value reapplies the blueprint"""
name = generate_id()
env_key = f"AUTHENTIK_TEST_{generate_id().upper()}"
with (
NamedTemporaryFile(mode="w+", suffix=".yaml", dir=TMP) as file,
NamedTemporaryFile(mode="w+") as value_file,
patch.dict("os.environ", {env_key: "foo"}),
):
value_file.write("foo")
value_file.flush()
content = (
"version: 1\n"
f"metadata:\n name: {name}\n"
f"context:\n env: !Env {env_key}\n file: !File {value_file.name}\n"
"entries: []\n"
)
file.write(content)
file.flush()
blueprints_discovery.send()
instance = BlueprintInstance.objects.get(name=name)
first_hash = instance.last_applied_hash
self.assertNotEqual(first_hash, sha512(content.encode()).hexdigest())
# Unchanged values don't reapply
blueprints_discovery.send()
instance.refresh_from_db()
self.assertEqual(instance.last_applied_hash, first_hash)
with patch.dict("os.environ", {env_key: "bar"}):
blueprints_discovery.send()
instance.refresh_from_db()
env_hash = instance.last_applied_hash
self.assertNotEqual(env_hash, first_hash)
value_file.seek(0)
value_file.write("bar")
value_file.flush()
blueprints_discovery.send()
instance.refresh_from_db()
self.assertNotIn(instance.last_applied_hash, [first_hash, env_hash])
@CONFIG.patch("blueprints_dir", TMP)
def test_valid_disabled(self):
"""Test valid file"""
@@ -156,3 +202,223 @@ 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())
expected.update(
salted_hmac(
"goauthentik.io/blueprints/v1/external-values",
sha512(b"initial").digest() * routes,
algorithm="sha512",
).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"'),
("env key with a null byte", '!Env "\\0"'),
("env key outside the filesystem encoding", '!Env "\\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):
+68 -38
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
@@ -59,7 +69,7 @@ class Exporter:
blueprint = Blueprint()
self._pre_export(blueprint)
blueprint.metadata = BlueprintMetadata(
name=_("authentik Export - {date}".format_map({"date": str(now())})),
name=_("authentik Export - {date}").format(date=str(now())),
labels={
LABEL_AUTHENTIK_GENERATED: "true",
},
@@ -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
+79
View File
@@ -0,0 +1,79 @@
"""Blueprint hashing"""
from collections.abc import Generator
from hashlib import sha512
from os import getenv
from pathlib import Path
from typing import Any
from django.utils.crypto import salted_hmac
from yaml import load
from yaml.error import YAMLError
from authentik.blueprints.v1.common import BlueprintLoader, Env, File, YAMLTag
def iter_external_tags(
value: Any, ancestors: frozenset[int] = frozenset()
) -> Generator[Env | File]:
"""Find all `!Env` and `!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, Env | 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_external_tags(child, ancestors)
# One byte where a readable value contributes a 64-byte digest
MISSING_VALUE_MARKER = b"\0"
def blueprint_hash(content: str) -> str:
"""Hash a blueprint's content and the current values of its `!Env` and `!File` tags.
The values are keyed with the secret key, as the hash is visible in the API and a
plain hash of a short secret could be brute-forced."""
hasher = sha512(content.encode())
try:
raw_blueprint = load(content, BlueprintLoader)
except YAMLError:
return hasher.hexdigest()
values = salted_hmac("goauthentik.io/blueprints/v1/external-values", b"", algorithm="sha512")
has_values = False
for tag in iter_external_tags(raw_blueprint):
# Mapping-node tags have no key or path; nested tags cannot be resolved here
if isinstance(tag, Env):
key = getattr(tag, "key", None)
if not isinstance(key, str):
continue
try:
env = getenv(key)
except ValueError:
env = None
value = None if env is None else env.encode(errors="surrogateescape")
else:
path = getattr(tag, "path", None)
if not isinstance(path, str):
continue
try:
value = Path(path).read_bytes()
except OSError, ValueError:
value = None
has_values = True
# A missing value still takes its place in the sequence, so a value that goes
# missing while another appears cannot leave the hash unchanged
values.update(MISSING_VALUE_MARKER if value is None else sha512(value).digest())
if has_values:
hasher.update(values.digest())
return hasher.hexdigest()
+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]
+21
View File
@@ -0,0 +1,21 @@
"""authentik brand signals"""
from django.db.models.signals import post_delete, post_save
from django.dispatch import receiver
from authentik.brands.models import Brand
from authentik.brands.utils import get_brand_for_request
from authentik.core.models import Application
from authentik.flows.models import Flow
@receiver(post_save, sender=Brand)
@receiver(post_delete, sender=Brand)
# Cached brands carry their flows and default application (see _BRAND_RELATED_FK_FIELDS)
@receiver(post_save, sender=Flow)
@receiver(post_delete, sender=Flow)
@receiver(post_save, sender=Application)
@receiver(post_delete, sender=Application)
def brand_cache_clear(**_):
"""Drop cached brand lookups when a brand or an object it caches changes"""
get_brand_for_request.cache_clear()
+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):
+12 -3
View File
@@ -9,9 +9,12 @@ 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.config import CONFIG
from authentik.lib.tracing import active_tracer
from authentik.tenants.models import Tenant
from authentik.root.cache import in_memory_cache
_q_default = Q(default=True)
DEFAULT_BRAND = Brand(domain="fallback")
@@ -26,6 +29,9 @@ def session_safe_mode(request: HttpRequest) -> bool:
return bool(session.get(SESSION_KEY_BRAND_SAFE_MODE))
@in_memory_cache(
key=lambda request: request.get_host(), timeout=CONFIG.get_int("cache.timeout_brands", 30)
)
def get_brand_for_request(request: HttpRequest) -> Brand:
"""Get brand object for current request"""
@@ -65,7 +71,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 +87,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]
+2
View File
@@ -16,6 +16,8 @@ GRANT_TYPE_TOKEN_EXCHANGE = "urn:ietf:params:oauth:grant-type:token-exchange" #
# https://datatracker.ietf.org/doc/html/rfc8693#section-3
TOKEN_TYPE_URI_ACCESS_TOKEN = "urn:ietf:params:oauth:token-type:access_token" # nosec
TOKEN_TYPE_URI_JWT = "urn:ietf:params:oauth:token-type:jwt" # nosec
# Only valid as requested_token_type, with a federated SAML provider as `audience`
TOKEN_TYPE_URI_SAML2 = "urn:ietf:params:oauth:token-type:saml2" # nosec
# authentik's own built-in Token model (e.g. API tokens), not part of RFC 8693 -- only
# meaningful as an actor_token_type, never as a subject_token/requested_token_type
TOKEN_TYPE_URI_AUTHENTIK_TOKEN = "goauthentik.io/oauth/token-type/authentik_token" # nosec
Loaded 100 of 2658 files, more files were not shown because too many files have changed in this diff. Show more