19 Commits
Author SHA1 Message Date
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
Teffen Ellis 065170f2e6 root: switch cspell to typo-only reporting (#24701)
* root: switch cspell to typo-only reporting

cSpell's default mode reports every word it does not recognize, so each
new integration name or identifier needed a dictionary entry. Switch to
unknownWords: report-common-typos, which matches CodeSpell's behavior:
only known misspellings (reported with a suggested fix) and flagWords
fail the check.

Remove the per-topic dictionaries and word-shape ignore regexes this
makes unnecessary, fix the 18 typos the old allowlists were masking,
and document the new workflow.

Claude-Session: https://claude.ai/code/session_014ZuquWGxU5ReaXR5D3NmwW

* web/docs: fix style-loader-plugin path and wording in CSS architecture doc

Claude-Session: https://claude.ai/code/session_014ZuquWGxU5ReaXR5D3NmwW

* website: remove stray blank lines left by ignore-comment removal

Claude-Session: https://claude.ai/code/session_014ZuquWGxU5ReaXR5D3NmwW
2026-08-07 00:55:36 +00:00
4e092df177 web, packages/geo, server/static: Air Gapped Maps Merge Branch (#24254)
* server/static: cover range requests for static assets

The Go web server this originally fixed is gone — `ak server` now execs the
Rust binary, and its static handler is a tower-http `ServeDir` behind a
compression layer. Both halves of the old fix are moot there: `ServeDir`
serves ranges itself, tower-http never compresses a response carrying
`Content-Range`, and no ETag middleware survived the rewrite.

Nothing to port, then, but the events map still byte-serves its PMTiles
basemap out of `/static/dist/`, so pin the behavior it depends on: a ranged
request comes back as an uncompressed 206 with an accurate `Content-Length`,
while a full request is still gzipped. The compression layer moves behind a
named constructor so the test exercises the same configuration the router
builds.

refs #21849

* brands: add branding_map_tiles for the events map tile source (#24253)

* brands: add branding_map_tiles for the events map tile source

Brand-level override for where the events map loads its vector tiles:
empty keeps the bundled basemap, a pmtiles:// archive URL or XYZ template
points at your own. Includes the migration, schema, and regenerated
clients.

* Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <[email protected]>
Signed-off-by: Teffen Ellis <[email protected]>

* packages/geo: add @goauthentik/geo and the hexworld event map (#24255)

A standalone Lit + MapLibre package for the events map: a tilted globe
that bins events into H3 cells and raises them as action-colored pie
columns, over a hex basemap bundled as a PMTiles archive — no tile server
and no external requests, so it works air-gapped. Zoom bands cross-fade
and columns animate between re-bins. Ships the archive, the generator CLI,
and node tests for the geometry, styling, and tiling plan.

Co-authored-by: Teffen Ellis <[email protected]>

---------

Signed-off-by: Teffen Ellis <[email protected]>
Co-authored-by: Teffen Ellis <[email protected]>
Co-authored-by: Copilot Autofix powered by AI <[email protected]>

* web: replace the OpenLayers events map with ak-map (#24257)

* brands: add branding_map_tiles for the events map tile source

Brand-level override for where the events map loads its vector tiles:
empty keeps the bundled basemap, a pmtiles:// archive URL or XYZ template
points at your own. Includes the migration, schema, and regenerated
clients.

* packages/geo: add @goauthentik/geo and the hexworld event map

A standalone Lit + MapLibre package for the events map: a tilted globe
that bins events into H3 cells and raises them as action-colored pie
columns, over a hex basemap bundled as a PMTiles archive — no tile server
and no external requests, so it works air-gapped. Zoom bands cross-fade
and columns animate between re-bins. Ships the archive, the generator CLI,
and node tests for the geometry, styling, and tiling plan.

* web: replace the OpenLayers events map with ak-map

EventMap now renders @goauthentik/geo's globe: events show as extruded
columns split by action, hovering shows a localized breakdown, and
clicking a column filters the list to that cell's events. The build copies
the bundled archive and glyphs into dist. OpenLayers and the pin-marker
path are removed.

---------

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

* Format.

* brands: note that branding_map_tiles is served unauthenticated

The events map is admin-only, but branding_map_tiles rides along in
CurrentBrandSerializer, which /core/brands/current/ exposes with
AllowAny. Commercial tile providers carry their API key in the URL, and
the help text invites pasting exactly such a URL, so say plainly that
the value is world-readable.

Migration 0016 is edited in place rather than superseded — it has not
shipped, and makemigrations reports no pending changes. Schema and
clients regenerated.

* geo: strip build-machine paths from the shipped basemap archive

The committed hexworld.pmtiles carried the absolute path of the scratch
directory it was built in — including a session uuid — in its metadata
name, description and generator_options, shipped to every install.
tile-join inherits those fields from its first input file, so pass
--name/--description/--attribution explicitly to stop it recurring.

The archive itself is rewritten in place rather than regenerated:
pmtiles v3 lays out header, root directory, metadata, leaf directories
and tile data contiguously, and directory entries address tiles relative
to tileDataOffset, so resizing the metadata only shifts two header
offsets. Verified with the pmtiles reader — header fields match and 634
sampled tiles across z0-7 are byte-identical.

* web: drop the unused OpenLayers map pin

map_pin.svg was the marker icon the OpenLayers events map drew; ak-map
renders extruded columns instead and nothing references the file.

Also correct the preserveSymlinks comment. The flag is load-bearing, but
not for the stated reason: geo resolves its own dependencies fine from
its own node_modules. What it prevents is resolving them by realpath,
which pulls a second copy of the Lit runtime out of .pnpm alongside the
one in web/node_modules — two lit-html/lit-element/@lit-reactive-element
trees and two ReactiveElement hierarchies in one bundle.

* build: pin playwright through the pnpm catalog in both workspaces

The root and web/ are separate pnpm workspaces with separate lockfiles,
so a caret range let them resolve playwright independently — root landed
on 1.62.0 while web sat at 1.61.1, and `playwright install` downloads a
~95 MB browser build keyed to the exact version. Two versions, two
downloads. Catalog entries plus lint-catalogs turn that drift into a
failing check; the pin is exact because a range is what allowed it.

Held at 1.61.1 rather than the newest: 1.62.0 cannot resolve a bare
package name in a tsconfig `extends`, and web/tsconfig.json extends
"@goauthentik/tsconfig", so loading web's playwright.config.js fails and
the e2e suite never runs. `playwright test --list` discovers 25 tests on
1.61.1 and dies before discovery on 1.62.0.

vitest, vite and the @vitest/browser pair join the same catalog since
geo now uses them too and @vitest/browser-playwright drives whichever
playwright it finds.

* geo: rebuild ak-map on re-parent, run tests from source under vitest

disconnectedCallback tore the MapLibre instance down but firstUpdated
only ever fires once, so re-parenting <ak-map> left it permanently
blank. Rebuild from connectedCallback once the element has updated.
The new Chromium test covers exactly that: it fails without the fix and
passes with it, and no other test moves.

Tests move from node:test over compiled out/*.js to vitest over src, so
they exercise the source rather than a stale build and need no build
step. Six of them reached for ../out/*.js through a dynamic import and
would have kept asserting against whatever was last compiled.

Along the way, three things that were already broken:

  - `tsc -p scripts` never ran anywhere and does not compile — its
    tsconfig omits the DOM lib while its import graph reaches
    src/style.ts, which uses `window`. There is now a lint:types script
    covering src, scripts and test.
  - TippecanoeFeature extended a bare Feature though placeFeature
    always emits a Point with fixed properties.
  - The README described a previous generation of the generator: wrong
    script path, wrong cut names, a zoom band that stops at z7 rather
    than z8, a shipped archive listed at 8.8 MB when it is 22 MiB, and
    markers painted "via MapLibre feature-state" when they are a
    fill-extrusion source.

publishConfig is dropped rather than `private`: geo depends on
@goauthentik/api via link:, which cannot survive publication, so the
package is unpublishable either way and publishConfig was the dead half.

* rust nits

Signed-off-by: Marc 'risson' Schmitt <[email protected]>

* website/docs: document the hexworld event map

* website/docs: drop the OSM tile server from the air-gapped outbound list

The events map no longer reaches tile.openstreetmap.org — the bundled
basemap makes no outbound connections. Note the one way it can reach out
again: a custom basemap configured on a brand.

* Ignore build info.

* Ignore build info.

* Fix pins.

* Fix formatting.

* Fix duplicate package entries.

* Move runtime code to web.

---------

Signed-off-by: Teffen Ellis <[email protected]>
Signed-off-by: Marc 'risson' Schmitt <[email protected]>
Co-authored-by: Teffen Ellis <[email protected]>
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
Co-authored-by: Marc 'risson' Schmitt <[email protected]>
2026-07-31 18:54:08 +00:00
Marc 'risson' Schmitt d68775d879 root: don't fail fast cspell (#24223)
Signed-off-by: Marc 'risson' Schmitt <[email protected]>
2026-07-20 13:56:37 +00:00
Ken Sternberg 2679002fc7 Web/css: enabling layers, part 3: vendoring (#23366)
* ## 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`)

* Just documenting current system and laying out intent.

* Moved the common block shared by flows and user/admin into a single declaration in the vendor section.

* Moved the copy/pasted overrides for login, form-control-static, and flow links into a separate file.

* ak-locale-select.css was imported twice, and then copy/pasted into a another file. Deduped.

* ak-locale-select.css was imported twice, and then copy/pasted into a another file. Deduped.

* Adjust the styling for FlowExecutor

This one has always bugged me, like it’s our trying to make the Flow page look exactly right. Which we absolutely should be doing! But figuring out how became archaelogy: layer upon layer of overrides, `!important` properties, and redirects.

What this does:

Separates the `login.css` into `login-tokens.css` (which has all the CSS Custom Properties) and `login-layout.css` (which has all the rules describing the FlowExecutor card layout.) These get concatenated into `static.global.css` to provide these values to the static pages, and via `FlowExecutor` to get these into the shadowDOM for that.

Adjusts `flows.global.css` to pull in the `flow-loading.css`, which has a pair of selectors that only apply in the browser state before Javascript has run (via `:not(:defined)`), to put the spinner where it belongs before the components begin doing their thing and having their own spinners and delay indicators.

Adjusts the layout so that only the CSS properties that affect the Flow *container* apply to the container. Funny, that. The `flex-flow` had no effect here. Instead, the Flow Executor now gets the layout and handles it internally and cleanly.

Consequently, FlowExecutor, which always took over the entire viewport anyway, doesn’t need the `.pf-c-login` styling; instead, since the Patterfly `Login/login.css` is pulled into FlowExecutor anyway, applying `.pf-c-login` it as a top-level wrapper to the shadowDOM template is what activates all the CSS custom properties for components after Javascript activation.

I ran this with both a “mid-tier mobile CPU” profile and a “slow 4G” profile and confirmed that, aside from our **very large** background taking *forever* to load in slow 4G, it looked the way I expected it to look, with no unstyled content.

We no longer have a circumstance where our global CSS pulls in FlowExecutor, which then turns around and pulls in the `login.css` file from out global CSS.

Did I mention how much I hate circular logic? Even if, in this case, it’s not a complete circle? But at least it’s not spaghetti anymore. Or, at least, not so much.

* Typo.

* Had to merge to route around a build bug; it's okay, prettier had opinions.

* A spelling error? In my code!? Inconceivable!

* This commit enables layers. It doesn’t do *anything* with them, mind you; CSS imports without `@layer` declarations always have higher specificity than anything else, so this is fine for our purposes at the moment. We are relying on this behavior so that the CSS *inside* our components has higher specificity than anything coming from the outside world. (Sadly, `::slotted()` is still the loser.)

The overall effect of this PR is that: nothing should change. It shouldn’t have any visual effect whatsoever. What is important is that, at this point, we are committing to using layers, we are relying on bundlers to get the ordering right for older browsers, and we are still in the process of hashing out what layers, and what names for the layers, we want to use going forward.

* Incorporate the patches for spacing the extra info zone.

* This commit enables layers. It doesn’t do *anything* with them, mind you; CSS imports without `@layer` declarations always have higher specificity than anything else, so this is fine for our purposes at the moment. We are relying on this behavior so that the CSS *inside* our components has higher specificity than anything coming from the outside world. (Sadly, `::slotted()` is still the loser.)

The overall effect of this PR is that: nothing should change. It shouldn’t have any visual effect whatsoever. What is important is that, at this point, we are committing to using layers, we are relying on bundlers to get the ordering right for older browsers, and we are still in the process of hashing out what layers, and what names for the layers, we want to use going forward.

* Globals, thematic elements (base ones, not very interesting), and icons are vendored.

* .

* Renamed and re-arranged the barrel files. Also: amnesia-oriented comments.

* Move all the vendor'd document files into the 'document' tree.

* Moved the base files into their own location, where the content lives for our shadowDOM.

* Moves the 'global' variables into their own layer.  Moves the font _variables_ collection into variables; that's just part of the theme, it's not special and it shouldn't be treated as such.  Yes, it refers to assets without which it looks broken, but the variable definitions are different from both the asset sources and the concrete usage.

* Moves the 'global' variables into their own layer.  Moves the font _variables_ collection into variables; that's just part of the theme, it's not special and it shouldn't be treated as such.  Yes, it refers to assets without which it looks broken, but the variable definitions are different from both the asset sources and the concrete usage.

* Moved the definitions around a bit.

* web/css: Continue the re-arrangement and organization of styles

The entrypoint files don’t need to be named `.global`; they’re not technically globals, they’re entrypoints. By dictating the root of the `styles` folder contains only the `layers.css` declaration and then using those layers in the entrypoint files, we isolate “what goes where” to a single starting point.

* Revert "web/css: Continue the re-arrangement and organization of styles"

This reverts commit 3ffc202a55.

* Reapply "web/css: Continue the re-arrangement and organization of styles"

This reverts commit f08fd86283.

* Turns out, the '.global' tag is needed to trigger the correct referencing behavior.

* Added a lot of comments; build not currently broken.

* Disambiguating pass: folders match layer names.  theme -> mode, global -> theme

* Disambiguating pass: folders match layer names.  theme -> mode, global -> theme

* web/css: Continue the re-arrangement and organization of styles

This commit disassembles “common.css,” which was a grab-bag of modifiers, component overrides and mode definitions. The component parts were given their own sections in `authentik/components`, the modifiers were (inelegantly) put into `authentik/components/modifiers`, the dark-mode stuff was put into `mode/mode.css`, and the high-contrast stuff put into `mode/contrast.css`. They were then codified into what layers they belonged. In some cases, where only one to three web components used them, references to inner element overrides were provided directly to the component; otherwise, they were (again, inelegantly) shoved into `authentik-base.css`.

* Missed one: Screenreader.

* Globals, thematic elements (base ones, not very interesting), and icons are vendored.

* .

* Renamed and re-arranged the barrel files. Also: amnesia-oriented comments.

* Move all the vendor'd document files into the 'document' tree.

* Moved the base files into their own location, where the content lives for our shadowDOM.

* Moves the 'global' variables into their own layer.  Moves the font _variables_ collection into variables; that's just part of the theme, it's not special and it shouldn't be treated as such.  Yes, it refers to assets without which it looks broken, but the variable definitions are different from both the asset sources and the concrete usage.

* Moves the 'global' variables into their own layer.  Moves the font _variables_ collection into variables; that's just part of the theme, it's not special and it shouldn't be treated as such.  Yes, it refers to assets without which it looks broken, but the variable definitions are different from both the asset sources and the concrete usage.

* Moved the definitions around a bit.

* web/css: Continue the re-arrangement and organization of styles

The entrypoint files don’t need to be named `.global`; they’re not technically globals, they’re entrypoints. By dictating the root of the `styles` folder contains only the `layers.css` declaration and then using those layers in the entrypoint files, we isolate “what goes where” to a single starting point.

* Revert "web/css: Continue the re-arrangement and organization of styles"

This reverts commit 3ffc202a55.

* Reapply "web/css: Continue the re-arrangement and organization of styles"

This reverts commit f08fd86283.

* Turns out, the '.global' tag is needed to trigger the correct referencing behavior.

* Added a lot of comments; build not currently broken.

* Disambiguating pass: folders match layer names.  theme -> mode, global -> theme

* Disambiguating pass: folders match layer names.  theme -> mode, global -> theme

* web/css: Continue the re-arrangement and organization of styles

This commit disassembles “common.css,” which was a grab-bag of modifiers, component overrides and mode definitions. The component parts were given their own sections in `authentik/components`, the modifiers were (inelegantly) put into `authentik/components/modifiers`, the dark-mode stuff was put into `mode/mode.css`, and the high-contrast stuff put into `mode/contrast.css`. They were then codified into what layers they belonged. In some cases, where only one to three web components used them, references to inner element overrides were provided directly to the component; otherwise, they were (again, inelegantly) shoved into `authentik-base.css`.

* Missed one: Screenreader.

* Adjust the storybook layers. Can't believe I almost forgot that.  Moved the storybook overrides *into* the storybook configuration.

* web/css: moved the contents of 'color-dark' to mode.css

* Fixed typo: Only an extraordinary reason justifies a Patternfly file being anything other than 'vendor'; noted that we don't have a 'reduced-motion' setting yet.

* Added the README.

* Embarassing spelling error.

* Noticed the README wasn't the way I wanted it.

* Needed to add 'FOUC' to the spellcheck.  Also, a comment about UK spelling no longer made sense in context, so I re-arranged them a bit so that it did.

* Somehow this missed the merge.

* Typos suck.

* Spelling errors!? In my code? It's more likely than you think!
2026-07-02 14:23:05 -07:00
Ken Sternberg 24b86a39a5 web/css: de-dupe and simplify CSS customizations (#23195)
* ## 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`)

* Just documenting current system and laying out intent.

* Moved the common block shared by flows and user/admin into a single declaration in the vendor section.

* Moved the copy/pasted overrides for login, form-control-static, and flow links into a separate file.

* ak-locale-select.css was imported twice, and then copy/pasted into a another file. Deduped.

* ak-locale-select.css was imported twice, and then copy/pasted into a another file. Deduped.

* Adjust the styling for FlowExecutor

This one has always bugged me, like it’s our trying to make the Flow page look exactly right. Which we absolutely should be doing! But figuring out how became archaelogy: layer upon layer of overrides, `!important` properties, and redirects.

What this does:

Separates the `login.css` into `login-tokens.css` (which has all the CSS Custom Properties) and `login-layout.css` (which has all the rules describing the FlowExecutor card layout.) These get concatenated into `static.global.css` to provide these values to the static pages, and via `FlowExecutor` to get these into the shadowDOM for that.

Adjusts `flows.global.css` to pull in the `flow-loading.css`, which has a pair of selectors that only apply in the browser state before Javascript has run (via `:not(:defined)`), to put the spinner where it belongs before the components begin doing their thing and having their own spinners and delay indicators.

Adjusts the layout so that only the CSS properties that affect the Flow *container* apply to the container. Funny, that. The `flex-flow` had no effect here. Instead, the Flow Executor now gets the layout and handles it internally and cleanly.

Consequently, FlowExecutor, which always took over the entire viewport anyway, doesn’t need the `.pf-c-login` styling; instead, since the Patterfly `Login/login.css` is pulled into FlowExecutor anyway, applying `.pf-c-login` it as a top-level wrapper to the shadowDOM template is what activates all the CSS custom properties for components after Javascript activation.

I ran this with both a “mid-tier mobile CPU” profile and a “slow 4G” profile and confirmed that, aside from our **very large** background taking *forever* to load in slow 4G, it looked the way I expected it to look, with no unstyled content.

We no longer have a circumstance where our global CSS pulls in FlowExecutor, which then turns around and pulls in the `login.css` file from out global CSS.

Did I mention how much I hate circular logic? Even if, in this case, it’s not a complete circle? But at least it’s not spaghetti anymore. Or, at least, not so much.

* Typo.

* Had to merge to route around a build bug; it's okay, prettier had opinions.

* A spelling error? In my code!? Inconceivable!

* Incorporate the patches for spacing the extra info zone.

* Needed to add 'FOUC' to the spellcheck.  Also, a comment about UK spelling no longer made sense in context, so I re-arranged them a bit so that it did.
2026-07-02 08:48:56 -07:00
Teffen EllisandClaude Opus 4.8 928eefe098 root: Replace (npm + Corepack) with pnpm (#22830)
* Replace npm + Corepack with pnpm

Migrate package management from npm + Corepack to pnpm across the root,
web, and website workspaces:

- Swap npm/Corepack tooling for pnpm: drop package-lock.json files and the
  bespoke Corepack bootstrap scripts (setup-corepack.mjs, utils/corepack.mjs,
  lint-lockfile.mjs); add pnpm-lock.yaml + pnpm-workspace.yaml per workspace.
- CI uses the official pnpm/action-setup + actions/setup-node; pin the pnpm
  store dir via PNPM_HOME so setup-node's `cache: pnpm` post-step succeeds.
- Docker sources pnpm from the official ghcr.io/pnpm/pnpm image via a
  ${BUILDPLATFORM}-pinned stage; the website docs build does a hoisted root
  install so @goauthentik/docusaurus-config resolves its own deps.
- Gate the web install on the `node` dep so runtime-only jobs don't invoke
  pnpm; scope the from-stable env setup so the new tooling doesn't run against
  the stable checkout's npm packageManager field.
- Resolve @goauthentik/api (client-ts) from its TypeScript source instead of a
  tsc-built dist, so it no longer depends on an install-time prepare having run
  (the storybook build's environment never built it); sfe's rollup gains .ts
  resolution to match.
- Netlify builds with pnpm; encode pnpm's supply-chain controls
  (onlyBuiltDependencies/allowBuilds, minimumReleaseAge) in the workspace.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>

Remove custom node action.

* Format.
2026-07-01 19:24:19 +00:00
Teffen EllisandPlaypen Agent 3762c2764c root: flag British spellings in cspell (#22821)
cspell's bundled en_US dictionary accepts British spellings (colour, behaviour, organise, ...) even with language en-US. Add a flagWords list covering the common -our/-ise/-yse/-re/-ce families so they are reported as forbidden words with the American spelling offered as a fix, plus ignore entries for upstream-spelled exceptions (PatternFly pf-m-grey, lit-analyse, analyse-phase).

MERGE LAST: failFast is on, so this rule must land only after the docs/backend/frontend cleanup PRs have merged, otherwise CI fails on pre-existing British spellings.

Co-authored-by: Playpen Agent <[email protected]>
2026-06-15 14:54:30 +02:00
d307e200c5 website/docs: mark cves CVE-2026-49443 and CVE-2026-49448 (#22808)
* mark cves

* Ignore spellcheck on redirects, headers.

---------

Co-authored-by: Jens L. <[email protected]>
Co-authored-by: Teffen Ellis <[email protected]>
2026-06-04 20:01:33 +00:00
Jens L. 00639d9596 policies/event_matcher: Add query option to filter events (#21618)
* policies/event_matcher: support QL query

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

* fix lit dev warning

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

* cache autocomplete data if QL isn't setup yet

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

* add ui

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

* dont use ql input in modal

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

* cleanup

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

* fix codespell

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

---------

Signed-off-by: Jens Langhammer <[email protected]>
2026-04-16 01:52:11 +02:00
Jens L.andauthentik-automation[bot] 20e2d3fac7 website/docs: add grafana dashboard (#21254)
* website/docs: add grafana dashboard

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

* Optimised images with calibre/image-actions

* Optimised images with calibre/image-actions

---------

Signed-off-by: Jens Langhammer <[email protected]>
Co-authored-by: authentik-automation[bot] <135050075+authentik-automation[bot]@users.noreply.github.com>
2026-03-30 19:32:49 +02:00
Marc 'risson' Schmitt 31ab7e3ca4 root: cleanup API generation (#21172) 2026-03-26 13:48:01 +00:00
Marc 'risson' SchmittandJens Langhammer ef1d0b0279 packages/client-ts: init (#21120)
Co-authored-by: Jens Langhammer <[email protected]>
2026-03-26 13:34:48 +01:00
Marc 'risson' SchmittandJens Langhammer 2f70351c90 packages/client-go: init (#21139)
* packages/client-go: init

Signed-off-by: Marc 'risson' Schmitt <[email protected]>

* format

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

* remove mod/sum

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

* fix translate

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

* no go replace

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

* update rust makefile with pwd

Signed-off-by: Marc 'risson' Schmitt <[email protected]>

* fix build

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

* fix docs

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

* don't need a version ig?

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

* exclude go client from cspell

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

* fix main docker build

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

---------

Signed-off-by: Marc 'risson' Schmitt <[email protected]>
Signed-off-by: Jens Langhammer <[email protected]>
Co-authored-by: Jens Langhammer <[email protected]>
2026-03-25 15:26:50 +01:00
Marc 'risson' Schmitt 4371c194a8 packages/client-rust: init (#21117) 2026-03-24 20:38:56 +00:00
Tana M Berry e96a352ddf core: uncomment failFast in cspell config file (#21116)
uncomment failFast
2026-03-24 17:42:51 +01:00
Tana M BerryandDominic R cdbfde840e website/docs: Password stage docs, explain four checkboxes (#21013)
* tweaks and edited cspell file

* formatting tweak

* Update website/docs/add-secure-apps/flows-stages/stages/password/index.md

Co-authored-by: Dominic R <[email protected]>
Signed-off-by: Tana M Berry <[email protected]>

* Update website/docs/add-secure-apps/flows-stages/stages/password/index.md

Co-authored-by: Dominic R <[email protected]>
Signed-off-by: Tana M Berry <[email protected]>

* Update website/docs/add-secure-apps/flows-stages/stages/password/index.md

Co-authored-by: Dominic R <[email protected]>
Signed-off-by: Tana M Berry <[email protected]>

* dominic edits

* jens edits

* capitalization

* jens edits, and removed unrelated change to cspell

* jens/dominic edit

---------

Signed-off-by: Tana M Berry <[email protected]>
Co-authored-by: Dominic R <[email protected]>
2026-03-24 10:01:44 -05:00
Marc 'risson' Schmitt 894f134893 root: init rust workspace (#20983) 2026-03-19 14:12:00 +00:00
Teffen EllisandJens Langhammer d007cbc817 web: CodeSpell -> CSpell migration (#20188)
* web: Flesh out CSpell.

* Fix remaining linter warnings.

* Add comments, common names.

* Fix common prefixes.

* Omit trailing commas in jsonc files.

* Format.

* Update command.

* Install before run.

* trim empty lines

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

* dont npm ci there

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

* setup node in web and root

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

* Format.

* Rename.

* Install root deps.

---------

Signed-off-by: Jens Langhammer <[email protected]>
Co-authored-by: Jens Langhammer <[email protected]>
2026-03-09 18:18:38 +01:00